phantom
|
| Posted: 07/10/2001, 7:38 PM |
|
Is there an easy explaination or guide on the Tree features. I can't seen to
get it to work, or understand the concept of this feature (yes, I alsio used
the wizard). I am trying to set out "categories" and "sub-categories" which
relates to each other and it seem the Tree is the only way of doing this, or
is there another easy way?
Thanks.
|
|
|
 |
David A. Lee
|
| Posted: 07/10/2001, 9:26 PM |
|
I finally got this to work.
One problem is the help text describing the wizard is backwards ...
Reverse the tables in the help ... and you'll be much better off.
You need a table with atleast these fields (named anything)
This is for the 'category' table in the wizard
integer t_id // Topic id
integer t_parent // parent ID (t_id in same table)
char[] t_topic // String text describing topic
Then you need some 'items' in a table including
integer t_id // Topic id from topic table
char[] i_name // Item description
This wizard is overly complex in my oppinion as it creates 3 pages
when really only 1 is needed (in my oppinion) ...
Once you get the wizard to work you can rework the pages to make
it do more what you like.
--
--------------------------------------------------
David A. Lee
Dal Enterprises Inc.
dave@calldei.com http://www.calldei.com
> Is there an easy explaination or guide on the Tree features. I can't seen
to
> get it to work, or understand the concept of this feature (yes, I alsio
used
> the wizard). I am trying to set out "categories" and "sub-categories"
which
> relates to each other and it seem the Tree is the only way of doing this,
or
> is there another easy way?
>
> Thanks.
>
>
|
|
|
 |
phantom
|
| Posted: 07/10/2001, 10:12 PM |
|
Thanks David,
I still don't get it. I also tried several different fields... and all I get
in the results are blank. Anyone know a better example? Thanks david for
trying.
"David A. Lee" <dave@calldei.com> wrote in message
news:9igki1$61d$1@news.codecharge.com...
> I finally got this to work.
> One problem is the help text describing the wizard is backwards ...
> Reverse the tables in the help ... and you'll be much better off.
> You need a table with atleast these fields (named anything)
> This is for the 'category' table in the wizard
>
> integer t_id // Topic id
> integer t_parent // parent ID (t_id in same table)
> char[] t_topic // String text describing topic
>
>
> Then you need some 'items' in a table including
>
> integer t_id // Topic id from topic table
> char[] i_name // Item description
>
>
> This wizard is overly complex in my oppinion as it creates 3 pages
> when really only 1 is needed (in my oppinion) ...
> Once you get the wizard to work you can rework the pages to make
> it do more what you like.
>
>
> --
> --------------------------------------------------
> David A. Lee
> Dal Enterprises Inc.
>dave@calldei.com
> http://www.calldei.com
>
>
> > Is there an easy explaination or guide on the Tree features. I can't
seen
> to
> > get it to work, or understand the concept of this feature (yes, I alsio
> used
> > the wizard). I am trying to set out "categories" and "sub-categories"
> which
> > relates to each other and it seem the Tree is the only way of doing
this,
> or
> > is there another easy way?
> >
> > Thanks.
> >
> >
>
>
|
|
|
 |
CodeCharge
|
| Posted: 07/10/2001, 10:41 PM |
|
The idea of the "Tree" form is to provide "directory" functionality, similar
to Yahoo index.
At this time it is implemented in a simplified form and it allows you to
display list of categories, which users can drill-down. Clicking on the
category displays subcategory, clicking on subcategory shows sub-sub
category, etc.
To utilize this functionality, you have to create a table that contains
Parent Category ID. Look at the table structure used in the "Classifieds"
example.
The value of Parent Category ID should be blank for the highest level
categories.
Also, look at the Classifieds example itself, Default Page, Tree Form.
The "categories" table is the base table for that form, and in Form
properties you have various paramaters, like:
- Tree Page: this is the page that will be shown when the user selects
category that has additional subcategories. You will usually specifiy the
same page as the one you are editing, which would be redisplayed with
sub-categories.
- Items Page: this is the destination page that will be shown once the user
reaches last level and there are no more subcategories to drill to.
- Category ID, Category Name & Parent Category ID are fields that you should
have in your category table.
If you have further questions, submit your case at http://support.codecharge.com and attach the .ccs file you're working with.
You may get back an example that uses your own table.
BTW, I prefer not to use wizard in this case because it can make it look
more complex than it is 
Adam S.
CodeCharge Support
"phantom" <pahntom@phantom.com> wrote in message
news:9ign78$am8$1@news.codecharge.com...
> Thanks David,
>
> I still don't get it. I also tried several different fields... and all I
get
> in the results are blank. Anyone know a better example? Thanks david for
> trying.
>
>
> "David A. Lee" <dave@calldei.com> wrote in message
>news:9igki1$61d$1@news.codecharge.com...
> > I finally got this to work.
> > One problem is the help text describing the wizard is backwards ...
> > Reverse the tables in the help ... and you'll be much better off.
> > You need a table with atleast these fields (named anything)
> > This is for the 'category' table in the wizard
> >
> > integer t_id // Topic id
> > integer t_parent // parent ID (t_id in same table)
> > char[] t_topic // String text describing topic
> >
> >
> > Then you need some 'items' in a table including
> >
> > integer t_id // Topic id from topic table
> > char[] i_name // Item description
> >
> >
> > This wizard is overly complex in my oppinion as it creates 3 pages
> > when really only 1 is needed (in my oppinion) ...
> > Once you get the wizard to work you can rework the pages to make
> > it do more what you like.
> >
> >
> > --
> > --------------------------------------------------
> > David A. Lee
> > Dal Enterprises Inc.
> >dave@calldei.com
> > http://www.calldei.com
> >
> >
> > > Is there an easy explaination or guide on the Tree features. I can't
> seen
> > to
> > > get it to work, or understand the concept of this feature (yes, I
alsio
> > used
> > > the wizard). I am trying to set out "categories" and "sub-categories"
> > which
> > > relates to each other and it seem the Tree is the only way of doing
> this,
> > or
> > > is there another easy way?
> > >
> > > Thanks.
> > >
> > >
> >
> >
>
>
|
|
|
 |
|