Skip to main content
Mar 5, 2018 4:11 PM UTC
Solved

Dynamically change Add Row Property Programmaticly

Hi

 

Does anyone know how to change the AddRow property dynamically? (circled below)  is this possible or are there alternatives?

 

 Capture.JPG

 

 

smayerAnswer
Mar 6, 2018 9:36 AM UTC

Thanks for that @supandey! As I was trying to implement your answer I found another solution that worked for me, this seemed to be simple enough. 

 

Capture.JPG

4 replies

Mar 6, 2018 8:37 AM UTC

Hi @smayer since the row object is adding value to the infotable which depends on the underlying DataShape. My understanding is that you could test by calling the DataShape.AddFieldDefinition() or DataShape.UpdateFieldDefinition or DataShape.RemoveFieldDefinition prior to calling AddRow() to basically edit the underlying DataShape and this should give you the required property to work with when AddRow() is called on the InfoTable.

 

Feel free to correct me if i didn't get your use case right.

smayerAuthorAnswer
Mar 6, 2018 9:36 AM UTC

Thanks for that @supandey! As I was trying to implement your answer I found another solution that worked for me, this seemed to be simple enough. 

 

Capture.JPG

Mar 6, 2018 9:45 AM UTC
Thanks for sharing, that also sound good. However, if i understand it right the value insert in that will only work if the dataType is the same?