Announcement

Collapse
No announcement yet.

Why SC_set_focus not work

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why SC_set_focus not work

    I've tried to put SC_SET_FOCUS ({my_filed}) onValidateSuccess script. But why when I run the application script does not seem to work.
    I use it to process the data with a barcode in control app. I want to be when barcode scanning is completed, the cursor back to the 'field' that has been determined

    Can someone help me

  • #2
    DId you tried sc_set_focus ('my_filed')?
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

    Comment


    • #3
      Originally posted by Giu View Post
      DId you tried sc_set_focus ('my_filed')?
      I've tried all
      sc_set_focus('my_field')
      sc_set_focus('{my_field}')
      still not work

      Comment


      • #4
        Did you try to use it on the OnvalidateSuccess ? The OnValidate happens before this one..

        Comment


        • #5
          I suspect you save the record?
          If so, what happens is you set the focus, then the record is saved, then the page is reloaded.
          Long story short, you probably have to put it in the onLoad/onRefresh event();

          jsb

          Comment

          Working...
          X