Jump to content

Strip away part of value in Data tag with script?


Recommended Posts

Is it possible to strip away a part of the value of the data tag? We uses 'zones' in de rooms to define the function of the space. The default output shows '[Ruimtefunctie]-Verblijfsruimte' I want it to show up as 'Verblijfsruimte'. Could this be done with a script in the data tag like:

 

REPLACE(#Space#.#11_Zone_1#, '[Ruimtefunctie]-', '')

 

Unfortuantly this is not working.. Any help?

afbeelding.thumb.png.0a370dba9053fdab70d350c8923431ed.png

Link to comment

Try #WS_Substring(Space.11_Zone_1, '-', 2)#

 

This should return the second part of your string after the dash.  If you have multiple dashes it will only return the second part.

 

Note that inside the #WS you have to use pure Worksheet format, you can't use the Data Tag # versions.

Link to comment

No idea.

 

I opened your file and saw the wrong value. 

 

I then edited the Data Tag Style and the Layout. I selected the placeholder text and clicked the Define Tag Field button in the OIP. I noted that the formula was what I expected. When I exited the Tag Style, the value updated to what we expected.

 

Please try the above. And if it works, then try a new file and import the tag style and see if it works there as well.

 

Mystery to me also.

Link to comment
  • 2 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...