selet field tree

In a form I want to load a select field with a tree structure i.e parent and child multilevel organization.

table (id,parent_id,label)
values:
1,null,‘A’
2,null,‘B’
3,null,‘C’
4,1,‘A1’
5,1,‘A2’
6,2,‘B1’
7,3,‘C1’
8,7,‘C2’
the result inside the select field should be :

A
L A1
L A2
B
L B1
C
L C1
L C2

and when I select an items I get the id value behind

How can I arrange this in SC5 ?

King Regards

Re: selet field tree

Do you mean something like:
http://www.jeasyui.com/tutorial/form/form2.php

I do not believe SC this type of control available. You may have to use something like jQuery.

This SC example shows you how to use jQuery in an SC app:
http://www.scriptcase.net/siteen/samples/tutoriais/features/sample_blank_application.php

Regards,
Scott.

Re: selet field tree

Thank you Scott , you are always ready to give a support,but
I cannot to think that this requirement was not considered or developed in some SC project.
In any cases if someone solved this problem with SC please reply on it.

Some ideas or workaround from Netmake could be very appreciated.

Regards.

Re: selet field tree

This would be a custom control. Even more advanced frameworks require someone to create an extension based on a standard combo.
If SC does not agree to create one, then you will have to yourself.

Regards,
Scott.