Sidebar

get all elements in a segment

+1 vote
346 views
asked Mar 6, 2019 by (190 points)
is there any way to get all the element  wthit out giving for example MSH-1, MSH-2 etc..

can we have a loop or some thing like that. for getting all elements..

1 Answer

+1 vote
You can get the entire segment using just the segment name as the node path. So MSH would be just MSH:

message.getNode('MSH');
answered Mar 6, 2019 by brandon-w-8204 (33,270 points)
...