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     [SOLVED] Passing Form to Form Values - Maintain

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Passing Form to Form Values - Maintain
 Login/Join
 
Member
posted
Hi All

Hope you can help me with this. I have form1 with HTMLTable populated from Stack1. I also have form2 with is supposed to populate stack2 and save it to the Database

I need to know how i can do the following:
When I click on form1, on my ClickLink event of the HTMLTable
(COMPUTE stack1.FocIndex = form1.HTMLTable.ClickRow;)
I need to send my stack1.FocIndex value to a textbox in form2 before I can save it to stack2.

Any help would be appreciated. I will crearify if this is not enough information.

working on:

WebFOCUS 7.6.9
Maintain 7.6.10

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6.9
Windows XP
Dev Studio 7.6.10
 
Posts: 4 | Registered: June 02, 2008Report This Post
Master
posted Hide Post
Hi Godfrey
Ok. So the user makes a selection on the HTMLTable on Form1 populated by Stack1 and you want to pass the selected row number to form2 and Stack2?

To find out the row and value of the row that was selected, use:

Compute Row1/i3 = Formname.HtmlTablename.ClickRow;
Compute Row1Value/fmt = Stack1(Row1).Fieldname;
-* Here Formname is the name of the form and htmltablename is the name of the table.
-* Also, fmt is the format of the selected value and fieldname is the name of the field.

You can now use Row1 and Row1Value on form2. Either drag them onto the form or create a text box and use them as the values.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by gghlo1:

I need to send my stack1.FocIndex value to a textbox in form2 before I can save it to stack2.



You can create a field on your second form that is attached to the focIndex of stack1. It's one of the selectable items when you attach an input field to a stack value. That's step 1.

The clickrow attribute you're using allows you to set the value of your stack1 focIndex as MZ metioned above. Be sure be sure be sure to check the value of clickRow in JavaScript before making the jump to Maintain -- the hyperlink covers the entire cell but clickRow only seems to populate when you click on the text that is in the cell. If you click on the blank space clickRow could be empty, and it will appear that the trigger is not functioning correctly.

J.



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Member
posted Hide Post
Hi John and Maintain Wiz

Thank you both for your input, you were spot on on what I needed. MZ, in form1, i did create the two COMPUTES and assigned one of the COMPUTES the value of my stack1.Fieldname, which was made available in my second form and displayed in my textbox.

I then simply assigned that value to my stack2.fieldname before saving to the DB in stack2.

Thanks for the input, I am sorted.


WebFOCUS 7.6.9
Windows XP
Dev Studio 7.6.10
 
Posts: 4 | Registered: June 02, 2008Report 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     [SOLVED] Passing Form to Form Values - Maintain

Copyright © 1996-2020 Information Builders