Hi guys i am using a dropdownlist which have the value please specify other, when that value is selected in prompts out a textfield which has the value please specify other, but for the user to type in anything in the textfield he has to delete the value manually..i am looking for a code which can delete the value automatically when the user type in the textfield..
Using jQuery, you can make textbox hints. Even better, reuse someone else's code:
http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
Example: http://remysharp.com/wp-content/uploads/2007/01/input_hint.html
Related
How do I find where the value for a display item in coming from in Oracle forms? The property pallete shows the database item is null, as it's a display item. I need to know which column/table populates the value. I am a beginner in forms any help would be highly appreciated
Opened property pallete, checked that
In Forms, everything is set via PL/SQL units so - if you want to find something, search! Here's how:
I am trying to protect my checkboxes and dropdown lists in a way that other user arent able to delete the cell but can still change the value of the checkbox.
Is that possible or not?
unfortunately, this is not possible. edit rights include the right to edit/set the cell to be empty.
best you can do is to set up some color alert if a cell becomes empty like:
I'm building a jsp which will let user select data from database, it will uploads when page will render for user. But the problem is <form:select> don't let user insert new value his own one if the value not represented in the list(doesn't inputed in database).
I need let user put his own value if it's doesn't not exist in the <form:select>.
It's kinda has to be <form:input> with <form:select><form:options items="myList"></form:select>.
Could you help me with this. Thank you
You can provide textbox and dropdown.Make textbox enable only if user didnt select any value from dropdown allow him to enter value. If he selected any value from dropdown make the textbox disable.for this you should use bit of jquery or javascript.
I have in my program a textfield which represents a fileName from a model object using bindings. I want that this textField could be used to enter a new fileName and after user presses Enter it should send the message to my model object that value of fileName has changed in my textField, then inside my model object the method for checking if such filename can be used is called. And if it returns true, then it should apply new value to my model object, if not, then value in my textField should undo to initial value.
Does somebody know how it could be implemented? I can validate my value but I can't make my textField refresh to initial value. As for both changing the model object value, and texField refreshing should be used single method which is KVC compliant I don't know how to implement such behaviour.
Any help would be very appreciated.
This doesn't sound like a good UX to me; as a user, I would be upset to find that if I made a simple typo in a text field, it completely erased what I had just input. It would be much better to show a message indicating what was wrong and how the user can fix it. Nonetheless...
I think you should set up a text field delegate. Have the delegate keep a variable holding the last valid string that was input. Then in textFieldShouldEndEditing:, do your check for validity, and if the check does not pass, set the text field's value to that variable and return NO. If it does pass, change the variable to hold the new valid string and return YES.
I have created a Combo box using HIComboBoxCreate(). When I have a long string in the dropdown list, it goes beyond the screen and the starting of the string is not visible. I want the string to be truncated with ellipsis in such a case. I have looked into the ComboBox attributes but couldn't find any that I can use to set this. I'm ready to write some extra code to do this, but I'm not sure if it possible. Can someone please help?
Try the HIViewSetTextTruncation function.