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 read in an http arg from a FEX?
Go
New
Search
Notify
Tools
Reply
  
How do you read in an http arg from a FEX?
 Login/Join
 
<Rickson>
posted
Inside a fex procedure, how do I access an HTTP parameter that was passed in? Does anyone know where in the documentation I can read about how to do this? Thanks
 
Reply With QuoteReport This Post
<Vipul>
posted
For example this is your http request:
https://xyz.com/ibi_apps/WFServlet?&IBIF_ex=combo&CUSTOMRPTKY=3498

Define the following DM in your .fex

-DEFAULT &CUSTOMRPTKY = '1000';

Vipul
 
Reply With QuoteReport This Post
<Rickson>
posted
Thanks Vipul. So the fact that ther eis an & before the variable indicates that it is to be read in from http, and the DEFAULT says to default it to 1000?
 
Reply With QuoteReport This Post
<Vipul>
posted
Rick,

'&' defines it as a Dialog manager variable.
-DEFAULT &VAR says to default the value (could be anything, 1000 was just an example) the value from your url param will override this value.


Vipul
 
Reply With QuoteReport This Post
<Rickson>
posted
Where does it talk in the documentation about all this? I couldn't find it anywhere. Thanks
 
Reply With QuoteReport This Post
<monte2000>
posted
Rickson:

What subroutine or function are you using? Is it WebFOCUS, FOCUS or iWAy? Documentation Services can give you better idea of where to find teh right doc once you've told us this info.

Monica
 
Reply With QuoteReport This Post
<Vipul>
posted
Hey Rickson,

This is the link for 'Developing Applications manual' for webfocus 52

http://documentation.informationbuilders.com/masterinde...0/wf_DevRepApp52.pdf

Vipul
 
Reply With QuoteReport This Post
<Rickson>
posted
Well basically, I just to print in the heading of a report the value of an http parm that was passed into the report. I have something like this:

-* File Test5.fex

TABLE FILE sometable
-* Generated by Report Assist
-DEFAULT &REPORT_ID = '0';
HEADING CENTER
"REPORT #" &REPORI_TD
PRINT NODE_ID NODE_name NM
WHERE RECORDLIMIT EQ 100
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE DEFLT
END

Where report_id is what I want to print... thanks
 
Reply With QuoteReport This Post
<monte2000>
posted
Hi everyone:

We are in the process of exploring efficient ways to more tightly tie together Documentation Services and Focal Point and are currently testing different scenarios.

In the interim, we ask that users continue to download documentation and manuals by logging in on the CTSS site with your InfoResponse ID.

Thanks so much!

Monica
 
Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Rickson (forgive any spelling)

If you have your code like this
-DEFAULT &REPORT_ID = '0';
HEADING CENTER
"REPORT #" &REPORI_TD
PRINT NODE_ID NODE_name NM
WHERE RECORDLIMIT EQ 100


Then you need to put the " after the # after the ..._TD not outside it.

Leah C
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Reply With QuoteReport This Post
Guru
posted Hide Post
Just one clarification on the & symbol.

When used within a focexec like ...

-DEFAULT &CUSTOMRPTKY = '1000';

... the ampersand does indeed indicate a variable.

When used on a url it is simply a delimiter, separating the list variables.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Reply With QuoteReport This Post
<Rickson>
posted
Leah, It seems correct to me, but I'm getting the error "0 ERROR AT OR NEAR LINE 14 IN PROCEDURE __T00000FOCEXEC *
(FOC007) THE REQUEST STATEMENT DOES NOT CONTAIN A VERB"

here's the code:

-* File Test5.fex
-DEFAULT &REPORTID = '1000';
TABLE FILE MY_FILE
-* Generated by Report Assist
HEADING CENTER
"REPORT #" &REPORTID

PRINT fname, lname
WHERE RECORDLIMIT EQ 10
ON TABLE PCHOLD FORMAT &FMT
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE DEFLT
END
 
Reply With QuoteReport This Post
Guru
posted Hide Post
Change your code to this

HEADING CENTER
"REPORT # &REPORTID "

PRINT fname lname


Note that you put the " at the beginning and end of each line of HEADING. When you put the &var in the HEADING the value assigned to it gets inserted wherever you put it. It must be inside the HEADING line.

Also, you don't need the comma between the list of fields you are printing, only a space.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Reply 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 read in an http arg from a FEX?

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