cancel
Showing results for 
Search instead for 
Did you mean: 

XML in XMLForms

Former Member
0 Kudos

Hi to you all,

Is it possible to change the resource type of a document that is an XML to XMLForms?

String namespace = "http://sapportals.com/xmlns/cm";

String name = "resourcetype";

IPropertyName propertyName = new PropertyName(namespace, name);

IProperty property =

new Property( propertyName, "http://www.sapportals.com/wcm/app/xmlforms/Model9");

IMutablePropertyMap propMap = new PropertyMap().getMutable();

propMap.put(property);

resource.setProperty(property);

But is does not do anything. Can anyone help me?

Natasha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Natasha,

Please try out the following code

String namespace = "http://sapportals.com/xmlns/cm";

String name = "resourcetype";

IMutablePropertyMap mutableProperty =null;

mutableProperty = new MutablePropertyMap();

IPropertyName propertyName = new PropertyName(namespace, name);

mutableProperty.put(property);

resource.setProperty(mutableProperty);

Regards

Rajeev.

Do award points for helpful answers in SDN