Search found 287 matches

by soa
Fri Sep 13, 2019 10:51 am
Forum: Questions & Answers
Topic: Storing Reference in model. VLWEB
Replies: 4
Views: 50

Re: Storing Reference in model. VLWEB

Thanks Danny. That makes a difference!
by soa
Thu Sep 12, 2019 12:55 pm
Forum: Questions & Answers
Topic: Storing Reference in model. VLWEB
Replies: 4
Views: 50

Storing Reference in model. VLWEB

I have a collection in my model and I want to store a reference to the currently selected item. When I load a List from my collection I have. Add_Entry To_List(#List) #List.CurrentItem.RelatedReference <= #list And in the Item click event I want to store the selected item #model.CurrentVisotRef <= #...
by soa
Thu Sep 12, 2019 11:55 am
Forum: Questions & Answers
Topic: Report with images
Replies: 4
Views: 84

Re: Report with images

If you are using VLWEB it possible, via a widget, to create complex PDFs on the browser side with several JavaScript libraries such as jspdf. In fact, these can be made to work on the iseries by executing the VLWEB RP in node.js. If you want PDFs on the iSeries side then LANSA Integrator is the way ...
by soa
Tue Aug 27, 2019 10:53 am
Forum: Questions & Answers
Topic: VLWEb Dropdown Items (RESOLVED)
Replies: 4
Views: 73

Re: VLWEb Dropdown Items (RESOLVED)

Cancel that last one - I checked it in rather than compile!
by soa
Tue Aug 27, 2019 10:50 am
Forum: Questions & Answers
Topic: VLWEb Dropdown Items (RESOLVED)
Replies: 4
Views: 73

Re: VLWEb Dropdown Items (RESOLVED)

Further. I've added a bunch of items and I want the first to be selected when the drop down is first displayed. I've tried #ddChartType.Items.Add Value('MSColumn2D') Caption('2D Bar') #ddChartType.Items.Add Value('MSColumn3D') Caption('3D Bar') #ddChartType.Value := 'MSColumn2D' but the dropdown com...
by soa
Tue Aug 27, 2019 9:22 am
Forum: Questions & Answers
Topic: VLWEb Dropdown Items (RESOLVED)
Replies: 4
Views: 73

Re: VLWEb Dropdown Items

Simple! Thanks James.
by soa
Tue Aug 27, 2019 8:59 am
Forum: Questions & Answers
Topic: VLWEb Dropdown Items (RESOLVED)
Replies: 4
Views: 73

VLWEb Dropdown Items (RESOLVED)

Dropdown item has value and caption properties but the documentation example only has

#ddChartType.Items.Add( 'Some Item' )

Is it possible to set the caption property in the same statement?
by soa
Fri Aug 23, 2019 7:16 pm
Forum: Questions & Answers
Topic: Widget Woes (RESOLVED)
Replies: 2
Views: 83

Re: Widget Woes

Doh!

Thanks Danny. When you're dealing with stuff your half understand you expect difficult problems not dumb ones!

Have a great weekend
by soa
Fri Aug 23, 2019 5:30 pm
Forum: Questions & Answers
Topic: Widget Woes (RESOLVED)
Replies: 2
Views: 83

Widget Woes (RESOLVED)

I'm trying to implement a widget around FushionCharts - a popular charting js library we've being using for years. I can get it to display something if put all the code in the onRealizeControl but that's not realistic for real world use. I have PROTOTYPE.onRealizeControl = function( parentDiv ) { pa...
by soa
Fri Aug 23, 2019 8:35 am
Forum: Questions & Answers
Topic: VL WEb Browser Console Messsage (RESOLVED)
Replies: 5
Views: 130

Re: VL WEb Browser Console Messsage

I wasn't sure whether the messages were coming from LANSA or not since it referenced lansa.js. The server module calls are definitely asynchronous although the times reported 175- 200+ ms are in line with what I expect the call to take. The server method in question is getting a couple of largelish ...
by soa
Thu Aug 22, 2019 6:36 pm
Forum: Questions & Answers
Topic: VL WEb Browser Console Messsage (RESOLVED)
Replies: 5
Views: 130

Re: VL WEb Browser Console Messsage

From the looks of my logging this looks like it happens when I make a server module call.

I don't know what makes that a violation though as 175ms seems pretty quick.
I'm also sometime seeing

[Violation] 'setTimeout' handler took 67ms
by soa
Thu Aug 22, 2019 4:06 pm
Forum: Questions & Answers
Topic: VL WEb Browser Console Messsage (RESOLVED)
Replies: 5
Views: 130

VL WEb Browser Console Messsage (RESOLVED)

I'm seeing message in the Chrome console

[Violation] 'readystatechange' handler took 175ms

lansa.js 12

What is that all about?
by soa
Fri Aug 09, 2019 11:02 am
Forum: Suggestions for Product Enhancements
Topic: Arrays
Replies: 1
Views: 92

Arrays

I've been using the LI ExcelService Recently and to populate the sheets body you need to specify either a working list or (for the RP version) a collection. If you use a working list you can create a two dimensional array by creating a bunch of fields and putting a DEF_ARRAY over them then putting t...
by soa
Tue Aug 06, 2019 8:54 am
Forum: Questions & Answers
Topic: Visual Style in Grid Cell (SOLVED)
Replies: 7
Views: 193

Re: Visual Style in Grid Cell (SOLVED)

Sorry, I assumed that you were in VL Web land. In This case I don't know if what you ant can be achieved.
by soa
Mon Aug 05, 2019 5:54 pm
Forum: Questions & Answers
Topic: Visual Style in Grid Cell (SOLVED)
Replies: 7
Views: 193

Re: Visual Style in Grid Cell (SOLVED)

You can use a reusable in a grid. I did it a couple of years back. If you search this forum, you should fine some sample code. You need to experiment to see what the performance is like before committing to it as it wasn't great then but a lot of work has been done in this area since.
by soa
Fri Aug 02, 2019 8:32 am
Forum: Questions & Answers
Topic: Visual Style in Grid Cell (SOLVED)
Replies: 7
Views: 193

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

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

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

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

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