Handling Dynamic Xpaths in MobileFabric

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

How to Handle Dynamic Xpath's in Kony Mobilefabric.

Example: Response from the Back end is below : In the below response,

Lets say ns4:STATUS, here ns4 denotes the field number in the response, this may not be constant it will vary, depends on the number of fields in the response.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<soapenv:Header>

<dstm:Session xmlns:dstm="http://schemas.datastream.net/MP_functions">

<sessionId>ff1305a4-e358-4dfb-9275-453dd4fe9c60</sessionId>

</dstm:Session>

</soapenv:Header>

<soapenv:Body>

<ns1:MP0024_GetWorkOrder_001_Result multiorg="true" act_has_trans="true" jtauth_can_update="true" standwo_has_activity="false" equip_in_mec_wo="false" xmlns:ns1="http://schemas.datastream.net/MP_results/MP0024_001">

<ns1:ResultData>

<ns2:WorkOrder recordid="18" is_completed="false" is_cancelled="false" has_department_security="false" is_parentpmwo="false" is_room_occupied="false" xmlns:ns2="http://schemas.datastream.net/MP_entities/WorkOrder_001">

<ns3:WORKORDERID auto_generated="true" xmlns:ns3="http://schemas.datastream.net/MP_fields">

<ns3:JOBNUM>DS17597698</ns3:JOBNUM>

<ns3:ORGANIZATIONID>

<ns3:ORGANIZATIONCODE>MCA</ns3:ORGANIZATIONCODE>

</ns3:ORGANIZATIONID>

<ns3:DESCRIPTION>MABU 526 UNBLE TO RUN DUE TO BELTS</ns3:DESCRIPTION>

</ns3:WORKORDERID>

<ns4:STATUS xmlns:ns4="http://schemas.datastream.net/MP_fields">

<ns4:STATUSCODE>SCH</ns4:STATUSCODE>

<ns4:DESCRIPTION>SCH - Scheduled</ns4:DESCRIPTION>

</ns4:STATUS>

<ns5:EQUIPMENTID xmlns:ns5="http://schemas.datastream.net/MP_fields">

<ns5:EQUIPMENTCODE>22B0354171</ns5:EQUIPMENTCODE>

<ns5:ORGANIZATIONID>

<ns5:ORGANIZATIONCODE>MCA</ns5:ORGANIZATIONCODE>

</ns5:ORGANIZATIONID>

<ns5:DESCRIPTION>PUMPUNIT; MABU 526 SA</ns5:DESCRIPTION>

</ns5:EQUIPMENTID>

<ns6:CREATEDBY xmlns:ns6="http://schemas.datastream.net/MP_fields">

<ns6:USERCODE>FNKY</ns6:USERCODE>

</ns6:CREATEDBY>

<ns7:ENTEREDBY xmlns:ns7="http://schemas.datastream.net/MP_fields">FNKY</ns7:ENTEREDBY>

<ns8:TYPE xmlns:ns8="http://schemas.datastream.net/MP_fields">

<ns8:TYPECODE>CR</ns8:TYPECODE>

<ns8:DESCRIPTION>Corrective Repair</ns8:DESCRIPTION>

</ns8:TYPE>

</ns2:WorkOrder>

</ns1:ResultData>

</ns1:MP0024_GetWorkOrder_001_Result>

</soapenv:Body>

</soapenv:Envelope>

Will mobile fabric Xpath's support regular expressions like /* or contains('Fieldname') ?