cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Oid_modify_attr

dlong1
1-Newbie

Oid_modify_attr

From an acl file how
do I refer to another xml file to modify an attribute. This code is from
my instance.acl for a particular doctype, the xml is xui.

class=066424619-23062006>

$TBarID =
doc_open($doc_path.chr(92)."dialogs".chr(92)."ToolBar.xml", 0x002)

$ButEnabel =
oid_name(oid_child(oid_child(oid_first_tag($TBarID),1)))
oid_modify_attr($ButEnabel,
"disabled", "false")

class=066424619-23062006>

With this code, my
oid_modify_attr, is not specific to the xml file how do I make the
connection?

The first line
provides me an id for the document I wish to modify

The second line
provides me the element name that contains the attribute I wish to
modify

The third line will
modify the attribute except that I don't know how to relate to the
docuemnt.




Sincerely,
face="Trebuchet MS">David Long
O'NEIL & ASSOCIATES,
INC.

495 Byers Rd.
Miamisburg, Ohio
45342-3662

Confidentiality Notice



use only by the person(s) or organization listed in the address. If you have



Associates, Inc., immediately. Any copying, dissemination, or distribution



prohibited.



2 REPLIES 2

You
can (temporarily) change the document focus before oid_modify_attr(). I added
some lines to your code.


HTH,

Brent



oid functions don't work for xui documents when they are rendered. You can use AOM to access the elements and attributes, but if you want to use ACL, you need to use the dlgitem_deactivate function on the button.

Steve Cuzner
Annulus Software, Inc.
Providing Custom Publishing Solutions with XML

Dave Long wrote:
> From an acl file how do I refer to another xml file to modify an attribute. This code is from my instance.acl for a particular doctype, the xml is xui.
> $TBarID = doc_open($doc_path.chr(92)."dialogs".chr(92)."ToolBar.xml", 0x002)
> $ButEnabel = oid_name(oid_child(oid_child(oid_first_tag($TBarID),1)))
> oid_modify_attr($ButEnabel, "disabled", "false")
>
> With this code, my oid_modify_attr, is not specific to the xml file how do I make the connection?
> The first line provides me an id for the document I wish to modify
> The second line provides me the element name that contains the attribute I wish to modify
> The third line will modify the attribute except that I don't know how to relate to the docuemnt.
>
> Sincerely,
> *David Long
> **http://oneil.com/" href="blocked::http://oneil.com/">O'NEIL & ASSOCIATES, INC.*
> 495 Byers Rd.
> Miamisburg, Ohio 45342-3662
>
Announcements