Adepters:
We use XIncludes extensively. Normally, even if you have write access to an XIncluded object, you can't make changes until you lock the entity. That happens automatically if you click inside the object. However, we have a couple of macros that we use to globally find and then replace a certain attribute (which get invoked by function keys):
<macro name="findChangeStatus">
<desc>Finds next changeStatus attribute</desc>
<script type="application/x-acl"></script>
</macro>
<macro name="deleteChangeStatus">
<desc>Finds next changeStatus attribute and deletes</desc>
<script type="application/x-acl"> oid_delete_attr(oid_current_tag(), "changeStatus");]]></script>
</macro>
Unfortunately, these don't cause the entity to be locked, so the deleteChangeStatus doesn't work. I found an ACL function, "oid_entity_lock", which would seem to be what I need. But, not being an accomplished ACL programmer, I can't figure out how to incorporate that into my "deleteChangeStatus" macro.
Can anyone help?
Dave Hintz
Siemens