AnsweredAssumed Answered

Select all checkbox

Question asked by ActiveControlsIT on Apr 29, 2016
Latest reply on Apr 29, 2016 by erolst

I have two checkboxes one with a value of '1' and the other a '0', I wrote a button in which it would select all of the checkboxes by changing the field to either a 1 or 0 accordingly. I am having two problems, one the loop I wrote in infinite but I feel as the code is right and it will add a new line when I want it to exit on last portal record. Second occasionally it will work but only if I click a field and than hit the button. I appreciate any help that I can get. Thank you.

 

1.     Go to Portal Row [ First ]

2.     Set Field [TableName:: MedCode_CheckBox ; 1 ]

3.     Go to Portal Row [ Next ]

4.     Loop

5.          Set Field  [TableName:: MedCode_CheckBox ; 1 ]

6.          Go to Portal Row [ Next; Exit after last ]

7.          Allow User Abort [ On ]

8.     End Loop

Outcomes