the second MinOcc don't work. Messages with Length = 12 are not accepted. It is possible to say to Broker, he must accept it and assign the values 7 till 12 to F3?
gregop is spot-on. It will work if the optional element is at the end of the message ( assuming that you're using v6 ).
You can define an integer field and refer to it using OCCURS DEPENDING ON.
If all else fails, you can do this:
- parse the input message in the BLOB domain
- inspect its length
- select the appropriate message type from your message set
- use CREATE...PARSE to create the message tree.
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