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.
1. Enter ssn on frame1. 2. Populate 3 listboxes on frame 2 based on IBI.fil technique in -HTMLFORM. (this works) 3. I want to run a fex from a button on frame2 (this is -htmlform it has an xml request developed in painter and cut and pasted into the -htmlform (in the fex run from the button on frame1) 4 the run button works when I run the form in layout painter , when I run this cut and pasted html the run button produces an error in java missing object cahar 1 line7 .
You have a web page that has a button that has an onclick event attached to it. This onclick event calls a javascript function that exists within your HTML. In turn this function calls the function "OnExecute(ctrl)" - and that's where you have a problem, where is that function? You do not have any javascript modules included within your HTML - do you expect it to find it itself?
The trouble with cutting and pasting code from some of the painter apps is that you are not shown all of the code required to run that particular process. This is to help with understanding the process(?!). To get all the code required, save your process and then open it in an editor then cut and paste your code.
With writing applications that rely upon HTML, XML, JavaScript etc. comes the responsibility of learning basic skills to allow you to interpret errors and fix them.
With the advent of "code writers" (that's what the painter apps are) came the de-skilling of the developer community and that is a real problem. We end up with "bloat ware" and the knock on effects that causes.
I'm not having a knock at you personally in this, there are many in the same position as you where the pre-requisite training is not forthcoming.
To help, try looking at the "Ugly JavaScript" Manual (search on Google) and the W3c site(s) for help in understanding HTML etc.
Oh, and good luck!!
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
I agree with you. However, HTML, XML, JavaScript etc. are not my strong points but I can code the queries to do just about anything I want. That's where it's great to have a partner that is strong in those areas.
Thank you for your response. I am not sure which IBI javascript module to include. How would I find out where the onexecute function is. This code works directly under developer studio, but when I paste it into the fex it doesn't find it.
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004
The JS modules are generally contained in the ibi_html/javaassist/js folder (I think). The main ones are IBIRLS.js (vsn <7.n) IBIRLS2.JS [vsn >=7.n) but these would normally be inserted for you when you create the HTML file in painter.
Try saving the code and then looking at it using notepad outside of WF (if you can) and you will see lots of code you didn't know was there.
Good luck
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
HTML, XML and javascript may not be your strong points but I am sure (by inference) that you have had a dabble and understand the rudementary relationship between these components and WF? That is all I am suggesting that WF developers require and then, at least, you will have the knowledge to be able to understand where to start looking and what there should be within your code?
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
As Tony says there is more than one module. When you save an html file from the layout painter, the scripts are all there, but not quite all in one place, with scripts calling other script.
Or, when you run from the layout painter, view source and see the parts added by webFOFOCUS.
It is not totally straightforward though, so take care.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
One of the other "biggies" is IBIGBL.js. This combined with IBIRLS.js provide most - but not all - of the js functions that might be required in your HTML pages.
Alan is correct in advising care and this underlines my point(s) above. Understand the relationship between the required components and that will make you more effective in problem determination if not in problem resolution
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
If your are trying to call button1_OnClick() from within a frame you will receive the "object not found" error because the browser is looking for the code within the frame. To access javascript functions that appear in the main body of the page, then appent the function name with top. or parent. - so the call would become parent.button1_OnClick().
Beware of using top., it will work fine as long as you don't try and embed the main page into another document (ala Dashboard). if you do then it will be pointing to the wrong place.
Hope this helps
Stu
WebFOCUS 8.2.03 (8.2.06 in testing)
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007