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     Problem with URL calling MRE fex(solved)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Problem with URL calling MRE fex(solved)
 Login/Join
 
Platinum Member
posted
I am trying to call a fex from an href in an htmlform (MRE). It calls the fex but does not populate the & variables. Does anyone
have any ideas.

Thanks in advance


-SET &RNDM = RDUNIF(D8) * RDUNIF(D8) * 10000000;
-SET &URLSRC = 'http://placidmaint:8080/ibi_apps/WFServlet?IBIMR_action=MR_RUN_FEX&' |
- 'IBIMR_sub_action=MR_STD_REPORT&' |
- 'IBIMR_fex=app/rx_trend_excel.fex&' |
- 'IBIMR_folder=#dasboardcomp&' |
- 'IBIMR_domain=rxdashb\rxdashb.htm&' |
- 'IBIMR_flags=skipamper&' |
- 'IBIMR_random=' | &RNDM.EVAL | '&' |
- 'YEAR=' | &YEAR.EVAL | '&' |
- 'KPI=' | &KPI.EVAL | '&' |
- 'GRAD1=' | &GRAD1.EVAL | '&' |
- 'GRAD2=' | &GRAD2.EVAL | '&' |
- 'RNDM=' | &RNDM.EVAL;

-HTMLFORM BEGIN
<TABLE BORDER=0>
  <TR>
    <TD>&|nbsp;</TD>
	<TD colspan="2" align="center"><FONT face="Arial">[b]&HDG1 &HEADING.EVAL[/b]</FONT></TD>
    <TD align="right"><A HREF=&URLSRC TARGET="_blank"><IMG id=image1 border=0 src="/approot/baseapp/exllogo.gif" name="image1"></A></TD>
  </TR>
  <TR>
    <TD colspan="4" valign="middle">!IBI.FIL.HOLD_TREND_GR1;</TD>
  </TR>
</TABLE>
-HTMLFORM END

This message has been edited. Last edited by: secret,
 
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004Report This Post
Expert
posted Hide Post
Please put this code between
[code]
your code here
[/code]
tags.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Just run your fex but don't click the link. Instead, use the "View Source" option in your browser and take a peek at the generated HTML code and focus on the href attribute in the <A> tag. It should clearly show what URL will be passed.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Master
posted Hide Post
off hand, i'd say you have extra spaces thrown into the URL and the unescaped ampersands might be throwing stuff off too.

rxdashb\rxdashb.htm should be rxdashb/rxdashb.htm

Use: &| instead of &

-ABT

View source should fill in all the blanks.


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Platinum Member
posted Hide Post
Here is the view source:


-SET &RNDM = RDUNIF(D8) * RDUNIF(D8) * 10000000;
-SET &URLSRC = 'http://placidmaint:8080/ibi_apps/WFServlet?IBIMR_action=MR_RUN_FEX&' |
- 'IBIMR_sub_action=MR_STD_REPORT&' |
- 'IBIMR_fex=app/rx_trend_excel.fex&' |
- 'IBIF_ex=app/rx_trend_excel.fex&' |
- 'IBIMR_folder=#dasboardcomp&' |
- 'IBIMR_domain=rxdashb\rxdashb.htm&' |
- 'IBIMR_flags=skipamper&' |
- 'IBIMR_drill=RUNNID&' |
- 'IBIMR_random=' | 9331444 | '&' |
- 'YEAR=' | 2012 | '&' |
- 'KPI=' | COMPUTER_RETAIL_SALES | '&' |
- 'GRAD1=' | YEAR | '&' |
- 'GRAD2=' | WEEK_OF_YEAR | '&' |
- 'RNDM=' | 9331444;
-*url += "&IBIMR_flags=&IBIMR_drill=RUNNID";
-TYPE http://placidmaint:8080/ibi_ap...EAR&RNDM=9331444
http://placidmaint:8080/ibi_ap...EAR&RNDM=9331444
-RUN
0 NUMBER OF RECORDS IN GRAPH= 121 PLOT POINTS= 53
-HTMLFORM BEGIN
-HTMLFORM END
 
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004Report This Post
Virtuoso
posted Hide Post
quote:
&URLSRC

Within the scope of -htmlform, you should use
!IBI.AMP.URLSRC;
instead.

Same goes for &HDG1 and &HEADING.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
Bob,

ABT and Jack have identified what I would have mentioned, that is use &| instead of plain & an use !IBI.AMP.URLSRC; within the HTML.

I would also recommend keeping filenames to be used with !IBI.FIL.~~~~~; to 12 characters or less as I have seen problems in this area.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
Let's see. The &URLSRC value in your post unfURLs to
http://placidmaint:8080/ibi_apps/WFServlet
?
IBIMR_action=MR_RUN_FEX
&
IBIMR_sub_action=MR_STD_REPORT
&
IBIMR_fex=app/rx_trend_excel.fex
&
IBIF_ex=app/rx_trend_excel.fex
&
IBIMR_folder=#dasboardcomp
&
IBIMR_domain=rxdashb%5Crxdashb.htm
&
IBIMR_flags=skipamper
&
IBIMR_drill=RUNNID
&
IBIMR_random=9331444
&
YEAR=2012
&
KPI=COMPUTER_RETAIL_SALES
&
GRAD1=YEAR
&
GRAD2=WEEK_OF_YEAR
&
RNDM=9331444


Interesting -- you pass two fex names to execute:
MR-style:
IBIMR_fex=app/rx_trend_excel.fex
and self-service style:
IBIF_ex=app/rx_trend_excel.fex

That sounds like you have stored copies of rx_trend_excel.fex in both places -- MR repository, and server app folder. If the IBIMR_fex parm is indeed honored, the MR copy will be uploaded (via EX -LINES), and then the backend server will have two copies -- one temporarily "loaded" somewhere, the other sitting in some APP folder. I wonder which would win?

In any event,
(a) if it's stored in two places, do you have evidence of which version is actually executing?
(b) exactly what is your evidence that the application parameters (&YEAR, &KPI, &GRAD1 and &GRAD2) did not receive the values coded into the url?


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Platinum Member
posted Hide Post
quote:
&|

Thank You Tony and Jack and ABT

I have made all the changes you suggested.

same result

I downloaded fiddler and the URL passed is

GET http://placidmaint:8080/ibi_ap...el.fex&IBIMR_folder= HTTP/1.1


Note the folder is the problem.

the # seems to truncate the url.

Also in the called fex I have -? & and and exit.

It calls the fex.

This message has been edited. Last edited by: secret,
 
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004Report This Post
Platinum Member
posted Hide Post
The problem was solved by moving the folder variable to the last variable on the list. Makes no sense to me but since thats where it was truncating I tried it and it worked.
 
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004Report This Post
Virtuoso
posted Hide Post
quote:
IBIMR_folder=#dasboardcomp


So URLencode that as IBIMR_folder=%23dasboardcomp

-- just as you did with IBIMR_domain
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     Problem with URL calling MRE fex(solved)

Copyright © 1996-2020 Information Builders