serge.de.pauw

WebDirect - go to object - bug report

Discussion created by serge.de.pauw on Nov 18, 2017
Latest reply on Nov 20, 2017 by serge.de.pauw

This may be specific but seems reproducible (FileMaker 16)

Go to Object for a popover button or an object on it doesn't work if used after New record or Duplicate record.

_________ Edited (added info) from here _______

OK, this was tricky, but I can now describe more precisely and reproduce the conditions of this bug.

 

Observation, when in List view mode:

 

BOTH with FileMaker client (Mac) and WebDirect:

1. "New record" inserts (shows):

- When unsorted: at the bottom of the list

- When sorted (e.g. by record Id number): right after the currently selected line/record

 

2. When calling "Go to Object" of a popover button: FileMaker "jumps" to the record, shows it and shows the popover button window.

This happens for any selected record/line, visible or not (i.e. scrolled down and not currently visible in the window).

 

3. When a script calls "New Record" + "Go to Object" (of a popover button)

 

3.1 If the currently selected line/record is visible, the behaviour is the same: FileMaker "jumps" to the record, shows it and shows the popover button window.

 

WHEN a script calls "New Record" + "Go to Object" (of a popover button), the behaviour is different on FileMaker client (Mac) and WebDirect:

 

- on FileMaker client (Mac): FileMaker "jumps" to the record to shows it (scrolls), creates a record after that row, and shows the popover button window (as expected) "in all cases"

- on WebDirect:

  - IF the currently selected record/line WOULD BE (based on sort order!) visible in the top rows, even if, by reducing the size of the window, that line is not visible, FileMaker "jumps" to the record to shows it (scrolls if necessary), creates a record after that row, and shows the popover button window

  - IF the currently selected record/line WOULD NOT BE (based on sort order!) visible when the window is (or was!) scrolled to the first row, and EVEN IF THAT RECORD IS CURRENTLY VISIBLE, FileMaker also selects the record, creates a record after that row, BUT the popover button window doest NOT SHOW (this is what I refer to as "the bug").

 

Workaround is to 1) make sure the list is sorted and 2) Add a "go to record - First" before the New record command in the script.

 

Sample file attached allows you to play and demo this.

Outcomes