Modify Value of Text Field During Runtime [message #346764] |
Tue, 09 September 2008 12:09  |
davydany
Messages: 11 Registered: September 2008 Location: New Hyde Park
|
Junior Member |
|
|
I'd like to modify a textbox's value right after the form loads (POST-FORM). I tried doing :BLOCK:ITEM := 'hi', but it says bad binding variable. Any suggestions?
(I looked around because this looks like a pretty simple thing but I couldn't find it.)
|
|
|
|
|
|
Re: Modify Value of Text Field During Runtime [message #347406 is a reply to message #346764] |
Thu, 11 September 2008 09:25   |
davydany
Messages: 11 Registered: September 2008 Location: New Hyde Park
|
Junior Member |
|
|
You're all right guys. I'm such a newbie at this.
szogu:
Yes I meant :BLOCK.ITEM := 'hi'
Littlefoot:
Yeah, I realized POST is for after. PRE is for before. (duh!)
djmartin:
I want to change this during runtime. I didn't see any properties that does this or builtins that did this.
Basically, the user enters a date into a text item, and it loads up the data that was entered on that date into the system.
Any thoughts? Thanks!
|
|
|
Re: Modify Value of Text Field During Runtime [message #347420 is a reply to message #347406] |
Thu, 11 September 2008 10:22   |
szogu
Messages: 21 Registered: July 2008
|
Junior Member |
|
|
1.
Quote: | I'd like to modify a textbox's value right after the form loads
|
2.
Quote: | Basically, the user enters a date into a text item
|
Now I am getting confused,
Do you want users to enter the data or the application to enter the data.
Quote: | I didn't see any properties that does this or builtins that did this
|
Initial Value is one of the properties of text_items,check boxes etc under DATA on the list of properties (if you open property palette).
You can use that to assign a default value (each time a new record is created) (as David said)
|
|
|
|
Re: Modify Value of Text Field During Runtime [message #347463 is a reply to message #346764] |
Thu, 11 September 2008 13:55   |
davydany
Messages: 11 Registered: September 2008 Location: New Hyde Park
|
Junior Member |
|
|
Yeh. Obviously, I'm confused. Sorry for wasting your time. (I'm doing too many stuff at once)
so to clarify this for once in for all, this is what I want.
Please Ignore what I said the second time. Like I said, i was just doing too many things at once and I didn't think it clearly what I wanted to ask.
Ok. I'm working on Oracle Forms as an intern. And I'm learning this as I go on. So, the thing is. I want to input data into a text field.
So now, I have two text items that the user inputs the date and by a dept ID. My code queries the DB with the date and the dept ID to get info about who made the entry and update this text item during runtime dynamically and have his/her name entered into that 3rd item. I originally had both the questions that I placed, but I figured out the second one and I was thinking about it while typing. (sorry for wasting your time)
Thanks.
|
|
|
|
|