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 am using the html painter to build my self-serve page using a number of different form controls. When specifying a dropdown list with a fex as input, it works fine in my local environment, but produces nothing (empty list) in development. Using a master file as input produces the expected results in all environments.
I am using the fex as input in order to perform a sql passthru union operation on a list of names. There may be another way to achieve the desired output, but it seems to me the fex input should work outside the local environment.
Any suggestions would be appreciated.
-Jim
WebFOCUS 7.1.6 on Sun/Solaris (dev/qual/prod), Servlet running on WebLogic 9.2
Are you using ON TABLE PCHOLD FORMAT XML ? The reason for this is the internal javascript parses the XML output looking for column C0 and C1. If it isn't in XML format then this process will not work. If you are not specifying XML then this will be your problem.
If this is not the problem then please post an example of your fex.
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, 2004
Jim Trying running the fex itself from the URL and see what results you get back. If nothing then there is something wrong with the development environment (connections, cannot find the focexec, etc...).
I think Texas is right. If it's working in your local environment than it should also work in your development environment. Check the application path on your reporting server. If the path setting is correct then you can try to find the error by putting -SET &ECHO=ALL; as the first line in your report. Run your application. When you get the error, rightclick the browser window en click "View source". At the end of the html code you will find (if the fex can be found) your WF code. Search for error message like masterfile cannot be found, DB cannot be reached, etc...
Tony A. - the fex produced xml output even without the "FORMAT XML" specifier. I added that and still received the same blank output in development.
TexasStingray - running the fex from the url produces the expected xml output.
JJI - I include a standard error display fex in all my fexes that has the -SET ECHO=ALL; statement in it. Just to be sure, I added it to the fex that populates the dropdown. I've looked at the source for the html page but see nothing relating to fex error output. Am I missing something?
I'll follow this post with example code.
WebFOCUS 7.1.6 on Sun/Solaris (dev/qual/prod), Servlet running on WebLogic 9.2
ENGINE SQLORA SET DEFAULT_CONNECTION &MYSERV SQL SQLORA PREPARE SQLOUT FOR select distinct p.snl_id, p.name custodian from dvs.source_master sm, extcopy.person p where sm.primary_custodian = p.snl_id UNION select distinct p.snl_id, p.name custodian from dvs.source_master sm, extcopy.person p where sm.alternate_custodian = p.snl_id ; END
TABLE FILE SQLOUT PRINT SNL_ID CUSTODIAN BY CUSTODIAN NOPRINT ON TABLE PCHOLD FORMAT XML END
WebFOCUS 7.1.6 on Sun/Solaris (dev/qual/prod), Servlet running on WebLogic 9.2
HTML page generated by report painter. First dropdown uses the fex as dynamic input and produces nothing. Second dropdown uses master file as input and works. It is included to demonstrate one method that works.
It should be noted that when specifying a fex as dynamic input in the resource painter, no list is displayed to populate the Value and Display fields as you would get when specfying a master file.
Having got past the normal hurdle that trips people up, the next step is to check what path is being searched. TS and Dirk are going along the right lines here but adding &ECHO =all willnot help as this process is run on the server and only XML is passed back to the browser window. You will not see any echoed output.
Have a look at the tag string generated by the painter and you will often see an attribute for "IBIAPP_app". If the fex that you are using to populate your combo box is held within your APP PATH then it is generally OK to remove this attribute. Otherwise you could change it to reflect the APP where the fex is located.
Check this out and let me know how you get on and I'll assist as required.
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, 2004
Tony - not sure where this suggestion was supposed to take me.
I removed the ibiapp_app references in the SELECT tags with no effect. I then removed the entire INPUT tag that referenced the ibiapp_app attribute and after which even the working master file populated dropdown broke.
Those were the only references to ibiapp_app in the provide html.
I'm still not grasping what is different about the local environment that allows the file to work there.
WebFOCUS 7.1.6 on Sun/Solaris (dev/qual/prod), Servlet running on WebLogic 9.2
starting from scratch I created a procedure to prodcue dropdown values and a procedure to produce a report. Both of yours are probably OK, but let's cover all the bases.
Dropdown list -country.fex TABLE FILE CAR SUM COUNTRY BY COUNTRY ON TABLE SET HOLDLIST PRINTONLY ON TABLE PCHOLD FORMAT XML END
Report Fex -car.fex TABLE FILE CAR PRINT CAR BY COUNTRY WHERE COUNTRY EQ '&COUNTRY' END
I put these first on my local environment , EDASERVE, in baseapp folder. Then I created an HTML page with a list box to resolve &COUNTRY, changed the conrol property to dynamic, specified a fex, and selected country.fex (it is going to look in the app path of the local server). Run it an the list box populates - but you already got that far. Then I copied BOTH the report fex and the dropdown fex to the test folder in my DEV environment and created an HTML page from scratch using the same steps as above. It works as well. The ONLY differences I can find in the way they are prepared are:
1. Any reference to the IBIC_server should change from EDASERVE (or whatever your servername is in your local environment) to the name of the server in your DEV environment 2. Any reference to ibiapp_app will also change if the app folders have different names between your local and DEV environments 3. make sure that both procedures exist in both environments
I also did this within MRE and the only differences were the additional hidden parameters associated with the mre domains and folders. Last but not least, I copied the HTM file directly from local to DEV, making the changes describe above, and it works great.
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
I missed your earlier post containing the HTML - too rushed to look properly - and a quick scan suggests nothing immediate. The absence of a value for the ibic_server attribute is OK as the javascript in ibirls2 will issue the default of EDASERVE.
The concern is that it works in one environment and not another. Are you changing any code inbetween - I guess not. Do you have the same applications in each environment? Are your APP PATH settings identical in each? (Use APP SHOWPATH to check).
Put procedure traces on to ensure that the process is being executed OK and is returning the correct info.
You could also make a backup of ibirls2.js and then insert some alerts at stategic points to ascertain where the process is not performing but I would only recommend this if you know what you are doing.
Keep us posted with updates.
T
p.s. You could try adding the INPUT tag for IBIC_server to point at EDASERVE, it wouldn't hurt.This message has been edited. Last edited by: Tony A,
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, 2004
Tony, you're right setting the echo on will not make a difference if the output is xml. I didn't knew that at the time or I missed that some how? I still believe that Jim's problem has to do with the App path. Jim, follow the steps Darin described here and it should work! I can't think of anything else right now that could cause the problem.
True, that's why I suggest the procedure trace, it might show something.
I too think the problem is APP PATH related and hopefully Jim will tell us that there is a difference, although I have just noticed that he doesn't have an IBIC_server value in his HTML so have suggested adding one. I though that ibirls2.js defaulted this to EDASERVE but can't find the reference. The ibirls.js (previous version) actually defaulted to LOOPBACK and that's why I suggest the IBIC_server value.
As for Darin's process, that will be a good reference for people who haven't gone through the process, but I think that Jim has already achieved that in his initial set-up. The problem he is having is getting it to run in another app so the latter part is pertinent.
Jim, it's over to you....
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, 2004
Dropdown list -country.fex TABLE FILE CAR SUM COUNTRY BY COUNTRY ON TABLE SET HOLDLIST PRINTONLY ON TABLE PCHOLD FORMAT XML END
Created the above fex and referenced it in HTML Painter generated page and was able to succesfully populate the dropdown in both the local and development environments.
What does that say about my setup?
-Jim
WebFOCUS 7.1.6 on Sun/Solaris (dev/qual/prod), Servlet running on WebLogic 9.2
Compare the HTML tags for the two SELECTs and see where the fex is referenced in each. To locate the fex in each environment you must have been able to see it from the painter app.
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, 2004