You need to sign in to do that
Don't have an account?
cml9
Need Help I am new to VF and Tutorials doesn't make sense regarding this project
I have three Objects as follows
Sales
Product
Products Entry
What I want to happen is that when I am adding a new product on Sales the picture below is what I am seeing. (the picture below is the list of Product Entry.
Once I checked 1 or more and then clicked the button Select, it will bring me to another visual for page where I can edit the price, quatity and description and when I hit Save, it will be saved in Products object.
Hope someone can help me. This is a bit urgent and my job depends on this. Thank you very much.
Sales
Product
Products Entry
What I want to happen is that when I am adding a new product on Sales the picture below is what I am seeing. (the picture below is the list of Product Entry.
Once I checked 1 or more and then clicked the button Select, it will bring me to another visual for page where I can edit the price, quatity and description and when I hit Save, it will be saved in Products object.
Hope someone can help me. This is a bit urgent and my job depends on this. Thank you very much.
You will need to write a wrapper class to include the object that you are updating and a boolean variable which will take the value (True/False) from the checkbox of the corresponding record of the object. So while displaying the records on the VF page you will have to use the instance of the wrapper class.The value of the boolean variable will be false by default.
Please refer to the below sample codes below so that you get a clear idea.
Sample code 1 how to write a wrapper
Apex Controller:
Visualforce Page:
Sample code 2 how to update the records using checkboxes and save them in the database
Apex Controller:
Visualforce Page: Let me know if you have any issues further.
Please mark it as solved if it helps.
Best Regards,
Nagendra.P