Jump to content

Recommended Posts

Posted

Hi

 

You'r parenid filed in table or query must be nil.

ID	MyId	idparent
1	40	99
2	42	99
3	32	90
4	30	90
5	58	91
6	50	91
7	99	0
8	91	99
9	90	0

b6j1_untitled.jpg

 

Best Regards.

  • Upvote 1
Posted

sorry, I must be stupid, but can't do what I want.

 

I have this:

 

select a.opcion as myid, b.idmodulo as parentid, b.modulo
from opciones_t a, modulos_t b
where a.modulo = b.modulo
and a.opcion <> 0
union all
select a.idmodulo as myid, 0 parentid, a.modulo
from modulos_t a
order by 1;

 

define the ID as opcion, and parentid as parentid field.

 

but can't see the grid in tree mode

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...