[CLOSED] UserControlLoader handling events define in User Control

Page 3 of 3 FirstFirst 123
  1. #21
    Hello!

    I'm sorry the integration of the solution didn't really work on the actual application.

    Maybe it just didn't export App.direct? Or maybe you are using a different namespace for direct methods (or the application at all)?

    There are two possible causes the direct method be missing on your page:
    1: you didn't add the DirectMethod attribute (line 6 of the main page on last post from me)
    2: you defined a different namespace on your resource manager so that components on client-side are accessible with YourNamespace.QuickSearch instead of App.QuickSearch. In this case, line 18 of the custom control should read YourNamespace.direct instead of App.direct.

    If that's a possibility on your production scenario, please give it a try. You can also change line 18 mentioned above to something like:

    <Select Handler="App.direct.QuickSearch_Selected('testing');" />
    So that it will just break if App.direct is not defined. You can double-check the effective namespace on a page calling Ext.net.ResourceMgr.ns. It is a string that by default would contain App.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  2. #22
    Hello @rmelancon!

    It's been a few days since we last replied to this thread and no feedback from you still. Do you still need help on this issue? We eager to help you make your upgrade as smooth as possible!
    Fabrício Murta
    Developer & Support Expert
  3. #23
    There were too many issues so we abandoned the upgrade.
  4. #24
    Alright! Thanks for the update. Let us know if/when you need more assistance!
    Fabrício Murta
    Developer & Support Expert
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Code behind content handling (from client events)
    By fabricio.murta in forum 2.x Help
    Replies: 5
    Last Post: Oct 22, 2014, 6:26 AM
  2. Replies: 1
    Last Post: Sep 28, 2014, 7:36 AM
  3. Replies: 3
    Last Post: Sep 05, 2013, 8:18 AM
  4. Replies: 1
    Last Post: Jan 28, 2013, 5:26 AM
  5. [CLOSED] Direct events in user control
    By tiramisu in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 13, 2010, 11:34 AM

Posting Permissions