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