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 -> ASP

 Adding Parameter To 'Print' in Report

Print topic Send  topic

Author Message
Suntower

Posts: 225
Posted: 03/13/2008, 3:45 PM

Hi,

I'm trying to add a parameter to the 'printer friendly' link in a CCS 3.2 report. No matter what I do, the parameter is -not- added. I've run into this before, but I only deal with CCS every couple of months so it's just long enough that I forget the 'trick'. Grrrrrrrrrrrrrrr.... ( What was the topic about 'Quality Of Docs? :D )

I have a variable QueryDescription declared at the beginning of the report, so it's global to the EVENTS page.

I assign it a value when the SQL Query is created. I know it's getting assigned.

I added a parameter to the Report.Print link in the properties for that control. I know -that- works with a constant such as 'FUBAR', but it simply will not assign with the variable.

My assumption was that the variable is only assigned at the beginning of the ASP and isn't re-assigned to the value of the variable as the page is re-drawn.

What am I missing?

Here's the event before the Select Statement is executed...

IF rtrim(UserMasterList.DataSource.Where) <> "" THEN
QueryDescription = "For: " & UserMasterList.DataSource.Where
ELSE
QueryDescription = "For All Records"
END IF
IF rtrim(UserMasterList.DataSource.Order) <> "" THEN
QueryDescription = rtrim(QueryDescription) & " Order By: " & UserMasterList.DataSource.Order
' Response.Write QueryDescription
' Response.End
END IF

THANKS!

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

Posts: 225
Posted: 03/14/2008, 12:15 PM

Bump.

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

Posts: 225
Posted: 03/18/2008, 9:13 AM

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


Posts: 1679
Posted: 03/18/2008, 9:56 AM

http://forums.codecharge.com/posts.php?post_id=89368&s_keyword=print+link

is this the one you're looking for?

last 3 or 4 posts
_________________
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: 03/18/2008, 11:56 AM

Nope. But I figured it out. The problem (as often the case) I wasn't thinking in terms of 'stateless' programming. Whenever the page would refresh, my variable would be cleared. Grrrrrrrrr.....

So I ended up using a Session variable.

In any case... THANKS for taking the time to write!

[RANT]
Yessoftware: I wish, wish, wish, there was a way to add parameters to search forms (or the search button). That would have solved my problem right from the start. Such limitations seem totally arbitrary.

OR if there was a way to add parameters -safely- to Redirect, that would be good also.

It seems that if I want to carry over a variable from one refresh to the next I either have to add an Event @ pageunload or use a session variable. Both are kind of ugly solutions to me.

Any other ideas in cases like this?

---JC

Quote wkempees:
http://forums.codecharge.com/posts.php?post_id=89368&s_keyword=print+link

is this the one you're looking for?

last 3 or 4 posts

_________________
---On a campaign for more examples and better docs!
View profile  Send private message
wkempees
Posted: 03/18/2008, 1:54 PM

Y're welcome and keep the compliments coming, Love them.

"Suntower" <Suntower@forum.codecharge> schreef in bericht
news:647e0106194790@news.codecharge.com...
> Nope. But I figured it out. The problem (as often the case) I wasn't
> thinking in
> terms of 'stateless' programming. Whenever the page would refresh, my
> variable
> would be cleared. Grrrrrrrrr.....
>
> So I ended up using a Session variable.
>
> In any case... THANKS for taking the time to write!
>
> [RANT]
> Yessoftware: I wish, wish, wish, there was a way to add parameters to
> search
> forms (or the search button). That would have solved my problem right from
> the
> start. Such limitations seem totally arbitrary.
>
> OR if there was a way to add parameters -safely- to Redirect, that would
> be
> good also.
>
> It seems that if I want to carry over a variable from one refresh to the
> next I
> either have to add an Event @ pageunload or use a session variable. Both
> are
> kind of ugly solutions to me.
>
> Any other ideas in cases like this?
>
> ---JC
>
>
Quote wkempees:
> http://forums.codecharge.com/posts.php?post_id=89368&s_keyword=print+link
>
> is this the one you're looking for?
>
> last 3 or 4 posts
>
>
> _________________
> ---On a campaign for more examples and better docs!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.