Display
Hello everyone,
{
a!columnsLayout(
columns: a!columnLayout(
contents: if(
ri!showAllLinks_bool,
{},
rule!CR_APP_RT_displayApproverInfoNote(
message_txt: "New workflow cannot be initiated as another child flow is open/in-progress"
)
)
)
),
/*Release & delete to be shown where action proposed = Release or Delete*/
/*No other Child process to be shown when release/delete proposed*/
/*process button shown to DU users only*/
if(
contains(
cons!CR_APP_CHOICES_ACTION_PROPOSED,
tostring(
index(
ri!crAppSelected_cdt,
"proposedAction_txt",
null
)
)
),
a!columnsLayout(
alignVertical: "TOP",
columns: {
if(
and(
contains(
{
cons!CR_TXT_CCAD_UNIT,
cons!CR_TXT_SYND_GROUP
},
rule!CR_FN_getUserRole(loggedInUser())
),
tostring(
index(ri!crAppSelected_cdt, "status_txt", null)
) <> "Released"
),
a!forEach(
items: {
index(
cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
{ 8 },
null
)
},
expression: a!columnLayout(
width: "NARROW",
contents: {
a!cardLayout(
showBorder: false(),
height: "AUTO",
style: if(
ri!buttonAction_txt = fv!item,
"ACCENT",
"STANDARD"
),
contents: {
a!richTextDisplayField(
labelPosition: "COLLAPSED",
align: "CENTER",
value: {
a!richTextItem(
text: fv!item,
style: "STRONG",
linkStyle: "STANDALONE"
)
}
)
},
link: a!dynamicLink(
showWhen: and(
ri!showAllLinks_bool,
ri!buttonAction_txt <> fv!item
),
value: fv!item,
saveInto: {
ri!buttonAction_txt,
a!save(
ri!moduleRecommendationStatusChild_cdt,
rule!CR_FN_setModuleStatusHistoryChild(
requestId_int: ri!requestId_int,
cif_int: ri!cif_int
)
)
}
)
)
}
)
),
a!columnLayout(
contents: rule!CR_APP_RT_displayApproverInfoNote(
message_txt: "No child Process can be initiated"
)
)
)
}
),
{
/*Deferral Waiver, Legal, Release*/
/*Shown for dashboard and all the source types*/
/*Shown for other documents sourceType item*/
a!columnsLayout(
showWhen: contains(
{
cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6],
cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7]
},
ri!sourceType_txt
),
alignVertical: "TOP",
columns: {
a!forEach(
items: {
index(
cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
{ 1, 2, 3 },
null
)
},
expression: a!columnLayout(
width: "NARROW",
contents: {
a!cardLayout(
showBorder: false(),
height: "AUTO",
style: if(
ri!buttonAction_txt = fv!item,
"ACCENT",
"STANDARD"
),
contents: {
a!richTextDisplayField(
labelPosition: "COLLAPSED",
align: "CENTER",
value: {
a!richTextItem(
text: fv!item,
style: "STRONG",
linkStyle: "STANDALONE"
)
}
)
},
link: a!dynamicLink(
showWhen: and(
ri!showAllLinks_bool,
ri!buttonAction_txt <> fv!item
),
value: fv!item,
saveInto: {
ri!buttonAction_txt,
a!save(
ri!moduleRecommendationStatusChild_cdt,
rule!CR_FN_setModuleStatusHistoryChild(
requestId_int: ri!requestId_int,
cif_int: ri!cif_int
)
)
}
)
)
}
)
)
}
),
/*Deferral Waiver and Legal*/
/*Show buttons when Best Effort and Conditions is filled*/
/*Shown for dashboard and all the source types*/
a!columnsLayout(
showWhen: not(
contains(
{
cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6],
cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7]
},
ri!sourceType_txt
)
),
alignVertical: "TOP",
columns: if(
and(
ri!sourceType_txt <> cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10],
or(
rule!APN_isEmpty(ri!crAppSelected_cdt),
rule!APN_isBlank(
index(
ri!crAppSelected_cdt,
"conditionFlag_txt",
{}
)
),
rule!APN_isBlank(
index(
ri!crAppSelected_cdt,
"requirementFlag_txt",
{}
)
)
)
),
a!columnLayout(
width: "AUTO",
contents: {
rule!CR_APP_RT_displayApproverInfoNote(
size_txt: "STANDARD",
message_txt: "Best Effort & Conditions values are required to initiate Deferral, Waiver or CSG Review."
)
}
),
a!forEach(
items: {
index(
cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
{ 1, 2, 3 },
null
)
},
expression: a!columnLayout(
width: "NARROW",
contents: {
a!cardLayout(
showBorder: false(),
height: "AUTO",
style: if(
ri!buttonAction_txt = fv!item,
"ACCENT",
"STANDARD"
),
contents: {
a!richTextDisplayField(
labelPosition: "COLLAPSED",
align: "CENTER",
value: {
a!richTextItem(
text: fv!item,
style: "STRONG",
linkStyle: "STANDALONE"
)
}
)
},
link: a!dynamicLink(
showWhen: and(
ri!showAllLinks_bool,
ri!buttonAction_txt <> fv!item
),
value: fv!item,
saveInto: {
ri!buttonAction_txt,
a!save(
ri!moduleRecommendationStatusChild_cdt,
rule!CR_FN_setModuleStatusHistoryChild(
requestId_int: ri!requestId_int,
cif_int: ri!cif_int
)
)
}
)
)
}
)
)
)
),
/*DU child processes*/
/*show only for DU user*/
/*BU review shown to all source type, others shown only in collateral source type*/
a!columnsLayout(
showWhen: and(
ri!isFromDashboard_bool <> true(),
contains(
{
cons!CR_TXT_CCAD_UNIT,
cons!CR_TXT_SYND_GROUP
},
rule!CR_FN_getUserRole(loggedInUser())
),
not(
contains(
{ cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7] },
ri!sourceType_txt
)
)
),
alignVertical: "TOP",
columns: {
a!forEach(
items: {
index(
cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
{ 4, 5, 6, 7 },
null
)
},
expression: a!columnLayout(
width: "AUTO",
contents: {
a!cardLayout(
showBorder: false(),
showWhen: if(
fv!index = 1,
true(),
contains(
{
cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1],
cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6],
cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10]
},
ri!sourceType_txt
)
),
height: "AUTO",
style: if(
ri!buttonAction_txt = fv!item,
"ACCENT",
"STANDARD"
),
contents: {
a!richTextDisplayField(
labelPosition: "COLLAPSED",
align: "CENTER",
value: {
a!richTextItem(
text: fv!item,
style: "STRONG",
linkStyle: "STANDALONE"
)
}
)
},
link: a!dynamicLink(
showWhen: and(
ri!showAllLinks_bool,
ri!buttonAction_txt <> fv!item
),
value: fv!item,
saveInto: {
ri!buttonAction_txt,
a!save(
ri!moduleRecommendationStatusChild_cdt,
rule!CR_FN_setModuleStatusHistoryChild(
requestId_int: ri!requestId_int,
cif_int: ri!cif_int
)
)
}
)
)
}
)
)
}
)
}
)
}
with this code I need to remove cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES[3] for the cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6] rest 1,2 would be there as it is in second columnsLayout .
2nd thing: in 3rd ColumnsLayout for the cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1] cons value need to display cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
{ 1, 2, } only rest of the things should be there.
3rd Thing: in 4th column layout need to display only cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
{ 7 }, for the cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1] and cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10] how would I do that? Can someone plz help with the same code ?
Thanks in Advance
case 2:
