If your data is XML you might want to use descendants()

On 5/15/15, 8:54 AM, "mark goldin" <[email protected]> wrote:

>I am trying something crazy like this:
>_modelLocator.currentData.getChildren(_modelLocator.currentData.getRoot())
>.(id=="104")
>
>to search for a node with id = 104 the above code returns null while there
>is such node.
>
>On Fri, May 15, 2015 at 8:30 AM, Alex Harui <[email protected]> wrote:
>
>> HierarchicalCollection and related classes help you walk through
>> hierarchical data.  By providing a set of open nodes, it adds the
>>children
>> of those nodes to a list, essentially flattening the hierarchy.
>>
>> On 5/15/15, 6:20 AM, "mark goldin" <[email protected]> wrote:
>>
>> ><You could add the HierarchicalCollection to the model and walk it from
>> ><some other code
>> >Yes, the data is already there.
>> >I am trying to find out how I can search thru it by having a data field
>> >name and its value.
>> >
>> >On Fri, May 15, 2015 at 8:17 AM, Alex Harui <[email protected]> wrote:
>> >
>> >> You could add the current row to the model so you don’t have to pass
>>it
>> >> around.
>> >>
>> >> You could add the HierarchicalCollection to the model and walk it
>>from
>> >> some other code.
>> >>
>> >> HTH,
>> >> -Alex
>> >>
>> >> On 5/15/15, 6:13 AM, "mark goldin" <[email protected]> wrote:
>> >>
>> >> >Right, but that is a problem, sort of. I dont have it. In order to
>> >>have it
>> >> >I need to change a bunch of functions to send it as a parameter.
>>All I
>> >> >have
>> >> >a this point is its data.
>> >> >
>> >> >On Fri, May 15, 2015 at 8:08 AM, Alex Harui <[email protected]>
>>wrote:
>> >> >
>> >> >> The selectedItem should be the whole row.
>> >> >>
>> >> >> On 5/15/15, 2:06 AM, "mark goldin" <[email protected]> wrote:
>> >> >>
>> >> >> >I have an ADG that shows hierarchical data. This data is stored
>>in a
>> >> >> >model.
>> >> >> >at point in my application I want to figure out what row is
>> >>currently
>> >> >> >selected in the grid. How would I search for row in that data if
>>I
>> >> >>have a
>> >> >> >value from one of the fields in the data?
>> >> >> >
>> >> >> >Thanks
>> >> >>
>> >> >>
>> >>
>> >>
>>
>>

Reply via email to