clearSelectedRows doesn't work

lock
push_pin
done
Answered
4

Hi,

 

I waht to clear the Selection of Rows in static Table v2.

but it looks the Action "clearSelectedRows" in setFieldValue doesn't work.It's no Change in the Table.

 

9 Dec 2024 | 10:28 AM

All Replies (4)

Hi

Is your example code the code you're actually running? Seeing as you don't have a variable called table.

It should be:

#setLanguageLevel 4;

HtmlElement table = getHtmlElement("table");

Map m;
table.setFieldValue("clearSelectedRows", m);
9 Dec 2024 | 10:38 AM

Hi Espen,

my Excample code is actually running. Here is my custom Screen to v2 table and I name the v2 Table as "table".

9 Dec 2024 | 10:45 AM

Then does my code work? From what I can see, you've added the static table v2 element with name "table", but in your button script you haven't defined the HtmlElement variable "table" on which you're attempting to run .setFieldValue().

Odd that you're not getting a "unknown identifier" error when saving the button script.

9 Dec 2024 | 10:51 AM

Hi Espen,

it doesn't works with your Code to the Button to refresh the Screen.

9 Dec 2024 | 10:57 AM

Add reply