Search found 312 matches

by soa
Fri Aug 02, 2019 8:32 am
Forum: Questions & Answers
Topic: Visual Style in Grid Cell (SOLVED)
Replies: 7
Views: 332

Re: Visual Style in Grid Cell (SOLVED)

If you want to change the colour of a sub-string of text in a cell you could create a reusable part containing a html control then set the text colour using html eg 'Hello <span style="color:blue">world<span>
by soa
Tue Jul 23, 2019 3:08 pm
Forum: Suggestions for Product Enhancements
Topic: Debugger Irritants
Replies: 7
Views: 481

Re: Debugger Irritants

Danny

I certainly have a memory of seeing these issues resolved in an EPC but I have EPC142040 installed and these issues are still there.
by soa
Fri Jul 19, 2019 11:33 am
Forum: Suggestions for Product Enhancements
Topic: Debugger Irritants
Replies: 7
Views: 481

Debugger Irritants

A couple of things that drive me crazy everyday! When debugging WAMs right-cliking a variable name in the code does bring up the 'Show variable' in the popup menu like it does in other RDMLX functions forcing me to trawl through the variable list. In the list of debug variables anything with a field...
by soa
Wed Jul 03, 2019 2:37 pm
Forum: Questions & Answers
Topic: Retrieving API request body
Replies: 6
Views: 472

Re: Retrieving API request body

That's awesome In the example above [{"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":"{}"}, I can't get the value "time_taken" I've tried asDecimal and asString and th...
by soa
Wed Jul 03, 2019 12:22 pm
Forum: Questions & Answers
Topic: XPRIM_HttpRequest
Replies: 1
Views: 206

XPRIM_HttpRequest

Hi I have the following code fragment #TempFile.CreateTemporaryFile #Request.Response.AsFile Autodelete(True) Path(#TempFile) #FileStream.Path := #TempFile Which all works beautifully but I've noticed my \tmp folder is filling up with files like QACXCAYX2M QACXCR5FHZ QACXC1W4KL QACXDCA0W2 QACXDKR36C...
by soa
Wed Jul 03, 2019 12:13 pm
Forum: Questions & Answers
Topic: Retrieving API request body
Replies: 6
Views: 472

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

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

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

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

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

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

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

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

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

#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: 1653

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

#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: 21375

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

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">