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     Return to HTML screen/file position after refresh

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Return to HTML screen/file position after refresh
 Login/Join
 
Platinum Member
posted
Hi All,

I have a graph displayed above a detail table and have hyperlinks on the table column titles that will resort the data based. The table is displayed about 2/3 way down the screen. When I click the column titles, the screen refreshed to display graph and the sorted data but the form is reset to the top. Is there anyway to return to the position that the form was in before I clicked on the hyperlink. As it stands now, the user has to scroll down everytime they resort the data.

Thanks,

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
<SomeUsr>
posted
There are many different ways, have you tried using a window.scrollTo or window.scrollBy in the onLoad event of the body? If you are using HTML frames, you might have to change the syntax slightly.


window.scrollTo(x,y)
-- Used to scroll to a specified location


window.scrollBy(h,v)
-- Used to scroll the screen by a given number of pixels.
 
Report This Post
Expert
posted Hide Post
Evaluate what the user will do more - look at the report or look at the graph - if it's the report, put the report above the graph...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Hi Someusr,

I haven't tried the two methods that you suggested but honestly, wouldn't know how to add them to the code correctly.

Thanks,

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
<SomeUsr>
posted
Not exactly sure how you are generating your HTML code, but you can put the following code before the </BODY> tag (with <SCRIPT> and </SCRIPT> tags around it) or create an external JavaScript (js) file named whatever you want and put the following code in it:

var OrigOnLoad = document.body.onload;
document.body.onload = ScrollFx;
function ScrollFx()
{
  if (OrigOnLoad) OrigOnLoad ();
  window.scrollTo(0,300);
}


You will have to adjust the values in the scrollTo to fit your needs.

Here is a sample / test HTML file....

<HTML><HEAD><TITLE>ScrollTest</TITLE></HEAD>
<BODY>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
012345678901234567890123456789<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>A<BR>
<SCRIPT>
var OrigOnLoad = document.body.onload;
document.body.onload = ScrollFx;
function ScrollFx()
{
  if (OrigOnLoad) OrigOnLoad ();
  window.scrollTo(1000,1400);
}
</SCRIPT>
</BODY>
</HTML>
 
Report This Post
Expert
posted Hide Post
Norb, your drilldown is regenerating the entire page, graph and all, yes?
if so, you're getting exactly what you're asking for.
Can you put the elements side by side?
Table left, graphic right.
That way, the user keeps on the table when clicking.
You know how to do side by side, yes?
-HTMLFORM BEGIN
<TABLE>
<TR>
<TD VALIGN=TOP>
!IBI.FIL.MYTAB;
</TD><TD VALIGN=TOP>
!IBI.FIL.MYGRAF;
</TD></TR>
</TABLE>
-HTMLFORM END




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
Norb,

Is your output format HTML? If so then place the two components in separate IFRAMEs so that when you refresh the data component to sort it, you only update the second IFRAME. Simple to do without having to resort to Javascript etc. which is still new to you.

As a reminder, the TARGET value on your drilldown would need to be the IFRAME name attribute.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
i was thinking that, too, T, but wondering if the graf was related to the data in the table, then when the table changed, the graf should as well. Sounds like a perfect spot for wf's new flex feature.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
Hi SomeUsr,

Thanks for the reply, I will have to copy the code and see what I can come up with. I'm still very green in the javascript/WebFocus area.

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Platinum Member
posted Hide Post
Hi Susannah,

Yep, my drilldown is regenerating the entire page using the technique that you detailed in your post. I did try putting the data side by side but didn't think it looked to good. Not quite sure where I'll go from here. I'll check out Tony's ideas about the separate iFrame as well. (iFrame reminds me of iPhone but I won't start that again - hee hee)

Thanks to both you and Tony,

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Expert
posted Hide Post
Norb,

Start that subject off and it'll be your round at Summit - and I'm looking at the most expensive cocktail, reputed to be $1500 - called the Duvet Platinum Passion in New York, or maybe the Mai Tai in Northern Ireland.

Perhaps Gerry will have these at the cocktail reception? Then again maybe not Frowner

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     Return to HTML screen/file position after refresh

Copyright © 1996-2020 Information Builders