Search found 25 matches
- July 9th, 2017, 11:36 am
- Forum: Entry
- Topic: Lookup [Solved]
- Replies: 27
- Views: 21692
Re: Lookup
Dear arkagwa, I have exported the lookup file you have posted with your application, the excel file of your lookup is attached. In this file, you can see the MKOA of each KANDA. Kaskazini : Arusha Kati : Dodoma Kusini : Iringa Magharibi : Katavi Pwani : Dar es Salaam Zanzibar : Kaskazini,Kusini,Mjin...
- July 7th, 2017, 10:40 am
- Forum: Entry
- Topic: Lookup [Solved]
- Replies: 27
- Views: 21692
Re: Lookup
Dear Arkagwa,
There is a problem with your lookup file. For the first KANDA (Kati) I only find Dodoma as Mikoa. If you have a more completed lookup file it should work. If you have a more completed you publish and I will check.
There is a problem with your lookup file. For the first KANDA (Kati) I only find Dodoma as Mikoa. If you have a more completed lookup file it should work. If you have a more completed you publish and I will check.
- July 5th, 2017, 5:27 pm
- Forum: Entry
- Topic: Lookup [Solved]
- Replies: 27
- Views: 21692
Re: Lookup
Dear Arkagwa,
I made some modification in your application.
It seems that it works.
I made some modification in your application.
It seems that it works.
- May 19th, 2017, 4:43 am
- Forum: Entry
- Topic: IF statement Logic to check two values
- Replies: 1
- Views: 2696
Re: IF statement Logic to check two values
Please try to replace elseif country_id = 3 and $ <> 1 or $ <> 2 then by elseif country_id = 3 and !($ in 1,2) then and elseif country_id = 7 and $ <> 5 or $ <> 6 or $ <> 7 then by elseif country_id = 7 and !($ in 5:7) then With these replacements, your syntax should work.
- October 21st, 2016, 3:24 am
- Forum: Editing
- Topic: Alpha to numeric
- Replies: 3
- Views: 6994
Re: Alpha to numeric
Hi SharofNazar, I think you can resolve your problem with the following code: string zLst0 = "ABCDX",zlst1 = "ABCDE",zQ36 = "",zAns = ""; numeric x = length(zLst0),y; do numeric i = 1 while i <= x zAns = zLst0[i:1]; zQ36 = maketext("Q36%s",zlst1[i:1]...
- February 4th, 2016, 10:05 am
- Forum: Entry
- Topic: Different variables in protected fields
- Replies: 3
- Views: 3579
Re: Different variables in protected fields
Please, try this other logic.
seed(systime());
numeric x = random(1,10);
numeric y = x,t = 7;
while y = x do
seed(t*systime());
inc(t,3*t);
y = random(1,10);
enddo;
I tried it even with the protected fields.
seed(systime());
numeric x = random(1,10);
numeric y = x,t = 7;
while y = x do
seed(t*systime());
inc(t,3*t);
y = random(1,10);
enddo;
I tried it even with the protected fields.
- October 30th, 2015, 2:51 pm
- Forum: Entry
- Topic: CAPI Question text from Multiple response
- Replies: 6
- Views: 6317
Re: CAPI Question text from Multiple response
Excuse me, I am not Josh but I think I can help. In your example you have the following logic: PROC Q101_NAME onfocus abc = getlabel(Q101_NAME,"2"); This means that you want to assign the label of Q101_NAME to abc for value 2. As Q101_Name does not have any valueset this logic will assign ...
- October 16th, 2015, 12:57 pm
- Forum: Entry
- Topic: Stop entering same value for variable more than two time
- Replies: 2
- Views: 3284
Re: Stop entering same value for variable more than two time
Since you want to be sure that in your household roster, the head of household cannot have more than two parents, it is better to count the number of person where S1Q6 = 10 each time you enter a new parent. You may replace try to replace your logic by the following one: if $ = 10 then // parent numb...
- September 19th, 2015, 6:37 pm
- Forum: Entry
- Topic: SKIPPING TO RECORD TYPE AFTER COMPLETING A ROSTER
- Replies: 2
- Views: 3563
Re: SKIPPING TO RECORD TYPE AFTER COMPLETING A ROSTER
Hello Gbos, I made some change in your application. There were this syntax in your application at S5Q5 postproc. IF not $ has 1 then skip to sect7a_form; endif; I suppressed and replace it by this other in SECT6_FORM preproc numeric xSkip_Sect6 = count(SECT5000 where S5Q5 = 1); if !xSkip_Sect6 then ...
- February 4th, 2015, 4:28 pm
- Forum: Feature Requests
- Topic: hostname
- Replies: 7
- Views: 9097
Re: hostname
I need a function that determines whether or not I can connect to a specific host. It can be used to check before synchronize data.