Travis Hawkins
|
| Posted: 10/11/2005, 7:36 AM |
|
I think they call this process a Data Drill Down.
I need to click on a user's name or a small Image link which i don't have any problem creating, I need it to open a page that lists all the "listings" that are associated with that user.
I have the User grid and the Listing grid allready and would prefer if I could use the same pages.
It seems like an easy enough task and i know I could do it with custom programming, but I wondered if there is a simple way with CCS.
Thanks
|
|
|
 |
Edd
Posts: 547
|
| Posted: 10/11/2005, 8:07 AM |
|
Travis,
Firstly look at the example packs on how linking works, so you get a better understanding.
To perform your task, in designer mode, right click on the Name label and change it to a Link lable. Then in the properties associated with that Link Label you will see a Page reference, click on that and locate your existing "listings" page. Add a parameter that uniquely identifies that user.
Open your "listings" page and go to the Datasource of the grid, click on that and Add a parameter name that equals the one that has been passed. In this way you only retrieve the listings you desire for that User.
The only issue now have is determining the return path. I strongly suggest using the Add Path object to return the user to the prior form if it is feasible.
Regards, Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
Travis Hawkins
|
| Posted: 10/11/2005, 11:01 AM |
|
Thanks Edd,
I'm heading in the right direction now. I've got the link in the user_list but I don't know how to get the user_id sent through that link. You say "Add a parameter that uniquely identifies that user", how do I do that?
Thanks.
|
|
|
 |
Edd
Posts: 547
|
| Posted: 10/11/2005, 3:26 PM |
|
When you look at the Page Reference on the Link there is a add parameter button (Plus sign). It will ask where do you want to get the parameter from. If you select Datasource iyour grid should contain a unique key for that User.
That's it.
If you want an example use New buuton create a new Page and pick an application and pick one table for a list and maintenance screen - it constructs all of the code you need automatically and shows you what you need to do on your prior sceen.
Regards,
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
Travis Hawkins
|
| Posted: 10/11/2005, 3:42 PM |
|
Thanks Edd,
That did, I got it working. Thanks a lot. I had been adding my link incorrectly. I went back and added it when I created the page and then all of your previous instructions made perfect sense.
-Travis
|
|
|
 |
|