Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
akioma.customer.getRibbonComboOptions = function( self ) {
	// get target
	const oTarget		= self.controller;
	// get options
	akioma.invokeServerTask(
			{ name: 'Osiv.System.UiContextHandlingBT',
			 methodName: 'GetComboOptions'
			}).done(function(oResult){
				deferred.resolve(oResult.plcParameter.Value);
				const oOptions = oResult.plcParameter.Options;
				// oOptions will be an array withof { key, hdl, image } format element properties
		
				// add options to combo
				if (oOptions)
					oTarget.setComboOptions( oOptions);

				if(oOptions.length > 0)
					oTarget.optionSelected(oOptions[0].hdl);
			})


	
	
}

...