Home » Developer & Programmer » Forms » I have a problem with forms
I have a problem with forms [message #411189] Thu, 02 July 2009 06:22 Go to next message
ketki_n
Messages: 8
Registered: July 2009
Junior Member
My form is displaying say some 50 records.user needs to select any 1 record amongst all available values.The selected record should get highlighted.I tried to use go_record(record_no),but its not working.Even i tried to use :system.cursor_record to obtain the record number and then called go_record.But still its not working.
Re: I have a problem with forms [message #411264 is a reply to message #411189] Thu, 02 July 2009 22:24 Go to previous messageGo to next message
ap_karthi
Messages: 87
Registered: October 2007
Location: Bangalore
Member
If you need to highlight a row, use visual attribute.
1. create a visual attribute
2. Set_Block_Property(<block_name>, Current_Record_Attribute,<visual attribute name>);
Re: I have a problem with forms [message #411290 is a reply to message #411189] Fri, 03 July 2009 00:10 Go to previous messageGo to next message
Littlefoot
Messages: 20901
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
ketki_n
user needs to select any 1 record amongst all available values (...) I tried to use go_record(record_no) ...

How does user do that? Does he/she types record number, presses <Enter> (or some button) and expects Forms to navigate to that particular record? Or is it something different?

As of record highlighting, you might also check use of SET_ITEM_INSTANCE_PROPERTY (which is then to be used for every item in a record).
Re: I have a problem with forms [message #411364 is a reply to message #411290] Fri, 03 July 2009 04:34 Go to previous messageGo to next message
ketki_n
Messages: 8
Registered: July 2009
Junior Member
the user will press a 'select' button in order to select the record.the selected record should get highlighted and the selected record will be passed to some other form.
thank u.
Re: I have a problem with forms [message #411365 is a reply to message #411364] Fri, 03 July 2009 04:39 Go to previous messageGo to next message
Littlefoot
Messages: 20901
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
OK then, user will already be in that record. All you have to do is to highlight it.

What piece of code did you manage to write (using information you already got in this thread)?
Re: I have a problem with forms [message #411660 is a reply to message #411189] Mon, 06 July 2009 04:51 Go to previous message
ketki_n
Messages: 8
Registered: July 2009
Junior Member
hi everyone,
i m done with it.i used two visual attributes and used pre and post text item triggers.Finally i used set_item_instance_property in those triggers.
Previous Topic: move cursor (next item) to a text item lower in sequence (merged 3)
Next Topic: Partial Status change for record
Goto Forum:
  


Current Time: Sat Dec 10 16:57:24 CST 2016

Total time taken to generate the page: 0.14116 seconds