CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> IDE/GUI

 Passing Parameters To Called Page After Update

Print topic Send  topic

Author Message
Suntower

Posts: 225
Posted: 08/20/2006, 5:06 PM

...How do you do it? You can add parameters to a hyperlink, but what about the Update and Add buttons?

When users finish an Update, I want to pass a value from the changed record back to a 'Update Complete!' page. But it appears that the controls from the caller page do -not- get passed to the page to return to in the Update or Insert or Delete controls.

Ideas?

---JC
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
Suntower

Posts: 225
Posted: 08/24/2006, 11:03 AM

BUMP!

C'mon, I know you're out there, I can hear ya typing.

Simple question: How does one add a parameter to the Redirect page when a user presses the Submit button? I see in the generated code something like:

Redirect = "ordersubmitted.asp?" & CCGetQueryString("QueryString", Array("ccsForm"))

...but how does one add parameters to the QueryString or to 'Array(ccsForm")' ?

Ideas?

---JC
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/24/2006, 5:12 PM

BUMPED

Checkout Helpfile or online docs for:
- Add URL Parameters to a Page
- Dynamically Redirect Users to Another Page (recommended)
- Redirect Variable (ASP) - how to add ?article_id=" $ max_id
- CCAddPAram (ASP) - in the GET varables

Come on, I found these in less than 2 minutes.

Quote :
ASP
Function Form1_Insert1_OnClick(Sender) {
Redirect = "InsertMessagePage.asp"
}
Function Form1_Update1_OnClick(Sender) {
Redirect = "UpdateMessagePage.asp"
}

AND

Response.Redirect FileName & "?" & CCAddParam(Request.ServerVariables("QUERY_STRING"), "status", 1)



Walter
paypal 25$ for complete docs on "How to search a Helpfile an navigate the online docs"






_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
Suntower

Posts: 225
Posted: 08/24/2006, 8:45 PM

Cute. Very cute. AGAIN: If the docs were clearer I wouldn't have had to experiment so...

1. In the submit button properties in the Designer, I had the page to return to (aka the Redirect). I -assumed- there was a way to simply add parameters to this. Evidently there is not IN THE DESIGNER.

OK, so I -did- try adding to the Update_Onclick event. That does -NOT- work UNLESS you first remove the Page To Return to from the Designer. I dunno why, and the reason I care is that I want to understand the order in which events fire. This is not made clear in the docs.

2. Evidently, the Button_Update_Onclick event fires -before- the Button_Update event... again not clear to me where in the sequence this happens until I painstakingly went through a bunch fo response.writes to suss it out. So my Redirect was happening -before- the variables I needed were being assigned---hence my 2nd problem passing parameters.

I could go on with other examples as to my difficulties even after reading each of the topics you mention, but suffice it to say, I -do- know how to read an OLH file, sir.

If I sound defensive, it's because I -do- try to read this stuff and I don't think I'm being unreasonable in wanting this 'productivity enhancer' to be a bit more self-explanatory.

I see no reason why the designer lets one add parameters to an <a> but not to a form button.

I also see no reason to not document the exact order in which events fire as the page is processed.

All that said, thanks Walter, for trying to help. It is -much- appreciated, even though I seem to be trying your patience.

---JC
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
WKempees
Posted: 08/25/2006, 1:47 AM

Suntower,
Be aware I don't do ASP But:
Quote :
1. In the submit button properties in the Designer, I had the page to
return to
(aka the Redirect). I -assumed- there was a way to simply add parameters to
this. Evidently there is not IN THE DESIGNER.

Not in the Button itself, but that is really not where I would want it, it
is in the Before/AfterExecute I/U/D.
This where we react to different sítuation and decide what extra's to do
after I/U/D, the redirect is part of that (personaly).
Also if you build this, and later decide that for some, I/U/D is not
allowed, your coding stands.

Quote :
OK, so I -did- try adding to the Update_Onclick event. That does -NOT- work
UNLESS you first remove the Page To Return to from the Designer. I dunno
why,
and the reason I care is that I want to understand the order in which
events
fire. This is not made clear in the docs.
Note: The Redirect variable can be modified in the onClick event of the
Button only if the Return Page property of this Button is empty, otherwise
Redirect will be overwritten in page's code.

Quote :
All that said, thanks Walter, for trying to help. It is -much- appreciated,
> even though I seem to be trying your patience.

Well said.

Walter

Suntower

Posts: 225
Posted: 08/25/2006, 3:53 PM

Quote WKempees:
Note: The Redirect variable can be modified in the onClick event of the
Button only if the Return Page property of this Button is empty, otherwise
Redirect will be overwritten in page's code.

You got me on that one. That said.... (aside to Yessoftware) the SEARCH in the OLH is -very- difficult.

Just one of 100 examples: Search for the word REFERER.

On my system you get 100+ topics that contain the keyword 'reference'. Not that helpful.

I've got a thick skin and can take constructive criticism. I sure hope YS can do so as well.

OK, I'm done.

Thanks again to Walter for trying.

---JC
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/26/2006, 4:33 AM

Handy post:
http://forums.codecharge.com/posts.php?post_id=69175&s_...ing+online+docs


_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
Suntower

Posts: 225
Posted: 08/26/2006, 11:00 AM

Excellent. Yeah, I use this for other sites. Dunno why it never occurred to apply it to CCS.

Thanks for the reminder, sir.

---JC

Quote wkempees:

_________________
---On a campaign for more examples and better docs!
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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