EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  DojoTextField focus

    Posted Thu July 28, 2016 10:51 AM

    DojoTextField

    We have a simple problem and difficult to solve ..

    we are not managing to place the cursor (focus) on a type attribute DojoTextField .. what could normlamente on the type TextField field ..

    Does anyone have a solution to this problem? Position the cursor in a field of type DojoTextField ??

    I thank you

    ojomenezes


  • 2.  Re: DojoTextField focus

    Posted Fri July 29, 2016 02:29 AM

    Hi,

    What you're probably trying to do is focussing on an element that's not completely rendered/loaded yet.

    You could try using the onWidgetLoad event on the Dojo widget, and do the focus once the Dojo element finds itself loaded.

    Regards,

    Guus

     

    gweis


  • 3.  Re: DojoTextField focus

    Posted Mon August 01, 2016 05:05 PM

    hello Guus

    We were happy for his return, Guus ..

    We are beginners in RUI .. and we are not able to implement "onWidgetLoad". Would have some practical example ..

    Thank you for your attention.

    Awaiting...
    Osvaldo Menezes

    ojomenezes


  • 4.  Re: DojoTextField focus

    Posted Tue August 02, 2016 06:08 AM

    Hello!

    You could also use the rich UI job scheduler to run a function with a short delay, like in the following example.

    import egl.javascript.Job;import dojo.widgets.DojoTextField;handler DemoHandler type RUIhandler{initialUI = [demoTextField], onConstructionFunction = start}    demoTextField DojoTextField{};    function start()        new Job{runFunction = setFocusJob}.schedule(100);   // run function after construction is complete    end    function setFocusJob()        demoTextField.focus();    endend
    Günter_Wagner


  • 5.  Re: DojoTextField focus

    Posted Tue August 02, 2016 07:23 AM

    Guttu greetings

    Simple and functional.

    Thank you for the tip..

    Success in its business ..

     

    Osvaldo Menezes

    ojomenezes


  • 6.  Re: DojoTextField focus

    Posted Tue August 02, 2016 08:18 AM

    Hello Gweis.

    Implement your tip and show the code below ..

    This implementation decided (not yet understand why) other problems ..

    We are using the DynamicLoader and deploys applications did not work features like CSS dynamic and focus. The "onWidgetLoad" resolved.

    Our team appreciates your cooperation.

     

    See the attached code

     

    ===================

    Osvaldo Menezes

    ojomenezes