cancel
Showing results for 
Search instead for 
Did you mean: 

How to get section name in the Rule when clicks on its footer item press in Object Collection?

harianantha
Participant
0 Kudos
358

Hi All,

I am having a couple more Object Collection sections by giving MaxItemCount as 2 and adding a footer section(see more) for every Object Collection section (Please refer to the below image). I am calling the same rule on all the footer item press. I want to get the section name on the footer item(see more) press so that I will open a new page and generate dynamic page metadata.

mdk.jpg

{
"_Type": "Section.Type.ObjectCollection",
"Target": "{leadsList}",
"_Name": "Leads",
"Header": {
"_Name": "SectionHeader2",
"UseTopPadding": false,
"Caption": "LEADS"
},
"Footer": {
"_Name": "SectionFooter0",
"Caption": "See more",
"AccessoryType": "disclosureIndicator",
"OnPress": "/Customer/Rules/onPressSeeMoreOption.js",
"UseBottomPadding": false
},
"EmptySection": {
"FooterVisible": false
},
"MaxItemCount": 2,
"ObjectCell": {
"Title": "{Description}",
"Subhead": "{Notes}",
"Footnote": "{UserStatusText}",
"StatusText": "$(D,{StartDate},'','',{format:'short'})",
"SubstatusText": "$(D,{EndDate},'','',{format:'short'})",
"AccessoryType": "none",
"PreserveIconStackSpacing": false
},
"Layout": {
"NumberOfColumns": 2
}
},
{
"_Type": "Section.Type.ObjectCollection",
"Target": "{oppList}",
"_Name": "SectionObjectCollection2",
"Header": {
"_Name": "SectionHeader3",
"UseTopPadding": false,
"Caption": "OPPORTUNITIES"
},
"Footer": {
"_Name": "SectionFooter1",
"Caption": "See more",
"AccessoryType": "disclosureIndicator",
"OnPress": "/Customer/Rules/onPressSeeMoreOption.js",
"UseBottomPadding": false
},
"EmptySection": {
"FooterVisible": false
},
"MaxItemCount": 2,
"ObjectCell": {
"Title": "{Description}",
"Subhead": "Probability: {ChanceOfSuccess}",
"StatusText": "$(D,{ClosingDate},'','',{format:'short'})",
"SubstatusText": "$(C,{ExpectedSalesVolume},'USD','',{minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:true})",
"AccessoryType": "none",
"PreserveIconStackSpacing": false
},
"Layout": {
"NumberOfColumns": 2
}
}

Accepted Solutions (1)

Accepted Solutions (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

The Footer OnPress receives a context of the SectionTable container and as such you will not be able to get the current section information at this time. You will need to create a unique rule for each footer to handle the differences today.

Answers (0)