To generate dynamic values infotable while inserting/updating data table
Am writing service to add or update record in data table and input to my service is "Tag" which will hold value like "Temperature".
My data table has fields like device_name, temperature, flow, pressure, etc (8 other fields).
So at run time i will get to know which field to update of data table but "AddOrUpdateDataTableEntry" service takes "values" in its params and this value is like empty
infotable which gets created like this :
var values = me.CreateValues();
values.DeviceName = deviceName;
values.Temperature = value;
values.Pressure1 = value;
values.Flow = value;
i dont want to check if tag value is "temperature" then values.Temperature = value because i need to write 10 if conditions as i have 10 fields
am unable to append tag value(temperature) to values.
how to create variable for above values at run time?


