Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Adding, editing, removing to the description field

0 views
Skip to first unread message

Dave Lupo

unread,
Apr 15, 2002, 10:00:07 AM4/15/02
to
Hi,
 
I'm working with the delimited text (CSV) driver and I'm finding it meets my needs pretty well.  Although there is one feature I'm needing and I'm not sure how to implement.  In the Description field of a user object I can add values through the dirxml channel.  However if I later have input that changes user information including the description it appends another note into the description field it doesn't overwrite it.  That's fine but I'm in need of finding a way to remove old descriptions, and/or a way to overwrite current descriptions (hopefully through dirxml.)  Has anyone found a way, or know of a way to do this?
 
Thanks,
Dave Lupo

Israel Forst

unread,
Apr 15, 2002, 5:07:30 PM4/15/02
to
Dave,
You'll need to put the logic as to when to overwrite and when to add into some xslt, however, if you read the DirXML DTD you'll see that if DirXML recieves a <remove-value> element or a <remove-all-values/> element inside the <modify> element then it will overwrite. For example This will replace all values with a new value
 
<modify class-name="User">
    <association state="associated">12345</association>
    <modify-attr attr-name="Description">
        <remove-all-values/>
        <add-value>
            <value type="string">this is the new value</value>
        </add-value>
    </modify-attr>
</modify>
 
 
This will remove a specific value and add another
 
 
<modify class-name="User">
    <association state="associated">12345</association>
    <modify-attr attr-name="Description">
        <remove-value>
            <value type="string">this is the old value</value>
        </remove-value>
        <add-value>
            <value type="string">this is the new value</value>
        </add-value>
    </modify-attr>
</modify>
 
 
Hope this helps,
Israel
>>> Dave Lupo<dl...@albion.edu> 04/15/02 10:00AM >>>

Shon Vella

unread,
Apr 15, 2002, 6:35:20 PM4/15/02
to
Assuming that you don't really need to write out eDirectory changes on the Subscriber channel (most uses of the CSV driver are really only one way), clearing the subscriber filter will make the publisher channel authoritative and therefore the merge process will cause existing values to be replaced.

--
Shon

Dave Lupo

unread,
Apr 16, 2002, 8:48:20 AM4/16/02
to
Perfect!  that is exactly what I was looking for.  I suppose I need to spend more time looking at dirxml before I post here.
 
Thank you so much,
Dave

>>> Israel Forst<ifo...@bway.net.spamfree> 04/15/02 05:07PM >>>
0 new messages