cancel
Showing results for 
Search instead for 
Did you mean: 

HWC SUP 2.1.3 issue

Former Member
0 Kudos

Hi Experts

I am adding a new attribute to my existing MBO.

Whenever I am invoking that attribute in Custom.js like

var  wxz = currItem.getData("xxx_login_mbo1_language_attribKey").getValue();

I am not getting this value.

i am debugging through alert like

alert('1")

var wxz = currItem.getData("xxx_login_mbo1_language_attribKey").getValue();

alert("2");

getting alert 1 but not 2

Thank you so much.

Accepted Solutions (1)

Accepted Solutions (1)

midhun_vp
Active Contributor
0 Kudos

var  wxz = currItem.getData("xxx_login_mbo1_language_attribKey").getValue();

I am not getting this value.

You mean to say that you are getting the value in the variable wxz ? you can check it like alert("val:"+wxz);

Or if you mean wxz value is empty you, since you added a new attribute to MBO you can try below:

*Delete MBO package from SCC

*Delete the application from SCC>servers>Applications>Applications.

*Restart SUP server

Regards,

Midhun VP

Former Member
0 Kudos

Thank you Midhun for your reply.

But i am not getting the value.

Note:In  MBO Preview ,the value is displaying.

But when I am doing in custom.js, I am not getting.

The specified line stopping the control to fall in next alert .

Thanks

midhun_vp
Active Contributor
0 Kudos

Could you provide the complete custom code you wrote.

Also check code used in this example.

Regards,

Midhun VP

Former Member
0 Kudos

var currItem= items[i];


var userName = currItem.getData("xxx_login_mbo_username_attribKey").getValue();


var paswd = currItem.getData("xxx_login_mbo_password_attribKey").getValue();


var sessId = currItem.getData("xxx_login_mbo_sessionid_attribKey").getValue();


var status = currItem.getData("xxx_login_mbo_status_attribKey").getValue();

earlier I was using the above codes ,it is working fine.

When I add the below line code for adding a new attribute,it is not working.

This line makes stop to login the app.

Note: If I comment the below line ,again it is working fine.(MBO is recreated after this attribute is added on backend SAP)

var bbc = currItem.getData("xxx_login_mbo_language_attribKey").getValue();

Thanks for your kind reply.

midhun_vp
Active Contributor
0 Kudos

If the solution I provided is not working, you can double check the attribute key name in workflow designer under Keys. The key name may have changed to xxx_login_mbo_language_attribKey1 since you updated the MBO. You can find it under Keys in the WF designer properties.

Regards,

Midhun VP

Former Member
0 Kudos

it is xxx_login_mbo_language_attribKey

midhun_vp
Active Contributor
0 Kudos

Click anywhere on the designer>Properties>keys> Are you able to see multiple MBO objects like, if your MBO name is Test you may find Test, Test1. Keep only one MBO by deleting other keys or delete all the keys and remap the online request used, so a new set of keys will be created.

Regards,

Midhun VP

Former Member
0 Kudos

Thank you so much Midhun for your valuable answer.

Answers (0)