Facing issue while updating multiple variables using dynamic link

We have one pie chart and on click of slice we show data in grid below.
we want to reset startindex of paginginfo to 1 when we click on slice every time using dynamicLink
we have used dynamicLink to get selected value on pie chart, but we are facing issue while updating multiple variables using dynamic link.

How can we achieve this ?

part of code is attached here
...

testCode1.txt

OriginalPostID-117112

OriginalPostID-117112

  Discussion posts and replies are publicly visible

Parents
  • We tried with given solution but is is not working , it is not updating any value back to the call

    We added parameter named test to rule, rule definition is as below :
    (we tried with test parameter as save and Anytype datatype)

    =a!chartSeries(
    label: ri!label,
    data: ri!data,
    links: a!dynamicLink(value: ri!label, saveInto:{ri!saveInto,ri!test.startIndex<< rule!CP_returnFirstInputAsIs(1,_)})
    )

    called as below :


    a!pieChartField(
    label: " Business Code : Number of Letters ",
    series: apply(
    rule!ACP_GetPieChartSeries2(
    label: _,
    data: _,
    saveInto: local!selectedCode << fn!append(
    _,
    "_1"
    ),
                                             test:local!page
    ),
    merge(
    local!data.label,
    local!data.data
    )
                                            
    ),
    showDataLabels: true,
    showTooltips: true
    )
                                  
Reply
  • We tried with given solution but is is not working , it is not updating any value back to the call

    We added parameter named test to rule, rule definition is as below :
    (we tried with test parameter as save and Anytype datatype)

    =a!chartSeries(
    label: ri!label,
    data: ri!data,
    links: a!dynamicLink(value: ri!label, saveInto:{ri!saveInto,ri!test.startIndex<< rule!CP_returnFirstInputAsIs(1,_)})
    )

    called as below :


    a!pieChartField(
    label: " Business Code : Number of Letters ",
    series: apply(
    rule!ACP_GetPieChartSeries2(
    label: _,
    data: _,
    saveInto: local!selectedCode << fn!append(
    _,
    "_1"
    ),
                                             test:local!page
    ),
    merge(
    local!data.label,
    local!data.data
    )
                                            
    ),
    showDataLabels: true,
    showTooltips: true
    )
                                  
Children
No Data