Choose Language Hide Translation Bar
ih
ih
Level VII

Unhide/Unexclude rows without changing other row states using JSL

How can you clear a specific row state (ex: excluded) without modifying any other states (ex: color)?

 

Today I get the table's row states, convert the applicable row states to binary, clear the appropriate digits, convert it back to decimal and set the row state again using As row state().

 

The reverse, excluding a row leaving other sates intact is pretty straight forward:

//Open table and set a row to selected/hidden
Names default to here( 1);
dt = Open( "$Sample_data/iris.jmp" );
Row state(3) = As row state( 5 );

//Exclude the row without changing other states of the row
Row state(3) = Combine States(Row state(3), Excluded State(1));

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: Unhide/Unexclude rows without chaning other row states using JSL

When I have had to do these kind of thing, I have done as you are currently doing.

Jim

View solution in original post

1 REPLY 1
Highlighted
txnelson
Super User

Re: Unhide/Unexclude rows without chaning other row states using JSL

When I have had to do these kind of thing, I have done as you are currently doing.

Jim

View solution in original post

Article Labels

    There are no labels assigned to this post.