Skip to Content
author's profile photo Former Member
Former Member

How to display values of MBO attribute on Button/Menu Item in HWC app

Hi All,

How to display the value of MBO attribute on Button or Menu Item in HWC app.

This is just like displaying Notification on button/Menu item.

Help will be really appreciated.



Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    Posted on Sep 12, 2013 at 04:28 AM

    Hi Saket,

    I am not sure what approach you are using either hybrid web designer or hybrid API apporach.

    chck this



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Saket,

      I just wrote the below code but didnt tried there might some syntax errors but logic is as you need.

      var message = getCurrentMessageValueCollection();

      var itemlist = message.getData("MBOName");

      for(var i = 0; i < itemlist.value.length;i++){

      var F1 = itemlist.value[i].getData("FieldOne");

      var F2 = itemlist.value[i].getData("Fieldtwo");

      var F3 = itemlist.value[i].getData("Fieldthree");

      var F4 = itemlist.value[i].getData("Fieldfour");

      $("span > span", $("#<FirstBtnID>").parent()).html("F1.value");

      $("span > span", $("#<SecondBtnID>").parent()).html("F2.value");

      $("span > span", $("#<ThreeBtnID>").parent()).html("F3.value");

      $("span > span", $("#<FourBtnID>").parent()).html("F4.value");


      Hope this helps



      Message was edited by: Tahir Öz