Focal Point
Textarea

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6191095932

July 31, 2007, 11:54 AM
Fernando
Textarea
I have a textarea in an html that calls a FOCEXEC.

When I uaser hit Enter and runs the FOCEXEC, they get: (FOC257) MISSING QUOTE MARKS.

Has any anyone used a textarea that allows I user to hit Enter?

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
July 31, 2007, 11:59 AM
Rob Bowen
Fernando,

It sounds like that you have a submit button on your html page which is picking up the enter - eg
<input type=submit ...>
.

Try changing the submit button to just a button type with javascript to sumbit the form.

<input type=button value=Submit onclick="document.form(0).submit();">



WebFOCUS 8.1.04; SQL Server 2012; Windows 7; Windows Server 2012 R2;
July 31, 2007, 02:20 PM
ypatel
please provide sample code to understand the exact problem you refering to.


-Yogesh Patel
------------------------------------------------------------------------
PROD: WF 764 on Linux Apache tomcat v5.5
DEV: WF 768 on Linux
August 01, 2007, 02:14 PM
Fernando
What I meant was that a user can hit enter will inside the textarea. They move to another and keep typing. They usually create many new lines this way.

After they press the run button (which is a submit) to run the focexec. The focexec complains about missing quotes.

Hope this clears it up,

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
August 01, 2007, 02:34 PM
dhagen
Fernando,

Textareas are really not supported they way other input types are supported. If you input goes beyond a single line of text, then it builds the parm something like:

-SET &input = 'this is the first line
this is the second line';

This is where your error message is coming from. You can split the value, and then send each line as it's own parm, but you still have to blank our the textarea value before submission. If you call me in the office I could help you through this one.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
August 01, 2007, 03:16 PM
ypatel
I have done several parm pages that execute a focexec, textarea if done right get treated similar to a textfield.
- When you have a text area on your html page , you passing the value entered in there as an alpha field enclosed in a quote mark or you putting that amper variable in your focexec within two single quote marks, I suspect that either user enter text in the text area contains a single quote mark or when you parse it into your focexec it does not have opening and ending quote marks.
- To debug this issue, I suggest putting &ECHO='ALL' in your focexec and see how the text area value being processed/parse'd in the fex code.
Hope this help solve your problem !!
quote:
Originally posted by Fernando:
What I meant was that a user can hit enter will inside the textarea. They move to another and keep typing. They usually create many new lines this way.

After they press the run button (which is a submit) to run the focexec. The focexec complains about missing quotes.

Hope this clears it up,

Fernando



-Yogesh Patel
------------------------------------------------------------------------
PROD: WF 764 on Linux Apache tomcat v5.5
DEV: WF 768 on Linux
August 07, 2007, 09:03 AM
Fernando
Hey Daryl,

You were correct the parms is being built incorrectly. My solution was to use javascript to change the Enters into spaces, which works well for me.

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03