AnsweredAssumed Answered

User account after Re-Login in WD

Question asked by TorstenBernhard on Jul 11, 2015
Latest reply on Jul 11, 2015 by TorstenBernhard

FMS 14.02.226 on OS X 10.10.3

Clients: OS X 10.0.3 Safari 8.0.6 and iOS 8.4 Safari

 

A FM file is called through a URL in a Browser. Auto login as "Guest".

Then using Re-Login() in a start script (OnFirstWindowOpen) with account name and password retrieved as parameters through a URL like

http://<host>/fmi/webd#TestDB?script=StartScript&param=TestAccount:test,

Re-Login() is executed correctly and Get (AccountName) yields "TestAccount". However, WD still shows "Guest" as the active in account it's menu.

- A Refresh Window after Re-Login does not help

- Re-running a Re-Login causes WD to show the correct account

- Setting a Pause (2 sec) before the Re-login() step makes WD showing the correct account (Doesn't look great, though)

 

I'm not sure how WD handles this internally (access privileges), when account info shown in menu is different from that given by Get (AccountName).

Couldn't find anything in documentation about a timing requirement for Re-Login in WD. Did I miss something?

Thanks for advise.

Outcomes