[Solved] Missing button in sidebar code
Posted: Thu Mar 13, 2025 4:11 pm
Note: For this sidebar code, when the button is clicked, the sidebar pops up, but the part <form:form form:name="SidebarForm"> <form:button form:name="MyButton" label="Click Me" onclick="vnd.sun.star.script:Standard.Module1.ButtonClick?language=Basic&location=application"/> </form:form> is not displayed in the sidebar. What's the problem? Please help.
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:form="http://openoffice.org/2000/form"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
oor:name="CalcWindowState"
oor:package="org.openoffice.Office.UI">
<node oor:name="UIElements">
<node oor:name="States">
<node oor:name="private:resource/toolpanel/my.webpage.extension/icons" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value xml:lang="en">test</value>
</prop>
<prop oor:name="Element">
<value>
<form:form form:name="SidebarForm">
<form:button form:name="MyButton" label="Click Me" onclick="vnd.sun.star.script:Standard.Module1.ButtonClick?language=Basic&location=application"/>
</form:form>
</value>
</prop>
</node>
</node>
</node>
</oor:component-data>