Focal Point Banner


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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Maintain hangs
 Login/Join
 
Guru
posted
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:

FILE=Texttab, SUFFIX=FOC, FDFC=20
SEGNAME=TEXTROOT, SEGTYPE=S1, $
FIELD=TYPE_NO, ALIAS=TYPE_NO, FORMAT=A6, INDEX=I, $
FIELD=RTEXT, ALIAS=RT, FORMAT=A60, $

Tia,

H�kan
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Master
posted Hide Post
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.

Good Luck
 
Posts: 865 | Registered: May 24, 2004Report This Post
Guru
posted Hide Post
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, 2004Report This Post
Master
posted Hide Post
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, 2003Report This Post
Master
posted Hide Post
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, 2003Report This Post
Platinum Member
posted Hide Post
quote:
We have a REALLY cool way to attach a JavaScript file to a form.


Sorry, but I just had to respond to that statement !

It may be cool to some, but to me it is just
another example of Dev Studios obtuse and inconsistent user interface.

Some things only from the menu, somethings from property sheets, or nested dialogs, some by right click only, some things by drag and drop only !

It's just not good interface design.

This message has been edited. Last edited by: Dave Ayers,


Regards,
Dave

http://www.daveayers.com

WebFocus/Maintain 7.6.4-8
on Win2000 and 2003 Server
 
Posts: 165 | Location: Detroit Metro | Registered: September 17, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders