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
lovecrmlovecrm 

Display data into Grid from Custom settings

Hi All,

 

 I had a requirement where i need to display the grid in the section based on the button clicked in a multi button menu.

 

Here the field types should be from Custom object Proposed_Services__C but the data should be from Custom setting=Quick_Add_Product__C.

 

I am retrieving the data from Custom setting through a SOQL query:

 

public Quick_Add_Products__c prop_services=new Quick_Add_Products__c();

prop_services =([select id,Type__c,Quantity__c,Frequency__c,Occurs__c from Quick_Add_Products__c where Name='2 Yrd Recycle']);

 

here Type is a picklist, OnCall is a checkbox and so on in Proposed_Services__C

 

 

Here i need to get those datatypes from Custom object Proposed_Services__c and Data from Custom Setting Quick_Add_Products__c.

 

Anyone plz suggest me how to do this.

 

Appreciate your help.

 

Thankyou,

Carol