Problem using "Line break" in open questions

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
enova_cspro
Posts: 2
Joined: March 30th, 2019, 2:55 pm

Problem using "Line break" in open questions

Post by enova_cspro »

287/5000
Hello,

For the first time I identified this error in one of my bases:
In the open questions when using the keyboard key "line break" Android the database is unconfigured, the system opens a new card when using "the line break".

I will appreciate your help to know what happens.
Teclado.png
Teclado.png (21.21 KiB) Viewed 2879 times
Example with Data .dat:
BreakLine_DAT.PNG
BreakLine_DAT.PNG (17.01 KiB) Viewed 2879 times
Example with Data .CSDB:
Attachments
BreakLine_CSDB.PNG
BreakLine_CSDB.PNG (58.88 KiB) Viewed 2879 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Problem using "Line break" in open questions

Post by josh »

I am able to reproduce this problem. We will fix it in the next release.
enova_cspro
Posts: 2
Joined: March 30th, 2019, 2:55 pm

Re: Problem using "Line break" in open questions

Post by enova_cspro »

To the users of CSPro I would like to use the following syntax in the open questions to avoid losing interviews or damaging their database.

Code: Select all

IF POS("\n", $) > 0 | POS("\r", $) > 0 THEN
	DISPLAY("No debe usarse la tecla salto de línea");
	REENTER;
ENDIF;
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Problem using "Line break" in open questions

Post by josh »

You could also simply set the capture type for these fields to "Text Box" instead of "Text Box (multiline)". That way you do not have to add any logic to check for newlines.
Post Reply