Hello
I'm trying to manipulate a dynamic text (string) that I import from an attribute table. I get the string using the following command:
<dyn type="page" property="attribute" field="DEZ_LON" domainlookup="true"/>
As response, I always get a number in string format (e.g. 008.49519221). Now the zeros in front of the first number should be removed. How I get implemented the code.
I tried "field.lstrip(2)" bit ist doesn't work.
Best Regards
Gerrit
lstrip isn't going to work in this case as it;s a python function and the dynamic text encoding isn't.
Couple of options though:
1. Format the field to not display the leading zeros (data design, fields, and number format)
2. Calculate a new field purely for your labelling purposes (using the lstrip command) and refernce that in your dynamic text