Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum How can I write/read a file on my phone device?

  • Michael Monschau

    Member
    September 11, 2023 at 6:57 am

    You would have to use the browser local storage using Javascript in an Omnis method. Read up about window.localStorage.setItem(), …getItem(), …removeItem(), etc. Don’t forget to encrypt sensitive data.

    I am hoping to discuss saving Omns data (including lists) using local storage and its limitations.

  • khanh vu

    Member
    September 11, 2023 at 7:08 am

    Could you please explain further how to read/write a file on the phone?

  • Andreas Pfeiffer

    Administrator
    September 11, 2023 at 7:22 pm

    Hi Khanh,

    Check out Client Preferences: https://www.omnis.net/developers/resources/onlinedocs/WebDev/02jsremoteforms.html#client-preferences

    Best,

    Andreas

  • khanh vu

    Member
    September 12, 2023 at 4:03 am

    Thank you, I did it

  • Andreas Pfeiffer

    Administrator
    September 12, 2023 at 7:07 am

    Awesome. Great.

    Best,

    Andreas

Log in to reply.