I have a GQI, using which im filling a table data in LCA. I want to add an extra column to that table based on the value of a particular field in the table.
Is it possible to dynamically add columns to the table in LCA based on a condition?
Hi Baranisudha,
Yes this is possible, but it will require some code through a custom operator. You will have to make sure you can alter both columns and rows (by implementing the following interfaces: IGQIColumnOperator, IGQIRowOperator, IGQIInputArguments, IGQIOnInit).
In the HandleColumns method, you can make use of the AddColumns method. In this method, you can make a condition whether you would like to do this. This can be based on data retrieved from DataMiner and/or input arguments retrieved from OnArgumentsProcessed).
In the HandleRow, you can make use of the SetValue on the given column.
As you'll understand, you will need to a variable in your class for your column so that you can make use of it in the different methods.
Kind Regards,
Jarno
Thank you, i will try this