Article

Using Novell ActiveX Controls to Change Attributes with PATH Syntax

Author Info

22 December 2008 - 12:12pm
Submitted by: wschreiber

article
Reads:

1425

Score:
0
0
 
Comments:

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

Author Info

22 December 2008 - 12:12pm
Submitted by: wschreiber




User Comments

© 2009 Novell, Inc. All Rights Reserved.