Search found 25 matches

by noel
July 9th, 2017, 11:36 am
Forum: Entry
Topic: Lookup [Solved]
Replies: 27
Views: 21695

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...
by noel
July 7th, 2017, 10:40 am
Forum: Entry
Topic: Lookup [Solved]
Replies: 27
Views: 21695

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.
by noel
July 5th, 2017, 5:27 pm
Forum: Entry
Topic: Lookup [Solved]
Replies: 27
Views: 21695

Re: Lookup

Dear Arkagwa,

I made some modification in your application.

It seems that it works.
by noel
May 19th, 2017, 4:43 am
Forum: Entry
Topic: IF statement Logic to check two values
Replies: 1
Views: 2700

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.
by noel
October 21st, 2016, 3:24 am
Forum: Editing
Topic: Alpha to numeric
Replies: 3
Views: 7026

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]...
by noel
February 4th, 2016, 10:05 am
Forum: Entry
Topic: Different variables in protected fields
Replies: 3
Views: 3581

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.
by noel
October 30th, 2015, 2:51 pm
Forum: Entry
Topic: CAPI Question text from Multiple response
Replies: 6
Views: 6325

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 ...
by noel
October 16th, 2015, 12:57 pm
Forum: Entry
Topic: Stop entering same value for variable more than two time
Replies: 2
Views: 3285

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...
by noel
September 19th, 2015, 6:37 pm
Forum: Entry
Topic: SKIPPING TO RECORD TYPE AFTER COMPLETING A ROSTER
Replies: 2
Views: 3565

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 ...
by noel
February 4th, 2015, 4:28 pm
Forum: Feature Requests
Topic: hostname
Replies: 7
Views: 9100

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.