Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How do you get command line args out of the url in MAINTAIN now?
Go
New
Search
Notify
Tools
Reply
  
How do you get command line args out of the url in MAINTAIN now?
 Login/Join
 
Master
posted
Greetings all,
MAINTAIN is running as a servlet now and I am trying to call it via a url on a web page. I need to be able to extract fields from the url string, and finding that impossible. I have tried both the old and new options presented in the manuals:

Various URLs I have tried:
http://aidsdb:8080/ibi_apps/WFServlet?IBIF_cmd=MNTCON%2...IBIC_server=MAINTAIN
http://aidsdb:8080/ibi_apps/WFServlet?SITE_NUMBER=0009&...IBIC_server=EDASERVE

Note that adding the -v into the string crashes.


The Top case in the MAINTAIN file:
Case Top
Declare Posvar/i2 = sys_mgr.GET_inputparams_count();
type "posvar " | Posvar;
SITER/A10 = IWC.GetAppCgiValue("SITENAME");
type "SITER = " | SITER;

Infer site.SITE.SITE_NUMBER into SiteStk;
Winform Show_and_exit Site_Record_Edit_Form;
EndCase

Neither Posvar or Siter end up with value (Posvar is zero).
Much of the material for the urls is generated by WebFOCUS via the drill-down, though I have to change things a bit because I am running across two reporting servers. The MAINTAIN stuff is out of the books and from previous successes.

Any help you can provide . . .



 
Posts: 933 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
You are using:
...WFServlet?IBIF_cmd=MNTCON%20EX%20Site_Record_Editor&IBIS_passthru=on&IBIS_connect=on&IBIAPP_app=aidsmaintenance&SITE_NUMBER=0009&IBIC_server=MAINTAIN

with SITE_NUMBER as a parameter but using:
SITER/A10 = IWC.GetAppCgiValue("SITENAME");

Use SITE_NUMBER in the GetAppCgiValue. Should work every time.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Reply With QuoteReport This Post
Master
posted Hide Post
Doh!

I owe you a beer!



 
Posts: 933 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How do you get command line args out of the url in MAINTAIN now?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.