Hi Hosam,
ChildrenNodeGuids on line 18 is the field name I've added to my example Parent page type. This should contain a semi-colon separated list of NodeGuids of all the Child page type pages you've selected.
If I run the following SQL statement:
SELECT [ParentID]
,[ParentName]
,[ChildrenNodeGuids]
FROM [Kentico12].[dbo].[Example_Parent]
I get the following returned:
ParentID |
ParentName |
ChildrenNodeGuids |
1 |
Parent |
20444620-3f92-4f43-bc47-9042ad761d9e;c1b99d19-4f73-4279-b3d9-27060c72bb13 |
These nodeguids are then used for the lookup in the 2nd query on line 22.
As for why your database query returns NULL for the Links field, are you sure you've selected the child pages and then saved the parent document? If you reload the parent document in the tree, is the UniSelector field empty again?
Also can you double check you've configured the UniSelector control correctly for your field? Double check the settings provided in my original solution.