Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store records as XML or DBF?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01646155
Message ID:
01646164
Views:
48
>>Hi,
>>
>>I am working on a mobile VFP application for parts inventory control. This VFP 9 application will work on a Windows 8/10 tablet. All data communication between the application and the database is done via Web API services. The application has a couple of text boxes with the lookup forms. For example, a user of the Mobile App can lookup a part # with description or a cost centers, etc. These lookup views will use the data in the local storage on the tablet (e.g. folder "c:\myappdata". The data will be received as JSON object by an endpoint call to Web API server. I have two options, when saving the JSON to the local folder, either save it as XML or DBF. If I save it as XML, at run time, when a lookup textbox is instantiated, the XML will be converted to a cursor which will be bound to the lookup text box. If I save it as DBF, it is simpler, since the DBF does not need to be converted and can be used directly with the lookup. But I am always concern that DBF may have some "side effects". So I am leaning towards XML. The average size of the largest table to be stored in the local folder is about 5000 (max, I would say 10,000). I have not tested the time it would take the VFP to convert the XML to DBF. But in general, which would you recommend, XML or DBF?
>>TIA for any suggestions.
>
>Dunno. But if you decide on XML why not have Web Api return XML rather then JSON ? Saves a conversion.....

Good point. But 1) the guy who is developing Web API seems to be more comfortable with XML. 2) The same Web API will be used with the functionally the same iOS application. And the iOS developer prefers the JSON.
So, I have to go with their preferences.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform