You need to sign in to do that
Don't have an account?
Ashok S 7
I want to know how to insert a records in 2 custom objects by using custom controller and visual force page those two objects have lookup relation ship plesase tell i am new to salesforce
Hai Guys.
I want to know how to insert a records in 2 custom objects by using custom controller and visual force page those two objects have lookup relation ship plesase tell i am new to salesforce
I want to know how to insert a records in 2 custom objects by using custom controller and visual force page those two objects have lookup relation ship plesase tell i am new to salesforce
you can insert a record into 2 object via custom controller. lets take two object A and B. A is having lookup field which take B type of object.
First approach,which is the simplest one: make sure first we need to insert the object which is used in lookup field. since we require the value object which has same type of lookup field..
Second approach, in which we can use single insert statement for both the object as following in this Approach we use an external ID(Master_Id__c) to relate the lookup field.
Hope this resolve your query. Please mark this as best answer if it resolve the query.