Home » Developer & Programmer » Forms » page wise displaying data (oracle 10g forms)
page wise displaying data [message #452796] Sat, 24 April 2010 12:20 Go to next message
kalpataru
Messages: 72
Registered: January 2010
Location: INDIA
Member
hi all,
i want displaying the query data page wise.
i want place 4 buttons
1 for 1st page, 2nd for next page, 3rd nxt page and 4th for last page.

how can i do this through programming in oracle forms 10g.

please give me the entire process of doing this.

i am waiting for your response.
Re: page wise displaying data [message #452803 is a reply to message #452796] Sat, 24 April 2010 13:55 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
What do you call "a page"?

In my opinion, you should abandon that idea (4 buttons for 4 pages), but use a tab canvas (with 4 tabs) instead.
Re: page wise displaying data [message #453430 is a reply to message #452796] Wed, 28 April 2010 23:42 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
In your When-Button-Pressed do a go_item to an item on the next page (whatever that is).

David
Re: page wise displaying data [message #453757 is a reply to message #453430] Fri, 30 April 2010 12:01 Go to previous messageGo to next message
kalpataru
Messages: 72
Registered: January 2010
Location: INDIA
Member
i think you don't understand my question

i have oracle query of 100 records and i have a grid in oracle 10g forms number of record displayed is 50.

how can display the query data into grid by page wise means
50 records per gid means/50 records per page without scroll bar.

i have four button

please tell me through programming.
Re: page wise displaying data [message #453772 is a reply to message #453757] Fri, 30 April 2010 15:22 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Use GO_RECORD built-in. Calculate target record number as "current record" +/- 50 records.
Re: page wise displaying data [message #453795 is a reply to message #453772] Sat, 01 May 2010 05:12 Go to previous messageGo to next message
kalpataru
Messages: 72
Registered: January 2010
Location: INDIA
Member
thanks for your quick replay

Use GO_RECORD built-in. Calculate target record number as "current record" +/- 50 records.

i don't understand what to do from the above line.

please give me the details about the procedure for doing
page wise display...

can you give me sample copy without using the block level...
only through programming....
Re: page wise displaying data [message #453810 is a reply to message #453795] Sat, 01 May 2010 13:23 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Misunderstanding is mutual.

I'm afraid that nobody understands what you are talking about. I tried twice, David once - we failed. Either we are incapable of imagining your problem, or you didn't explain it well.


I thought that, as there are "4 pages" (logica pages, as far as I understood), you want to jump 50 records up or down. So, find out where you are now (:system.trigger_record). If going up for 50 records, GO_RECORD(current record - 50). If going down for 50 records, GO_RECORD(current_record + 50).
Re: page wise displaying data [message #453955 is a reply to message #453795] Mon, 03 May 2010 02:50 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
What's wrong with the 'Page Up' and 'Page Down' buttons?

David
Re: page wise displaying data [message #453959 is a reply to message #453955] Mon, 03 May 2010 03:26 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
They don't scroll 50 record at once, but one by one (if I got the idea).
Re: page wise displaying data [message #454073 is a reply to message #453959] Tue, 04 May 2010 00:52 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
'Up' and 'Down' move the focus one line at a time.

Oops! My bad. That should be 'scroll_up' and 'scroll_down'.

David
Previous Topic: frm-18108 unable to load the following objects
Next Topic: hide user name and password
Goto Forum:
  


Current Time: Fri Sep 20 02:34:00 CDT 2024