Skip to main content
New Participant
Sep 10, 2024 4:55 AM UTC
Question

gridLayout: Unable to save selected rows in gridRowLayout to a local variable

Hi everyone,

I need help checking whether I’m doing something wrong with my code.

I’m having an editable grid with data is a data subset local variable. In it’s gridRowLayout() I also provided the id parameter. But somehow when selecting the row, it does not save any data to local!selectedAzureId. I also tried with fv!index instead of fv!item.fileId but did not work either.

And below is local!data – the gridLayout data source:

    4 replies

    prasantap0900
    Participating Frequently
    Sep 13, 2024 8:55 AM UTC

    You can use append function.

    Participating Frequently
    Sep 13, 2024 9:11 AM UTC

    Hi [mention:120dd5e69e244c2091aa174dedc3c7a2:e9ed411860ed4f2ba0265705b8793d05] 

    using append function while saving save!value to the local!selectedAzureIds. Something like this 

    a!save(
             local!selectedAzureIds,
             append(local!selectedAzureIds,save!value)
           )

    kumara0180
    Participating Frequently
    Sep 13, 2024 9:14 AM UTC

    Instead of screenshot of code, could you please share the actual code so that we can debug and help you out?

    Inspiring
    Sep 16, 2024 7:09 AM UTC

    [mention:120dd5e69e244c2091aa174dedc3c7a2:e9ed411860ed4f2ba0265705b8793d05] Same question is posted in the below thread you can use the sample solution provided there still issue persists please provide the code snippts and local variable data sets .

    https://community.appian.com/discussions/f/user-interface/37484/gridlayout-unable-to-save-selected-row-in-gridrowlayout-to-a-local-variable