Page 1 of 1

Grid / Roster ... how to disable Insert occurrence /delete functionality

Posted: March 20th, 2018, 5:30 am
by Farhan
Hello there !

I have two issues regarding Grid / Occurrences / Roster

1. i need to disable insert,delete,sort functionality of grid / roster ...i'll initialize the row labels from 1 to 12. ( 12 is for Others )

2. and how can i set the Nth let's say occurrence no 12 " Others " label field to update-able and from 1-11 protected.

how can i achieve this ?

Re: Grid / Roster ... how to disable Insert occurrence /delete functionality

Posted: March 20th, 2018, 4:35 pm
by aaronw
There is no way to disable the insert, delete, and sort functionality.

With regards to your second question you can use setproperty to toggle whether a field is protected. As you enter each occurrence toggle the protected mode as needed.
onfocus

    if curocc() = 12 then
        setproperty(FIELD,"Protected","No");
    else
        FIELD= 1;
        setproperty(FIELD,"Protected","Yes");
    endif;