This discussion about dataset and grid filtering seems to have been up
already last February.

http://www.openlaszlo.org/pipermail/laszlo-user/2006-February/002804.html

Does anybody know if anything has been done about it, that is, is it still
not possible to make 'views' or filtered instances of datasets which could
then be reference for example by a grid component?

To me this would seem like an essential feature.

Regards,
Mikko



-----Alkuperäinen viesti-----
Lähettäjä: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Daniel Williams
Lähetetty: 13. joulukuuta 2006 18:16
Vastaanottaja: Kalle Svartholm
Kopio: [email protected]
Aihe: Re: [Laszlo-user] Problems with contentdatapath on grid


Kalle,
I had the same issue. The work around I found was to use a datapointer.
Within the datapointer I could manipulate the data before the grid got
the data.

Also it's my belief the contentdatapath was intended to be used as
filter on your data, not to modify the data.

But now looking back, you may want to try ds.setAttribute('rerunxpath',
true).

My two cents.
-Daniel

Kalle Svartholm wrote:
> Hi, guys!
> I wrote a filtering class for datasets, (it adds an attribute named
> removed=<true|false>) and works great.
> However when I apply the filter on a grid (i.e. modify the data in the
> dataset), its contentdatapath doesn't seem to be synced with the
> modified dataset.
>
> Here is an example:
> <grid name="myGrid" datapath="userData:/users[1]"
> contentdatapath="[EMAIL PROTECTED] = 'false']" initstage="late">
>     <gridtext datapath="firstName/text()" width="100">First
> Name</gridtext>
>     <gridtext datapath="lastName/text()" width="100">Last Name</gridtext>
>     <gridtext datapath="@removed" width="100">removed</gridtext>
> </grid>
>
> Is this the expected behaviour and is there a way to fix this?
> (It works great as long as I don't use any contentdatapath.)
>
> Regards,
> Kalle




Reply via email to