Dell Powerconnect W-ClearPass Virtual Appliances W-ClearPass Guest 6.0 Deploym - Page 303
View Display Expression Technical Reference, Table 40
View all Dell Powerconnect W-ClearPass Virtual Appliances manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 303 highlights
Function Description l negative_sign - sign for negative values l n_sign_posn - position of sign for negative values (0..4) For formatting for monetary amounts: l mon_decimal_point - decimal point character for monetary values l mon_thousands_sep - thousands separator for monetary values l p_sep_by_space - true if a space separates currency symbol from a positive value l p_cs_precedes - true if currency symbol precedes positive value l n_sep_by_space - true if a space separates currency symbol from a negative value l n_cs_precedes - true if currency symbol precedes negative value Additionally, the special value monetary, if true, indicates that a currency value should be formatted, rather than a regular numeric value. View Display Expression Technical Reference A page that contains a view is displayed in an operator's Web browser. The view con tains data that is loaded from the server dynamically. Because of this, both data formatting and display operations for the view are implemented with JavaScript in the Web browser. For each item displayed in the view, a JavaScript object is constructed. Each field of the item is defined as a property of this object. When evaluating the JavaScript Display Expression, the data variable is used to refer to this object. Thus, the expression data.my_field would return the value of the field named "my_field". In the above view (the guest_users view), the four columns displayed correspond to the username, role_name, enabled, and expire_time fields. Table 40: Display Expressions for Data Formatting Value Description Display Expressions data.username.bold() Displays the username string as bold text. data.role_name Displays the name of the role. Nwa_BooleanText(data.enabled, "Enabled", "Disabled") Displays either "Enabled" or "Disabled" depending on the value of the enabled field. (parseInt(data.do_expire) != 0) ? Nwa_DateFormat (data.expire_time, "%Y-%m-%d %H:%M") : "N/A" Displays "N/A" if the account has no expiration time, or a date and time string if an expiration time has been set. JavaScript functions Nwa_BooleanText( Returns the value of if_true or if_false depending on whether the Dell Networking W-ClearPass Guest 6.0 | Deployment Guide View Display Expression Technical Reference | 303