Changing value-set after Selecting one option from the column of a roster

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
Bhupender11
Posts: 63
Joined: May 15th, 2018, 1:18 am

Changing value-set after Selecting one option from the column of a roster

Post by Bhupender11 »

Can we restrict or change value-set in cspro after completing one entry in the roster.
For eg. In my roster there is 3 Value-label in any coloum like A, B, C and I select A in 1st entry. When I move back to same question again then i need only two Value-lables B and C or all Value-lables present there but A Option disabled for the user.

Is there is any logic for this. Please help and thanks in advance.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Changing value-set after Selecting one option from the column of a roster

Post by josh »

You can the function setvalueset to change the value set in your application logic. This technique is often called dynamic value set. See chapter 5 of this document for an explanation of dynamic value sets: http://www.csprousers.org/resources/CSP ... rkshop.pdf

You can find an example of using setvalueset to remove previous responses here: http://teleyah.com/cspro/SouthAfricaOct ... rcises.zip. Look for the CROP_RANKING proc.
Post Reply