Hi Stephen,

I used this code once for XML customizations in the Information tab:

<content>
        <select>
                
                <case>
                        <expression>
                                attrInt(0x5e5215e) == 0
                        </expression>
                        <yield>
                                INACTIVE
                        </yield>
                </case>

                <case>
                        <expression>
                                attrInt(0x5e5215e) == 1
                        </expression>
                        <yield>
                                ACTIVE
                        </yield>
                </case>

        </select>
</content>

Hope that helps!


Mit freundlichen Grüßen / With kind regards

Benjamin Welge


> -----Original Message-----
> From: Schroeder, Stephen G CIV (US)
> [mailto:[email protected]]
> Sent: Wednesday, March 28, 2012 2:59 PM
> To: spectrum
> Subject: [spectrum] Expresssions (UNCLASSIFIED)
> 
> Classification: UNCLASSIFIED
> Caveats: NONE
> 
> Good Morning,
> 
> I am trying to work on customization of my search result table.  I
> created a
> search that will yield all the ports of a particular switch and was
> able to
> add a column to the results that reflected the Operations Status
> (0x10e40)
> 
> The problem is that the 1 or 2 that is reported is not user-friendly
> for the
> operators ...
> 
> I cannot figure out how to change the output AND how do I do put a
> graphic
> in the result similar to the graphics you see when you look at the
> interface
> tab within the Component Detail Pane?
> 
> I listed my latest attempt below.  I think my biggest problem is not
> having
> a full fundamental understanding on expressions and the PDF file
> "OneClick
> Customization" is rather difficult to work your way through it.
> 
> <table idref="table-searchresults-config">
>       <column-list>
>               <column>
>                       <name>Port Status</name>
>                       <content>
>                               <select>
>                                       <case>
>                                               <expression>
> 
> <attribute>0x10e40</attribute>
> 
> attrInt(AttributeID.ifOperStatus) == 1
>                                               </expression>
>                                               <yield>Up</yield>
>                                               <expression>
> 
> <attribute>0x10e40</attribute>
> 
> attrInt(AttributeID.ifOperStatus) == 2
>                                               </expression>
>                                               <yield>Down</yield>
>                                       </case>
>                               </select>
>                       </content>
>               </column>
>       </column-list>
> </table>
> 
> Thanks for any and all help!!
> 
> Stephen
> 
> 
> "There's a war out there, old friend, a world war.
>  And it's not about who's got the most bullets.
>  It's about who controls the information"
> 
> -Sneakers, 1992
> 
> Classification: UNCLASSIFIED
> Caveats: NONE
> 


---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to