montymoose
Posts: 85
|
| Posted: 12/02/2007, 8:09 AM |
|
Hi,
Can I create a button which when clicked will set a 'record->textarea' value to a session varialbe without submitting the grid or refreshing the page? If not a button then a hyperlink or something.
My users will be half way through filling in the grid, when they may wish to retrive this paticular session varialbe you see.
Many thanks,
M00S3
|
 |
 |
datadoit
|
| Posted: 12/02/2007, 4:06 PM |
|
montymoose wrote:
> Hi,
>
> Can I create a button which when clicked will set a 'record->textarea' value to
> a session varialbe without submitting the grid or refreshing the page? If not a
> button then a hyperlink or something.
>
> My users will be half way through filling in the grid, when they may wish to
> retrive this paticular session varialbe you see.
>
> Many thanks,
>
> M00S3
> ---------------------------------------
Well here's how I made it happen...
Within the confines of your form, put in a hidden field, and set an
action to Retrieve Value for Control, and set the value of that hidden
field to your session variable.
Next, place your button in your form, disable any validation for the
button, and make sure the button type is set to just 'button' (not submit).
Then, in the button's onclick event (under the format tab), put
something like:
document.YourForm.TextAreaField.value = document.YourForm.HiddenField.value;
Where YourForm is the name of your form, TextAreaField is the name of
your text area field, and HiddenField is the name of your hidden field.
|
|
|
 |
|