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     Moving Curor to a column (row) in a Grud

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Moving Curor to a column (row) in a Grud
 Login/Join
 
Member
posted
Z/VM, focus 7.3.3, Maintain

Is it possible to move the cursor to a specific location on a grid?

I have a compute of the form in a case which is doing validations

Compute MntRequests.OpenRequests.CurGrdColNum = 3 ;

Where "Mntrequests" is the form name and "OpenRequests" is the grid name.

The cursor is in column 7.

I even tried refreshing the form (which I did not think was necessary).

Is it possible to move the cursor within a grid? If so what am I doing wrong?
 
Posts: 11 | Registered: June 12, 2003Report This Post
Master
posted Hide Post
This is the proper syntax to move the cursor to a specific row / column in a grid:

FormName.GridName.SETSCROLL(i,j);

Where FormName is the name of the form, Gridname is the name of the grid, i is the row number and j is the column number.

Please make sure that you have used the correct form and grid names in the command.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Member
posted Hide Post
Note: Marks solution moves the entire screen.
For example moving to column 3 makes that the left most column.

It does not move the cursor with out scrolling the screen which is what I want to do.
 
Posts: 11 | Registered: June 12, 2003Report This Post
Master
posted Hide Post
Since you only want to move the cursor and NOT shift the columns on the screen, we need to add a second command. To do this, we have to make sure that the desired row is on the screen.

First, we will scroll down to the desired row, and then move the cursor:

Compute Form.Grid.SetScroll(Row, 1)
-* Where Row is the desired row and 1 is col 1
Compute Form.Grid.SetCursor(Row, Col)
-* Where Col is the desired column

This should do exactly what you want

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Member
posted Hide Post
For anyone monitoring this topic.

Mark suggestion worked.
 
Posts: 11 | Registered: June 12, 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     Moving Curor to a column (row) in a Grud

Copyright © 1996-2020 Information Builders