Search found 287 matches

by soa
Wed Jul 03, 2019 12:13 pm
Forum: Questions & Answers
Topic: Retrieving API request body
Replies: 6
Views: 343

Re: Retrieving API request body

Hi I have a piece of json that looks like [{"id":6378787,"test_session":221568,"test_item":368,"response":"\"1\"","full_response":"1","correct":false,"time_taken":49.3727610111237,"modified":false,"flags":0,"flags_detailed":"{}"},{"id":6379123,"test_session":221568,"test_item":3985,"response":"\"4\"...
by soa
Tue Jul 02, 2019 5:48 pm
Forum: Questions & Answers
Topic: VLWeb & Back button
Replies: 2
Views: 148

Re: VLWeb & Back button

Thanks Mark. That's exactly what I was looking for.

Chrome says 'Leaving Site?. Changes you made will not be saved.' Which is OK by me.
by soa
Tue Jul 02, 2019 4:07 pm
Forum: Questions & Answers
Topic: VLWeb & Back button
Replies: 2
Views: 148

VLWeb & Back button

There are websites which when yiu try to close them or navigate away using the back button display a message saying something like 'Are you sure yiu want to navigate away from this page, Is it possible to do this in VLWEB?
by soa
Fri Jun 28, 2019 9:10 am
Forum: Questions & Answers
Topic: SYS_APPLN.Idle
Replies: 0
Views: 98

SYS_APPLN.Idle

Hi, I'm using SYS_APPLN.Idle to terminate a sessions if there is no activity for a period. I have the option to start a timer to auto refresh the screen every 30 seconds. If this is on I don't want to timeout. The documentation refers IdleEnd being triggered by keyboard or mouse activity. Will it be...
by soa
Fri Jun 21, 2019 9:56 am
Forum: Questions & Answers
Topic: Retrieving element name from JSON Message
Replies: 4
Views: 296

Re: Retrieving element name from JSON Message

We don't have EPC142060 installed as it is not released but in another post I saw these declarations Define_Com Class(#PRIM_JSON.Document) Name(#lDocument) Define_Com Class(#PRIM_JSON.Object) Name(#lRequestObject) Reference(*DYNAMIC) Define_Com Class(#PRIM_JSON.Member) Name(#lRequestMember) Referenc...
by soa
Mon Jun 17, 2019 4:55 pm
Forum: Questions & Answers
Topic: Max number of files read in a folder by OV_FILE_SERVICE
Replies: 2
Views: 140

Re: Max number of files read in a folder by OV_FILE_SERVICE

From memory this is an RDML function which returns a working list do the maximum must be 9999.
by soa
Fri Mar 29, 2019 8:33 am
Forum: Tips and Techniques
Topic: Reading huge JSON data in web service invocation....
Replies: 3
Views: 7458

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

Thanks for the response. For the majority of our use cases XPRIM is the easiest way to go and we will not be making wholesale changes in this area. For those cases with large data sets the PRIM stuff is a lifesaver and has allowed me to look at different ways of doing a couple of things. So no matte...
by soa
Thu Mar 28, 2019 10:53 am
Forum: Tips and Techniques
Topic: Reading huge JSON data in web service invocation....
Replies: 3
Views: 7458

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

Tony As I've mentioned elsewhere in this forum the speed improvement of PRIM_JSON.Reader over XPRIM_JSON.Reader is significant to the point where for one real life use case XPRIM_JSON.Reader was practically useless. I was going to have to poll a service every two minutes and take more than two minut...
by soa
Mon Mar 25, 2019 5:31 pm
Forum: Questions & Answers
Topic: #XPRIM_JsonObject
Replies: 2
Views: 1800

Re: #XPRIM_JsonObject

See my response elsewhere in this forum. #PRIM_JSON.Reader is MUCH faster than #XPRIM_JSON.Reader
by soa
Mon Mar 25, 2019 5:29 pm
Forum: Questions & Answers
Topic: Using jsonreader with a file
Replies: 1
Views: 1592

#PRIM_JSON.Reader

Okay I've managed to get this PRIM (not XPRIM) stuff going Define_Com Class(#PRIM_IOC.FileStream) Name(#FileStream) Define_Com Class(#PRIM_IOC.StreamReader) Name(#TextReader) Stream(#FileStream) Define_Com Class(#PRIM_JSON.Reader) Name(#JsonReader) Textreader(#TextReader) You've basically got to han...
by soa
Mon Mar 25, 2019 10:10 am
Forum: Questions & Answers
Topic: Using jsonreader with a file
Replies: 1
Views: 1592

Using jsonreader with a file

Elsewhere in this forum there is a suggested way of accessing json data by saving to a temporary text file then using JSONReader. I can't work out how to access the data within the loop and I can't find any documentation. I can see the JsonReader has TokenAs... properties but I can't work out how to...
by soa
Fri Mar 22, 2019 3:59 pm
Forum: Questions & Answers
Topic: #XPRIM_JsonObject
Replies: 2
Views: 1800

#XPRIM_JsonObject

I'm calling a web service which returns an array of objects like this { "SchoolsList": [ { "Account": "f488553b-d025-dc11-803a-00118581f25d", "AccountName": "Vistara Primary School", "DECId": null, "NESAId": "77579" }, { "Account": "a2251935-80fa-da11-8d33-00118581f25d", "AccountName": "Giant Steps ...
by soa
Thu Mar 21, 2019 5:16 pm
Forum: Suggestions for Product Enhancements
Topic: IDE Enhancement Request
Replies: 0
Views: 21299

IDE Enhancement Request

The Go to Tab contains access to BIFs, Routines, I/O operations etcetera. It would be really useful to identify call, transfer and submit statements as well. I often find myself trying work out a path through various applications and using find looking for 'call' leads to lots of false positives, es...
by soa
Mon Mar 18, 2019 9:23 am
Forum: Questions & Answers
Topic: Disable Autofill function in Browser
Replies: 6
Views: 3319

Re: Disable Autofill function in Browser

You can't turn autofill of in all your clients browsers. Try the following

This will work in html but I don't know if lansa provides a way of implementing this.

<input name="userid" autocomplete="off">
by soa
Tue Mar 12, 2019 8:49 am
Forum: Questions & Answers
Topic: Heap list completed
Replies: 2
Views: 1621

Re: Heap list completed

How are you converting HTML into a PDF?
by soa
Tue Mar 05, 2019 4:15 pm
Forum: Questions & Answers
Topic: Using Exec_Os400 command in V13
Replies: 14
Views: 6348

Re: Using Exec_Os400 command in V13

If you can't call it from the WAM you could probably put the Exec_OS400 in an RDML function and then call that.
by soa
Mon Feb 18, 2019 4:17 pm
Forum: Questions & Answers
Topic: Debug an RDMLX Trigger
Replies: 2
Views: 1943

Re: Debug an RDMLX Trigger

Thanks for the response Mark. I'm trying to do this from a green screen function.
by soa
Mon Feb 18, 2019 12:18 pm
Forum: Questions & Answers
Topic: Debug an RDMLX Trigger
Replies: 2
Views: 1943

Debug an RDMLX Trigger

I need to debug a trigger. This is straightforward with RDML I just press F10 but I can't work out how I do this for RDMLX. Is this possible?
by soa
Fri Nov 09, 2018 10:25 am
Forum: Questions & Answers
Topic: XPRIM_JSON
Replies: 2
Views: 1403

Re: XPRIM_JSON

Thanks for the prompt response, Tony.