For Programmers: Free Programming Magazines  


Home > Archive > Cobol > April 2006 > Fujitsu 6.1 CGI/ISAPI CALLS









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Fujitsu 6.1 CGI/ISAPI CALLS
jh

2006-04-25, 6:55 pm

Hi,

Is there a way to set the (value="") in a HTML file prior to the display.
I'm using FUJITSU 6.1 COBW3 CGI routines.

I'm trying to populate data fields with information prior to using
COBW3_PUT_HTML.

In the following I'm trying to change the input field value from 0000000 to
abababa

The abc.htm record contains
<input type="text" name="FIELD-ID" value="0000000" size="7">
DISPLAY-HTML.
SET COBW3-CNV-MODE-ADD-REP TO TRUE
MOVE "FIELD-ID" TO COBW3-CNV-NAME .
MOVE "abababa" TO COBW3-CNV-VALUE .
CALL "COBW3_CNV_SET" USING COBW3 .
MOVE "ABC.HTM" TO COBW3-HTML-FILENAME.
CALL "COBW3_PUT_HTML" USING COBW3.
DISPLAY-HTML-EXIT.

I get the following error on the browser.

COB-06105: COBW3 :A conversion name in the HTML document was not registered
using COBW3_CNV_SET.
please register the conversion data using COBW3_CNV_SET.



Thanks in advance

JIH

www.pcpayroll.net


Richard

2006-04-25, 6:55 pm


jh wrote:
> The abc.htm record contains
> <input type="text" name="FIELD-ID" value="0000000" size="7">
> DISPLAY-HTML.
> SET COBW3-CNV-MODE-ADD-REP TO TRUE
> MOVE "FIELD-ID" TO COBW3-CNV-NAME .
> MOVE "abababa" TO COBW3-CNV-VALUE .
> CALL "COBW3_CNV_SET" USING COBW3 .
> MOVE "ABC.HTM" TO COBW3-HTML-FILENAME.
> CALL "COBW3_PUT_HTML" USING COBW3.
> DISPLAY-HTML-EXIT.


You don't use the html form field names, you need to have a special tag
so that the routine can know where you want to do a text substitute. In
this case the tag name must be surrounded by //COBOL// markers

> <input type="text" name="FIELD-ID" value="//COBOL//ID-VALUE//COBOL//" size="7">


> MOVE "ID-VALUE" TO COBW3-CNV-NAME .
> MOVE "abababa" TO COBW3-CNV-VALUE .


Note that when the form data is returned to the program the name of
this value will be the field name: FIELD-ID but on output text may be
substituted anywhere, not just in field values and the stuf is just
text with no special meaning to the Cobol except where the tag markers
are.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com