View Full Version : Fiddle2 Direct Functions

20 Mar 2017, 11:09 AM
I've reviewed all of the Fiddle2 docs I can find, but I'm unable to successfully setup an ExtDirect function in Fiddle. The fiddle docs talk a lot about it, but never show a full example. I'm just trying to define a ExtDirect function, call it, and display the output in the console. Is this possible in Fiddle2?

20 Mar 2017, 11:19 AM
Yes. Did you add the provider?


Fiddle doesn't aim to do magic for you, it does what you tell it to do so it doesn't want to add the provider for you automagically. Magic things tend to hide needed things. The only auto thing is it will add the script that will load the api descriptor. If you look in the dev tools you will see the direct/api javascript file is loaded and uses window.REMOTING_API variable to set the api descriptor. So all you have to do is add that to the direct manager.

20 Mar 2017, 11:45 AM
That's the missing piece. I don't see how I could have know that the provider was defined in that variable.