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

Home Forum Omnis General Forum How do I set current field ?

Tagged: ,

  • How do I set current field ?

    Posted by khanh vu on October 2, 2023 at 10:48 am

    In remote form,I use this command to set current field by field name. But the system occured error is” Field name not found”. But I use that command for the windowform is worked. So, Anyone help me to do this with remote form ?


    Queue set current field {myField}
    Andreas Pfeiffer replied 4 months, 4 weeks ago 2 Members · 3 Replies
  • 3 Replies
  • Andreas Pfeiffer

    October 2, 2023 at 11:04 am

    Hello Khanh,

    You cannot use the Queue commands as those would simply try to do this on the server. But the users cursor is on the client. Instead try this command:

    Do $cinst.$setcurfield(fieldRef)

    You can pass in the name of the field, the reference or the id. You can also pass in a 2nd parameter if you want to make the content selected.

    Hope this helps.



  • khanh vu

    October 4, 2023 at 2:39 am

    Thank you. I used “Do $cinst.$setcurfield(field ref )”. I did it.

  • Andreas Pfeiffer

    October 5, 2023 at 7:20 am

    Awesome! Glad to help.



Log in to reply.