Login
Register
Home
Q&A
Questions
Tags
1.2k
questions
1.4k
answers
361
comments
339
users
Categories
All categories
Send feedback
Sidebar
How to remove a subfield
0
votes
477
views
asked
Oct 28, 2020
by
adam-d-5091
(
370
points)
Pretty simple. For example:
OBX|1|FT|This^That|
How do I remove "This" and leave just "^That"
Thanks in advance!
subfield
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
+1
vote
Best answer
message.setNode('OBX-3', message.getNode('OBX-3.2'));
answered
Oct 28, 2020
by
michael-h-5027
(
14.8k
points)
selected
Oct 28, 2020
by
adam-d-5091
commented
Oct 28, 2020
by
adam-d-5091
(
370
points)
That did it, what would be the cleanest way to add back the carrot so it's: ^That
commented
Oct 28, 2020
by
michael-h-5027
(
14.8k
points)
My first update would basically wipe out OBX-3 and replace it with just the value from OBX-3.2 but if you just wanted to blank out OBX-3.1 you could do this.
message.setNode('OBX-3.1', '');
Please
log in
or
register
to add a comment.
...