Magnus
|
| Posted: 10/24/2002, 7:07 AM |
|
This is what I have.
1. Search form
2. Grid that shows result of the search.
3. Download data to Excel link in the Footer of the Grid.
4. Third page with grid that redirects the output to Excel.
My search parameters are not passed correctly between the second and third page. I am new at this and I don't know what I am doing wrong. I get a result in Excel but it is not the right result. The third page has no sort or navigation options. I am using PHP4 with Templates.
This is the string I use to create the link on the second page:
<p><a href="test.php?MGR_PAYOUT_SUMM=SearchInType&FormAction=search&{FormParams}">Export To MS Excel</a></p>
I have looked at Bugtrack for guidence, but since I am new at this I am having problems following everything that is happening. Also Bugtrack is using an older version of common.php so it doesn't look like my code.
Greatful for any help.
Thanks,
Magnus
|
|
|
 |
kburnett
|
| Posted: 10/24/2002, 10:20 PM |
|
question: is your link a ccs link? or did you enter it manually in the html?
if ccs link...
on the link properties, set "preserve paramaters" to get or post, despending your first pages' form action. this will automatically carry the parameters over.
if a manual link...
then you will need to create labels in the link and set the value to CCGetParam("some_param","default_value")
eg. <p><a href="test.php?MGR_PAYOUT_SUMM={label1}&FormAction=search&{FormParams}">Export To MS Excel</a></p>
and label 1's value = CCGetParam($MGR_PAYOUT_SUMM,"")
and so on.
...
is that what you are looking for?
|
|
|
 |
Magnus Andersen.
|
| Posted: 11/11/2002, 11:53 AM |
|
Thanks,
This is what I am looking for. I did add the link myself. To do a CCGetParam on this page could be bad. The end-user has up 12 options. I'd like to create a ccs link but I can't figure out how to do it. Can anyone tell me real quick how it is done?
Magnus
|
|
|
 |
|