Alpha Video Training
Results 1 to 10 of 10

Thread: Need Client Side Event To Fire Every Time UX Opened

  1. #1
    "Certified" Alphaholic iRadiate's Avatar
    Real Name
    Stephen
    Join Date
    Jan 2011
    Location
    London, ON
    Posts
    1,568

    Default Need Client Side Event To Fire Every Time UX Opened

    I am using "Open a UX component to Edit Current Record in a List Control" action javascript to call a UX component for editing purposes.

    When the called UX component opens, I have getValue/setValue javascript in this UX to get values of certain controls then use this info to show/hide properties other controls.
    Placing my javascript in the onRenderComplete fires the first time I call the UX but not on subsequent calls unless the browser is refreshed first.

    Is there a different client side javascript event I should use that will fire every time I open the UX using the above method?
    Alpha Anywhere v12.4.6.0.2 Build 5943-5324 IIS v8.5 on Windows Server 2012 in Hyper-V

  2. #2
    Member bob9145's Avatar
    Real Name
    Bob Senski
    Join Date
    Jun 2009
    Posts
    804

    Default Re: Need Client Side Event To Fire Every Time UX Opened

    Maybe just refresh the list each time you call the ux? Sounds like the ux once open stays open even if it is not in view.

  3. #3
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,269

    Default Re: Need Client Side Event To Fire Every Time UX Opened

    be sure use cached UX component is not checked.

  4. #4
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,269

    Default Re: Need Client Side Event To Fire Every Time UX Opened

    If you decide you don't like the performance of not using a cached UX component,
    you could put some code in the on execute event to check if the values exist, and
    then assign them if they don't.

  5. #5
    "Certified" Alphaholic iRadiate's Avatar
    Real Name
    Stephen
    Join Date
    Jan 2011
    Location
    London, ON
    Posts
    1,568

    Default Re: Need Client Side Event To Fire Every Time UX Opened

    Quote Originally Posted by madtowng View Post
    be sure use cached UX component is not checked.
    Ah, thank you very much Gregg .. that did the trick.

    This is a fairly small UX component so any performance impact doesn't seem noticeable.
    Alpha Anywhere v12.4.6.0.2 Build 5943-5324 IIS v8.5 on Windows Server 2012 in Hyper-V

  6. #6
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,269

    Default Re: Need Client Side Event To Fire Every Time UX Opened

    Fantastic Stephen.
    Glad I could help.

  7. #7
    Member bob9145's Avatar
    Real Name
    Bob Senski
    Join Date
    Jun 2009
    Posts
    804

    Default Re: Need Client Side Event To Fire Every Time UX Opened

    Quote Originally Posted by madtowng View Post
    be sure use cached UX component is not checked.
    Where is this property? Is it in the UX properties? Don't see it.

  8. #8
    Alpha Software Employee Beta Spark's Avatar
    Real Name
    Sarah Mitchell
    Join Date
    Jul 2015
    Posts
    424

    Default Re: Need Client Side Event To Fire Every Time UX Opened

    Quote Originally Posted by iRadiate View Post
    Ah, thank you very much Gregg .. that did the trick.

    This is a fairly small UX component so any performance impact doesn't seem noticeable.
    If you want to use caching, the onSynchronizeDialog event executes everytime the UX is reopened. You can do whatever processing you need in this client-side event.

    https://documentation.alphasoftware....chronizedialog
    Sarah Mitchell

    Looking for answers? Try our documentation.
    If you can't find something, let us know!

  9. #9
    "Certified" Alphaholic iRadiate's Avatar
    Real Name
    Stephen
    Join Date
    Jan 2011
    Location
    London, ON
    Posts
    1,568

    Default Re: Need Client Side Event To Fire Every Time UX Opened

    Quote Originally Posted by bob9145 View Post
    Where is this property? Is it in the UX properties? Don't see it.
    Bob, it's in the Action Javascript properties of the component that calls the UX.

    Cached.png
    Alpha Anywhere v12.4.6.0.2 Build 5943-5324 IIS v8.5 on Windows Server 2012 in Hyper-V

  10. #10
    "Certified" Alphaholic iRadiate's Avatar
    Real Name
    Stephen
    Join Date
    Jan 2011
    Location
    London, ON
    Posts
    1,568

    Default Re: Need Client Side Event To Fire Every Time UX Opened

    Quote Originally Posted by Beta Spark View Post
    If you want to use caching, the onSynchronizeDialog event executes everytime the UX is reopened. You can do whatever processing you need in this client-side event.

    https://documentation.alphasoftware....chronizedialog
    Thanks Sarah, I'll turn the caching back on and try this method next week.
    Alpha Anywhere v12.4.6.0.2 Build 5943-5324 IIS v8.5 on Windows Server 2012 in Hyper-V

Similar Threads

  1. What Javascript Event Fires Every Time A UX Is Opened From A List?
    By iRadiate in forum Mobile & Browser Applications
    Replies: 8
    Last Post: 02-17-2017, 11:21 AM
  2. Client Side Event e.javascript
    By chadbrown in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 03-30-2015, 05:36 PM
  3. Replies: 3
    Last Post: 05-09-2014, 02:36 AM
  4. What is the Client Side Event on a grid that fire when the grid close
    By YigalAyalon in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 11-18-2013, 10:33 AM
  5. OnGridPartRender event does not fire the first time grid is run
    By frankbicknell in forum Application Server Version 11 - Web/Browser Applications
    Replies: 4
    Last Post: 05-03-2012, 06:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •