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.
where xxx is replaced by the actual values of course (jsessionid is in a cookie).
This is very useful and as I said, does in fact return the list of reports.
However, I have no control at all as to how the report list is displayed. It is obviously controlled by "ibi_apps/controller". I want to get the report list back as xml or some other format and then parse the list and display the items myself. So I can control the actual appearance (the style) of the list.
How can I get the report list in some kind of recordset? Is there a master file somewhere that lists the reports? Should I try and read the HTML file in basedir that contains all of the info (what a hassle that would be).
Thanks
JodyeThis message has been edited. Last edited by: Kerry,
I did not know about the WORP_REQUEST call, very interesting.
My approach would be to read the BASEDIR HTML file and control the output myself.
I have created what I think is a decent Master file for the BASEDIR HTML file and a FEX that reads it to display a list of programs with the MRE parameters by folder. One flaw is that a folder created within a folder is not depicted in my report.
Master:
$------------------------------------------------------------------------------- $ Module Name : mrebasedir.mas $ Description : Master to describe the contents of a BASEDIR HTML file $ Developed by : Francis Mariani - Francis Mariani Inc. $ Date Developed: April 2006 $------------------------------------------------------------------------------- $ Maintenance History $------------------------------------------------------------------------------- $ Modified by : $ Date Modified : $ Reason : $ Change ID : $-------------------------------------------------------------------------------
FILE=MREBASEDIR, SUFFIX=FIX, $
SEGNAME=MRE_LINE, SEGTYPE=S0, $ FIELD=MRE_LINE, MRE_LINE, A200, A200, MISSING=OFF ,$ $ DEFINE x_LINE_EDIT1/A200 = CTRAN(200, MRE_LINE, BYTVAL('<','I3'), BYTVAL('[','I3'), 'A200'); DEFINE x_LINE_EDIT/A200 = CTRAN(200, x_LINE_EDIT1, BYTVAL('>','I3'), BYTVAL(']','I3'), 'A200'); DEFINE MRE_LINE_TYPE/A10 = IF MRE_LINE EQ '' THEN 'BLANK' ELSE IF MRE_LINE CONTAINS '<!--' THEN 'COMMENT' ELSE IF MRE_LINE CONTAINS 'HTML>' OR 'HEAD>' OR 'BODY>' OR 'FONT>' OR '<P>' THEN 'HTMLTAG' ELSE IF MRE_LINE CONTAINS '<TITLE>' THEN 'TITLE' ELSE IF MRE_LINE CONTAINS '.kmd' OR 'app/help.htm' THEN 'MISC' ELSE IF MRE_LINE CONTAINS '<A HREF=''#' THEN 'FOLDER' ELSE IF MRE_LINE CONTAINS '.fex' THEN 'FEX' ELSE IF MRE_LINE CONTAINS '.htm' THEN 'HTML' ELSE 'LINE'; $ $-- Determine Folder attributes DEFINE x_FOLDER_ID/A13 = SUBSTR(200, MRE_LINE, 10, 22, 13, 'A13'); DEFINE x_FONMS/I4 = POSIT(MRE_LINE, 200, '>', 1, 'I4') + 1; DEFINE x_FONME/I4 = POSIT(MRE_LINE, 200, '</A>', 4, 'I4') - 1; DEFINE x_FOLDER_NM/A100 = SUBSTR(200, MRE_LINE, x_FONMS, x_FONME, 100, 'A100');
DEFINE x_FOLDER_IDY/A13 = IF MRE_LINE_TYPE EQ 'FOLDER' THEN x_FOLDER_ID ELSE ''; DEFINE x_FOLDER_NMY/A100 = IF MRE_LINE_TYPE EQ 'FOLDER' THEN x_FOLDER_NM ELSE '';
DEFINE MRE_FOLDER_ID/A13 = IF MRE_LINE_TYPE EQ 'FOLDER' THEN x_FOLDER_IDY ELSE MRE_FOLDER_ID; DEFINE MRE_FOLDER_NM/A100 = IF MRE_LINE_TYPE EQ 'FOLDER' THEN x_FOLDER_NMY ELSE MRE_FOLDER_NM;
$-- Determine Parent folder if folder is a subfolder DEFINE x_PFONMS/I4 = POSIT(MRE_LINE, 200, 'belongsto=', 10, 'I4') + 10; DEFINE x_PFONME/I4 = POSIT(MRE_LINE, 200, '>', 1, 'I4') - 1; DEFINE x_PFOLDER_IDX/A13 = SUBSTR(200, MRE_LINE, x_PFONMS, x_PFONME, 13, 'A13'); DEFINE x_PFOLDER_IDY/A13 = IF MRE_LINE_TYPE EQ 'FOLDER' THEN x_PFOLDER_IDX ELSE ''; DEFINE x_PFOLDER_IDZ/A13 = IF MRE_LINE_TYPE EQ 'FOLDER' THEN x_PFOLDER_IDY ELSE x_PFOLDER_IDZ; DEFINE MRE_PFOLDER_ID/A13 = IF x_PFOLDER_IDZ EQ MRE_FOLDER_ID THEN '' ELSE x_PFOLDER_IDZ;
DEFINE MRE_FOLDER_PATH/A30 = IF MRE_PFOLDER_ID EQ '' THEN MRE_FOLDER_ID ELSE MRE_PFOLDER_ID || (' > ' | MRE_FOLDER_ID);
DEFINE MRE_PARMS_PP/A3 = IF x_PARMS CONTAINS 'skipamper' THEN 'No' ELSE 'Yes'; TITLE='Prompt for,Parameters', $ DEFINE MRE_PARMS_SU/A3 = IF x_PARMS CONTAINS 'hidden' THEN 'No' ELSE 'Yes'; TITLE='Show on,User List', $ DEFINE MRE_PARMS_DF/A3 = IF x_PARMS CONTAINS 'defer' THEN 'Yes' ELSE 'No'; TITLE='Only run,Deferred', $ DEFINE MRE_PARMS_OL/A3 = IF x_PARMS CONTAINS 'runasolap' THEN 'Yes' ELSE 'No'; TITLE='Run with,OLAP', $ DEFINE MRE_PARMS_AL/A3 = IF x_PARMS CONTAINS 'alertwizard' THEN 'Yes' ELSE 'No'; TITLE='Alert', $ $
Fex:
-*------------------------------------------------------------------------------ -* Module Name : mrebasedir.fex -* Description : Program to display the contents of a BASEDIR HTML file. -* This report lists MRE entities by folder for a particular -* BASEDIR HTML file -* Developed by : Francis Mariani - Francis Mariani Inc. -* Date Developed: April 2006 -*------------------------------------------------------------------------------ -* Maintenance History -*------------------------------------------------------------------------------ -* Modified by : -* Date Modified : -* Reason : -* Change ID : -*------------------------------------------------------------------------------
-SET &ECHO=ALL;
SET PAGE = NOLEAD SET HOLDATTR = ON -RUN
-SET &MREBASEDIR = 'enterpri';
FILEDEF MREBASEDIR DISK D:\ibi\WebFOCUS53\basedir\&MREBASEDIR.EVAL\&MREBASEDIR.EVAL.htm -RUN
That looks perfect. However I cannot get the filedef to find the file in basedir. It is on a different server. While I trying to figure out the UNC path to use, I copied the html file into ibi_html figuring I could read it like that but now I can't get that to work either...
This is absolutely perfect. I need to change the defines for our purposes (I only want to show links to JSP launch pages) but it is exactly what we need.
Is there a way to make these reports executable? Basicaly I was asked to see if there was a way to just list reports in a frame instead of having an entire domain tree (domain/standard reports/reports) for users who just belong to 1 domain.
dev: WF 7.6.5 w/IIS + Tomcat
prod: WF 7.6.5 w/IIS + Tomcat
Posts: 153 | Location: Chicago, IL | Registered: February 24, 2006
How can I use the & character in the define string without it giving me a FOC error saying there isn't a valid value for "&IBIMR_sub_action" and the rest of the amper variables in the string?
dev: WF 7.6.5 w/IIS + Tomcat
prod: WF 7.6.5 w/IIS + Tomcat
Posts: 153 | Location: Chicago, IL | Registered: February 24, 2006
Francis, either I did something wrong or I might just be missing something but html forms do not come up with a program ID, just fex's...is it supposed to be like that?
The reason I ask is because I am loading launch pages and not actual fex files, and since I don't have a program ID for the html forms it's not working properly. Although I did hard code an html launch page form that works great.
dev: WF 7.6.5 w/IIS + Tomcat
prod: WF 7.6.5 w/IIS + Tomcat
Posts: 153 | Location: Chicago, IL | Registered: February 24, 2006
Thanks again Francis, I finally got everything working. I did have to change the master file a little to accomadate the program ID for htm files though.
dev: WF 7.6.5 w/IIS + Tomcat
prod: WF 7.6.5 w/IIS + Tomcat
Posts: 153 | Location: Chicago, IL | Registered: February 24, 2006
Francis, no kidding. submit this! it totally rocks. i just realized i said that already above.
Francis, i second John's idea to change the length of a fexname from /A12 to /A70 or something way bigger.This message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003