Using Novell ActiveX Controls to Change Attributes with PATH Syntax

wschreiber

By: wschreiber

December 22, 2008 12:12 pm

Reads: 155

Comments:0

Rating:0

Problem:

A customer used the Novell ActiveX controls to modify attributes.

All was working well until they tried to modify attributes with a “SYN_PATH” syntax, in their case it was a DirXML_Association attribute that they needed to edit.

In some cases, when the attribute value contained commas (“,”), the ActiveX control would reject the change and return “Run-time error ’13′: Type Mismatch”

Solution:

Since the control uses the comma as delimiter in the structured attribute, it probably is lost when trying to tell what element needs to go where.

The solution may be to set the individual structure fields explicitly – see
http://developer.novell.com/documentation/activex_ndap/ocx_ndap/ref/nwdir/nwpath_object.htm

Something like:

Dim myAssociation as New NWPath
myAssociation.VolumeName = "NDS:\\TEST\test\services\DriverSet3-5\SQL"
myAssociation.Path = "USERID=542,table=USERS,schema=DBO"
myAssociation.NameSpaceType = 1
entry.SetFieldValue "dirxml-associations", myAssociation
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: , ,
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Comment