From wiki.ginstr.com
Jump to: navigation, search

gn:act_queryGSMFingerprint

Description
Action used to return all data for specific user from table which contains GSM fingerprint values.
After the data is retrieved, this action will then compare current GSM fingerprint with all records and return value from row with the closest GSM fingerprint and sets the defined field value into target widget.
This query returns only one row with closest GSM fingerprint.
Action returns
boolean
Limitations
Can only be used in gn:act_setOnGSM event.

Action signatures

Query GSM fingerprint

[gn:act_queryGSMFingerprint]|[table,query;column;target]
Parameter Description
table table name which will be queried
query query name which will be used for query
column column name which will be used for value retrieval
target target where the value will be stored

Example

securityBagLocations - table name
securityBagLocationsQuery - query name
securityBagLocation_locationName - column name
@+id/LocationName - target
[gn:act_queryGSMFingerprint]|[securityBagLocations,securityBagLocationsQuery;securityBagLocation_locationName;@+id/LocationName]
queries.xml
<query 
  id="securityBagLocationsQuery"
  columns="securityBagLocation_locationName,
    securityBagLocation_locationNFC,
    securityBagLocation_geofence,
    securityBagLocation_geofenceRadius,
    securityBagLocation_bluetoothMAC,
    securityBagLocation_WiFiMACIP,
    securityBagLocation_cellInfo,
    securityBagLocation_createdOn,
    securityBagLocation_createdBy" />