User bio
404 bio not found
Member since Sep 20, 2021
Posts:
Replies:
Sreevani Goli · Jan 11, 2024 go to post

Thanks David and Ben for your help. I wrote an ObjectScript method based on your suggestions:

($E(value,1,$L($g(value))-$L($g(string))))

And it's working fine. Thanks again for your help.

Sreevani Goli · Jan 11, 2024 go to post

Thank you David and Ben.

I've tried using the below in DTL but it throws the compilation error.

$piece(Str,",",1,*-1)

(Transform+103) #1054: Invalid expression : 'patAdr22=..Piece(patAdr2,,1,*-1)' :

Is it that it should work fine when I write an ObjectScript function and call it from DTL ?

Also, I tried with: 

patAdr22=..Piece(patAdr2,,1,..Length(patAdr2))

patAdr22=..Piece(patAdr2,,1,..Length(patAdr2)-1)

But no luck.

Certifications & Credly badges:
Sreevani has no Certifications & Credly badges yet.
Followers:
Sreevani has no followers yet.
Following:
Sreevani has not followed anybody yet.