Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

valueMap problem with tag inside

$
0
0
Hello,

Version: SmartClient Version: v9.1p_2014-03-23/Pro Deployment (built 2014-03-23)

When defining a value map as follows:
Code:

<SimpleType name="test" inheritsFrom="text" >
        <valueMap>
                <value ID="1">val 1</value>
                <value ID="2"><JS>localized.js.variable</<JS></value>
        </valueMap>
</SimpleType>

This results in the generated JavaScript:
Code:

isc.SimpleType.create({
    inheritsFrom:"text",
    name:"test",
    valueMap:{
        1:"val 1",
        2:[
            localized.js.variable
          ]
    }
})

I would have expected to simply get whatever is between <JS> tag, but not within array brackets.

Basically this would allow to localize value map display values via javascript variables.

Please let me know if my expectation is wrong.

Thank you,
Daniel

Viewing all articles
Browse latest Browse all 4756

Trending Articles