cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in accessing custom attribute default value

Former Member
0 Kudos

Hi,

Env: SAP MII 12.0.6

I have defined few custom attributes with default value.

I am accessing these attributes in Workbench web file using "applet.getPropertyValue(<ATTRIBUTE NAME>)"

But, getting an error for the same.

Could you please help in resolving this? Is there any service I need to run? or any Security settings I need to make?

Thanks in advance.

Best Regards,

Kedar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Kedar,

Have you mapped these attributes to your role or user if not than following is the help link for same

Mapping Custom Attributes to Users and Roles

[http://wbhelp.sap.com/manufacturing/xmii_120/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm]

Regards,

Manoj Bilthare

Former Member
0 Kudos

Manoj,

Thanks but how do I access my custom attribute in Web Page.

I want to access the default value. - No roles/users mapped.

Best Regards,

Kedar

Former Member
0 Kudos

Hi Kedar,

First In custom attribute mapping map your attribute to your username or your role.

than use same syntax as you written <applet name>.getPropertyValue("<property name>")

I have tested same with applet as a iCommand it is working fine for me.

in HTML

<applet name="Command" codebase="/XMII/Classes" code="iCommand" archive="illum8.zip" width="0" height="0" mayscript>

</applet>

in JS

document.Command.getPropertyValue("test")

test is my custom attribute

Hope this help

Regards,

Manoj Bilthare

Former Member
0 Kudos

Hi Manoj,

This is how, I also use these attributes.

But, the problem is I am not getting the default value. I did not assign any role/user to the attribute. Even if I don't assign, I should get default value. It worked in the past several times.

What if I don't map my custom attribute to user/role?

Best Regards,

Kedar

Former Member
0 Kudos

Hi Kedar,

If you look into SAP MII 12.0 help they clearly mentioned following thigs.

You can create custom attributes for existing users and roles.

To create custom attributes, on the SAP xMII Administration Menu, choose System Management ® Custom Attributes.

Integration

After you create a custom attribute, you must map the attribute to the appropriate user or role (see Mapping Custom Attributes to Users and Roles.)

you can just map with XMIIUser role for same.

I dont know how it works previously without assigning role for SAP MII 12.0

Regards,

Manoj Bilthare

Former Member
0 Kudos

Hi Manoj,

No need to map all the attributes.

"Required" feature takes care of this, i guess.

If this indicator is selected, the custom attribute is automatically mapped to all users and roles and the attribute's default value is used. You can manually map the attribute to a user or role and overwrite the default value.

The problem is resolved. It was multiple instance issue.

Thanks for your help

Best Regards,

Kedar

Former Member
0 Kudos

Hi Kedar,

Thanks for usefull info.

I forgot to check same