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've got a weird behaviour from a Maintain app. The form is designed to run in a 800 x 600 res, but with that size I want to set the Top and Left property of the form to 0. When the Form opens I set the focus to an editbox which triggers a JavaScript which checks the screen.availWidth. If it's < 1024 I call a Focus case with the IWCTrigger. This works fine in most programs, but when I try with a new very simple table with one key and one alpha field I get an hourglass and it just hangs. WF Dev Studio 4.3.6 SP6, W2K SP4. Any idea, anyone? Below is the Master file:
Don't Know why that does not work, But another option might be to use the javascript command open where you can specify the width, height, scrollbars, statusbar, location, etc.... this may give you more flexability.
Forgot to mention, but it works if using an HTML Table, but not with a grid. Btw, how do you call a JavaScript from Maintain code. As far as I know, that's not possible. Or have I missed something?
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004
We have a REALLY cool way to attach a JavaScript file to a form. Every time the form opens, the JavaScript automatically gets kicked off. I think this is exactly what you need for your procedure. Create an external JavaScript file and name it anything you want. It should contain the following code:
(Please note, I renamed onload to onloadX in 3 instances on the first 2 lines of the code in order to make the post. Rename onloadX to onload in all 3 instances!!)
var OriginalOnloadX = document.body.onloadX; document.body.onloadX = LoadFunct; //assign your custom onload
function LoadFunct() { if (OriginalOnload) OriginalOnload ; //first run the OriginalOnload // Custom onload code can now follow
}
Add the JavaScript commands that you need before the closing paren. Once the file has been created, include it in the project. In order to assign the file to the form, have both the form AND the Desktop displayed. Drag the JavaScript file from the desktop to the form. You will be asked if you wish this to be assigned.
That's it! It works like a charm. This technique is included in the February 2004 WebFOCUS Newsletter.
Posts: 663 | Location: New York | Registered: May 08, 2003
Whoops I see that you are still in V4. Ok. You can use the same JavaScript code, but the assignment is different. Create the JavaScript code inside the painter under the Scripts folder. Now, drag the JavaScript up to the Form name. That assigns the script to the form and should work for you.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003