E
egarcia
Guest
Hello, Just some few comments. As Bill Wood mentioned above, the JSDO is dynamic and uses the JSDO Catalog to determine the schema and operations supported by the resources. The JSDO supports invoke operations by name, you just call the method in the JSDO. You do not need to say something like "invoke(methodName)". REST is useful when you need to have full control of the parameters and headers passed and received from a REST Service. However, if you need to do special handling of the data, then you need to write it yourself. The JSDO provides an API that you can use the write code in JavaScript. The JSDO gives you access to features such the JSDO memory (records are available locally) and Submit/before-image support (before-image is included in DataSets so that the Business Entity can detect concurrent changes). (The JSDO API could also be made available to a Java client or a Swift client.) Even though the Business Entities generated using Progress Developer Studio are static, it is possible to have a Business Entity that is dynamic to provide CRUD operations for every table in a database. It could have model to allow custom code. A Mobile Service with a Business Entity is in fact a REST Service where the Business Entity supports a specific set of methods to perform CRUD operations and INVOKE. These methods use a prescriptive approach. If I had some time available, I would make a generic Business Entity using the sample program customer_rest.p as a starting point. You can find the sample program customer_rest.p in the middle of the following thread: community.progress.com/.../47148.aspx I hope this helps.
Continue reading...
Continue reading...