Home » Developer & Programmer » Forms » poplist
poplist [message #488856] Tue, 11 January 2011 12:53 Go to next message
memua
Messages: 27
Registered: January 2011
Location: riyadh
Junior Member
hi
i have a column in my datablock comming from another table i want to select all its values in that other table and put it in my poplist so that when the user is selecting it it stors in this table too
please help
hope you understood what i meant
Re: poplist [message #488913 is a reply to message #488856] Wed, 12 January 2011 04:16 Go to previous messageGo to next message
memua
Messages: 27
Registered: January 2011
Location: riyadh
Junior Member
no replys !!
can some one please i only need create a poplist employee_id its adatabaseitem and its a forign key for the table payments this poplist in the payments i want to get its values from the employee_id in the table employees and whenever a new employee is added to the table employee the id autometically is added to the poplist in the payments
please help me i only have one week for graduation. please
Re: poplist [message #488919 is a reply to message #488913] Wed, 12 January 2011 04:36 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
You'll probably want to use the populate_list and create_group_from_query builtins. Form builder help lists the syntax for both with examples.
Re: poplist [message #489428 is a reply to message #488919] Sun, 16 January 2011 06:01 Go to previous messageGo to next message
memua
Messages: 27
Registered: January 2011
Location: riyadh
Junior Member
it populated the list but when i select it clears thet others
Re: poplist [message #489429 is a reply to message #489428] Sun, 16 January 2011 06:35 Go to previous messageGo to next message
memua
Messages: 27
Registered: January 2011
Location: riyadh
Junior Member
please help me
Re: poplist [message #489430 is a reply to message #489429] Sun, 16 January 2011 07:10 Go to previous messageGo to next message
memua
Messages: 27
Registered: January 2011
Location: riyadh
Junior Member
please chech the when list change for the emlployee_id in payments and when new form instans i really tried to find the problem so please help me know where iv gone wrong
Re: poplist [message #489431 is a reply to message #489430] Sun, 16 January 2011 07:13 Go to previous messageGo to next message
memua
Messages: 27
Registered: January 2011
Location: riyadh
Junior Member
this is the script
Re: poplist [message #489432 is a reply to message #489431] Sun, 16 January 2011 07:25 Go to previous messageGo to next message
memua
Messages: 27
Registered: January 2011
Location: riyadh
Junior Member
why no one replies i hope you are not fed of me im really a biginner in oracle and im graduating but we never went deep in oracle 10g so please i need your support
Re: poplist [message #489447 is a reply to message #489432] Sun, 16 January 2011 11:51 Go to previous messageGo to next message
memua
Messages: 27
Registered: January 2011
Location: riyadh
Junior Member
??
Re: poplist [message #489455 is a reply to message #489447] Sun, 16 January 2011 14:23 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
It could be we're not answering you cause we haven't been on the internet all day. I've only just seen this, you need to learn some patience.

I told you to use populate_list, you haven't.
The when_list_changed doesn't make a lot of sense.
This:
if NVL(LENGTH( (:PAYMENTS.EMLPLOYEE_ID) ),0)<>0 then
Is equivalent to:
IF :PAYMENTS.EMLPLOYEE_ID IS NOT NULL

Populating and then immediately deleting a group is pointless. You have to assign it to the list item first - using populate_list.
This
set_item_property('payments.emlployee_id', QUERY_DATA_SOURCE_NAME, v_query);
Makes no sense, that property is a block property not an item one.
I also don't understand why you're using execute_query or raise form_trigger_failure in that trigger.


The when-new-form-instance looks ok at a glance except that the variable I should be a number not a varchar. I would have used populate_list rather than add_list_element. Does it do what you expect?
Re: poplist [message #489548 is a reply to message #489455] Mon, 17 January 2011 08:17 Go to previous message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
cookiemonster wrote on Sun, 16 January 2011 15:23
you need to learn some patience.


And manners.

If it's so important to you to get an answer right away, then pay a consultant or put in an SR with Oracle. We are not a paid service here. We are all volunteers.
Previous Topic: Detect browser name
Next Topic: New window opened as deactivated
Goto Forum:
  


Current Time: Thu Sep 19 13:55:23 CDT 2024