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.
I recently started using Webfocus enable for flex. I am following the user guide and I am struck at data binding using ibidatagrid. I am setting URL of WebFOCUS procedure which is on localhost but data is not being displayed. This is the URL and procedure is in baseapp folder. fex name is flex_enable and output is in XML format.
Thanks for opening a new thread on this. Here's how I do it:
A couple of functions to set up the URL string:
// Public Variables
public var fex:String;
public var fex1:String = "http://servername/ibi_apps/WFServletIBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_drill=RUNNID&IBIWF_action=WF_SIGNON&IBIC_user=userid&IBIC_pass=userpass";
public var fex2:String = "&IBIMR_domain=domain/domain.htm&IBIMR_fex=app/fexname.fex&IBIF_ex=app/fexname.fex&IBIMR_flags=&IBIMR_folder=#dashboardque&IBIMR_random=";
// Get data for policy
public function getFex():String {
var fex0:String = fex1 + fex2;
return fex0;
}
Then on the ibidatagrid:
<ibi:ibiDataGrid x="0" y="36" id="mainGrid" seturl="{getFex[)}"
visible="false" ibiAddRandom="true" left="10" width="1216" height="600" ibiUseFiltered="true" ibiCopyData="true"/>
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
If the fex is in baseapp and that is part of your server path (as is normally the case), you can just omit a bunch of those parameters that are only needed for MRE. Namely: IBIMR_action IBIMR_sub_action IBIMR_drill IBIMR_domain IBIMR_fex IBIMR_flags IBIMR_folder IBIMR_random
and change the IBIF_ex to be baseapp/fexname.fex
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
This is what I used after modifying what you posted
public var fex:String; public var fex1:String = "http://localhost:8081/ibi_apps/WFServlet?IBIF_ex=baseapp/flex_enable"; public function getFex():String { var fex0:String = fex1; return fex0; }
If I directly put the URL in the browser it gives me XML output but here it doesn't display anything..?!! I also tried flex_enable.fex, removed baseapp etc etc..all these trials give data when directly ran from browser but not from flex..
I did add it in ibicanvas. Thanks for the suggestion. I tried that and I got these messages..which seems to mean processing went well.?!!
[9:29:58.531] fetch data from source: http://localhost:8081/ibi_apps...=baseapp/flex_enable [9:29:58.531] Fetching Data [9:29:58.531] Sending request [9:29:58.921] Processing Data [9:29:58.937] processing xml [9:29:58.937] processing columns [9:29:58.937] processing rows [9:29:59.203] processing xml done
I also tried by placing an error in fex name in the URL and got this message which says an error.
[9:31:45.703] fetch data from source: http://localhost:8081/ibi_apps...x=baseapp/flex_enabl [9:31:45.703] Fetching Data [9:31:45.703] Sending request [9:31:45.781] Processing Data [9:31:45.781] processing xml [9:31:45.781] Data Error [9:31:45.781]
WebFOCUS Message[42]: NO EDA HTML Output
Instead of localhost I also created a fex in my work environment, changed the URL and ran but no output again, yet message window says successful..
Thanks a lot..This message has been edited. Last edited by: Enigma006,
One item I noticed (if you're using the exact code you posted) is that you have no "id" property on the ibiDataGrid. I have seen many (and unfortunately, intermittent) problems when the ibi components are not given an id. Sometimes they work, others not. So obviously the rule of thumb is to set the id property for all ibi components. In your case, with this datagrid being your maingrid to receive the xml data, it must have an id if it is to be used at all.
I would definitely give that a try before trying anything further.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Are you using Flex 4 or Flex 3? This looks like Flex 4, and if so, do you know if that is supported by IBI? Everything I've done so far has been with Flex 3.
Bob
Prod: WebFocus/ReportCaster 7.6.10 - Self Service - Windows 2003 Server - IIS/Tomcat
Test: WebFocus/ReportCaster 7.6.10 - Self Service - Windows 2003 Server - IIS/Tomcat
Databases: MS SQL Server, Focus DB, Output: HTML, Excel 2000 and PDF
Although I am not sure if the flex version is your problem in this case, it's quite possible, and I would not continue with Flex 4 until IBI has a Flex Enable version that supports it.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
you can use Flash Builder 4 with flex enable but you must use the FLEX 3.5 sdk as 4 has not been certified yet. I believe IBI will have a new swc file when 4 is certified.