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 -> General/Other

 New window on search - newbie question

Print topic Send  topic

Author Message
flipandboef


Posts: 107
Posted: 05/25/2006, 9:53 AM

Hi to all,
Perhaps I am overlooking something..
I created a search that will bring up a list from the database..
All word fine, however.. is it possible to have the results open in a new window?
With other words: I want to have the search on one page and have the results open in a popup window..
Any suggestions would be very welcome..
Thanks!
View profile  Send private message
peterr


Posts: 5971
Posted: 05/25/2006, 1:07 PM

Modify the <form> tag in HTML to point to a new HTML target. For example change:
<form name="{HTMLFormName}" action="{Action}" method="post">

to:
<form name="{HTMLFormName}" action="{Action}" method="post" target="test">
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
flipandboef


Posts: 107
Posted: 05/25/2006, 1:10 PM

Wow, didn't think codecharge would handle that that easy! Will give it a try... Thanks Peter! :-)
View profile  Send private message
flipandboef


Posts: 107
Posted: 05/26/2006, 8:17 AM

Hi Peter,
I've tried out what you suggested. I works fine but still have one issue.. Hopefully you (or someone else :-) ) can help me out on this one..
The search does open in a new window, but the results also still show up on the main page.. I have made them "hidden" so that's partly ok..
The records total and the page totals are still showing..
Basically I like to show this on this new window (including the error message when nothing is found) but not on the main window..
Any ideas how to take care of this?
If you like I can send you the code/pages/project for this (total only 170kb)..
Let me know if you (or whoever likes helping me out) if you know the answer or like to have the code...
Thanks!
View profile  Send private message
peterr


Posts: 5971
Posted: 05/26/2006, 11:26 AM

When I test this then the main page stays unchanged, and only the pop-up page shows results.
But regardless of that, I am not sure if you have just one page with both search and grid, or you have split them into 2 separate pages. I suspect that you would need to split them, so that the main search page contains only the search form and nothing else, while the results page shows only the results.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
flipandboef


Posts: 107
Posted: 05/26/2006, 12:31 PM

Hi Peter,
I thank you so much for helping me out here.. I'm really a newbie can't you tell? :-D
Ok back to the issue, I have indeed the search form and the grid on the same page..
I see your point in this to seperate this.. Actually thought of this also but am not aware how you can split this..
On the main page I have the search that gives the variable {s_keyword}..
In the grid I have the conditions that for certain fields it must contain this {s_keyword} variable..
Last question for you Peter if you do not mind.. How do you bring this {s_keyword} over to another page?
The only thing I can think of, but are not able to test at this moment, is to create 2 pages, one with the search and one page with the grid.. As earlier you suggested let the search open in a new window with the HTML form tag: target=(I had _blank here) / page2.asp ?? (not sure about this one!)
And then as I already did, have the {s_keyword} as a condition in the grid..
Let me know if you still feel like it if this would work or if you suggest something else..
Again thank you so much for helping out..:-)
View profile  Send private message
peterr


Posts: 5971
Posted: 05/26/2006, 12:53 PM

OK. Create a new blank page, then go back to the first page, right click on the grid and select "Cut", then right-click on the new empty page and select "Paste Grid".
Then back on the 1st page select the Search form and change the "Return Page" property to point to the new 2nd page.
That's all.
{s_keyword} is not page specific and will work the same way as usual.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
flipandboef


Posts: 107
Posted: 05/26/2006, 1:22 PM

I should have known!! Thanks so much for all your help Peter.. I will try it out later today but am very sure this is going to work :-D
Have a great weekend!
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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