You need to sign in to do that
Don't have an account?
Salma Elmoutaouaffik
custom object with two record types
I have a custom object with two record types.
my question is how to save the data input in the same vf into the record types ?
for exemple the object is Myobject__c and it has two records objet1 & object2
my question is how to save the data input in the same vf into the record types ?
for exemple the object is Myobject__c and it has two records objet1 & object2
If you have two record type ,Why you want to send data from different record type ,how you want to defind when to save first record type and when to send second record type .Is there any pick list on basis of that you need to save data or nay other identifier .
please confirm .
Iwant when i click save the value of the inputfield to be saved in one of the record types , how can I refer to the record type??
In your MyCustomController class inside Quicksave method in the MyObject__c record assign like below .
instanceof rec. RecordTypeId=MyObject__c.sObjectType.getDescribe().getRecordTypeInfosByName().get('YourRecordTypeName').getRecordTypeId();
Let me know any issue .
Thnaks
Manoj
i do not have a quicksave method here is my apexcode:
Try with below code it will save record in XXX record type .
Thanks
Manoj
Try with below code ,Or create a tab for that object and check .
If it solve your problem please select as best answer to help others .