Search found 6 matches

by Jurgen.Rentinck
Thu Feb 20, 2020 10:04 pm
Forum: Questions & Answers
Topic: REST-API, receive gzip compressed data
Replies: 1
Views: 1272

Re: REST-API, receive gzip compressed data

I found out this is not yet supported natively in Visual LANSA. There is an option that can be used as a workaround this is a Windows only solution. The gzip.exe tool can be downloaded here http://gnuwin32.sourceforge.net/packages/gzip.htm . In the sample code below it assumed the content of the bin...
by Jurgen.Rentinck
Mon Feb 17, 2020 10:47 pm
Forum: Questions & Answers
Topic: REST-API, receive gzip compressed data
Replies: 1
Views: 1272

REST-API, receive gzip compressed data

Hi,

I have a situation where it is mandatory to add the HTTP header variable Accept-Encoding: gzip to the request.
The API will now return the JSON compressed as expected but how do we now use the JSON?

Is there a utility in Visual LANSA to deflate the data?

Thanks,
Jurgen
by Jurgen.Rentinck
Fri Feb 01, 2019 7:49 am
Forum: Questions & Answers
Topic: VLF-ONE instancelist headername
Replies: 2
Views: 2207

VLF-ONE instancelist headername

Hi, I can programmatically change the instancelist header name for an instancelist column, this is shown in example DF_T3003O. But I noticed the column selection menu is not updated, am I able to access the captions in this menu? In the screenshot I changed the column heading but in the menu the old...
by Jurgen.Rentinck
Wed Jan 16, 2019 12:16 am
Forum: Questions & Answers
Topic: Responsive VL-WEB
Replies: 6
Views: 2674

Re: Responsive VL-WEB

In the layout you use the layout item that manages the header should have sizing(FitToWIdth).
This should now make sure the header takes the complete width.
by Jurgen.Rentinck
Tue Jan 15, 2019 6:18 am
Forum: Questions & Answers
Topic: Responsive VL-WEB
Replies: 6
Views: 2674

Re: Responsive VL-WEB

You can also do this dynamically. I added the complete code for the sample view I created. Begin_Com Role(*EXTENDS #PRIM_VIEW) DisplayPosition(1) TabPosition(1) LayoutManager(#Layout1) Caption('View2') Define_Com Class(#PRIM_TBLO) Name(#Layout1) Define_Com Class(#PRIM_TBLO.Row) Name(#Layout1Row1) Di...
by Jurgen.Rentinck
Tue Jan 15, 2019 12:17 am
Forum: Questions & Answers
Topic: Responsive VL-WEB
Replies: 6
Views: 2674

Re: Responsive VL-WEB

Hi Klaus, You can dynamically create the header panel. If you look at the sample code below you can create a placeholder on your view, in this sample this is called #headerPanel. Note that the reference parameter of this #prim_panl is set to *dynamic. You can now dynamically instantiate the correct ...