Skip to main content
New Participant
September 10, 2024
Question

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

  • September 10, 2024
  • 4 replies
  • 5 views

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
    September 13, 2024

    You can use append function.

    Participating Frequently
    September 13, 2024

    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
    September 13, 2024

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

    Inspiring
    September 16, 2024

    [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