Unsolved
This post is more than 5 years old
1 Message
0
568
November 18th, 2010 12:00
Is there any substring function in dynamic model?
Hello!
I want to check in dynamic model if an attribute begins with some characters.
In other words it would be like a substring function that exists in ASL, but I need to use dynamic model.
Any help would be appreciated.
Vívian Diniz.
No Events found!
VipinParambath
14 Posts
0
November 22nd, 2010 09:00
Hi Vivian,
I had a discussion with the Product team and got the information that the model currenlty does not have any string manipulation operators. So we cannot do that implementation in dynamic model or model. We do provide, in SM_System::SM-System, a number of string comparison operations, but none do the pattern matching as per your requirement.
You could write a small model that provides an operation that does the pattern match you want and returns a boolean. Then you would build that into a library and provide it and create an instance of it in the import files and then invoke it, passing in the two strings but that will be more complicated compared to asl.
Regards,
Vipin
( Special Thanks to Mr.Richard Hammond-DMT for clarifying this query )