Skip to Content
avatar image
Former Member

Extending Example - SMP 3.0: Custom Agentry Android client supporting native NFC (RFID) scanning capabilities.

Extending Example - SMP 3.0: Custom Agentry Android client supporting native NFC (RFID) scanning capabilities.

Hi All

I use an artice

SMP 3.0: Custom Agentry Android client supporting native NFC (RFID) scanning capabilities.

to extend Custom Agentry Android client to support native NFC (RFID).

I works.

How can I take a scanned value to use it in a search function?

I don't need to put scanned value in the Text Edit but in the Rule

like this

@COLLECTION_FIND

|_____FlightScheduleCollection Property

| |__@EQSTR

|___ScheduleID Property

|_"" |____<Scanned Value>

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Apr 05, 2016 at 04:18 PM

    Just like the demo article text field has an update rule referencing the Open UI control to put the value into the text field you would use the same reference in your rule to use in comparing to the ScheduleID value.

    --Bill

    Add comment
    10|10000 characters needed characters exceeded

    • Not really. The Open UI code is not a "function" that you can call. The Open UI code replaces a default field on the screen with your own code. The user can interact with it just like any other field. In this case, press the button your Open UI code created to invoke your NFC scanning code.

      The better way would be to have your Open UI code invoke the Agentry Action as a secondary step. The Agentry action can read the value from Open UI and store it in a main object property that can be used by your search or you search can read the value directly from the Open UI control.

      Look at the MyAgentryActionExtension.java sample for how your Open UI code can invoke an Agentry Action.

      Ultimately the correct answer for this is your NFC code should be implemented as an OpenScan interface instead of an Open UI control. Then you can use the built in scanning capabilities of Agentry instead of having to write your own search (although it is a good learning exercise).

      --Bill