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
Gurditta GargGurditta Garg 

add list of an object records to another object's single record

Hi,

 

 <apex:pageBlock title="Scorecard">
   <apex:pageBlockButtons location="bottom">
     <apex:commandButton action="{!save}" value="Save" style="width:100px" />
   </apex:pageBlockButtons>

 <apex:pageBlockSection columns="2">
    <apex:inputField value="{!scoreform.Name}" required="true"/>
    <apex:inputField value="{!scoreform.Department__c}" required="true"/>
    <apex:inputField value="{!scoreform.Frequency__c}" required="true"/>
    <apex:inputField value="{!scoreform.Sub_Department__c}" required="true"/>   
    <apex:inputField value="{!scoreform.Weighted_Score_1_Owner__c}" />
    <apex:inputField value="{!scoreform.Weighted_Score_2_Owner__c}" />
    <c:MultiselectPicklist leftLabel="Available Metrics" 
        leftOption="{!allMetrics}" 
        rightLabel="Selected Metrics" 
        rightOption="{!selectedMetrics}" 
        size="14" 
        width="150px"/>
        
</apex:pageBlockSection>

I'm using the above <c> tag component for multiselectPicklist.

in left list i've list of available records (a1,a2,a3,a4....) of an object (say A) which i want to add to the another object's (say B) record (b1).