0

Select field upon table/subtable opening

Hi there. 

I have a masterTable called ManagerLog, a subTable called MoneyCounter and a button in the master table called 'Click to Double Count Safe'. Here is the code for for the button (that works fine):

let myID := this;
let newRec := (create MoneyCounter);
newRec.(ManagerLog := myID);
newRec.('What Are You Counting' := 1);
let myRN := number(newRec.Id);
popupRecord(record(MoneyCounter,myRN))

 

The first field in the subtable MoneyCounter is '1’s - # Bundles (#25)'. 

 

Everytime I click the button, the subtable opens but then I have to move to the mouse to select the field '1’s - # Bundles (#25)'. Is there anyway to code it so that when the button is clicked, that field is selected so I can stay on the keyboard?

 

Thank you for your time!

 

Michael

2 replies

null
    • Birger_H
    • 5 yrs ago
    • Reported - view

    Try the "tab" key.

    Birger

    • mschwarber
    • 5 yrs ago
    • Reported - view

    I definitely tried that. The only way to activate the cursor again is to select a field with the mouse.

     

    Once a new record is created in the subtable (popup), there is a choice field 'What Are You Counting' and value 1 is selected. It seems like the cursor freezes there. 

     

    Michael

Content aside

  • 5 yrs agoLast active
  • 2Replies
  • 1251Views