I will look at it, thanks a lot.

2010/5/9 P T Withington <[email protected]>:
> Antun has a nice article here that might help:
>
> http://forum.openlaszlo.org/showthread.php?t=878
>
> On 2010-05-09, at 08:37, cem sonmez wrote:
>
>> In this case (`contentdatapath='video/*'`), can see the coloums and
>> the datas, but does not shown as expected.
>>
>> http://www.imageshare.web.id/images/v1vw11fnnijbbo9s7ypk.png
>>
>> I am a bit confusing xpath queries.
>> I need to have a bit experience about it. Until that time, I will use
>> the xml in the first xml form.
>> Thanks.
>>
>> 2010/5/9 P T Withington <[email protected]>:
>>> The two are not the same as far as an xpath query goes.
>>>
>>>  http://www.openlaszlo.org/lps4.7/docs/reference/lz.grid.html
>>>
>>> To automatically create columns based on the nodes inside <video> in your 
>>> first case, you need `contentdatapath='video/*'` I believe.  Or you can use 
>>> <gridcolumn> to more explicitly specify the datapath for the content of 
>>> each column.
>>>
>>> On May 9, 2010, at 6:43, cem sonmez <[email protected]> wrote:
>>>
>>>> Realized that, expecting grid to behave same with the different xml
>>>> structures is a ridiculous opinion.
>>>> But still I have no idea how to set the grid datapath with the first
>>>> xml. Cause it looks like more tidy than the second one. Or I will have
>>>> to use the second xml.
>>>> Thanks
>>>>
>>>> 2010/5/9 cem sonmez <[email protected]>:
>>>>> Hi all
>>>>> I am referencing a xml from a jsp for the the dataset such like :
>>>>> <dataset name="dset" id="dset" type="http" querytype="POST"
>>>>>                src="http://localhost:5080/Red5Record/xmldocument.jsp";
>>>>>                autorequest="true"
>>>>>        />
>>>>> and the xml looks like this :
>>>>> <videos>
>>>>>        <video/>
>>>>>                <filename>cem.flv</filename>
>>>>>                <date>01.05.2010</date>
>>>>>                <size>30000</size>
>>>>>        </video>
>>>>>        <video filename="figen.flv" date="10.06.2010" size="44000" />
>>>>>        <video>
>>>>>                <filename>figen.flv</filename>
>>>>>                <date>10.09.2010</date>
>>>>>                <size>30000</size>
>>>>>        </video>
>>>>> </videos>
>>>>>
>>>>> Then, I think for this grid use everything should work as expected:
>>>>> <grid datapath="dset:/videos" contentdatapath="video">
>>>>> In this case grid view looks like this :
>>>>>
>>>>> http://www.imageshare.web.id/images/r05oxxbl97j0r29qckg.png
>>>>>
>>>>> But if I send the xml like :
>>>>> <videos>
>>>>>        <video filename="cem.flv" date="01.05.2010" size="30000" />
>>>>>        <video filename="figen.flv" date="10.06.2010" size="44000" />
>>>>> </videos>
>>>>> and donT change any other stuff, grid looks like as expected
>>>>>
>>>>> http://www.imageshare.web.id/images/5wtw1pw7ndg0iqjwgge8.png
>>>>>
>>>>> Do you have any idea, why grid view changes although both xmls are
>>>>> logically the same?
>>>>> Thanks in advance.
>>>>> Kind regards
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Cem SONMEZ
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Cem SONMEZ
>>>>
>>>
>>
>>
>>
>> --
>> Cem SONMEZ
>
>



-- 
Cem SONMEZ

Reply via email to