Updating the Power Tabel Data set value according to the Property tag change

Hi Team,

So, in my current Project I have used one Power table based on the Property change need to update the Value in the Row data set of power table, just need the idea on what is the script format we are using for the above requirements,
find the attached image for the reference,
As I have 3 conditions,
A, B & C So according to the drop-down selection need to change the Data set in row or column IO_NUmber & Description need to change,
Where input status remains ideal.

Thanks Team,
Adarsh :sparkles:

How is the table's data populated?

Your post seems to be missing some punctuation. This makes it difficult to know where one sentence ends and the next one begins so the meaning is unclear. Can you edit to fix it? (Use '.' at the end of a sentence, not ','.) I understand that English may not be your first language.

You could use the dropdown's selectedIndex property to drive the data:

if event.propertyName == 'selectedIndex':
     # drive the data change here

...but depending on where you are getting your data, it's likely that a binding that uses the selectedLabel or selectedStringValue property of the dropdown would be a lot better than a property change script.

Hi @justinedwards.jle

“I have one power table and three conditions that need to change the row values in the Description column based on the conditions.
so what is the format of script need to be use.
image

Thank You,

You have yet to answer the question on where the data is coming from. Is this a query? Dataset tags?

@justinedwards.jle gave you a pretty good clue, but I'll elaborate a bit further:

I would create three custom properties on the power table with the relevant result of each dropdown (Following your original post, I'll call them A, B, and C).

Then, if you script it, it would start with something like:

if event.propertyName in ('A', 'B', 'C'):
    do_some_stuff()
1 Like

HI @JordanCClark ,
The data is Coming from the Dataset Tags,

if the Property changes to 1 then need to update the Value in description table as 1Station IO_1,1Station IO_2, 1Station IO_3,

If the Property changes to 2 then need to update the Value in description table as 2Station IO_1,2Station IO_2, 2Station IO_3,

If the Property changes to 3 then need to update the Value in description table as 3Station IO_1,3Station IO_2, 3Station IO_3,

Thanks for Advance.

Regards,
Adarsh

This sounds like a job for indirect tag bindings.

3 Likes

Yes, @JordanCClark