Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Beginner question

Avatar

Avatar
Validate 1
Level 1
christines66361
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
christines66361
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
christines66361
Level 1

24-01-2019

Hey Experts,

I have a dynamic table with 1 row which repeats. I want to change the value of a field in this row so if it is "On" make it show "Enabled".

I have written the following code and I put it in the initialization of the table but it doesn't work.

Can anyone help? What am I doing wrong? Where should the code go?

var rows = FormTradeReceivablesPayablesAccountStatementNotification.bdyPage1.tblOpenItems.tblTable1.resolveNodes(Row1[*]);

var row = rows.item(1);

for (var i = 0; i < rows.length; i++) {

     var row = rows.item(i);

     var dunning = row.DunningOn.rawValue;

     if (dunning == "On")

     {

         row.DunningOn.rawValue = "Enabled";

      }else{

         row.DunningOn.rawValue = "Disabled";

      }

}

Any pointers would be greatly appreciated!

Thanks

Christine

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

25-01-2019

Hi there,

If I understand well, you are trying to change the display text of the checkbox field for "Enabled" and "Disabled" according to its value.

The rawValue of a check box is either (On or Off) | (1 or 0).

If you want to change the display text of a check box with a caption(text) attached to it, use the following assignment:

I hope this will help you.

Answers (0)