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.

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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Maintain: Winform GET formname.FOCUS fails

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Maintain: Winform GET formname.FOCUS fails
 Login/Join
 
Member
posted
WebFOCUS 7.1.4 - Windows platform
Winform GET formname.FOCUS is supposed to return the current object that has "focus". My attempts to use this produce an error.

EXAMPLE:
Formname = Books_Form
Variable = CursorXXX/A44=;

CODE: WINFORM GET Books_Form.FOCUS INTO CursorXXX;
ERROR: (FOC03610) FOCUS IS NOT A FIELD IN (OR MEMBER OF) TYPE WF_BOOKS_FORM.

Anyone have suggestions.
I currently use an EVENT to compute the object but would prefer to use the correct form of the WINFORM GET command.


John Price
 
Posts: 25 | Location: Fountain Valley, Calif. | Registered: October 24, 2003Report This Post
Master
posted Hide Post
It doesn't look like:

Winform GET form.focus INTO Here;

is available in WebFOCUS. It was a Mainframe command that may never have been included. I did find a reference to it in the doc. Let me check with programming and see what they say.

If you would like to track this issue, open a case with Customer Support.

Thank you,
Mark Derwin
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Master
posted Hide Post
John
Programming says that this would be better accomplished with an OnFOCUS trigger for your objects. In my example, I placed a field called Fld on my form. In my objects I used:

function OnButton1_Focus ( ) {
Form1.Fld_Edit.value = "Button1";
}

function OnButton2_Focus ( ) {
Form1.Fld_Edit.value = "Button2";
}

Whenever the object got focus, I set the variable on my form. I can then query the field Fld and get the value in my Maintain code. I hope this helps.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Member
posted Hide Post
Thanks Mark.

The event (trigger) is the method I'm using and it works fine.

Like you I based my use of WINFORM GET on the manual.


John Price
 
Posts: 25 | Location: Fountain Valley, Calif. | Registered: October 24, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Maintain: Winform GET formname.FOCUS fails

Copyright © 1996-2020 Information Builders