Latest News

the latest news from our team

Troubleshooting with States

Issues arise with States when nesting is involved, which is typically necessary with Line Code elements.

1. Right click any State and select Insert State. In the State Editor, choose Line_30 from the drop-down menu and set the Tag to Remarks.

state1

2. Right click the Line_30 State and select Add State.

Note: This will nest a state within an existing State. In other words, the existing State is a parent element and the nested State is a child element.

state2

3. Choose Comments from the drop-down menu and click Set.

state3

4. Right click Comments and select Add EndState. Select CommentsEnd.

state4

5. Right click Line_30 and select Add EndState. Select CommentsEnd.

state4state5-2

6. Right click any State and select Insert State. In the State Editor, choose DetailsStart from the drop-down menu and set the Tag to DetailLine.

state6

7. Right click the DetailsStart State and select Add State. In the State Editor, choose DetailsLine from the drop-down menu and click Set.

state7

8. Right click the DetailsLine State and select Add State. In the State Editor, choose Dashes from the drop-down menu and click Set.

state8

9. Right click the Dashes State and select Add EndState. Set the EndState Editor as empty.

state9

10. Continue adding States to the DetailLine State.

state10

 

 


NOTE: To the FormFeed EndState Editor, enter the value of 23 to the ExitTo field. This will cause the parser to skip the next 23 lines.

state_notes1

 


 

11. Right click the DetailsLine State and select Add EndState. Pick Total_1 from the drop-down menu. Add the same EndState for the DetailsStart State.

 

state11-1state11-2

 


NOTE: To see how the Total_1 Line and the other Total Lines, to be used as an EndState for the DetailsLine and DetailsStart States, are created, review steps 1 through 8 from the section entitled, “Adding Lines & Parameters in the Text to XML Editor.”

state_notes2


 

12. Including the Total Lines as States is similar to that of the Line_30 State. For the EndState of the Total_1 State, select the FormFeed Line.

state12

13. Click Test in the bottom right.

state13

14. The file will be converted to XML. Click Save in the bottom right to record the changes.

state14

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *