Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Shaping with three tables..
Message
From
28/10/2003 14:22:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/10/2003 13:25:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00843662
Message ID:
00843704
Views:
20
>Hi,
>Can anyone give me the syntax to setup a table with more than 1 level
>of hierarchy in a data shape for example:
>
>--this works perfect!!
>strSh = "SHAPE {SELECT distinct moc001 FROM styles} "+;
> "APPEND ({SELECT moc001,moc002,mon001 FROM styles} "+;
> " AS CollectStyles RELATE moc001 TO moc001)"
>
>
>--need to add another level...this attempt doesnt work...
>strSh = "SHAPE {SELECT distinct moc001 FROM styles} "+;
> "APPEND (SHAPE {select distinct moc002 from styles}"+;
> "APPEND ({SELECT moc001,moc002,mon001 FROM styles}) "+;
> "RELATE moc001 TO moc001)"
>
>--Maybe one more level?
>
>What I would like to get is
>
>+MOC001
> +MOC002
> +other values
>
>FYI the database is oracle,db2 or sqlserver..
>
>BR
>Tim

Tim,
Do a search for HierarchicalFlexGrid and I can assure you'd find samples with 'select ...' and the easier 'table' :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform