+ Start a Discussion
Geetha ReddyGeetha Reddy 

very urgent issue.....



I am trying to pull the data from invoice & invoice line item using Dynamic Visualforce Bindings .  but i am unable to retrivre related list values.


Here i am keeping my code : 

public class AAA_DynamicBinding
public Invoice__c inv{get;set;}

// constructor
public AAA_DynamicBinding(){
inv= new Invoice__c ();

// get sobject fields of account object
public static List<String> getSobjectFields()
List<String> fields = new List<String>();

Map<String,Schema.SObjectType> gd = Schema.getGlobalDescribe();
Schema.SObjectType sobjType = gd.get('inv');
//Schema.SObjectType sobjType = gd.get('account');
Schema.DescribeSObjectResult r = sobjType.getDescribe();
Map<String,Schema.SObjectField> M = r.fields.getMap();

for(String fieldName : M.keyset())
Schema.SObjectField field = M.get(fieldName);
Schema.DescribeFieldResult fieldDesc = field.getDescribe();
return fields;
public PageReference save()
upsert inv;
return null;



<apex:page standardController="Invoice__c" extensions="AAA_DynamicBinding">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >

<apex:pageBlockTable value="{!inv}" var="i">

<apex:column headerValue="Name">
<apex:inputField value="{!i.name}"/>
<apex:column headerValue="Quantity">
<apex:inputField value="{!i.invoice_status__c}"/>
<apex:column headerValue="Invoice">
<apex:inputField value="{!i.invoice_tot__c}"/>


<apex:commandButton value="Save" action="{!save}"/>


Can any one help on this issue.