none
How to set values of “insertBeforeMso” in two CustomTabs? RRS feed

  • Question

  • build two  custom tabs, but i don't know to decide their order. If i set "insertBeforeMso" as "TabHome" in the xml markup file of a custom tab, then what value is set  in the xml markup file of another tab?

    If the code of a xml markup file is as follows,then how to write another code?

    <?xml version="1.0" encoding="UTF-8"?>
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
      <ribbon>
        <tabs>
          <tab id="MyCustomTab1" label="MyCustomTabFirst" insertBeforeMso="TabHome">
             ......
          </tab>
        </tabs>
      </ribbon>
    </customUI>


    • Edited by hopedream Saturday, May 3, 2014 8:48 AM
    Saturday, May 3, 2014 8:46 AM

Answers

  • Hello,

    You can specify the same value for another custom tab, for example:

    <tab id="MyCustomTab2" label="MyCustomTabSecond" insertBeforeMso="TabHome">

    What exactly do you want to achieve?

    They should be loaded in the order you specified them in the markup. Try to change the order of XML declaration and see the difference in the host application.

    • Marked as answer by hopedream Sunday, May 4, 2014 9:28 AM
    Saturday, May 3, 2014 9:33 AM

All replies

  • Hello,

    You can specify the same value for another custom tab, for example:

    <tab id="MyCustomTab2" label="MyCustomTabSecond" insertBeforeMso="TabHome">

    What exactly do you want to achieve?

    They should be loaded in the order you specified them in the markup. Try to change the order of XML declaration and see the difference in the host application.

    • Marked as answer by hopedream Sunday, May 4, 2014 9:28 AM
    Saturday, May 3, 2014 9:33 AM
  • Hello,

    You can specify the same value for another custom tab, for example:

    <tab id="MyCustomTab2" label="MyCustomTabSecond" insertBeforeMso="TabHome">

    What exactly do you want to achieve?

    They should be loaded in the order you specified them in the markup. Try to change the order of XML declaration and see the difference in the host application.

    If the projects of the two custom tabs are different and the xml markup files are also diffrent, what value can i specify for another custom tab?
    • Edited by hopedream Sunday, May 4, 2014 12:09 AM
    Sunday, May 4, 2014 12:05 AM
  • The reason for my question is that the "Load Test Report Addin" com is unloaded, thank you very much!


    • Edited by hopedream Sunday, May 4, 2014 9:34 AM
    Sunday, May 4, 2014 9:33 AM