Question
selectable grid
i have a requirement 
where i'll be selecting the checkbox and once i select the checkbox need to show the show data link, when i click that ink some data to be displayed at right side for the same selected checkbox
now what is happening is when i select next check box the show data link is not coming.
can anyone help me to work on this - when i select single check box the show data should come and one i click on that right side some data to be shown. when i select multiple checkbox only latest selected checkbox has to be have show data link
a!localVariables(
local!limitSelection_cdt: rule!CR_SF_QE_getLimitSelectionData(
cif_int: ri!cif_int,
requestId_int: ri!requestId_int
),
local!limitsList: index(
local!limitSelection_cdt,
"limitId_txt",
{}
),
local!showLimitData: false(),
{
rule!CR_SC_SF_customerDetails(
cif_int: ri!cif_int,
requestId_int: ri!requestId_int
),
a!columnsLayout(
columns: {
a!columnLayout(
contents: {
a!gridLayout(
headerCells: {
a!gridLayoutHeaderCell(label: cons!CR_SF_ALL_LABELS[10]),
a!gridLayoutHeaderCell(label: "")
},
columnConfigs: {
a!gridLayoutColumnConfig(width: "DISTRIBUTE", weight: 2),
a!gridLayoutColumnConfig(width: "DISTRIBUTE", weight: 2)
},
selectionValue: ri!selected_txt,
selectionSaveInto: ri!selected_txt,
selectable: true(),
rows: a!forEach(
items: local!limitsList,
expression: a!gridRowLayout(
id: fv!item,
contents: {
a!textField(value: fv!item, readOnly: true()),
if(
rule!APN_isEmpty(ri!selected_txt),
a!textField(readOnly: true()),
a!richTextDisplayField(
value: a!richTextItem(
showWhen: ri!selected_txt = fv!item,
text: if(
local!showLimitData,
"Hide Data",
"Show Data"
),
link: a!dynamicLink(
value: not(local!showLimitData),
saveInto: if(
local!showLimitData = true(),
a!save(local!showLimitData, false()),
a!save(local!showLimitData, true())
)
),
color: if(
local!showLimitData,
"#ff0000",
"#00ff00"
)
)
)
)
}
)
)
)
},
width: "NARROW"
),
a!columnLayout(
contents: {
a!forEach(
items: ri!selected_txt,
expression: rule!CR_SC_SF_transactionSelection(
tranasation_txt: ri!tranasation_txt,
selectedCheckbox_int: ri!selectedCheckbox_int,
selected_txt: ri!selected_txt[fv!index]
)
)
},
showWhen: local!showLimitData
)
}
),
a!buttonArrayLayout(
buttons: {
a!buttonWidget(
label: cons!APN_TXT_SAVE_DRAFT,
value: cons!CR_SUSTAINABLE_FINANCE_SAVE_BUTTON_VALUES[2],
saveInto: {
a!save(
ri!buttonAction_txt,
cons!CR_SUSTAINABLE_FINANCE_SAVE_BUTTON_VALUES[2]
)
},
submit: true(),
style: "NORMAL",
validate: true()
)
},
align: "END"
)
}
)