Skip to content

using an AutoComplete in two different pages (1.4.17) #8

@stephane-wis

Description

@stephane-wis

When having the same AutoComplete (bind to the same value of the Data Model) in two different pages, after having data (which is an Object) in the first page, when moving to the second page the AutoComplete logs an error in the console telling it cannot bind to the Object.
I could not try this in 1.5.1, sorry.
The workaround we implemented is to save the Object in a tmpVar at $dataready time and to clear the Object (=null). At $viewready time we restore the tmpVar in the Data Model, which triggers the binding of the AutoComplete, updating the value displayed without logging any error. Hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions