DX Unified Infrastructure Management

 View Only

Onclick Custom Browser Launch and Hex

  • 1.  Onclick Custom Browser Launch and Hex

    Posted Jul 31, 2016 08:01 PM

    Hi

    I'm doing some customizations on oneclick. These are to launch knowledge base articles based on model attributes

    The ones based on model name work perfectly

    eg

     

        <item name="Knowledge Base - Model Name">

     

           <action>

     

              <launch-browser>

     

                <url>http://<knowledgebaseuri/OP/{0}</url>

     

                <param>

     

                  <attribute>AttributeID.MODEL_NAME</attribute>

     

                </param>

     

              </launch-browser>

     

       </action>

     

        </item>

     

    This then launches the correct page in the KB site

     

     

    However when I use an attribute with a hex code line Alarm Cause ID the uri converts the hex id to decimal

    Very annoying

    e.g

     

        <item name="Knowledge Base - Alarm Cause">

     

           <action>

     

              <launch-browser>

     

                <url>http://<knowledgebaseuri/OP/{0}</url>

     

                <param>

     

                  <attribute>AlarmAttrID.CAUSE_CODE</attribute>

     

                </param>

     

              </launch-browser>

     

       </action>

     

        </item>

     

    This will convert the Cause code hex value to decimal. How do I force the browser call to use the string value of the cause code and not the converted hex

     

    Thanks