Data exchange betwen Webview and CSEntry Item

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Data exchange betwen Webview and CSEntry Item

Post by htuser »

Dear CSPro Development Team,
Thanks a lot for allowing CSProusers to use cutting edge technologies in CSPro, for example, webview. This allow us to use lot of existing Javascripts libraries and asking less to you.
For example, the same vision technologies you use for barcode reader can also allow us OCR. Months ago, i asked you to implement it natively in CSPro.
It's important for example, to read name and age from a photo of any ID documents. This will results in less errors in name and age during census and survey. Since this is not yet implemented natively, i'm thinking about using best in class existing Javascript librairy: Tesseract.js, a Webassembly port of an advanced C/C++ OCR engine library.

Right now, the problem is :
a) Where does CSentry-webview store persistent data in Windows and Android OS?
b) Does a user can change the location of the webview data folder?
c) Do we have a more direct way to transfer data collected from webview to CSEntry item?

Please let me know.
Best,
G.VOLNY, a CSProuser from Haiti, since 2004
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Data exchange betwen Webview and CSEntry Item

Post by Gregory Martin »

In CSPro 7.7, a local web server will be created when using the view function to display HTML, so you can use relative paths from the location of your HTML file. For example, if you do:
view("C:/Test/Test.html");
You can link to libraries in that file:

Code: Select all

<script src="JS/Tesseract.js"></script>
That would look for the file in C:/Test/JS/Tesseract.js.
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Data exchange betwen Webview and CSEntry Item

Post by htuser »

Thanks a lot Greg.
This improvement will allow us to design Javascript enriched CSEntry Applications. A world is open for us. CSProusers will ask less native functions to you. When CAWI is implemented, CSPro will re-take the first place.

But, after CAPI text, we would like to have HTML/CSS/Javascript part be displayed in popup windows. For example, when i display autocomplete for a specific field with Javascript, it will better to have it displayed in a small popup windows (such as the prompt function do it ) rather than an entire webview page.

Thanks in advance!
Best
G.VOLNY, a CSProuser from Haiti, since 2004
Post Reply