CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Sending values between grid and record.

Print topic Send  topic

Author Message
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
View profile  Send private message
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.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.