Visualvalue function for alpha item

Discussions about CSEntry
Post Reply
htuser
Posts: 632
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Visualvalue function for alpha item

Post by htuser »

Dear cspro developers team,
I would like to implement non-response follow up, also for field errors corrections. It's because i'm thinking about some tracking logic using external dictionnary, writecase in modify mode. This will allow us, for each case to track which item have been modified? Who modified it?When this case have been modified?

It would be easy if visualvalue function could be used for alpha item.
For each item i could write something like this in postproc: if $= visualvalue($) then,
else writecase (external dcf,$) endif;

Please can you share with us some good ideas about?

Thanks in advance,
G.VOLNY, a CSProuser from Haiti, since 2004
romain
Posts: 8
Joined: January 3rd, 2013, 8:36 am

Re: Visualvalue function for alpha item

Post by romain »

Hello all
I think that this preoccupation is important and I'm interested in solutions. Similarly, I would like to add at this topic how to view the different error messages that were displayed to the interviewer during the interview.
jfigueroa
Posts: 100
Joined: August 28th, 2014, 12:46 pm

Re: Visualvalue function for alpha item

Post by jfigueroa »

Hello everyone,
There is a file generated by CSPro that has ".lst" extension. According to Windows description, is a MASM Listing (.lst) type file where maybe you can find useful information such as:
- Survey Date
- Start Time
- End Time
Also:
- What messages were displayed to the operator
- numbered and unnumbered messages
And other info...

The name of the file is the same as your Input Data file. So it would be such as "MyInputDataFile.dat.lst"
To view the info of it I use a text editor such as "TextPad" or you can use whichever of your choice.

Hope this info helps you.
Regards.
htuser
Posts: 632
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Visualvalue function for alpha item

Post by htuser »

Thank you Figueora,
I want to track all's change with external dictionnary.
Greg already give us the response for my post:
You don’t have to use visualvalue for alpha fields because by default you always get the visualvalue. I’m not sure why the initial CSPro programmers decided it should be that way, but as programmed, visualvalue only applies to numeric fields. To figure out if an alpha field has not been entered, you could use the highlighted function.

If you want to check if an alpha field has been modified, you could do something like this:

PROC ALPHA_FIELD

preproc

string initialValue = ALPHA_FIELD;

postproc

if initialValue <> ALPHA_FIELD then
// do something
endif;
I will try Greg's advise soon .

Regards,
G.VOLNY, a CSProuser from Haiti, since 2004
jfigueroa
Posts: 100
Joined: August 28th, 2014, 12:46 pm

Re: Visualvalue function for alpha item

Post by jfigueroa »

You are right htuser, Gregory´s advise looks very useful.

Thank you so much for sharing.
Regards.
Post Reply