Has anyone been able to implement multiple saves within a dynamicLink created by applyComponents?

Has anyone been able to implement multiple saves (list) within a dynamicLink created by applyComponents? My use case: I have a pie chart with links, which open a grid below for dta based on which section is clicked. Aside from saving the desired item, I also need to reset pagingInfo at the same time. Reason being, if the child grid is paged over to a startIndex greater than the next item's datasubset, an error is thrown. E.g., if pagingInfo startIndex is currenty 16 and you click another section of the grid which returns only 12 items, an error is generated - so, you need to reset paging when changing the filter. When I use the commented code below, the chart links will ALWAYS reference/populate local!filter with the first item in the value list. I also noted, if I simply add brackets {} around the local!filter variable within saveInto (second commented line below), the same issue is seen - clicking any section will populate local!filter with th...

OriginalPostID-177388

OriginalPostID-177388

  Discussion posts and replies are publicly visible

Parents
  • ...e first item in the value list. Removing the brackets, all works as expected. Thoughts/suggestions welcome.

    a!pieChartField(
    instructions: "",
    label: "Functional Area Breakdown",
    series: {
    a!applyComponents(
    a!chartSeries(label: _, data: _, links: _),
    merge(
    local!functionalAreas,
    local!countArray,
    a!applyComponents(
    /*a!dynamicLink(label: _, value: _, saveInto: {local!filter, a!save(local!pagingInfo,local!pagingInfo_default)}),*/
    /*a!dynamicLink(label: _, value: _, saveInto: {local!filter}),*/
    a!dynamicLink(label: _, value: _, saveInto: local!filter),
    merge(
    local!functionalAreas,
    local!functionalAreas
    )
    )
    )
    )
    }
    )
Reply
  • ...e first item in the value list. Removing the brackets, all works as expected. Thoughts/suggestions welcome.

    a!pieChartField(
    instructions: "",
    label: "Functional Area Breakdown",
    series: {
    a!applyComponents(
    a!chartSeries(label: _, data: _, links: _),
    merge(
    local!functionalAreas,
    local!countArray,
    a!applyComponents(
    /*a!dynamicLink(label: _, value: _, saveInto: {local!filter, a!save(local!pagingInfo,local!pagingInfo_default)}),*/
    /*a!dynamicLink(label: _, value: _, saveInto: {local!filter}),*/
    a!dynamicLink(label: _, value: _, saveInto: local!filter),
    merge(
    local!functionalAreas,
    local!functionalAreas
    )
    )
    )
    )
    }
    )
Children
No Data