2025 Jan 14 5:37 PM - edited 2025 Jan 14 5:39 PM
Hi Experts,
I have a tab page that has two tabs and each tab points to different pages where each page has its own controls
From the toolBar button I activate a Rule where I want to obtain the elements of each page that has the tab.
This has my rule but it doesn't work for me
Request clarification before answering.
You have it just about right but you will want to include #Value in your target path to get the value of the control as opposed to the control reference. I did a quick test using this rule and it worked as expected.
export default function GetTabFieldValues(context) {
let ta_sp = context.evaluateTargetPath('#Page:TabA/#Control:FCSimpleProp/#Value');
let ta_lp = context.evaluateTargetPath('#Page:TabA/#Control:FCListPicker/#SelectedValue');
let tb_sp = context.evaluateTargetPath('#Page:TabB/#Control:FCSimpleProp/#Value');
let tb_lp = context.evaluateTargetPath('#Page:TabB/#Control:FCListPicker/#SelectedValue');
console.log(`Tab A - ${ta_sp} - ${ta_lp}`);
console.log(`Tab B - ${tb_sp} - ${tb_lp}`);
return context.getPageProxy().executeAction({
"Name": '/SCN_00045/Actions/GenericMessageBox.action',
"Properties": {
"Message": `Tab A - ${ta_sp} - ${ta_lp}\nTab B - ${tb_sp} - ${tb_lp}`
}
});
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.