Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Accessing (and looping over) Grid variables with python script

Apologies if this has been asked & answered, but I wasn't able to find an example or documentation on how to loop through a grid variable in Python and print out its values?

1 Community Answers

Matillion Agent  

Ian Funnell —

Hi Edward,

Inside a Python Script you can acquire a Grid Variable by doing something like this:

context.getGridVariable('mygridvar')

Once imported like that, a Grid Variable is a list of lists. You can then use ordinary Python constructs to loop through the lists and display the values.

Best regards,
Ian

Post Your Community Answer

To add an answer please login