on 2024 Oct 07 9:05 AM
Hi all
I want to check the DataLockingState of a cell with an "IF statement".
var lockstate = tbl_locktable.getPlanning().getDataLocking().getState(sel);
if (sv_lockstate === "Open" ) {
....
}
Because "automatical conversion is not supported" in SAC I would like to convert the string "Open" to type "DataLockingState"? How can I do this?
Thank you for any help
Best Regards
Frank
Hi Frank,
Instead of string "Open", you should use the data type DataLockingState.Open.
The sample codes are below:
var sels = Table_1.getSelections();
var lockstate = Table_1.getPlanning().getDataLocking().getState(sels[0]);
if (lockstate === DataLockingState.Open ) {
console.log("open");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.