Page 1 of 1

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

Posted: July 30th, 2018, 6:55 am
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.

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

Posted: July 30th, 2018, 7:21 am
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.