Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Fujitsu 6.1 CGI/ISAPI CALLS
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



Report this thread to moderator Post Follow-up to this message
Old Post
jh
04-25-06 11:55 PM


Re: Fujitsu 6.1 CGI/ISAPI CALLS
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//" si
ze="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.


Report this thread to moderator Post Follow-up to this message
Old Post
Richard
04-25-06 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 02:17 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.