AnsweredAssumed Answered

WebDirect»popover»go to object: doesn't work after new record command

Question asked by serge.de.pauw on Nov 20, 2017
Latest reply on Nov 21, 2017 by serge.de.pauw

Product and version: FileMaker Server 16.0.2.212 - WebDirect

OS and version: Server: Windows 2012 Server R2, Client: OS X 10.12.6

Browser and version: Safari Version 11.0.1 (12604.3.5.1.1)

Hardware: Server: AWS Cloud Instance R3.xlarge, AMD64; Client: MacBook Pro (15-inch, 2016) 16Gb RAM.

 

Description / How to replicate

 

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").

 

Sample file attached allows you to play and demo this.

 

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

Outcomes