huytonscouser
Programmer
I have a field {SRMSWITCHACTZONESETMEM.ZONENAME} from which i want to create a joined string.
Until recently the contents of (SRMSWITCHACTZONESETMEM.ZONENAME} always had the data i wanted foloowing the 1st "_" delimiter.
Now i have discovered a change, and my formual needs to join until it encounters "numerictext". But i'm not quite sure of the loop syntax to accomplish this.
I'm sure a "formula" expert can know this out very quickly.
So in a nutshell :-
When SRMSWITCHACTZONESETMEM.ZONENAME = z_SGPILM002_617191_0687_A2
My current formula :-
IF "_" IN {SRMSWITCHACTZONESETMEM.ZONENAME} THEN
currenthostorhbaalias :=uppercase(Split ({SRMSWITCHACTZONESETMEM.ZONENAME},"_")[2])
ELSE currenthostorhbaalias:={SRMSWITCHACTZONESETMEM.ZONENAME}
Returns :-
SGPILM002
But when
SRMSWITCHACTZONESETMEM.ZONENAME = z_SGP_AESC_APP01_61cc89_0687_A0
it returns SGP
i want to return SGPAESCAPP01 (SGP+AESC+APP01
i.e. only join elements that are non-numeric text..
The field always has four(4) "_" entries.
Thanks in advance.
Until recently the contents of (SRMSWITCHACTZONESETMEM.ZONENAME} always had the data i wanted foloowing the 1st "_" delimiter.
Now i have discovered a change, and my formual needs to join until it encounters "numerictext". But i'm not quite sure of the loop syntax to accomplish this.
I'm sure a "formula" expert can know this out very quickly.
So in a nutshell :-
When SRMSWITCHACTZONESETMEM.ZONENAME = z_SGPILM002_617191_0687_A2
My current formula :-
IF "_" IN {SRMSWITCHACTZONESETMEM.ZONENAME} THEN
currenthostorhbaalias :=uppercase(Split ({SRMSWITCHACTZONESETMEM.ZONENAME},"_")[2])
ELSE currenthostorhbaalias:={SRMSWITCHACTZONESETMEM.ZONENAME}
Returns :-
SGPILM002
But when
SRMSWITCHACTZONESETMEM.ZONENAME = z_SGP_AESC_APP01_61cc89_0687_A0
it returns SGP
i want to return SGPAESCAPP01 (SGP+AESC+APP01
i.e. only join elements that are non-numeric text..
The field always has four(4) "_" entries.
Thanks in advance.