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

Discussions about CSEntry
Farhan
Posts: 5
Joined: March 15th, 2018, 9:23 am

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

Postby Farhan » March 20th, 2018, 5:30 am

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 ?

aaronw
Posts: 69
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

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

Postby aaronw » March 20th, 2018, 4:35 pm

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;


Return to “Entry”