A
agent_008_nl
Guest
Hi, I'm looking for a guide for creating a simple first app without mob appbuilder (is there one somewhere?), but using the jsdo. I have a mobile service working; restclient tool works with GET http://localhost:8980/CustomerMobile/rest/CustomerMobile/dsCustomer?filter =. But now I want to create a first simple html-page that shows some data of this dataset. I have put the following in RESTContent /static/customer.html (see below). This file is published automatically to servers\tomcat\webapps\CustomerMobile\static. But I do not see progress.js a nd p rogress.session.js in servers\tomcat\webapps\CustomerMobile\static\mobile, only CustomerMobile.json. And which url should I use to get the data, is it http://localhost:8980/CustomerMobile/static/customer.html ? ! DOCTYPE html html head script src = "/jsdo/progress.session.js" / script script src = "/jsdo/progress.js" / script script session = new progress.data.Session(); session.login( "http://localhost:8980/CustomerMobile/rest/CustomerMobile" , "" , "" ); session.addCatalog( "http://localhost:8980/CustomerMobile/static/mobile/CustomerMobile.json" ); jsdo = new progress.data.JSDO({ name: "dsCustomer" }); // jsdo.subscribe("AfterFill", onAfterFillCustomers, this) ; jsdo.fill(); function onAfterFillCustomers(jsdo, success, request) { jsdo.eCustomer.foreach( function (customer) { document.write(customer.data.CustNum + " " + customer.data.Name + " br " ); }); } / script / head body / body / html -- Kind regards, Stefan Houtzager Houtzager ICT consultancy & development www.linkedin.com/in/stefanhoutzager
Continue reading...
Continue reading...