Ticket #238 (new defect)
Incident HEADER_INFO tag not written to xml file if properties form incomplete
| Reported by: | jdalbey | Owned by: | sdanthin |
|---|---|---|---|
| Priority: | Low | Milestone: | |
| Component: | ScriptBuilder GUI | Version: | |
| Severity: | Minor | Keywords: | |
| Cc: |
Description
Steps to reproduce: Start Scriptbuilder. Add a new incident 101. Fill in the fields in the properties dialog for Name, Location, Type, and Description and click OK. Add one CAD event and provide detail field value of "abc". Close the event editor. Add a new incident 102. Do NOT complete the fields in the properties form. Add one CAD event as above. Save the scenario. The resulting xml file (below) contains a HEADER_INFO tag for 101 but not 102. Also, neither of them contains a GENERAL_INFO tag that should contain the incident description.
WORKAROUND: User must complete all fields in the incident properties dialog.
<SCRIPT_EVENT>
<TIME_INDEX>00:00:00</TIME_INDEX>
<INCIDENT LogNum="101">Name</INCIDENT>
<COLOR b="255" g="0" r="0"/>
<CAD_DATA>
<HEADER_INFO>
<Type>Type</Type>
<Beat/>
<TruncLoc>Loc</TruncLoc>
<FullLoc>Loc</FullLoc>
</HEADER_INFO>
<CAD_INCIDENT_EVENT>
<DETAIL>abc</DETAIL>
</CAD_INCIDENT_EVENT>
</CAD_DATA>
</SCRIPT_EVENT>
<SCRIPT_EVENT>
<TIME_INDEX>00:00:00</TIME_INDEX>
<INCIDENT LogNum="102"/>
<COLOR b="255" g="0" r="0"/>
<CAD_DATA>
<CAD_INCIDENT_EVENT>
<DETAIL>abc</DETAIL>
</CAD_INCIDENT_EVENT>
</CAD_DATA>
</SCRIPT_EVENT>
Note: See
TracTickets for help on using
tickets.

I suspect some other tags (LOCATION? MASTER_INC_NUM? GENERAL?) are missing as well but this might be that we don't have fields for them in the form. We need to ask Neil if these tags are required and how the ScriptBuilder should work to obtain this info from the user.