on 09-08-2010 7:16 AM
In earlier version the signature is :
stringpart(string, startposition, length)
now the same function has been changed to:
stringpart(stringValue, searchString, replacement)
Do anything know is there a single replacement for the old stringpart fundtion?
We are actually on sp6 pacth 2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert,
We are on SP6 patch 2 with Netweaver SP05 and I don't get your error. I get both options below from the expression editor. They are right next to each other in the functions drop down.
stringpart(stringValue, startIndex, length)
stringreplace(stringValue, searchString, replacement)
Thanks,
Kerby
It is a caching issue. It works fine after I cleared my java web start cache.
Thanks, Jeremy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the Basis team has installed SP3 but I will double check with them.
The code appears to be still working, just the expression editor is compaining.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you comparing an early 12.1 with a recent 12.1?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj,
That is what I was expecting. However, in 12.1.6, both springpart and stringreplace have the same signature while the old stringpart is gone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
As per my knowledge there are two different functions available in expression editor functions.
stringpart(stringValue, startIndex, length)
Returns the substring of length length from stringValue, starting after the startIndex character.
String
stringpart("Football", 3, 2) returns tb.
The input stringValue cannot be converted to a valid string value or the parameters startIndex and length cannot be converted to valid positive numerical values.
stringreplace(stringValue, searchString, replacement)
Tests the string value against the searchString. If the string matches, the function replaces the pattern with the replacementstring.
String
stringreplace("Football", o, u) returns fuutball.
The input parameters cannot be converted to valid string values.
Hope this help
Regards,
Manoj Bilthare
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
7 | |
3 | |
2 | |
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.