1. Jochen Peters
  2. Valentina Server
  3. Понедельник, Май 09 2016, 03:25 PM
  4.  Подписаться через email
I need to read data from xojo ios to a valentina server sqlite

Can this is posible
Yes or No
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hi Alexis,

Yes, it is possible, but only using Valentina Server REST interface through the series of HTTP requests.
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
if any XOJO examples ?
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
No, there are only python examples at the moment.
Looks like Xojo HTTPSocket can be used for this task.
Ссылки
  1. http://docs.xojo.com/index.php/HTTPSocket
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hi Alexis,
I've created a basic example on how to work with Valentina SQLite Server via REST in Xojo iOS.
Вложения
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
cool thanks

the only i do no see is make a report on it

;)
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Reports are accessible via REST interface - SQL command REPORT is used.

We'll make an example for reports.

Do you need reports only for SQLite in this task? (I'm asking because there will be an important fix for this datasource in the future version 6.5.4, and it will be necessary to update)

And how generated report will be used - shown in the WebView or sent elsewhere?
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
Yes sqlite
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
And how are you going to use generated report? Show to the user or send somewhere? In which format?
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
show and some times send by email
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hi Alexis,

I've created an example on how to generate a report in PDF format (HTML is possible, too) via Valentina Server REST and present it to the user.

To run it - it is necessary to drop M_Text extension methods into the project to get DecodeBase64 functionality, missing in iOS.
Вложения
Комментарий
There are no comments made yet.
Jochen Peters Ответ принят
thanks for the hard works
Комментарий
There are no comments made yet.
  • Страница :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories