Adding Buttons to oneUI Place Bar from compositeData
var oneui = getComponent("applicationLayout1");
if(compositeData.placeBarActions){
	var uiConfig = oneui.getConfiguration();
	for(var i=0; i<compositeData.placeBarActions.length; i++){
		uiConfig.addPlaceBarAction(compositeData.placeBarActions[i]);
	}
}





Place in the After Page Load event of your custom control containing the ApplicationLayout control and add Custom Property to the control of type AbstarctTreeNode and enable Multiple instances.  

This bit of code loop a compositeData of type AbstractTreeNode and appends the nodes to the Place Bar.  This will allow you to add Place Bar Buttons from the XPage in stead of the Custom Control containing the ApplicationLayout control.  I used this in conjunction with Jeremy Hodge's exaple of call SS Events from the client as described here... http://xpagesblog.com/XPagesHome.nsf/Entry.xsp?documentId=88065536729EA065852578CB0066ADEC

JavaScript (Server)
Steve Pridemore
Rating
9

All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.







No comments yetLogin first to comment...