Hi
i've the same problem, but sometimes work fine.
I am using the example provided xDemoExternalProvidersLoginWebpage downloaded from
https://docs.lansa.com/14/EN/lansa018/index.htm#lansa/webserviceseng01_0140.htm%3FTocPath%3DWeb%2520Services%7CConsuming%2520Web%2520Services%7CWeb%2520API ...
Search found 14 matches
- Wed Sep 03, 2025 10:15 pm
- Forum: Questions & Answers
- Topic: why HTTPTransportException in the IBM but not in Windows?
- Replies: 23
- Views: 10144608
- Wed Feb 19, 2025 2:13 am
- Forum: Tips and Techniques
- Topic: Compare File with Hash
- Replies: 2
- Views: 306572
Re: Compare File with Hash
Alphanumeric(256)
- Thu Feb 06, 2025 7:41 pm
- Forum: Tips and Techniques
- Topic: Compare File with Hash
- Replies: 2
- Views: 306572
Compare File with Hash
Hi I needed to verify that 2 files were identical. I compare the hash of the two files
FUNCTION OPTIONS(*DIRECT)
BEGIN_COM ROLE(*EXTENDS £PRIM_FORM) CLIENTHEIGHT(194) CLIENTWIDTH(704) LEFT(556) TOP(265) WIDTH(720) HEIGHT(233) LAYOUTMANAGER(£LayoutMain)
DEFINE_COM CLASS(£PRIM_APPL ...
FUNCTION OPTIONS(*DIRECT)
BEGIN_COM ROLE(*EXTENDS £PRIM_FORM) CLIENTHEIGHT(194) CLIENTWIDTH(704) LEFT(556) TOP(265) WIDTH(720) HEIGHT(233) LAYOUTMANAGER(£LayoutMain)
DEFINE_COM CLASS(£PRIM_APPL ...
- Mon Jan 27, 2025 8:20 pm
- Forum: Questions & Answers
- Topic: Add file in a multipart/form-data; boundary=
- Replies: 0
- Views: 220448
Add file in a multipart/form-data; boundary=
Hi
i've to send a POST request with a Content-Type: multipart/form-data
In postman i've these specification: multipart/form-data; boundary=<calculated when request is sent>
If i try to use these code
£ContentInfo.MediaType := "multipart/form-data"
£HttpRequest.Content.AddFile PATH(£p_FilePath ...
i've to send a POST request with a Content-Type: multipart/form-data
In postman i've these specification: multipart/form-data; boundary=<calculated when request is sent>
If i try to use these code
£ContentInfo.MediaType := "multipart/form-data"
£HttpRequest.Content.AddFile PATH(£p_FilePath ...
- Fri Dec 06, 2024 8:26 pm
- Forum: Questions & Answers
- Topic: Using AsHexString
- Replies: 4
- Views: 65886
Re: Using AsHexString
Hi
thank you.
I realised that the intrinsic function works but in reverse. The Hex string is inverted for pairs of characters
In a old Lansa newsletter https://lansa.com/downloads/support/newsletter/blx_newslfeb10e.pdf pag 19
Int: 49202, Window Calc for HEX: C0 32; lansa: 32 C0
Int:169999999999 ...
thank you.
I realised that the intrinsic function works but in reverse. The Hex string is inverted for pairs of characters
In a old Lansa newsletter https://lansa.com/downloads/support/newsletter/blx_newslfeb10e.pdf pag 19
Int: 49202, Window Calc for HEX: C0 32; lansa: 32 C0
Int:169999999999 ...
- Tue Dec 03, 2024 9:54 pm
- Forum: Questions & Answers
- Topic: Using AsHexString
- Replies: 4
- Views: 65886
Using AsHexString
Hi
I've to convert a integer value in Hexadecimal. But intrincic function AsHexString give back a wrong value.
can you help me understand if I am using the function incorrectly?
The value is 49202, Window Calc for HEX is C032 for lansa il 32C00000
2024-12-03 11_50_24-MR000030 - DEBUG - Build ...
I've to convert a integer value in Hexadecimal. But intrincic function AsHexString give back a wrong value.
can you help me understand if I am using the function incorrectly?
The value is 49202, Window Calc for HEX is C032 for lansa il 32C00000
2024-12-03 11_50_24-MR000030 - DEBUG - Build ...
- Fri Sep 27, 2024 11:34 pm
- Forum: Questions & Answers
- Topic: Web API Wizard- receiving multiple requests in one structure
- Replies: 7
- Views: 30105
Re: Web API Wizard- receiving multiple requests in one structure
Thank you for this article, it solved a problem for me. I share the solution to access an array within an array element
This is the Json
[
{
"cnr": 123456,
"snr": "00",
"sku": "1531058",
"amount": 12,
"tag": [
{
"a1": 5,
"a2": 7
}
]
},
{
"cnr": 123456,
"snr": "00",
"sku": "1531058 ...
This is the Json
[
{
"cnr": 123456,
"snr": "00",
"sku": "1531058",
"amount": 12,
"tag": [
{
"a1": 5,
"a2": 7
}
]
},
{
"cnr": 123456,
"snr": "00",
"sku": "1531058 ...
- Sat Jul 27, 2024 8:13 pm
- Forum: Questions & Answers
- Topic: Import data from xls xlsx
- Replies: 3
- Views: 23223
Import data from xls xlsx
Is there a way to import data from an xls or xlsx file?
Like BIF TRANSFORM_FILE that works with these file types?
Like BIF TRANSFORM_FILE that works with these file types?
- Mon Jul 15, 2024 8:05 pm
- Forum: Questions & Answers
- Topic: Import REST in Swagger
- Replies: 1
- Views: 14757
Import REST in Swagger
Good morning
When defining REST services, it is possible to choose the option "publish in Swagger". However, I cannot find a guide on how to export the service definition and how to import it into swagger.
Can anyone help me?
When defining REST services, it is possible to choose the option "publish in Swagger". However, I cannot find a guide on how to export the service definition and how to import it into swagger.
Can anyone help me?
- Wed Nov 15, 2023 7:41 pm
- Forum: Questions & Answers
- Topic: How to get a PRIM_LIST with a property
- Replies: 3
- Views: 39511
Re: How to get a PRIM_LIST with a property
Coul you publish the source code of
xDemoWebPassingWorkingLists
and
xDemoWebPassingWorkingListsEmployeeItem.
????
xDemoWebPassingWorkingLists
and
xDemoWebPassingWorkingListsEmployeeItem.
????
- Fri Oct 13, 2023 2:23 am
- Forum: Questions & Answers
- Topic: Use PRIM_MD.Edit TextFieldArea as List
- Replies: 0
- Views: 200314
Use PRIM_MD.Edit TextFieldArea as List
Hi
therse a way to manage a PRIM_MD.Edit whits APPEARANCE TextFieldArea as a Working List.
To give an example, I would need it to operate like the Multi-line Edit Box object
DEFINE_COM CLASS(£PRIM_MEMO) NAME(£Memo1) COMPONENTVERSION(1) CURRENTLINE(1) DISPLAYPOSITION(4) LEFT(146) PARENT(£COM ...
therse a way to manage a PRIM_MD.Edit whits APPEARANCE TextFieldArea as a Working List.
To give an example, I would need it to operate like the Multi-line Edit Box object
DEFINE_COM CLASS(£PRIM_MEMO) NAME(£Memo1) COMPONENTVERSION(1) CURRENTLINE(1) DISPLAYPOSITION(4) LEFT(146) PARENT(£COM ...
- Tue Jul 04, 2023 5:21 pm
- Forum: Questions & Answers
- Topic: How do I handle HTTP response 303 errors from APIs in Visual Lansa - #XPRIM_HttpRequest
- Replies: 11
- Views: 50218
Re: How do I handle HTTP response 303 errors from APIs in Visual Lansa - #XPRIM_HttpRequest
Hi the code work correctly but I've noted that don't trace body request where content are load from file.
These code generate the log file
request.general.log
request.headers.log
response.body.log
response.headers.log
but not
request.body.log
DEFINE_COM CLASS(£XPRIM_HttpRequest) NAME(£Request ...
These code generate the log file
request.general.log
request.headers.log
response.body.log
response.headers.log
but not
request.body.log
DEFINE_COM CLASS(£XPRIM_HttpRequest) NAME(£Request ...
- Tue Apr 12, 2022 12:35 am
- Forum: Questions & Answers
- Topic: LANSA command parametrization?
- Replies: 10
- Views: 45560
Re: LANSA command parametrization?
Is not possible.
For similar case i use BIF SYSTEM_COMMAND to run a .bat built at runtime with the dos command to delete the database table
For similar case i use BIF SYSTEM_COMMAND to run a .bat built at runtime with the dos command to delete the database table
- Tue Apr 12, 2022 12:31 am
- Forum: Questions & Answers
- Topic: Epoch timestamp (ISO 8601) from datetime in Lansa (solved)
- Replies: 5
- Views: 18706
Re: Epoch timestamp (ISO 8601) from datetime in Lansa (solved)
If it is useful, here is the routine for calculating the difference in seconds between two date-time
* ---------------------------------------------------------------------------------
* DIFFERENZA IN SECONDI TRA DUE DATE ...
* ---------------------------------------------------------------------------------
* DIFFERENZA IN SECONDI TRA DUE DATE ...