Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
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
 
Report 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
 
Report 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?
 
Report 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
 
Report This Post
<Rickson>
posted
Where does it talk in the documentation about all this? I couldn't find it anywhere. Thanks
 
Report 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
 
Report 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
 
Report 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
 
Report 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
 
Report 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, 2004Report 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, 2003Report 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
 
Report 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, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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-2020 Information Builders