Posted: Wed Feb 15, 2012 8:34 am Post subject: How to reuse a complex type from another message
Knight
Joined: 25 Aug 2006 Posts: 589
I have a message MSG1 with a large field of 1500 bytes. I have another message MSG2 which is 1500 bytes with all the fields defined in a message definition file.
MSG1.msxd
MSG1
F1
F2
:
Data (fix length 1500)
:
Fn
MSG2.mxsd
F1
F2
:
Fn
(1500 bytes)
There is a TYPE of MSG2
I want to update the Data field of my MSG1.msxd with the definition of MSG2. With my limited messsageset building experience , I know that I can update Data to say it is of TYPE MSG2. But the TYPE MSG2 is in another message defition file. I can not find a way to copy the type from one to another.
I can recreate a new MSG1 from scratch. But that seems to be unnecessary.
Posted: Wed Feb 15, 2012 8:54 am Post subject: Re: How to reuse a complex type from another message
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
KIT_INC wrote:
I can recreate a new MSG1 from scratch. But that seems to be unnecessary.
It is; as a bare minimum you can create the new msg set based on the existing one hence including the type.
You should be able to use the same type in 2 messages in the same message set. If the messages are in 2 different message sets why do they have a type in common? _________________ Honesty is the best policy.
Insanity is the best defence.
Thanks Vitor, you are right, I should be able to share types between messages within the same message set. I found the MSG2 Type in the drop down. I must not be looking careful enough.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum