Search found 16 matches

by RomainG
Sat Feb 22, 2025 2:40 am
Forum: Questions & Answers
Topic: Access to tables in different partition
Replies: 5
Views: 65216

Re: Access to tables in different partition

Hi Dino,

1) Regarding this:
If everything were in the same partition the desktop application will know the files and fields and they will be located in the correct default library list, so all will be seamless
I tried creating a table in the same partition and I can access the table when I ...
by RomainG
Thu Feb 20, 2025 6:29 pm
Forum: Questions & Answers
Topic: Access to tables in different partition
Replies: 5
Views: 65216

Re: Access to tables in different partition

Hi Arlyn,

Thanks for your reply.

I tried following your steps but it did not do the trick for me unfortunately.

I will do some more digging.

Romain
by RomainG
Wed Feb 19, 2025 7:59 pm
Forum: Questions & Answers
Topic: Access to tables in different partition
Replies: 5
Views: 65216

Access to tables in different partition

Hello,

I am trying to learn how to create a desktop application and I am working in a different partition than the one I used for developing my web applications. I am having trouble accessing tables that I have defined in the "web" partition. I tried 2 different ways:

1) Using select_sql to try ...
by RomainG
Wed Dec 18, 2024 1:04 am
Forum: Questions & Answers
Topic: Adding BOM to csv
Replies: 4
Views: 60859

Re: Adding BOM to csv

Yes I have tried using 'Binary' but unfortunately it does not seem to work.

Thanks anyway :)
by RomainG
Tue Dec 17, 2024 8:48 pm
Forum: Questions & Answers
Topic: Adding BOM to csv
Replies: 4
Views: 60859

Re: Adding BOM to csv

Hi Christophe,

Thank you for your response, I tried using your method and it works!

However, we did some testing with the BIF transform list and we realized that if we converted our csv file to UTF-8 BOM (using Notepad++), the characters were read correctly so that is why we wanted to try to add ...
by RomainG
Mon Dec 16, 2024 9:51 pm
Forum: Questions & Answers
Topic: Adding BOM to csv
Replies: 4
Views: 60859

Adding BOM to csv

Hello everyone,

I am trying to create and send a csv file by email. However, in the output csv file, I am having trouble reading special characters such as "è", "à", "ù" or "ç".

My original idea was to use the built-in function Transform list like this:


#FilePathMat := '/LANSA_ptdpgmlib/tmp ...
by RomainG
Mon Dec 09, 2024 6:32 pm
Forum: Questions & Answers
Topic: why HTTPTransportException in the IBM but not in Windows?
Replies: 23
Views: 10144610

Re: why HTTPTransportException in the IBM but not in Windows?

After asking LANSA Support, we have found the solution to our issue.

Here is what they said:
Problem determination:

The call LANSA is making only support strict SNI. So if the FQDN doesn't match or the SNI doesn't send an acknowledgement, the secure connection will fail (page 110 of document ...
by RomainG
Wed Dec 04, 2024 6:58 pm
Forum: Questions & Answers
Topic: why HTTPTransportException in the IBM but not in Windows?
Replies: 23
Views: 10144610

Re: why HTTPTransportException in the IBM but not in Windows?

Hello everyone,

I’m facing a similar issue with making HTTPS requests from Visual LANSA on an IBM i system. I am using the LANSA Server as the "Client".

I’m using the #Request.DoGet (#Request is a #XPRIM_HttpRequest component) command in my Srvroutine to call an HTTPS endpoint.
The command works ...
by RomainG
Tue Oct 15, 2024 5:17 pm
Forum: Questions & Answers
Topic: API - array in JSON of body of the request
Replies: 2
Views: 17843

Re: API - array in JSON of body of the request

Hi Arlyn,

Thanks for your response. I actually found a simpler solution for me to loop in the array:

Code: Select all

Begin_Loop Using(#count) To(#RecNaceObjectReq.NaceArray.Count)
* Process evrything here
End_Loop
Thanks,

Romain
by RomainG
Fri Oct 11, 2024 6:21 pm
Forum: Questions & Answers
Topic: API - array in JSON of body of the request
Replies: 2
Views: 17843

API - array in JSON of body of the request

Hi,

I am working on a POST request for an API and in the body of my request I have a JSON object. In this JSON object I have 3 elements, two being fields and one being an array. Example:
{
"NaceArray": ["41","42","43","71"],
"CODLAN": "1",
"NBRMAX": 0
}

In the API source code, if I want to ...
by RomainG
Thu Oct 10, 2024 6:13 pm
Forum: Questions & Answers
Topic: Uploading very large files
Replies: 0
Views: 171168

Uploading very large files

Hi,

I am having issues while uploading very large csv files (around 860MB) using a filepicker component in my web application.

I have done some digging and it seems that when I upload a file, it copies it to a folder in ...\ptdpgmlib\run\web_upload and then deletes it and copies it to the TMP ...
by RomainG
Wed Sep 11, 2024 6:29 pm
Forum: Questions & Answers
Topic: Using PRIM_KBRD
Replies: 3
Views: 13477

Re: Using PRIM_KBRD

Hi Brendan,

I have tried using the keypress event but for some reason the event is not fired when I press the control or shift keys. It is fired when I press other keys though.

Below is part of my code:

Define_Com Class(#PRIM_LIST) Name(#Categories) Parent(#COM_OWNER) Displayposition(4 ...
by RomainG
Wed Sep 11, 2024 1:27 am
Forum: Questions & Answers
Topic: Using PRIM_KBRD
Replies: 3
Views: 13477

Using PRIM_KBRD

Hello,

I am looking for a way to check if a key is pressed inside an eventroutine and I have found the PRIM_KBRD component class which provides access to the Shift, Alt and Ctrl key states. However, when I try to define it in a view component, I have this error: "Component class PRIM_KBRD is ...
by RomainG
Tue Sep 03, 2024 7:59 pm
Forum: Questions & Answers
Topic: Server routine timeout?
Replies: 6
Views: 20723

Re: Server routine timeout?

Brendan,

Thank you very much for your help, it was very helpful! Everything works perfectly now :D
by RomainG
Sat Aug 31, 2024 1:02 am
Forum: Questions & Answers
Topic: Server routine timeout?
Replies: 6
Views: 20723

Re: Server routine timeout?

After further investigation, the issue comes from the file being uploaded to a tmp folder in the IFS and when I submit my function I don't have access to the file anymore (maybe because the srvroutine ended before the end of my function?).

Is there a way to prevent this?

Or is there maybe a way ...
by RomainG
Fri Aug 30, 2024 8:24 pm
Forum: Questions & Answers
Topic: Server routine timeout?
Replies: 6
Views: 20723

Re: Server routine timeout?


Unfortunately you have run into a BROWSER TIMEOUT...

to put it simply, most browsers will 'timeout' a request after 5 minutes of no response. (i think Safari might be 6 minutes, but the rest are 5 minutes).

a better way might simply to be:

have your server routine:

1. receive the file from the ...