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

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Farhan
Posts: 5
Joined: March 15th, 2018, 9:23 am

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

Post 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 ?
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

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

Post 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;
Post Reply