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
Hari@RockzsHari@Rockzs 

Maps:How we Create Map with Two objects Fields

Hi


Scenario:


I have tow objects one is Questions ,Containing Questions,another is Options(each Question having 4 options ),Containing options for each Question ,Which is present in Questions Object.


Requirement:


My requirement is i want display Questions and its Corresponding Answers on Vf page How We can get that can u please help me


Thank U

   Hari


 

iBr0theriBr0ther

Hi,

 

My suggestion:

 

Create an inner class that has varible of object Question and a list of Options.

Map the qeusitons and options in controller and use that inner class to display your data in vf page.

 

Cheers,

Hari@RockzsHari@Rockzs

Thank u for Suggestion

 

Pls Send me that Code for that

 

 

Hari