Search found 11 matches

by Jurgen.Rentinck
Fri Dec 15, 2023 1:23 am
Forum: Questions & Answers
Topic: Creating a POST request in VL-Web that can be consumed by a LANSA-generated API
Replies: 3
Views: 38338

Re: Creating a POST request in VL-Web that can be consumed by a LANSA-generated API

Hi,

In a webpage you can use the PRIM_WEB.Json for creating a JSON document.

for example

Define_Com Class(#prim_web.Json) Name(#uJson)
Define_Com Class(#prim_web.JsonObject) Name(#uJsonObj) Reference(*DYNAMIC)

#uJsonObj <= #uJson.CreateRootObject
#uJsonObj.InsertString Key("sample") String ...
by Jurgen.Rentinck
Thu Sep 14, 2023 12:03 am
Forum: Questions & Answers
Topic: Windows grid hide a date field with value 1900-01-01
Replies: 4
Views: 36553

Re: Windows grid hide a date field with value 1900-01-01

Hi Art,

Try to set the value to *SQLNULL before you add the entry to the list.

Code: Select all

* this should result in an empty cell
#datex := *SQLNULL
Add_Entry To_List(#Grid1)
* this should result in an cell containing 01-01-1900
#datex := *NULL
Add_Entry To_List(#Grid1)
by Jurgen.Rentinck
Wed Aug 23, 2023 11:22 pm
Forum: Questions & Answers
Topic: Integrator fail to compile [RESOLVED]
Replies: 4
Views: 9357

Re: Integrator fail to compile

But the errormessages show something else, they talk about 1.4 not being supported.
In the other screenshot the path says jdk20.
My adivce would be to do a brand new install of SDK1.8 and use the select option (that is show in the screenshot) to refer to that Java installation.
by Jurgen.Rentinck
Wed Aug 23, 2023 6:58 pm
Forum: Questions & Answers
Topic: Integrator fail to compile [RESOLVED]
Replies: 4
Views: 9357

Re: Integrator fail to compile

Maybe you could try to install version 1.8 of Java or OpenJDK V8 and then point Integrator Studio to that version.
I am not sure if this will solve your issue but, I have had some issues with Java 1.20 in combination with other products.
by Jurgen.Rentinck
Tue Aug 22, 2023 6:55 pm
Forum: Questions & Answers
Topic: LANSA Web API - sending files
Replies: 1
Views: 5945

Re: LANSA Web API - sending files

Hi Joerg,

This should be possible, you just need to make sure you set the contenttype correctly in the server routine to make sure the receiving site knows the type of content you return.

See the code below, I also added an export to make sure you have the complete schema definition.


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

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 ...
by Jurgen.Rentinck
Mon Feb 17, 2020 10:47 pm
Forum: Questions & Answers
Topic: REST-API, receive gzip compressed data
Replies: 1
Views: 4823

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

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 ...
by Jurgen.Rentinck
Wed Jan 16, 2019 12:16 am
Forum: Questions & Answers
Topic: Responsive VL-WEB
Replies: 6
Views: 11874

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

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 ...
by Jurgen.Rentinck
Tue Jan 15, 2019 12:17 am
Forum: Questions & Answers
Topic: Responsive VL-WEB
Replies: 6
Views: 11874

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