Search found 60 matches

by tsupartono
Tue Apr 09, 2019 11:16 am
Forum: Questions & Answers
Topic: encoding & sha-1
Replies: 2
Views: 99

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: 127

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: 172

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: 172

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: 172

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: 127

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: 93

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: 152

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: 185

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: 558

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: 3712

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: 728

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...
by tsupartono
Thu Sep 06, 2018 1:19 pm
Forum: Questions & Answers
Topic: JSON Reader for Nested Arrays
Replies: 2
Views: 581

Re: JSON Reader for Nested Arrays

Define_Com Class(#PRIM_DC.UnicodeString) Name(#County) For Each(#Component) In(#Reader.ReadArrayWithPath( 'results/1/address_components' )) If (#Component.Item<'types'>.ItemAt<1>.AsString = 'administrative_area_level_2') #County := #Component.Item<'long_name'>.AsString Leave Endif Endfor
by tsupartono
Tue Aug 21, 2018 11:51 am
Forum: Questions & Answers
Topic: Byte array
Replies: 2
Views: 862

Re: Byte array

Can you explain more what you want to do?
Are you coding a client-side VL web page, or server-side (or Windows rich client)?
by tsupartono
Mon Aug 20, 2018 9:51 am
Forum: Questions & Answers
Topic: base64
Replies: 3
Views: 1105

Re: base64

Please find the usage example below.

Code: Select all

Define_Com Class(#XPRIM_Binary) Name(#Bin)

#Bin.FromStringUsingUTF8 String(#MyUserAndToken)
#EncodedToken := #Bin.AsBase64String
by tsupartono
Wed Jul 04, 2018 8:47 am
Forum: Questions & Answers
Topic: xDeviceFileWrite and VLWEB SP2
Replies: 1
Views: 512

Re: xDeviceFileWrite and VLWEB SP2

Have a look at the PRIM_WEB.BlobReader:

https://docs.lansa.com/14/en/lansa016/p ... reader.htm

--
by tsupartono
Mon Jun 18, 2018 9:36 am
Forum: Questions & Answers
Topic: WLWEB in Longrange Webview
Replies: 2
Views: 642

Re: WLWEB in Longrange Webview

I'm not sure if you had a chance to have a look at the last post in this thread - if not this may help you: https://longrange.lansa.com.au/viewtopic.php?f=11&t=610#p1858 If you have tried the suggestion in post above and it does not make any difference for you, I'd suggest you send the issue to Supp...
by tsupartono
Thu May 17, 2018 9:59 am
Forum: Questions & Answers
Topic: XPRIM_HTTPRequest vs CSV Data
Replies: 2
Views: 714

Re: XPRIM_HTTPRequest vs CSV Data

The Response object has an AsFile method that would save the response to a file (you can then use TRANSFORM_FILE function to convert that to a list) Have a look at the documentation below for all the available options: https://docs.lansa.com/14/en/lansa015/index.htm#lansa/l4wtgu10_0135.htm See examp...
by tsupartono
Tue May 15, 2018 11:06 am
Forum: Questions & Answers
Topic: Json Reader Question
Replies: 3
Views: 882

Re: Json Reader Question

For short arrays, the easiest would be this:

Code: Select all

For Each(#Item) In(#JsonReader.ReadArrayWithName( 'textPasted' ))
   * Process #Item
Endfor
by tsupartono
Thu Mar 15, 2018 10:41 am
Forum: Questions & Answers
Topic: Setfocus not working on LANSA Mobile
Replies: 14
Views: 2346

Re: Setfocus not working on LANSA Mobile

When you say it works on the browser, did you mean on your PC, or on iOS Safari on your phone?