BusinessObjects Board

Design Studion/Lumira - SideNavigation

Hello,

Does anyone used “org.scn.community.databound.SideNavigation”, SideNavigation component in Lumira or Design Studio? I’m having hard time adding values in the component. It works fine when manually added (see code below). But when I tried to pull using DataSource, it just does not work. It would be great if anyone got syntax to add values in this component. Thanks!

SideNavComp.addItem(“TEST”,“TEST”);

This code works fine and add TEST in the component.


moons :us: (BOB member since 2007-11-08)

Create a variable, then attach varaible to the datasource, then use a for loop to insert it into the SIDENAVIGATION componenet.
Something like this :



var i = DS_1.getMembers("_Or0xoE-yEeey4Yx7F1T1TQ", 24);


i.forEach(function(element, index) {
  
  if (index >= 0) {
    
    //placing it in  custom sidenavigation component
    SIDENAVIGATION_1.addItem(element.internalKey, element.text);
      
  }
});


katullus :us: (BOB member since 2009-08-21)