I'm trying to get my first bit of my data in my webcore app. I can get my data in the browser interactively. I'm having a problem, so I thought I would go back and check out a demo. I installed 1.3.3.0 today (I uninstalled and removed the examples and the install dir as a precaution).
So load up the project group.
Run the server without debugging. Runs fine.
Run the client, which brings up in the browser:
http://localhost:8000/TMSWeb_TodoList/index.html
I get the HTML banner with the "TMS WEB Core: Using XData DB backend" but blank below it.
So:
Can you confirm the example works ....
How do I diagnose what is going wrong?
can't test REST endpoints in browser as the example user authentication.
OK, so I had done some tinkering and got nothing, then did my post and then did some more...
The server is running fine. If I comment out the "XDataServerGenericRequest" bit that intercepts the call and tells you you can't do anything without authenticating..... I get the standard XData stuff in the browser with /$model etc.
So I go to debug int the browser and there is only .JS source, so I think I'll go back and put into debig mode in Delphi. flip to debug (rather than release) and it starts working, as in I get the login screen.
Jason, and when you are in the Release mode where everything is blank, do you get some errors in the console? Please open the browser console and rerun the application since the beginning, and let me know if there are some errors there.
Thanks Bruno. From a Newbie point of view, when things don't work as you expect them, you can burn a lot of clock cycles before you raise a support ticket. Maybe you could do a quick 1.2.3 in terms of diagnosing problems. I should have looked in the console, but lack of web experience meant I didn't even think to.
The browser console is the first thing to check. Always. When there is nothing in the console, try inserting console.log() statements in your app to trace (via the console) what is happening in the app.