Search found 37 matches

by blumski
October 4th, 2023, 4:29 pm
Forum: Entry
Topic: Filter a multiple response based on the previous not selected choices
Replies: 2
Views: 2652

Re: Filter a multiple response based on the previous not selected choices

Thanks Arjun Brti. It worked. Here's what I wrote :

Code: Select all

PROC C10_1
onfocus
valueset string VS;

do numeric ctr = 1 while ctr <= C9_VS1.length()
	if not ischecked(C9_VS1.codes(ctr), C9) then
		VS.add(C9_VS1.labels(ctr), C9_VS1.codes(ctr));
	endif;
enddo;

setvalueset($, VS);	
by blumski
October 3rd, 2023, 8:13 pm
Forum: Entry
Topic: Filter a multiple response based on the previous not selected choices
Replies: 2
Views: 2652

Filter a multiple response based on the previous not selected choices

Hello community, I'm trying to create multi select variable based on not selected choices of another multi select variable. I read this https://www.csprousers.org/forum/viewtopic.php?t=5405 and tried to adapt the code as follows, but it did not work PROC Q2 preproc valueset string vs1; do numeric i=...
by blumski
October 3rd, 2023, 1:51 pm
Forum: Entry
Topic: Prefill roster column from another roster
Replies: 2
Views: 3373

Re: Prefill roster column from another roster

Thank you so much justinlakier.

It worked

I'm so gratefull.
by blumski
October 3rd, 2023, 8:10 am
Forum: Entry
Topic: Prefill roster column from another roster
Replies: 2
Views: 3373

Prefill roster column from another roster

Hi everyone, I want to prefill a roster row from the firs roster based on a condition (If a row fills a condition, then add it to the second roster). The picture shows the problem i get. cap1.PNG How to do for not having these empty rows ? Here's my code : PROC GLOBAL PROC APP_FF PROC SCHOOL_ID prep...
by blumski
October 2nd, 2023, 12:37 pm
Forum: Entry
Topic: Create a multi select variable from a roster column
Replies: 6
Views: 22000

Re: Create a multi select variable from a roster column

Thanks alot htuser for reply. I'll try it and give you feedback
by blumski
October 2nd, 2023, 12:29 pm
Forum: Entry
Topic: Prefill roster columns from external files
Replies: 2
Views: 3293

Re: Prefill roster columns from external files

Thank you very much Gregory 🙏
by blumski
October 2nd, 2023, 1:43 am
Forum: Entry
Topic: Create a multi select variable from a roster column
Replies: 6
Views: 22000

Re: Create a multi select variable from a roster column

Yes but it seems that it's not the same case with my problem. My sorry it does not help. Have you tried to open my attached app ?
by blumski
October 1st, 2023, 10:05 am
Forum: Entry
Topic: Create a multi select variable from a roster column
Replies: 6
Views: 22000

Re: Create a multi select variable from a roster column

Thanks alot for your answer, but I'm a bit confused. Where am I gonna use this function (extractNumeric) ?

I you have little time, would you please implement it into my attached app ?

Thanks in advance
by blumski
September 30th, 2023, 9:28 am
Forum: Entry
Topic: Create a multi select variable from a roster column
Replies: 6
Views: 22000

Create a multi select variable from a roster column

Hello Users,

I need your help!

I have a column in a roster which contains names. From that, I want to create a multi select variable containing those names.

The attached file contains a sample app.

Thanks in advance
by blumski
September 30th, 2023, 9:07 am
Forum: Entry
Topic: Prefill roster columns from external files
Replies: 2
Views: 3293

Prefill roster columns from external files

Hello dear users, Would you please help me ? I want to prefill two columns of a roster based on values from an external file (from excel to cspro). For example, if the first province is choosen (PROVINCE=1), prefill school code and school name of the choosen province. I read this but did not help : ...