Hi Dino
I didn't know this class existed. It's similar to .net split method
(https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.split?view=net-7.0)
This example splits a semicolon delimited string to a collection. It's really useful!
regards
Dominique
Mthroutine ...
Search found 50 matches
- Thu Oct 05, 2023 8:33 pm
- Forum: Questions & Answers
- Topic: PRIM_REGX... does anyone have an example using it?
- Replies: 2
- Views: 36530
- Sat Jul 08, 2023 12:08 am
- Forum: Questions & Answers
- Topic: PRIM_KCOL - Invalid_Cast error
- Replies: 6
- Views: 19838
Re: PRIM_KCOL - Invalid_Cast error
Hi Rafael
As far as I know you can't create instance of a result collection. Hope that will help
Bild000080.jpg
Evtroutine Handling(#COM_OWNER.CreateInstance)
#com_self.MyCollIn( #com_self.MyCollGet )
Endroutine
Mthroutine Name(MyCollGet)
Define_Map For(*RESULT) Class(#PRIM_KCOL<#STD_TEXT ...
As far as I know you can't create instance of a result collection. Hope that will help
Bild000080.jpg
Evtroutine Handling(#COM_OWNER.CreateInstance)
#com_self.MyCollIn( #com_self.MyCollGet )
Endroutine
Mthroutine Name(MyCollGet)
Define_Map For(*RESULT) Class(#PRIM_KCOL<#STD_TEXT ...
- Fri May 05, 2023 2:17 am
- Forum: Questions & Answers
- Topic: Keyboard MAC not matches with website
- Replies: 3
- Views: 7025
Re: Keyboard MAC not matches with website
Hi Dino
Thanks.
Unfortunately we don't have the right equipment to reproduce this. It's just the '@' character on an Apple keyboard. (Windows users do not have the problem)
The ISO settings on the partition are correct.
Are you sure there is a fix for this in LANSA or IIS?
We will check the ...
Thanks.
Unfortunately we don't have the right equipment to reproduce this. It's just the '@' character on an Apple keyboard. (Windows users do not have the problem)
The ISO settings on the partition are correct.
Are you sure there is a fix for this in LANSA or IIS?
We will check the ...
- Tue May 02, 2023 6:56 pm
- Forum: Questions & Answers
- Topic: Keyboard MAC not matches with website
- Replies: 3
- Views: 7025
Keyboard MAC not matches with website
Hi
Some users have problems with the keyboard layout with MAC. For example, '@' characters in LANSA fields are not accepted in some cases.
Does anyone know this problem? Any ideas how to solve this in LANSA?
Thanks
Dominique
Some users have problems with the keyboard layout with MAC. For example, '@' characters in LANSA fields are not accepted in some cases.
Does anyone know this problem? Any ideas how to solve this in LANSA?
Thanks
Dominique
- Fri Feb 25, 2022 3:09 am
- Forum: Questions & Answers
- Topic: DateTime picke
- Replies: 1
- Views: 5172
Re: DateTime picke
HI
For VL Web you can change the locale file
Folder ...LANSA\X_WIN95\X_LANSA\web\vl\lansa_15_0_0_3\locale
For VL Web you can change the locale file
Folder ...LANSA\X_WIN95\X_LANSA\web\vl\lansa_15_0_0_3\locale
- Fri Feb 25, 2022 1:28 am
- Forum: Questions & Answers
- Topic: Magic Bytes of Blob/Files
- Replies: 4
- Views: 9494
Re: Magic Bytes of Blob/Files
Unfortunatly we don't use IBM Server.
I've found an easy way to solve it in a SvrRoutine. You can check the MagicBytes of a base64 encoded File
Srvroutine Name(FileUpload)
Field_Map For(*INPUT) Field(#xDemoBlob)
Field_Map For(*INPUT) Field(#iBlobMimeType)
Field_Map For(*OUTPUT) Field ...
I've found an easy way to solve it in a SvrRoutine. You can check the MagicBytes of a base64 encoded File
Srvroutine Name(FileUpload)
Field_Map For(*INPUT) Field(#xDemoBlob)
Field_Map For(*INPUT) Field(#iBlobMimeType)
Field_Map For(*OUTPUT) Field ...
- Tue Feb 15, 2022 6:21 pm
- Forum: Questions & Answers
- Topic: Magic Bytes of Blob/Files
- Replies: 4
- Views: 9494
Magic Bytes of Blob/Files
Hi
We have to check uploaded files for their mimetype before putting them into db. Compare file extension isn't a good way to check mimetype. Is it possible to check the Magic bytes of a file in a LANSA Server module or function?
Does anybody has an idea?
Thanks
We have to check uploaded files for their mimetype before putting them into db. Compare file extension isn't a good way to check mimetype. Is it possible to check the Magic bytes of a file in a LANSA Server module or function?
Does anybody has an idea?
Thanks
- Tue Aug 24, 2021 1:51 pm
- Forum: Questions & Answers
- Topic: LANSA Mobile with Webpage how to show pdf
- Replies: 2
- Views: 10122
Re: LANSA Mobile with Webpage how to show pdf
Hi Dino
Thanks for your answer.
One reason to download is that the pdf contains user sensitive data. That doesn't allows us to publish the pdf on a Server.
is "#SYS_WEB.Navigate Url('/images/temp/report0012389.pdf') Target(New)" in LANSA Mobile? We tried to execute a serverroutine with targed ...
Thanks for your answer.
One reason to download is that the pdf contains user sensitive data. That doesn't allows us to publish the pdf on a Server.
is "#SYS_WEB.Navigate Url('/images/temp/report0012389.pdf') Target(New)" in LANSA Mobile? We tried to execute a serverroutine with targed ...
- Tue Aug 24, 2021 1:18 am
- Forum: Questions & Answers
- Topic: LANSA Mobile with Webpage how to show pdf
- Replies: 2
- Views: 10122
LANSA Mobile with Webpage how to show pdf
Hi
We are working on a pwa that will run in the LANSA Mobile Wrapper. (reason: communication with devices/camera)
At the moment we have the following situation:
It is a big challenge to download a PDF from the server routine and show it (or at least save it on the device).
Does anyone have any ...
We are working on a pwa that will run in the LANSA Mobile Wrapper. (reason: communication with devices/camera)
At the moment we have the following situation:
It is a big challenge to download a PDF from the server routine and show it (or at least save it on the device).
Does anyone have any ...
- Tue Jun 22, 2021 9:07 pm
- Forum: Questions & Answers
- Topic: EPC150033 Web Routing issue
- Replies: 7
- Views: 13397
Re: EPC150033 Web Routing issue
No, it's not necessary but a great tool to add rules or change the URLs before redirecting to your site. But you should not have this strange behavior.
If you use .html with routing definitions, the whole Router would be something like disabled.
Did you test it with a sample page? Do you have the ...
If you use .html with routing definitions, the whole Router would be something like disabled.
Did you test it with a sample page? Do you have the ...
- Fri Jun 11, 2021 8:44 pm
- Forum: Questions & Answers
- Topic: EPC150033 Web Routing issue
- Replies: 7
- Views: 13397
Re: EPC150033 Web Routing issue
As far as I know you don't need to configure something special on the IIS side. In our environment it worked without any problems after the package installation.
Do you use URL Rewrites in IIS? We had to reconfigure the rules, but nothing else.
Regards
Dominique
Do you use URL Rewrites in IIS? We had to reconfigure the rules, but nothing else.
Regards
Dominique
- Thu Jun 10, 2021 5:16 pm
- Forum: Questions & Answers
- Topic: Windows Deployment
- Replies: 2
- Views: 9133
Re: Windows Deployment
Hi Chad
I'm not sure how the Jit update works and how LANSA check the folder permissions. Does Jit update work if you set user write permissions by hand?
If so, you can modify write acces with MSI installation.
We solved a similar problem years ago. To update user clients (more than 400) we ...
I'm not sure how the Jit update works and how LANSA check the folder permissions. Does Jit update work if you set user write permissions by hand?
If so, you can modify write acces with MSI installation.
We solved a similar problem years ago. To update user clients (more than 400) we ...
- Tue Jun 08, 2021 2:09 pm
- Forum: Questions & Answers
- Topic: VL-Web V15: How to specifying the extension in the file picker
- Replies: 5
- Views: 12600
Re: VL-Web V15: How to specifying the extension in the file picker
Hi Rieko
The web filepicker is easy to handle.
Have a look into xDemoWebUploadProgress for a Web Filepicker.
Define_Com Class(#PRIM_WEB.FilePicker) Name(#FilePicker) Caption('Select a File To Upload') Displayposition(1) Ellipses(Word) Height(60) Left(8) Parent(#COM_OWNER) Tabposition(2) Tabstop ...
The web filepicker is easy to handle.
Have a look into xDemoWebUploadProgress for a Web Filepicker.
Define_Com Class(#PRIM_WEB.FilePicker) Name(#FilePicker) Caption('Select a File To Upload') Displayposition(1) Ellipses(Word) Height(60) Left(8) Parent(#COM_OWNER) Tabposition(2) Tabstop ...
- Mon Jun 07, 2021 1:46 pm
- Forum: Questions & Answers
- Topic: How to check if offline or online (quickly)
- Replies: 4
- Views: 20852
Re: How to check if offline or online (quickly)
Yes, it's probably the same as sys_web.online. Using the navigator.online is the most common way to check if a connection is etablished or not. The only difference is the eventlistener.
- Thu Jun 03, 2021 3:59 pm
- Forum: Questions & Answers
- Topic: How to check if offline or online (quickly)
- Replies: 4
- Views: 20852
Re: How to check if offline or online (quickly)
Hi Eduardo
You can use the navigator information
https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine
1. create a widget
2. add methode
methode.jpg
3. add eventlistener (optional)
function( PROTOTYPE, WIDGET )
{
window.addEventListener('offline', function(e) { console.log ...
You can use the navigator information
https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine
1. create a widget
2. add methode
methode.jpg
3. add eventlistener (optional)
function( PROTOTYPE, WIDGET )
{
window.addEventListener('offline', function(e) { console.log ...
- Thu Jun 03, 2021 3:07 pm
- Forum: Questions & Answers
- Topic: VL-Web V15: How to specifying the extension in the file picker
- Replies: 5
- Views: 12600
Re: VL-Web V15: How to specifying the extension in the file picker
Yes it's possible
Define_Com Class(#PRIM_APPL.ICommonDialogFileOpen) Name(#openFileDlg) reference(*dynamic)
Define Field(#Result) Type(*BOOLEAN)
Define Field(#ResultFile) Type(*String)
#sys_appln.CreateFileOpenDialog Result(#openFileDlg)
#openFileDlg.AddFilter( '*.csv' '*.csv' )
#openFileDlg ...
Define_Com Class(#PRIM_APPL.ICommonDialogFileOpen) Name(#openFileDlg) reference(*dynamic)
Define Field(#Result) Type(*BOOLEAN)
Define Field(#ResultFile) Type(*String)
#sys_appln.CreateFileOpenDialog Result(#openFileDlg)
#openFileDlg.AddFilter( '*.csv' '*.csv' )
#openFileDlg ...
- Thu Jun 03, 2021 1:48 am
- Forum: Questions & Answers
- Topic: Navigate with Header
- Replies: 2
- Views: 8661
Re: Navigate with Header
Thanks Dino
Sorry for replying so late
The first step is to invoke a client URL request with a JWT token issued in LANSA (like a cURL request). As result we get back a cookie back from a firewall. The second step is to use this cookie or some cookie properties to navigate to a specific URL.
I ...
Sorry for replying so late
The first step is to invoke a client URL request with a JWT token issued in LANSA (like a cURL request). As result we get back a cookie back from a firewall. The second step is to use this cookie or some cookie properties to navigate to a specific URL.
I ...
- Thu Jun 03, 2021 12:43 am
- Forum: Questions & Answers
- Topic: LANSAMobile / PWA
- Replies: 1
- Views: 5943
LANSAMobile / PWA
Hi
We are currently working on a PWA for iPhone and Android and have to show a pdf (inline).
Does anyone know how to download a PDF content and view the result directly in an HTML container (or prim_web.page) ??
The PDF cannot be published on a server directory because it contains sensitive user ...
We are currently working on a PWA for iPhone and Android and have to show a pdf (inline).
Does anyone know how to download a PDF content and view the result directly in an HTML container (or prim_web.page) ??
The PDF cannot be published on a server directory because it contains sensitive user ...
- Fri Feb 12, 2021 11:58 pm
- Forum: Questions & Answers
- Topic: Navigate with Header
- Replies: 2
- Views: 8661
Navigate with Header
We have requirements to navigate to a website with Authorization Header. Does anyone know how to do that in LANSA?
- Thu Jul 04, 2019 3:15 pm
- Forum: Questions & Answers
- Topic: Get IPAddress
- Replies: 3
- Views: 6890
Re: Get IPAddress
Thanks it seems to work.
Dominique
Dominique