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

gn:act_queryBTFingerprint

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

Action signatures

Query BT fingerprint

[gn:act_queryBTFingerprint]|[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_queryBTFingerprint]|[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" />