0

Create a new record from a table directed to a specific TAB

This script works just fine but I cannot figure out how I can to add a TAB name in the script so the table/form opens to that TAB.

The TAB name is INPUT.

Where would I place INPUT?

Script:

let thisRecord := this;
let newRec := (create 'Project Equipment');
newRec.('SELECT BUILDING, ROOM & DESCRIPTION' := thisRecord);
newRec.('SELECT PROJECT' := first(thisRecord.EQUIPMENT.'SELECT PROJECT'));
openRecord(newRec)

5 replies

null
    • Fred
    • 1 yr ago
    • Reported - view

    Sadly only popupRecord works with tabs:

    see this doc page.

    • Ninox partner
    • RoSoft_Steven.1
    • 1 yr ago
    • Reported - view

    openRecord(newRec,"INPUT")

      • Fred
      • 1 yr ago
      • Reported - view

      There is a issue, at least on the MacOS version, with the openRecord where if the default view does not have the record in the found set then Ninox will not open the record. If you use popupRecord then Ninox will find the appropriate record.

      • Alan_Cooke
      • 1 yr ago
      • Reported - view

      RoSoft_Steven Thanks - will give this a try

      • Alan_Cooke
      • 1 yr ago
      • Reported - view

      Alan Cooke Spot on!!!!

Content aside

  • 1 yr agoLast active
  • 5Replies
  • 99Views
  • 3 Following