on 2022 Feb 18 2:55 PM
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.
{
"_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
}
}
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.