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 |
 |
 |
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 |
 |
 |
popularanky
Posts: 53
|
| Posted: 01/12/2011, 1:06 AM |
|
SOLVE
Thanks very much
_________________
EKERE UBONG UBONG
IT Officer
CognitiveDrive |
 |
 |
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 |
 |
 |
|