Search found 74 matches

by tsupartono
Fri Dec 22, 2017 2:06 pm
Forum: Questions & Answers
Topic: XPRIM_HttpRequest - limitations of using AddFile on IBM i.
Replies: 2
Views: 779

Re: XPRIM_HttpRequest - limitations of using AddFile on IBM i.

You can convert the data manually to Base-64 string (e.g. using XPRIM_Binary) and use AddString (or include it as part of a JSON object), as long as your server code handles the decoding.
by tsupartono
Tue Dec 19, 2017 10:58 am
Forum: Questions & Answers
Topic: Submit button to execute .Net VB program
Replies: 4
Views: 1495

Re: Submit button to execute .Net VB program

I'm not entirely clear on the problem, but if what you want is to do a POST request from the browser, you can use PRIM_WEB.HttpRequest See the documentation below for more details: http://docs.lansa.com/14/en/lansa016/prim_web.httprequest.htm Question: When you say you have to encrypt the data befor...
by tsupartono
Tue Dec 05, 2017 8:14 am
Forum: Tips and Techniques
Topic: Two-factor Authentication using Twilio's Authy
Replies: 0
Views: 8818

Two-factor Authentication using Twilio's Authy

If you are thinking about implementing two-factor authentication (2FA) in your web application, one of the providers you might want to consider is Twilio's Authy . Authy supports delivery of authentication tokens using SMS and smartphone app via a single, unified API call. The downloadable Web API C...
by tsupartono
Tue Nov 14, 2017 7:55 am
Forum: Questions & Answers
Topic: Continuing saving images Lansa mobile
Replies: 11
Views: 3066

Re: Continuing saving images Lansa mobile

You can still use PRIM_ALPH . I noticed in the example I provided, the FromBase64String invocation is missing the String parameter name . The String parameter name does need to be specified. Please see the corrected code below. Define_Com Class(#PRIM_ALPH) Name(#MyBase64String) #BinaryData.FromBase6...
by tsupartono
Mon Nov 13, 2017 11:40 am
Forum: Questions & Answers
Topic: SYS_WEB.Signature not showing annotation (on Android)
Replies: 3
Views: 1958

Re: SYS_WEB.Signature not showing annotation (on Android)

Looks like this doesn't work on Chrome on Android either.
Probably best to report this to LANSA Support for investigation.
by tsupartono
Wed Oct 25, 2017 6:22 am
Forum: Tips and Techniques
Topic: What's New in EPC 141070 for SP1
Replies: 2
Views: 8987

Re: What's New in EPC 141070 for SP1

It could be a DNS cache issue.
Try executing the following from the Command Prompt:

Code: Select all

ipconfig /flushdns
Or download PDF copy below.
EPC141070.pdf
(487.65 KiB) Downloaded 228 times
by tsupartono
Tue Oct 24, 2017 6:53 pm
Forum: Tips and Techniques
Topic: What's New in EPC 141070 for SP1
Replies: 2
Views: 8987

What's New in EPC 141070 for SP1

EPC 141070 (for 14 SP1) contains a couple of new features and bug fixes for the LANSA RDMLX Extended Library.

See the following for more information:
https://blogs.developer.lansa.com/epc141070/

-
by tsupartono
Tue Oct 24, 2017 6:20 pm
Forum: Questions & Answers
Topic: Continuing saving images Lansa mobile
Replies: 11
Views: 3066

Re: Continuing saving images Lansa mobile

If you install EPC141070 (for SP1), you can use XPRIM_Binary to convert your Base64 string to bytes and write it to a file. Assuming your Base64 data is in a variable called #MyBase64String , see example below. Define_Com Class(#XPRIM_Binary) Name(#BinaryData) #BinaryData.FromBase64String String(#My...
by tsupartono
Wed Oct 18, 2017 6:53 am
Forum: Tips and Techniques
Topic: How to Store Passwords Securely in the Database
Replies: 2
Views: 9744

How to Store Passwords Securely in the Database

With the release of EPC 141070 that introduces cryptographic hash functions for RDMLX, it’s a good time to talk about password security. Read on if you are developing or maintaining websites that keeps a user database. https://blogs.developer.lansa.com/secure-password-storage/ We’ll talk about some ...
by tsupartono
Wed Oct 04, 2017 3:00 pm
Forum: Tips and Techniques
Topic: Generating SSL Certificates using Let's Encrypt
Replies: 0
Views: 8892

Generating SSL Certificates using Let's Encrypt

When you setup your website to use HTTPS, you'd need to either create a self-signed certificate , or purchase a certificate from a Certificate Authority such as VeriSign . In the past, many have opted to use self-signed certificates , as Certificate Authorities generally charge fees to issue cerfifi...
by tsupartono
Wed Oct 04, 2017 11:39 am
Forum: Questions & Answers
Topic: LANSA Mobile tracing and debugging
Replies: 2
Views: 883

Re: LANSA Mobile tracing and debugging

For information on how to output to LANSA Mobile's Developer Console , have a look at this thread: https://vlforum.lansa.com.au/viewtopic.php?f=3&t=1106 Do you use any LANSA Mobile's device specific features, such as barcode scanning? (Do you use any of the xDevice.... widgets)? If you don't, you ca...
by tsupartono
Tue Sep 26, 2017 9:36 am
Forum: Questions & Answers
Topic: ATO ABN search
Replies: 1
Views: 741

Re: ATO ABN search

I have never used that API, but most likely you have the wrong URL. Services endpoints normally have asmx extension (what you were using, the ASPX page, is just the service test page). Try this end-point: https://abr.business.gov.au/abrxmlsearch/AbrXmlSearch.asmx/SearchByABNv201408?searchString=XXXXXX
by tsupartono
Mon Aug 28, 2017 9:22 am
Forum: Questions & Answers
Topic: #XPRIM_Json Question
Replies: 5
Views: 1613

Re: #XPRIM_Json Question

Jim, please find an example below how to iterate through an array element. The code assumes the RootArray points to your root array, and that each element in the array is an object. Define_Com Class(#STD_INT) Name(#i) Define_Com Class(#XPRIM_JsonObject) Name(#Item) Reference(*DYNAMIC) Begin_Loop Usi...
by tsupartono
Thu Aug 24, 2017 8:09 pm
Forum: Tips and Techniques
Topic: Getting error information when parsing JSON response from XPRIM_HttpRequest
Replies: 0
Views: 3794

Getting error information when parsing JSON response from XPRIM_HttpRequest

When you make a web service invocation using XPRIM_HttpRequest and you are expecting to receive a JSON response, don't assume that you are always going to get a valid JSON response. Some examples of situations where the server may not return a valid JSON: When the server thinks your request is not a...
by tsupartono
Thu Aug 17, 2017 6:07 pm
Forum: Tips and Techniques
Topic: JSON external data transfer
Replies: 10
Views: 8500

Re: JSON external data transfer

LANSA now has a server-side native RDML HTTP request and JSON data handling capabilities. The features require EPC141050: http://www.lansa.com/support/notes/epc/epc141050.htm Please see the following documentation on Web Services for more details: http://docs.lansa.com/14/en/lansa018 See also the fo...
by tsupartono
Wed Aug 16, 2017 7:18 am
Forum: Questions & Answers
Topic: 'XPRIM_HttpRequest.doPOST' JSON nesting?
Replies: 4
Views: 1214

Re: 'XPRIM_HttpRequest.doPOST' JSON nesting?

There is currently a known issue with the XPRIM_HttpRequest where the "Content-Type" is sent incorrectly as "application/json; charset=utf-8" instead of just "application/json". This could possibly be the issue. Some servers are more strict than other in validating incoming requests. Contact LANSA S...
by tsupartono
Tue Aug 15, 2017 3:09 pm
Forum: Questions & Answers
Topic: 'XPRIM_HttpRequest.doPOST' JSON nesting?
Replies: 4
Views: 1214

Re: 'XPRIM_HttpRequest.doPOST' JSON nesting?

Hi, I'm assuming that you were just testing it and were trying to see the value of the JSON string by putting that in the LANSA field W_JSONTXT ? The WAM standard response would include the field type & value, where the value would have property name "value", so that's why it looks like your JSON is...
by tsupartono
Mon Jun 26, 2017 10:57 am
Forum: Questions & Answers
Topic: VLWeb app in LANSA mobile
Replies: 1
Views: 678

Re: VLWeb app in LANSA mobile

Unfortunately there is currently no way for VL-Web to disable user zooming. An enhancement work that includes this is already in progress and it would be available in SP2, but it's always a good idea to log an enhancement request with LANSA Support. And for those who are interested, on the HTML leve...
by tsupartono
Thu Jun 08, 2017 8:03 am
Forum: Questions & Answers
Topic: Please Help me convert .NET from C# to RDML.
Replies: 6
Views: 1692

Re: Please Help me convert .NET from C# to RDML.

You may also want to wait for the next EPC (scheduled to come out in a few days).
This EPC lets you easily consume web services natively from your RDMLX code.
by tsupartono
Thu May 18, 2017 10:10 am
Forum: Questions & Answers
Topic: VL-Web application focus control on LANSA Mobile
Replies: 2
Views: 994

Re: VL-Web application focus control on LANSA Mobile

This is a bug in the current version of LANSA Mobile (Android). A new version will be on the Google Play very soon that addresses this issue. Please note however that even when the fields gets focus, the on-screen keyboard won't popup on its own (you would still need to manually touch the input fiel...