64 bit counter attribute in URL in OC custom-menu-config
search cancel

64 bit counter attribute in URL in OC custom-menu-config

book

Article ID: 418757

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

I'm looking to pass an attribute as a parameter for launching an url as a right-mouse option in OC. The attribute is a 64 bit counter and this is not being passed as a parameter. Is it possible to render/change this attribute to either integer or string in an expression. FYI - this attribute is from NetworkPath modeltype.

 

    <item name="AppNeta Path Details">
        <action>
        <launch-browser>
                <url>https://<hostname>/pvc/pathdetail.html?st=3&amp;pathid={0}</url>
          <param>
                  <attribute>AttributeID.0x673006d</attribute>
           </param>
        </launch-browser>
      </action>
    </item>

Environment

any Spectrum release

Cause

The inclusion of text “AttributeID.” before the actual attribute ID was causing the issue.

Resolution

I have tested and both of these expressions work.

 

                <expression>attr(0x673006d).toString()</expression>

Or

                <expression>attr(0x673006d)</expression>