Forum Post: RE: newbee, how to expose...

  • Thread starter Thread starter Ricardo Perdigao
  • Start date Start date
Status
Not open for further replies.
R

Ricardo Perdigao

Guest
Hi, I would suggest you start by watching/doing the REST expose part of this workshop: community.progress.com/.../2437.webinar-modernize-your-existing-openedge-applications-with-kendo-ui.aspx After you have done that, I suggest the simplest approach that I can think of: - Do the similar configuration but connecting to your Database - Create a Business Entity and instead of selecting a DB/Table like in the workshop above, use a .i file with the desired storage structure (dataset / temp-table) - Comment the generic code included in the Read class ( /* SUPER:ReadData(filter). */ ) and paste your code in there - Adapt your code to use a single input parameter called filter. In order to do that, you can pass the parameters as a JSON string and have your Read class parse them back into multiple variables - Expose the Business Entity in you REST Service and test it If you need to keep the code as-is, you can do it with INVOKE, but it would be more complex than what I've suggested above. Regards, Ricardo Perdigao

Continue reading...
 
Status
Not open for further replies.
Back
Top