CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 (SOLVE)Add strings over url

Print topic Send  topic

Author Message
popularanky

Posts: 53
Posted: 01/11/2011, 8:00 AM

I want to send a parameter (subject_id) over the url but I want to add RE: to the subject, so that on the next page it will appear like this RE:subject.

If the subject is (Good Work) then the field will be (RE:Good Work)
_________________
EKERE UBONG UBONG
IT Officer
CognitiveDrive
View profile  Send private message
datadoit
Posted: 01/11/2011, 8:30 AM

CCAddParam(CCGetQueryString("QueryString",""), "subject_id",
CCToURL("RE: " . $Container->subject_id->GetValue()));

Something like that.
andy


Posts: 183
Posted: 01/11/2011, 8:32 AM

You can add parameters to the query string using the CCAddParam function

CCAddParam(QueryString, ParameterName, ParameterValue)

When you then arrive on your landing page you can retrieve the value passed in the query string using the CCGetParam function

CCGetParam(name, value)

In order to prefix the field value with "RE: " you will need to use the field in question's BeforeShow Server-side event

Something like this (untested!!):
global $myformname;  
  
$subjectstring = CCGetParam('subject_id');  
$myformname->myfieldname->SetValue("RE: ".$subjectstring);

_________________
Andy

RAD tools for rich UI controls:
http://www.koolphptools.com
View profile  Send private message
popularanky

Posts: 53
Posted: 01/12/2011, 1:06 AM

SOLVE

Thanks very much
_________________
EKERE UBONG UBONG
IT Officer
CognitiveDrive
View profile  Send private message
andy


Posts: 183
Posted: 01/12/2011, 1:36 AM

Absolutely!
That's what the above example is doing.
The example code is attached to the field's before show event.
_________________
Andy

RAD tools for rich UI controls:
http://www.koolphptools.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.

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.