Search found 68 matches

by tsupartono
Thu Jun 27, 2019 10:46 am
Forum: Questions & Answers
Topic: Mobile Dataset Question
Replies: 1
Views: 43

Re: Mobile Dataset Question

LANSA Mobile does have support for SQLite local database.

I believe this has been used in a service work for a customer - hopefully I can get the consultant involved in the work to share their experience in this forum.
by tsupartono
Mon Jun 24, 2019 3:21 pm
Forum: Product Announcements
Topic: Google 64-bit app requirement for LANSA Mobile (Custom Version)
Replies: 0
Views: 23

Google 64-bit app requirement for LANSA Mobile (Custom Version)

If you have a LANSA Mobile custom version subscription with Android support, you may get an email from Google indicating that from August 2019, new apps and app updates that include native code are required to provide 64-bit versions in addition to 32-bit versions when publishing to Google Play. LAN...
by tsupartono
Fri Jun 21, 2019 11:48 am
Forum: Questions & Answers
Topic: Retrieving element name from JSON Message
Replies: 4
Views: 149

Re: Retrieving element name from JSON Message

You can play around with it now, there won't be any change in the API itself. The upcoming EPC142060 corrects some issues in PRIM_JSON.Document : LoadFromString does not take unicode string LoadFromFile missing path parameter Getting decimal value throws an error Also, if you use the publishing web ...
by tsupartono
Fri Jun 14, 2019 4:38 pm
Forum: Questions & Answers
Topic: Retrieving element name from JSON Message
Replies: 4
Views: 149

Re: Retrieving element name from JSON Message

I'm assuming you are going to do this on your server-side code (server module). The best way right now is to use PRIM_JSON.Reader See https://apps.lansa.com/lansav14sp2/dem/xdemow_12.html for usage example. Have a look at this forum post as well: https://forum.developer.lansa.com/viewtopic.php?f=3&t...
by tsupartono
Tue Jun 11, 2019 11:16 am
Forum: Questions & Answers
Topic: listen for a http post
Replies: 1
Views: 108

Re: listen for a http post

You can create an RDML server module that's exposed as web services. Have a look at this guide for details on publishing web services: https://apps.lansa.com/lansav14sp2/dem/xdemow_12.html The guide explains how to create service endpoints (URLs from where the service can be accessed), and how to ex...
by tsupartono
Fri May 17, 2019 9:37 am
Forum: Questions & Answers
Topic: Retrieve the device name of iOS device
Replies: 2
Views: 159

Re: Retrieve the device name of iOS device

If it’s running in LANSA Mobile, then yes, otherwise no.
by tsupartono
Thu May 09, 2019 5:25 pm
Forum: Questions & Answers
Topic: CORS policy and HttpRequest
Replies: 4
Views: 200

Re: CORS policy and HttpRequest

Yes you can definitely do it server-side using XPRIM_HttpRequest or Integrator.

Most HTTP request contains secret information such as API keys/credentials anyway, so generally they must be done from the server (as the browser is not a secure environment).
by tsupartono
Thu May 09, 2019 4:56 pm
Forum: Questions & Answers
Topic: CORS policy and HttpRequest
Replies: 4
Views: 200

Re: CORS policy and HttpRequest

It's the destination website that needs to set the Access-Control-Allow-Origin header, not your RDML code.
The error basically is saying that the destination website does not allow your web app to use its resource.
Do you have control over the destination server? Can you make a change to it?
by tsupartono
Tue Apr 09, 2019 11:16 am
Forum: Questions & Answers
Topic: encoding & sha-1
Replies: 2
Views: 4709

Re: encoding & sha-1

We can add SHA-1 algorithm to XPRIM_CryptoHash. It will be included in the next EPC - which will be released in the next month or so.
If you need it urgently, we can provide a pre-release package for you.
Contact LANSA Support to log the request.
by tsupartono
Thu Mar 28, 2019 5:00 pm
Forum: Tips and Techniques
Topic: Reading huge JSON data in web service invocation....
Replies: 3
Views: 7279

Re: Reading huge JSON data in web service invocation....

Jim, A couple of comments. The RDML Extended Library (XPRIM components) was created so that new & experimental features can be released faster to customers. Some components will, in due time, be made into proper VL PRIMs (such as the JSON reader). The price to pay however is that the XPRIM component...
by tsupartono
Tue Mar 26, 2019 11:29 am
Forum: Questions & Answers
Topic: LANSA Mobile for Windows 7
Replies: 7
Views: 7345

Re: LANSA Mobile for Windows 7

Have a look at this one - this should work on Chrome. https://developers.google.com/web/fundamentals/media/capturing-images/ You would need to write a widget. Once you have the picture on a canvas, you can pass the Base64 encoded picture to VL web, convert it to BLOB, and send it to the server. And ...
by tsupartono
Tue Mar 26, 2019 11:15 am
Forum: Questions & Answers
Topic: LANSA Mobile for Windows 7
Replies: 7
Views: 7345

Re: LANSA Mobile for Windows 7

When you say save it as a BLOB, you mean as a file on the Windows file system?
by tsupartono
Tue Mar 26, 2019 10:27 am
Forum: Questions & Answers
Topic: LANSA Mobile for Windows 7
Replies: 7
Views: 7345

Re: LANSA Mobile for Windows 7

You may not need LANSA Mobile.

Can you tell us a bit more what you are trying to do with the picture once taken?
by tsupartono
Mon Mar 25, 2019 5:53 pm
Forum: Tips and Techniques
Topic: Reading huge JSON data in web service invocation....
Replies: 3
Views: 7279

Reading huge JSON data in web service invocation....

The XPRIM_JsonReader (and XPRIM_RandomAccessJsonReader ), which is part of the RDMLX Extended Library , does not perform well when reading large amount of JSON data, as it's an RDML library , as opposed to a native VL feature . Also, performance on the IBM i is definitely worse than on Windows . If ...
by tsupartono
Fri Mar 22, 2019 4:35 pm
Forum: Questions & Answers
Topic: #XPRIM_JsonObject
Replies: 2
Views: 1747

Re: #XPRIM_JsonObject

The XPRIM_JsonReader will not perform well when reading large amount of data, as it's an RDML library , as opposed to a native VL feature. Performance on IBM i is definitely worse than on Windows. My suggestion would be to try to use the native PRIM_JSON feature. You would need to write the response...
by tsupartono
Sat Feb 23, 2019 7:41 am
Forum: Questions & Answers
Topic: Webservice generation
Replies: 2
Views: 1422

Re: Webservice generation

Hi Dan, Just so you are aware, aXes has its own forum and you might get more replies if you post your question there. https://axes.lansa.com.au At the least, aXes does come with a set of Java and .NET API that let you navigate your screens and get/set fields on the screen programmatically . If you h...
by tsupartono
Thu Jan 31, 2019 5:53 pm
Forum: Questions & Answers
Topic: XPRIM_RandomAccessJsonReader and ReadStringWithName
Replies: 2
Views: 1596

Re: XPRIM_RandomAccessJsonReader and ReadStringWithName

Since the result property is under the operation object, I would imagine you would need to start from operation , followed by result ? #JsonRandomAccessReader.BeginObjectWithName( "operation" ) #JsonRandomAccessReader.BeginObjectWithName( "result" ) Or you can also do: #JsonRandomAccessReader.BeginO...
by tsupartono
Fri Nov 09, 2018 10:18 am
Forum: Questions & Answers
Topic: XPRIM_JSON
Replies: 2
Views: 1351

Re: XPRIM_JSON

Unfortunately not.
by tsupartono
Wed Oct 24, 2018 12:47 pm
Forum: Tips and Techniques
Topic: If you are writing/reading JSON for Web API Publishing.....
Replies: 0
Views: 10784

If you are writing/reading JSON for Web API Publishing.....

When writing/reading JSON in your server module for the purpose of publishing web services , make sure that you use the VL-native PRIM_JsonWriter and PRIM_JsonReader , instead of the XPRIM_JsonWriter and XPRIM_JsonReader (from the RDML Extended Library ). As PRIM_JsonWriter and PRIM_JsonReader are n...
by tsupartono
Mon Sep 10, 2018 1:24 pm
Forum: Questions & Answers
Topic: #XPRIM_HttpRequest & Base64
Replies: 2
Views: 971

Re: #XPRIM_HttpRequest & Base64

The default memory allocation on IBM i is limited to 16M, so that may be your issue. We'll investigate to see if there is any way around this limitation. Note also that if you are writing/reading Base64-encoded file, don't encode/decode manually, as VL strings are limited to 64K - you won't get an e...