How do I get selected records from Javascript?

Tap Forms – Organizer Database App for Mac, iPhone, and iPad Forums Using Tap Forms How do I get selected records from Javascript?

Viewing 1 reply thread
  • Author
    Posts
  • January 16, 2019 at 8:36 PM #33473

    Jose Barrera
    Participant

    trying to modify selected records on a form…

    January 17, 2019 at 12:39 AM #33476

    Brendan
    Keymaster

    Hi Jose,

    You can’t get the specific selected records if you’ve multi-selected some records. But you can loop through record in a form or a saved search and do something with those. And you can get the currently selected record (singular).

    To get all the records in a form:

    var records = form.getRecords();

    To get all the records in the currently selected Saved Search:

    var records = search.getRecords();

    To get the current record just reference record.

    But I suppose it could be useful to be able to get an array of the currently selected records instead of just one.

Viewing 1 reply thread

You must be logged in to reply to this topic.