The sb:GenerateBar function will add a new bar to the list of bars available to the browser.
The parameters are:
sb:RemoveBar to remove it. This should be completely alphabetic.The return value will be "Success" if successful, otherwise an error description.
A typical use would be to invoke the function, and then show a message. The message could indicate success or failure:
<xf:action ev:event="my-install-bar">
<xf:setvalue
ref="@retval"
value="sb:GenerateBar(
string(../type),
string(../internalName),
string(../name),
string(../uri)
)"
/>
<xf:message level="modal">
'<xf:output ref="name" />'
has
<xf:output value="
if(
@retval = 'Success',
' been added. You will need to open a new browser window to see the change.',
concat(' failed to install. The error is "', @retval, '".')
)"
/>
</xf:message>
</xf:action>