CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Change an HTML Form Fields VALUE Before Display?

Print topic Send  topic

Author Message
Chris Moore
Posted: 07/21/2003, 1:33 PM

I have a search results Grid that displays some search results. The 2nd lin
eof the grid also contains 2 PayPal buttons (Add to cart, View cart). These
buttons have 'dummy' test in 2 fields: item_name & item_number. When the
Grid is displayed, I need to be able to change these Values to their
correct values. I have tried item_name.value = "XX",
gridname.item_name.value = "xx", Search.GridName.item_name.value = "xx". I
am trying to add this code in the Before Show event of the Grid. None of
these work. How do I change an HTML forms field values from my ASP code?

Thanks

Chris
DonB
Posted: 07/21/2003, 2:35 PM

You'll have to change the values in the BeforeShowRow event, so that the row
in which the fields appear will have been created and is available to
receive the data values.

Since you are writing data directly and not pulling values from the database
that feeds the grid, these fields will need to be set to "Code Expression"
to tell ccs you want to manage the data values thru code.

Lastly, the values will be referenced as gridname.fieldname.Value (the exact
name will be shown to you in the event name which will look like
gridname_fieldname_BeforeShowRow(). Just drop the "_BeforeShowRow()" and
change the other "_" to "." and you will have the field reference.

DonB



"Chris Moore" <chris@dblayout.com> wrote in message
news:Xns93BF9E74DAAC8cabubba@66.180.229.147...
> I have a search results Grid that displays some search results. The 2nd
lin
> eof the grid also contains 2 PayPal buttons (Add to cart, View cart).
These
> buttons have 'dummy' test in 2 fields: item_name & item_number. When the
> Grid is displayed, I need to be able to change these Values to their
> correct values. I have tried item_name.value = "XX",
> gridname.item_name.value = "xx", Search.GridName.item_name.value = "xx". I
> am trying to add this code in the Before Show event of the Grid. None of
> these work. How do I change an HTML forms field values from my ASP code?
>
> Thanks
>
> Chris

Chris Moore
Posted: 07/21/2003, 2:45 PM

These PayPal buttons & hidden fields are in the Header row of the Grid so
there is no Control Source for them. I tried adding my code to the
BeforeShowRow but it still returns as an undefined variable.

argggghhhhh!!!!

Thanks for the help.

Chris



"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in
news:bfhmam$gd6$1@news.codecharge.com:

> You'll have to change the values in the BeforeShowRow event, so that
> the row in which the fields appear will have been created and is
> available to receive the data values.
>
> Since you are writing data directly and not pulling values from the
> database that feeds the grid, these fields will need to be set to
> "Code Expression" to tell ccs you want to manage the data values thru
> code.
>
> Lastly, the values will be referenced as gridname.fieldname.Value (the
> exact name will be shown to you in the event name which will look like
> gridname_fieldname_BeforeShowRow(). Just drop the "_BeforeShowRow()"
> and change the other "_" to "." and you will have the field reference.
>
> DonB
>
>
>
> "Chris Moore" <chris@dblayout.com> wrote in message
>news:Xns93BF9E74DAAC8cabubba@66.180.229.147...
>> I have a search results Grid that displays some search results. The
>> 2nd
> lin
>> eof the grid also contains 2 PayPal buttons (Add to cart, View cart).
> These
>> buttons have 'dummy' test in 2 fields: item_name & item_number. When
>> the Grid is displayed, I need to be able to change these Values to
>> their correct values. I have tried item_name.value = "XX",
>> gridname.item_name.value = "xx", Search.GridName.item_name.value =
>> "xx". I am trying to add this code in the Before Show event of the
>> Grid. None of these work. How do I change an HTML forms field values
>> from my ASP code?
>>
>> Thanks
>>
>> Chris
>
>
>

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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