Forum Discussion

nileshdk's avatar
nileshdk
New Contributor
13 years ago

Mapping property values to attribute values in a request

I am looking to map property values to attribute values in a request. For example I would like to externalize the value of Description, DisplayName and Name in the request below. How can I do that?

<org:Customer org1:Description="customer" org1:DisplayName="google" 
org1:Name="google"/>


I have properties defined for each of Description, DisplayName and Name. So essentially I am looking to do something like this,

<org:Customer org1:Description=${#Project#orgdesc}     
org1:DisplayName=${#Project#orgdisplayname}
org1:Name=${#Project#orgdisplayname}/>


Thanks in advance!

3 Replies

  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    Just put double-quotes around the property expansions, like this: org1:Description="${#Project#orgdesc}".
  • nileshdk's avatar
    nileshdk
    New Contributor
    Thanks a lot. It worked like a charm. Being dumb I thought putting ${#Project#orgname} would take it as a literal string and wouldn't work. But it does. Thanks again.