on 12-14-2015 12:00 PM
Hi All,
I am working on one transaction and output is "Deepali,B1993,January".But,I want only "B1993" as output.
How can I get it by using functions in expression editor?
Please help me in this.
Hi,
if output format is always same then string function can be used to get the desired result.
ccombination of stringindexof, stringpart and stringlength can also give the desired result. Let me know if u need sample example
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Transaction.Sample : Deepali,B1993,January
stringpart(stringpart(Transaction.Sample,stringindexof(Transaction.Sample,",")+1,stringlength(Transaction.Sample)-stringindexof(Transaction.Sample,",")),1,stringindexof(stringpart(Transaction.Sample,stringindexof(Transaction.Sample,",")+1,stringlength(Transaction.Sample)-stringindexof(Transaction.Sample,",")),",")-1)
Deepali,
Depending on your version another option you can try is using the stringtolist function to put the values into a local list type property. You can then get values by index using syntax like Local.mylist{1} etc.
Regards,
Christian
p.s. please mark answers helpful or correct. It helps others find solutions to similar problems easier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepali,
Not sure whether there is any expression editor function available. But, one way of doing it is,
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.