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! |
 |
 |
Suntower
Posts: 225
|
| Posted: 03/14/2008, 12:15 PM |
|
Bump.
(Help!)
_________________
---On a campaign for more examples and better docs! |
 |
 |
Suntower
Posts: 225
|
| Posted: 03/18/2008, 9:13 AM |
|
Double help...
_________________
---On a campaign for more examples and better docs! |
 |
 |
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
|
 |
 |
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:
_________________
---On a campaign for more examples and better docs! |
 |
 |
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:
>
> _________________
> ---On a campaign for more examples and better docs!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|