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     [CLOSED] Determine Row Clicked on Grid in maintain.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Determine Row Clicked on Grid in maintain.
 Login/Join
 
Guru
posted
Hi,
If I use a Maintain function to handle the ClickLink event in an HTML Table, then we can use special syntax in your function to determine what part of the HTML table the end user clicked. If you want to determine the row number, use:
formname.tablename.ClickRow

So, do we have this kind of feature in Grid? I want to fetch row number clicked on Grid in maintain function based on which I will extract value of a Grid column for that row and store it in variable to use it further in my SQL query in another maintain function.Please suggest a way to handle this.

Thanks.

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


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Master
posted Hide Post
When using the old grid...

Most of the events pass the row and column into the function automatically. These include OnRClicked and OnLClicked as well as OnEditStart / OnEditFinish. If the function takes col and row on the function line, you can use them in your own JS code.

If there IS an event that doesn't give you the the Row and Col you should be able to use:

var currow = Formname.Gridname.GetCurrentRow;

Here currow is the name of your valiable, Formname is the name of your form and Gridname is the name of your grid.

For column try:
var curcol = Formname.Gridname.GetCurrentColumn;

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Guru
posted Hide Post
Hi,
The problem is that on any event i can find the row and column value clicked but if i want to retain that value so that i can use it on some other event on other screen.
Is there any way to capture and hold it in variable?
What i was thinking like i will hold the value in invisible Editbox and extract the value from it.But how will i extract the value in Editbox in a maintain variable? Is there any way to handle this?Please suggest.

Thanks.


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Master
posted Hide Post
Placing the row and column in an edit box on your form is easy. Create a variable inside the Maintain code:

compute trow/i3;
compute tcol/i3;

Then drag those fields onto your form. The default name for the editbox will be:
Trow_Edit and Tcol_Edit.

Inside your JS code you can have:
Form.Trow_Edit.value = variable;
Form.Tcol_Edit.value = variable;

Here form is the name of your form and variable is whatever contains the value for row and column.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 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     [CLOSED] Determine Row Clicked on Grid in maintain.

Copyright © 1996-2020 Information Builders