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] Maintain Screen refresh problem

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Maintain Screen refresh problem
 Login/Join
 
Guru
posted
Hi All,
I have a maintain screen which have Read/Write Grid with more than 20 columns.When user changes value in any of the column the whole screen get refreshed.Again user has to scroll back to same column to see updated value.User want to stay at the same position in screen while making changes.Is there any way to handle this in maintain?Please suggest.

Thanks in advance.

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
Whenever you have a Maintain event (procedure) the application returns to the server and that's why your screen gets refreshed. What many do is use JavaScript instead when ever possible. JavaScript operates on the browser so you do not go back to the server and therefore the screen is not refreshed.

If you have to go to the server you could save the row and column and then when your return to the form, position the cursor on the cell they were on.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Guru
posted Hide Post
Hi Mark,
Can you please send me sample code for this?That will be really helpful.

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
I would do something like this.

First I would create two fields in my Maintain code to contain the current row / column of the grid.
Compute Xxx/a5;
Compute Yyy/a5;
Place them on the form and you can make them visible No.

Now, my Grid events would be:
function OnGrid1_OnCellChange ( int col, long row, int newCol, long newRow) {
Form1.Xxx_Edit.value = col;
Form1.Yyy_Edit.value = row;
}

function OnGrid1_OnLClicked ( int col, long row, boolean updn, boolean processed) {
var col1 = Form1.Xxx_Edit.value;
var row1 = Form1.Yyy_Edit.value;
Form1.Grid1.GotoCell(col1, row1);
}

function OnGrid1_Focus ( ) {
Form1.Grid1.StartEdit();
}

The event on Focus makes one click editing work.
The event on OnCellChange takes the current row and column and places them in the fields on the form.
The OnLChicked event says, when the screen is redisplayed and the user clicks on the Grid, place the cursor in the field that you left off on.

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

Regards.


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report 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] Maintain Screen refresh problem

Copyright © 1996-2020 Information Builders