CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Directory & Path Implementation

Print topic Send  topic

Author Message
Geoff
Posted: 05/10/2004, 4:55 PM

Hi,
New to CCS.

I'm trying to use Directory & Path components and I can't figure out how to make the lowest sub-directory level to be linked to the actual products.
Dir/path example on http://examples.codecharge.com/ doesn't have this information.
I have 2 tables:
Groupings with id, parent id categories and Products table related to Groupings by group_id field.

Please, help!
Thank you
peterr


Posts: 5971
Posted: 05/10/2004, 5:08 PM

This would need to work similar to the Search and Grid. The Search form allows users to enter or select something (for example category_id) and then the Grid reads that value and displays matching records. In the same way the Directory is used only to let users select the Category, for example at http://examples.codecharge.com/ExamplePack/Directory/Di...?category_id=31 you can see in the URL "category_id=31". This is the same as if you had a search form and users entered "31" into the category_id field. And this is it in terms of the Directory component - it does its job by allowing users to select the category in a visual way.
Then you only need to worry about the Grid, by configuring it to retrieve the URL parameter "category_id" (in the Grid's Data Source) and use it to display only the records that match the selected category.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Geoff
Posted: 05/11/2004, 10:03 AM

Thank you Peter,

I got it to work.

another problem:

I have to display main categories on the left side and sub-categories & details Grid in the center of the page. Directory component would be very good for displaying sub-categories only because I have to keep main categories displayed all the time.
At this moment I have a grid with "main categories" links on the left and directory component in the center of the page.

When this page loads without parameters I'd like to hide Directory component so it does not repete main categories that are already displayed on the left side. I want to have a pricture and a short article on this palce. If "id" param is present - sub categories should be visible and the article w/picture are not.

How can I do this?
I'm using PHP & ASP.
Thank you.
peterr


Posts: 5971
Posted: 05/12/2004, 1:34 AM

You can refer to the "Hiding Components" section of CCS documentation.
Related topics were probably discussed in these forums. One exampleis at http://forums.codecharge.com/posts.php?post_id=46745
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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