PDA

View Full Version : Master detail on same page?


olle189996
06-04-2009, 01:23 AM
Hi

Is it possible to tweak the code to show the detail info and results on the same page?

So that click on result link shows detail info in other DIV. Sort of like a spry master/detail behavior.

Regards
olle

Ray Borduin
06-04-2009, 09:13 AM
Yes... run the dataassist wizard again and specify a previously created details page as the results page and don't create a search page. Then just upate the recordset once the wizard has run so that they are filtered with the same parameter and will show the correct corresponding data.

You can see an example of where we did that in the powerstore demo. The admin section has orders and orderdetails set up using this technique.

olle189996
06-04-2009, 10:37 AM
Thanks Ray.
The admin does not show that behaviour.

But I found out that the Product section in the main site does.
http://www.powerstore-demo.com/Products_Results.php?Search.x=0

The menue on the left. Clicking link shows product to the right.

This is what you meant, right?

Regards
olle

Ray Borduin
06-04-2009, 10:52 AM
I was talking about: http://www.powerstore-demo.com/Admin/orders_Detail.php?OrderID=6

Which shows the order information above in a details page and the order details below as a results page. So this page is both the orders details page and the orderdetails results page.

olle189996
06-04-2009, 12:55 PM
Ah, ok. But that is not what I asked. Maybe I explained in a wrong way.

I'm looking for a way to mimic the behavior of this example
http://labs.adobe.com/technologies/spry/demos/products/index.html

Where the product table is the "results" page sort of. If I use the wizard. And the product overview is the details page. But it all happens in the same page. Select a new product updates the detail window.

This also seemes to be the case in http://www.powerstore-demo.com/Produ...php?Search.x=0
Selecting the blue links shows details on the right.

Can this be done thru the wizard or do I have to tweak the code?

I hope I am clear now :)

Regards
Olle

Ray Borduin
06-04-2009, 02:05 PM
Yes you are clear now. This can be accomplished with AJAX in a number of ways. Yes the code could be tweaked by hand to do this, no WebAssist doesn't have tools or tutorials on how to do it.