Skip to main content
January 31, 2024
Solved

Getting only first row in readonly grid

  • January 31, 2024
  • 7 replies
  • 0 views

Can someone tell me where I am doing wrong. Just trying to show hardcoded array in grid.

Best answer by harshitb6843

Try using a!map instead of a dictionary. And if you want to specifically use a dictionary only, then a!flatten() should solve the problem. 

7 replies

harshitb6843
January 31, 2024

Try using a!map instead of a dictionary. And if you want to specifically use a dictionary only, then a!flatten() should solve the problem. 

January 31, 2024

a!flatten() didn't help, but a!map solved my problem.. thanks!

harshitb6843
January 31, 2024

Great. Maps are just more specific with the data types and structure.
Now that is has worked, can you please verify the answer to close the thread? 

harshm4411
January 31, 2024

Hey,

This should function correctly as I have successfully tested the same approach.

Please press the test button once more after finishing the entire code; there may be a refresh issue.

January 31, 2024

correct after hitting button it worked..thanks much

harshm4411
January 31, 2024

 If you add data without re-initializing the local variables by hitting the "TEST" button, it could lead to unexpected behavior due to the variable state not being properly reset.