This topic is locked

Details from MasterDetail to appear in new window

10/16/2006 12:02:23 PM
ASPRunnerPro General questions
skemp author

Hi,
I have created a page with master-details and would like for the detail information to appear in a new window so that when the user clicks on the link that shows the details for the selected record they don't lose the records they last searched on.
Here's the sequence of events:
The page is set to show NO records when the user launches it

The user goes to the 'Advanced Search' page to search on multiple columns, enters their criteria and clicks the search button

The page then displays records based upon the criteria they entered.

Now the user would like to see details so they click the details link for the selected record.

Now when they return back to the Master list, the records they initially searched on is gone and they have to re-do the search.
I'm trying to make it so that when they return from viewing detailed information that whatever records were there when they did that initial search will still be present on the page.
PS. I notice that if I make the page so that it returns records instead of setting it so that it does not upon launching the list page, it will keep the searched on records.

But if I set the page to show NO records then it does not keep the records that the user searches on after returning from a details page.
I hope this doesn't sound too confusing. I'm trying to supply you with as much information as possible.
Any help is greatly appreciated!
Sheryl

J
Jane 10/17/2006

Sheryl,
to show details in the new window open templates/..._list.htm file, find following line:

<A href="DetailsTableName_list.asp?{$row.1DetailsTableName_masterkeys}">DetailsTableName</A>



and replace it with this one

<A href="DetailsTableName_list.asp?{$row.1DetailsTableName_masterkeys}" target=_blank>DetailsTableName</A>



DetailsTableName is your actual table name.

skemp author 11/1/2006

Sheryl,

to show details in the new window open templates/..._list.htm file, find following line:
and replace it with this one
DetailsTableName is your actual table name.


Hi,
I looked for the templates/..._list.htm file and did not find any _list.htm file anywhere in my folder neither before nor after the pages were created. I am using AsprunnerPro, is there some other file I should be looking for? I also did a search for "$row" and came up with nothing in my search in all folders.
Please help.

Sheryl Kemp

Alexey admin 11/1/2006

Sheryl,
select link to details table with mouse on the Visual Editor then switch to HTML mode.

The link code will be highlighted.
For your info.

The Master List page does remember search parameters when you return back from details page.

Make sure that Session state is enabled in your IIS settings and cookies are enabled in your browser.

skemp author 11/1/2006

Sheryl,

select link to details table with mouse on the Visual Editor then switch to HTML mode.

The link code will be highlighted.
For your info.

The Master List page does remember search parameters when you return back from details page.

Make sure that Session state is enabled in your IIS settings and cookies are enabled in your browser.


Ok, I've got it. I was still using 4.0 but I do understand now. Thank you so much!