function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
abivenkatabivenkat 

problem while page re loads

 

hi all,

 

In my visualforce page, i have a selectlist in which i am binding all the object names dynamically and based on the selection of the object, i am retrieving the field names for that object and binding it in another selectlist and allow users to save the record in the object. Until now, there are no problems arise.

If the user goes to a records detail page and clicks edit, the values in the selectlist is not retaining its values, instead it is restored to its default value (as --None--). What i have to do to fetch the value saved in the record and show them while editing the previous record.

Example: while creating a new record, user chooses, Account as object, Name as field and saves this record. now while editing this same record, both the selectlists are set to default values.

I need some assistance in doing this. please help.

 

thanks,

abivenkat,

SFDC Learner

yvk431yvk431

I guess the picklist values data is not at all saved onto the database.

 

Cant help with out seeing what you written on your page as well as controller.

 

--yvk