Best way to allow web app to change ship-to address

1870 pts.
Tags:
CGI
CGIDEV2
RPGLE
Web applications
Current pgm in RPGLE CGI works OK. I'd like to add option for user to change the existing ship-to address. I have the new "EDIT" button working in the existing display (of current ship-to) section of the html. I'm stuck on how to make the functionality work. Advice is always welcome, but an example would be so much better here since I've only maintained (so far) existing CGI programs (& not sure these are high quality). I do want to default the entry fields with the current info. No real preference on jumping to a separate module or staying in current pgm using a SUBR (needed files are already in pgm). Any related info help is also welcome (e.g. the mechanics of jumping to a new module are not obvious and "error on call" is tough to debug). I'll go ahead and start researching in detail - likely to take several days so even a tip on good research source(s) would help.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Although not directly useful at a code level, Scott Klement’s HTTPAPI site with its source code, help text, example code, and perhaps even better, a searchable reservoir of forum posts could be helpful.

From the questions asked and answers provided you’ll find links to all manner of other stuff.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I'm not clear on the question. I don't know if there is a "best way". How would you do it if it wasn't accessed via CGI? If you already have a procedure available, just pass the values into it. If not, how would you do it from a green-screen that presented a similar data field and called an update program to make the change to the file? Tom
    125,585 pointsBadges:
    report
  • aceofdelts
    On a green screen, I'd call a separate pgm and pass the key fields as parms. A new CGI means I need to find the "little" things that I don't know, like binding directory usage (& other stuff that you likely take for granted). A call to a new module avoids some issues but I don't know how to "unbind" a module if this method leads nowhere. Expanding existing pgm is the least risky scheme. i just need to figure out how to render a new screen (html) and get the input fields. File update & return to main logic should be a snap. Thus the vague question - so many ways to do this and they all could work. Mike
    1,870 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following