HI Bentley Guys,If someone have string.replace function working example , please share.I am trying as below it's not working.Regards,Vivek
Hello Vivek,
I have tested this, and currently we do not support System.String.Replace.
What i suggest is to use a secondary property IE DESCRIPTION_ENTRY. Then, on the DESCRIPTION property, make the ECExpression an IIF statement.
So...
DESCRIPTION Property ECExpression:
IIF(this.DESCRIPTION_ENTRY="304","10","")
To protect the DESCRIPTION property, you could make it read only. The users would then enter the "description value" in the DESCRIPTION_ENTRY property, and this would drive the value published in the DESCRIPTION property.
With the IIF statement, you can also offer up several values:
IIF(this.DESCRIPTION_ENTRY="304","10","") & IIF(this.DESCRIPTION_ENTRY="404","20","").
I hope this helps,
Tony DeRosa
Senior Consultant
Bentley Plant
Answer Verified By: Vivek Baraiya
Thanks Tony,I think I can, make use of substring to get our result.Regards,Vivek