Hi,
hmm, the idl definition reads,
/** stores additional attributes.
<p>This property is used i.e. by the XML filters to load and
restore unknown attributes.</p>
*/
[optional, property] com::sun::star::container::XNameContainer
UserDefinedAttributes;, so you have a little more work to implement an XNameContainer instead of simply placing the propertyvalue array.
Bye,
Joerg
Darragh Sherwin wrote:
Hi
I am trying set a user defined attributes on a table cell ( com.sun.star.table.CellProperties ) using the PyUNO binding but when I use the code below:
table.getCellByName( cellId ) try: userAttrs = cell.getPropertyValue( "UserDefinedAttributes" )
myAttr = uno.createUnoStruct("com.sun.star.beans.PropertyValue") myAttr.Name = "URL"
myAttr.Value = "myURL"
uno.invoke( userAttrs , "insertByName", (myAttr.Name, uno.Any( \ "[]com.sun.star.beans.PropertyValue", myAttr)) )
except RuntimeException, rte:
raise rte
I get the following error:
return pyuno.invoke( object, methodname, argTuple )
com.sun.star.uno.RuntimeException: conversion not possible!
Is there something wrong in the way I am setting up and passing in my values to insertByName function?
Is there a better way to set attributes for the User Defined Attributes of Properties?
Thank you,
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
