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

hi,, i want to creat a apex page with 10 fields which are not in database(table)... want to save this page into database.. how would i achieve this?? can anyone help me..

Hi, Ashok,
more info is needed on this one.
What fields do you want to show|read and where do you want to save them? custom object or what?
If your fields are dynamic, and you don't want to create a table structure, 

- FieldName
- Value

From your VF Page controller, you can insert entries to this table, if you have 10 fields, then this table will have 10 records. If you want to store multiple records, add a "recordnumber" field and then you can have many set of fields. 

Another option could be converting your field structure to jSON or XML and store it in a long-text area. 

Though the best option woudl be to have a table associated with your page, unless you have dynamic columns and don't want to create reports etc.