Home » Developer & Programmer » Forms » Problem with list item (Oracle Forms 10g, Windows XP)
Problem with list item [message #377295] Mon, 22 December 2008 04:39 Go to next message
paulor
Messages: 15
Registered: December 2008
Junior Member
Hi,
My problem with list item consists on changing items in the list (it is Combo Box type). When I set Update_allowed property to property_true it works (in menaning item change and goes into main view of list item), but in that case user can modify value by keyboard. I need list item which will be read-only, but unfortunately when I set Update_allowed property to property_false I can't change item by clicking on it. I tried to change focus on another item of data block immediately after KEY-DOWN or MOUSE-CLICKED triggers but it is not a good solution. Any suggestions will be appreciated.
Re: Problem with list item [message #377301 is a reply to message #377295] Mon, 22 December 2008 04:59 Go to previous messageGo to next message
dhanuka.rajesh
Messages: 49
Registered: March 2008
Location: Mumbai
Member
As far as i can get you question correct, you want once user has selected list item value he should not be allowed to make further changes to it.

Try using list item instead combo list item.
And user "Update only if null property"

When the record gets posted/commited to database following item is not allowed to be modified.



Best Regards,

Dhanuka. Rajesh

Re: Problem with list item [message #377303 is a reply to message #377301] Mon, 22 December 2008 05:05 Go to previous messageGo to next message
paulor
Messages: 15
Registered: December 2008
Junior Member
Maybe I precise a little bit, firstly my list item is non-database object, I only selects data from database for displaying all listed value, secondly I want to have a list item when user will be able to change value only by clicking on item from extended list (so not only once but in every case when user wants), not by changing value by inserting signs by keyboard into list item.
Re: Problem with list item [message #377310 is a reply to message #377303] Mon, 22 December 2008 05:32 Go to previous messageGo to next message
dhanuka.rajesh
Messages: 49
Registered: March 2008
Location: Mumbai
Member
secondly I want to have a list item when user will be able to change value only by clicking on item from extended list (so not only once but in every case when user wants), not by changing value by inserting signs by keyboard into list item.

It will be great if you can provide with an example.


Best regards,

Dhanuka. Rajesh
Re: Problem with list item [message #377314 is a reply to message #377310] Mon, 22 December 2008 05:45 Go to previous messageGo to next message
paulor
Messages: 15
Registered: December 2008
Junior Member
OK I will try, so I need list item which will work like standard drop down list (that's why I choosed combo box type) in for example asp.net or any other platforms with visual programming. User cliks on something like textbox and in that moment get underneath unwrapped list with values to select. This can happen multiple times when user cliks. And that described way is only to change value in textbox. Now I have visually the same effect but user can clik on textbox, focus is set and user can for example edit or delete contain of the textbox. It is problem for me because data from this drop down list is redirected to other place. Without possibility of read only property for that kind of drop down list I probably will have to do validation :/ . If something is still not clear please give message.
Re: Problem with list item [message #377425 is a reply to message #377314] Tue, 23 December 2008 00:05 Go to previous messageGo to next message
dhanuka.rajesh
Messages: 49
Registered: March 2008
Location: Mumbai
Member
IF (NEW_SIGN_ON Time) < Max(System Out Time) then
System Sign out time = Max(System Out Time)

Elsif (NEW_SIGN_ON Time) >= Max(System Out Time) then
System Sign out time = NEW_SIGN_ON Time + 16 hours

End If;

This should resolve your issue.

Dhanuka. Rajesh
Re: Problem with list item [message #377484 is a reply to message #377425] Tue, 23 December 2008 03:57 Go to previous messageGo to next message
paulor
Messages: 15
Registered: December 2008
Junior Member
But where I should insert this code ????
Re: Problem with list item [message #377532 is a reply to message #377484] Tue, 23 December 2008 06:31 Go to previous message
paulor
Messages: 15
Registered: December 2008
Junior Member
OK I solved my problem. I used other way then suggested Smile. Partly it is my fault because I assumed that only list item of combo box type would reach my expectations. Today I tried use list item of poplist type and this is what I need. It works similar to that element which I created earlier beside it is read-only. Sometimes the most simple solutions are the best. Thanks for your attention and time spent on this issue.

Best regards,

Paweł
Previous Topic: Cursor in Oracle Forms
Next Topic: Inserting into schema of currently logged in user
Goto Forum:
  


Current Time: Sun Feb 09 10:00:24 CST 2025