CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 field priming on insert

Print topic Send  topic

Author Message
kashiash

Posts: 9
Posted: 01/22/2006, 6:34 AM

how to set initial values for some fields on insert ?
and where put this custom code in form events ?
View profile  Send private message
peterr


Posts: 5971
Posted: 01/22/2006, 2:51 PM

You can do that in the "Default Value" property. Or you can place custom code in the Before Show event.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
kashiash

Posts: 9
Posted: 01/23/2006, 12:09 AM

i try to put parameter passed from parent page :
TextParameter.GetParam(Request.QueryString["IDWniosku"]

when i put this string into default property
i get error :

  
Compiler Error Message: CS0103: The name 'Request' does not exist in the current context  
  
Source Error:  
  
Line 119:        FkIdWniosku=new TextField("", TextParameter.GetParam(Request.QueryString["IDWniosku"]));  
 

whats wrong ?

View profile  Send private message
peterr


Posts: 5971
Posted: 01/23/2006, 12:21 AM

Try:
System.Web.HttpContext.Current.Request.QueryString("IDWniosku")

I just took that code from the "Retrieve Value for Control" action. If this doesn't work maybe you could also use that action in the Before Show event and do not use any custom code.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

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.