CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Silly question: what syntax to use paramater passed by URL

Print topic Send  topic

Author Message
lamh56

Posts: 5
Posted: 09/08/2006, 4:12 AM

This should be very basic but I spent 2 hours already.

I have below URL link to a page:

http://192.168.4.200/itjob/location_record.asp?parrent_location_id=2

Then, on that page, I have a list box that should take value of "parrent_location_id" as default value.
And, I don't know how to specify in that listbox's default property.

I tried below:
parrent_location_id
"parrent_location_id"
$parrent_location_id
{parrent_location_id}

Nothing works.

So, what should I write?

Thanks,
Lam
View profile  Send private message
peterr


Posts: 5971
Posted: 09/08/2006, 10:46 AM

This is automatic if you name your listbox "parrent_location_id".

You can test this here:
http://examples.codecharge.com/RegistrationForm/Registration.php?state_id=1
http://examples.codecharge.com/RegistrationForm/Registr...php?state_id=10
(different state will be selected each time)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Lam
Posted: 09/08/2006, 5:14 PM

Hi,

Thanks for your help.
But , what if the correct syntax if I want to use the paramater passed by URL?

Thanks,
Lam
peterr


Posts: 5971
Posted: 09/09/2006, 11:20 AM

See http://docs.codecharge.com/studio3/html/Components/Func...CCGetParam.html

So you would just put this in your control's Default Value property:
CCGetParam("parrent_location_id", Empty)
_________________
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.