Home » Developer & Programmer » Forms » stacked canvas with scrollbar (oracle forms)
stacked canvas with scrollbar [message #312458] Tue, 08 April 2008 23:30 Go to next message
Altitude
Messages: 6
Registered: April 2008
Location: bangalore
Junior Member
Hi,

I have a problem with the content and stacked canvas.
problem description:
there is a scroll bar attached to the stacked canvas. i click a button to open my content canvas within which there is one stack canvas. the second time when i open the same canvas, the scroll bar is not getting refreshed. the scrollbar remains at the same place where i had dragged it before.

please help me out how to refresh the scroll bar position.

thnx.
Re: stacked canvas with scrollbar [message #312483 is a reply to message #312458] Wed, 09 April 2008 00:43 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I think you need to either requery the block to go back to the beginning or to do a 'go_record(1);' to get back to the first record.

David
Re: stacked canvas with scrollbar [message #312561 is a reply to message #312458] Wed, 09 April 2008 04:42 Go to previous messageGo to next message
Altitude
Messages: 6
Registered: April 2008
Location: bangalore
Junior Member
Hi,

I would like to add the details further.

the stacked canvas has a series of text items and not the records.
whereas the content canvas on which the stacked canvas sits, has two buttons(save and exit).

so when i click on exit and then once again click on th create button, the scroll remains at the previous position. i want the scrollbar to be refreshed.

thnx.
Re: stacked canvas with scrollbar [message #312824 is a reply to message #312561] Wed, 09 April 2008 20:04 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
On which canvas is this third button 'create'?

Post an image of your form and NOT as a 'bmp' file.

David
Re: stacked canvas with scrollbar [message #312860 is a reply to message #312824] Wed, 09 April 2008 23:46 Go to previous messageGo to next message
Altitude
Messages: 6
Registered: April 2008
Location: bangalore
Junior Member
Hi David,

I am sending you two snapshots. The first one shows you where the 'create button' is. It is in a different canvas.

The second image shows that after scrolling the scroll bar and clicking on exit, and again clicking on 'create' button, the scroll bar is not refreshed.

but when i close the form and again open it, the scroll bar is refreshed. the problem happens only in the same session of the form.

as per your question,
'create' button is in vertical toolbar canvas.
the 'save' and 'exit' button are in content canvas.(say page_3)
the scroll bar is in the stacked canvas.(say page_4)

i hope i have answered your question. please help me out to fix this. /forum/fa/4126/0/
  • Attachment: first_img.jpg
    (Size: 1.37MB, Downloaded 5012 times)
Re: stacked canvas with scrollbar [message #312862 is a reply to message #312860] Wed, 09 April 2008 23:47 Go to previous messageGo to next message
Altitude
Messages: 6
Registered: April 2008
Location: bangalore
Junior Member
sorry..
Added on to the previos mail, the second image is here....
Re: stacked canvas with scrollbar [message #312867 is a reply to message #312862] Thu, 10 April 2008 00:06 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
These graphics are way-way too big. The reason we ask for 'jpeg' files instead of 'bmp' files to keep them small.

I assume the scroll bar, although horizontal, actually moves the fields vertically.

Use a 'go_item' to go to the first item.

David
Re: stacked canvas with scrollbar [message #312877 is a reply to message #312867] Thu, 10 April 2008 00:43 Go to previous messageGo to next message
Altitude
Messages: 6
Registered: April 2008
Location: bangalore
Junior Member
i have already tried using go_item.... but its not getting refreshed.
Re: stacked canvas with scrollbar [message #312913 is a reply to message #312877] Thu, 10 April 2008 01:50 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I assume you did a 'go_item' to the first item, not the current item, and in a trigger which permits navigation. Try adding a 'synchronize' after the go_item.

David
Previous Topic: combobox validation
Next Topic: to create views from forms
Goto Forum:
  


Current Time: Sat Feb 08 20:52:33 CST 2025