@sravanb please try the change event of the dropdown to code as many tokens as you want. Since you have provided partial code, I can help with only as much detail I can add.
Following is the Dropdown code with <change> event handler that sets new token tokSelectedField based on the dropdown value selected:
....
....
<label>QueueType</label>
<choice value="EnterpriseCompanyQueueListener.log">Merch</choice>
<choice value="InventoryOwnerQueueListener.log">NonMerch</choice>
<default>EnterpriseCompanyQueueListener.log</default>
<initialValue>EnterpriseCompanyQueueListener.log</initialValue>
<change>
<condition label="Merch">
<set token="tokSelectedField">ENTERPRISE_COMPANY</set>
</condition>
<condition label="NonMerch">
<set token="tokSelectedField">INVENTORY_OWNER </set>
</condition>
</change>
</input>
....
....
....
Then use the token $tokSelectedField$ in the table command in the query. It will have value either ENTERPRISE_COMPANY or INVENTORY_OWNER based on your dropdown value selected i.e. |table _time LogID $tokSelectedField$ VEHICLE_ID ...
<search>
<query>
....
....
|table _time LogID $tokSelectedField$ VEHICLE_ID STOREID STOCK_NUMBER STATUS_MESSAGE FAIL_REASON ERROR_MESSAGE IS_CVS_READ_SUCCESS IS_DATAEDGE_READ_SUCCESS IS_DATAEDGE_UPDATE_SUCCESS HTTP_CD CVS_FIELDS CVSVALUES DMS_FIELDS DMSVALUES
| sort _time desc
</query>
....
....
Please try out and confirm!
... View more