Document Tree
Document Properties
Kbid
24Z773
Last Modified
04-Feb-2020
Added to KB
20-Jun-2013
Public Access
Everyone
Status
Online
Doc Type
References
Product
  • ICM 7.10
  • ICM 11
  • ICM 12
ISML Function - getValue()

Name

getValue()

Short Description

formats the result of an ISML expression

Table of Contents

Product Version

6.5

Product To Version

 

StatusNew Labels

Introduction

This function can be used to format the result of an ISML expression. The value of an ISML expression is returned by getValue() as a formatted string. The standard formatter classes control how the string is formatted.

There are three ways to control the formatter classes:

  • use pre-defined formatter string
    The standard formatter classes come with pre-defined formatter strings. These are called styles.
  • use custom formatter string
    You can define and use your own formatter string with the formatter class.
  • use default formatter string
    Each formatter class has one default style. This style will be used if you do not specify anything else (neither a style nor a custom formatter string).

Syntax

getValue( <value> )
getValue( <value>, <style> )
getValue( <value>, <formatter> )

Example

The first example shows one of the styles in the formatter class:

<ISPRINT value="#getValue(Basket:TotalPrice,MONEY_LONG)#">

The next example shows how to specify a formatter string:

<ISPRINT value="#getValue(Offering:Weight,'#,##0.00')#">

Because neither a style nor a formatter string has been specified, the default style of the formatter class is used for formatting in the following example:

<ISPRINT value="#getValue(Purchaser:Address:Zip)#">

Parameters

value

value = ISML Expression

Specify the ISML expression to be formatted. Usually this will be just a template variable.

style

style = style identifier

Specify a valid style to be used for formatting the expression result. See Formatting Expression Resultsfor a list of valid styles.

formatter

formatter = formatter string

Specify a formatter string to control the formatting of the expression result. See the Java documentation in <IS.INSTANCE.DIR>\docs for more information about creating formatter strings.

Reference - ISML Functions

Disclaimer
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.
The Intershop Knowledge Portal uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties. Please find further information on privacy in the Intershop Privacy Policy and Legal Notice.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.