Skip to Content
avatar image
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.

Regards

saket

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    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

    http://scn.sap.com/community/developer-center/mobility-platform/blog/2013/07/18/hwc-application-development-using-hybrid-api-generation-approach

    Rgrds,

    Jitendra

    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

      Regards

      Tahir

      Message was edited by: Tahir Öz