You need to sign in to do that
Don't have an account?
Dynamic Editing
Hi all,
I have an issue regarding Dynamic Editing I created an Opportunity item for every particelar Opportunity there ar n related invoices and for every 1 invoice there is 1 related invoice line item I have to create a complete visualforce page where i can
put all these there objects(Opportunity,invoice and invoiclineitem fields) and i have to dynamically edit all these fields
can u get me the code how to dynamic editing of all these fields
I try for a controller but not getting any results
Controller
------------------------------------------------------------------------------------------------------------------------------
public with sharing class vedit
{
string id;
public Opportunity op{get; set;}
public list<invoice__c> inv{get; set;}
public list<Invoice_Line_Item__c> invlt{get; set;}
public vedit()
{
this.id=ApexPages.currentPage().getParameters().get('id');
op=[select id,name,Invoice_Quantity__c,Invoice_Status__c,Number_Of_Invoices__c,Invoice_Total__c,DeliveryInstallationStatus__c, Fully_Paid_Invoices_total__c,Open_Invoices_Total__c,Partially_Paid_Invoices_Total__c,Total_Invoiced_Amount__c, Total_Invoice_Quantity__c from Opportunity where id=:this.id];
inv=[select id,name,Delivery_Installation_Status__c,Fully_Paid_Invoices_total__c,Invoice_Date__c,Invoice_Quantity__c,Invoice_Status__c,Invoice_Total__c,Open_Invoices_Total__c,Opportunity__c,Partially_Paid_Invoices_Total__c, Total_Invoiced_Amount__c,Total_Invoice_Quantity__c from invoice__c where opportunity__c=:op.id];
Decimal k =op.Number_Of_Invoices__c;
for(Integer n=0;n<k;n++)
{
invlt=[select id,name,Invoice__c,Price__c,Product__c,Qty__c,Total__c from Invoice_Line_Item__c where invoice__c=:inv[n].id];
}
}
public PageReference editinv()
{ return null; }
public PageReference customsave()
{
update op;
update inv;
update invlt;
return Page.t1;
}
}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I just put the controller what i thought can u get me the write controller and write vf page for dynamic editing of all these fields
Thanks in advance