Hi Pooja, the PRIM_JSON.Document SaveToFile method expects a TextWriter reference to be passed to it. This is a #PRIM_IOC.StreamWriter, which itself needs to have the Stream set to a PRIM_IOC.FileStream
Define_Com Class(#prim_ioc.FileStream) Name(#OutputStream) Fileaccess(Write) Filemode ...
Search found 21 matches
- Tue Aug 24, 2021 6:07 pm
- Forum: Questions & Answers
- Topic: using #PRIM_JSON.Document to save json request and response data
- Replies: 2
- Views: 17858
- Tue Jun 22, 2021 10:11 am
- Forum: Questions & Answers
- Topic: PWA
- Replies: 11
- Views: 701037
Re: PWA
There is no browse button, and manually typing/pressing save does not update the tree on the right, so you might be confused and think nothing has saved. However when you close and reopen the webpage the icon you typed be shown in the tree. You need to manually set the size too (dont forget the icon ...
- Fri May 07, 2021 6:01 pm
- Forum: Questions & Answers
- Topic: Publish Restful returning object as base64string (>65535)
- Replies: 2
- Views: 13691
Re: Publish Restful returning object as base64string (>65535)
Hi Dino, did you uh, add a schema property like it suggests?
An object is a JSON object, a collection of String, Number, Array properties lumped together. It is not an object until it has at least one property.
A base64 string encoded file would be a string type property in your object.
An object is a JSON object, a collection of String, Number, Array properties lumped together. It is not an object until it has at least one property.
A base64 string encoded file would be a string type property in your object.
- Wed Jan 27, 2021 6:51 pm
- Forum: Questions & Answers
- Topic: Questions about Publish RESTful Web Services
- Replies: 6
- Views: 26207
Re: Questions about Publish RESTful Web Services
Hi marcel.heij and pkoopmanpk
Jyoung left out a vital argument in his instructions for enabling debug :)
The correct line would be
"x_run_args": " DBUG=Y DBHT=computername:debugport"
Ensure that your webserver is configured to allow interactive debugging (Web Administrator, Connect, Configure ...
Jyoung left out a vital argument in his instructions for enabling debug :)
The correct line would be
"x_run_args": " DBUG=Y DBHT=computername:debugport"
Ensure that your webserver is configured to allow interactive debugging (Web Administrator, Connect, Configure ...
- Tue Dec 10, 2019 11:17 am
- Forum: Questions & Answers
- Topic: Security Assertion Markup Language (SAML)
- Replies: 3
- Views: 7102
Re: Security Assertion Markup Language (SAML)
SAML is indeed a complicated beast.
I was looking at what pre-packaged solutions are out there when i found this site: https://medium.com/the-new-control-plane/i-need-a-saml-stack-now-63d9691e2d43
One of the solutions i looked into was OpenSAML (for Java), but it seems that original article was ...
I was looking at what pre-packaged solutions are out there when i found this site: https://medium.com/the-new-control-plane/i-need-a-saml-stack-now-63d9691e2d43
One of the solutions i looked into was OpenSAML (for Java), but it seems that original article was ...
- Mon Dec 09, 2019 1:44 pm
- Forum: Questions & Answers
- Topic: JSON - XPRIM_HttpRequest vs PRIM_WEB.HttpRequest
- Replies: 1
- Views: 4673
Re: JSON - XPRIM_HttpRequest vs PRIM_WEB.HttpRequest
I think you answered your own question with the point about the user/password.
Typically an interaction with a webservice requires passing an API key, or user credentials etc, which is why you would normally do them on the server side (so that the client has no way to see them). Also, the source ...
Typically an interaction with a webservice requires passing an API key, or user credentials etc, which is why you would normally do them on the server side (so that the client has no way to see them). Also, the source ...
- Mon Dec 09, 2019 1:35 pm
- Forum: Questions & Answers
- Topic: Spin Edit Field
- Replies: 1
- Views: 3977
Re: Spin Edit Field
Since the spin edit is a material design control, i believe those arrow signs are fixed size icons (to keep with the material design guidelines i guess)
- Mon Dec 09, 2019 1:29 pm
- Forum: Questions & Answers
- Topic: Input fields in VL Web List
- Replies: 5
- Views: 12037
Re: Input fields in VL Web List
When you drag a field onto a PRIM_MD.List, by default it is added as a label (not an input field). If you look at the source code you will see it has a class #PRIM_MD.ListLabel. At design time it shows the field name, but at runtime it will be populated with the value of that field in the list. If ...
- Mon Dec 09, 2019 10:55 am
- Forum: Questions & Answers
- Topic: Security Assertion Markup Language (SAML)
- Replies: 3
- Views: 7102
Re: Security Assertion Markup Language (SAML)
SAML isnt natively supported but could be implemented via a third party object (i.e. dot net control).
Also, the latest EPC (EPC142060) ships a sample via the Package Manager which shows how to use OAuth2 verification via Google/Facebook/Microsoft. The sample itself fairly complicated RDMLX code ...
Also, the latest EPC (EPC142060) ships a sample via the Package Manager which shows how to use OAuth2 verification via Google/Facebook/Microsoft. The sample itself fairly complicated RDMLX code ...
- Thu Oct 17, 2019 3:18 pm
- Forum: Questions & Answers
- Topic: Can I add an arbitrary parameter into LANSA Web plugin page? (RESOLVED)
- Replies: 5
- Views: 13247
Re: Can I add an arbitrary parameter into LANSA Web plugin page?
I just spoke to Taku about this; he is attempting to call LANSA.Init() and LANSA.showPage() internal functions manually, rather than using the generated HTML page that LANSA creates (he took that documentation page to indicate that its fine to do this yourself).
He was hoping that if he passed ...
He was hoping that if he passed ...
- Tue Jul 16, 2019 4:38 pm
- Forum: Questions & Answers
- Topic: Image questions
- Replies: 2
- Views: 4715
Re: Image questions
Once you do sys_web.Navigate you are out of VL Web, and you are just viewing the image in the browser. On Android (Chrome) you are able to zoom and long press on the image to save it. I suspect you are using an iPhone, and that Apple in their infinite wisdom decided to disable such functionality.
I ...
I ...
- Mon May 27, 2019 4:02 pm
- Forum: Questions & Answers
- Topic: visualstyle in grid ?
- Replies: 2
- Views: 6126
Re: visualstyle in grid ?
Hi Paul, are you getting some sort of error when you are trying this out? If i set the style of a grid cell, i can then retrieve it again without errors.
The issue might be that you have set the VisualStyle of the entire grid, and some specific cells in the grid... If i query the VisualStyle ...
The issue might be that you have set the VisualStyle of the entire grid, and some specific cells in the grid... If i query the VisualStyle ...
- Tue May 21, 2019 11:03 am
- Forum: Questions & Answers
- Topic: What's going on @ LANSA?
- Replies: 11
- Views: 36448
Re: What's going on @ LANSA?
I am often told i am a chronic optimist, but I am still confident that LANSA's future is bright. There are certainly a few people leaving, but from what i heard they are doing so out of their own decisions. Sencha was a startup company with lots of unnecessary expenditures and staff - LANSA is a ...
- Fri Apr 12, 2019 5:29 pm
- Forum: Questions & Answers
- Topic: ODBC Error Invalid Column Name when adding new Field
- Replies: 5
- Views: 29422
Re: ODBC Error Invalid Column Name when adding new Field
Joe, when you compiled the file without the drop table option (as per that last pic), the rebuild table/indexes options would have failed/skipped because the tables already exist. But the OAM would have been replaced (this overwrites regardless). So you have a situation where the database table ...
- Wed Nov 28, 2018 6:14 pm
- Forum: Questions & Answers
- Topic: Editmask
- Replies: 3
- Views: 11734
Re: Editmask
Sorry if that part wasnt clear! The setting for leading zeros is one that is often overlooked - it is from back in the days of Functions and Processes; VL Web honors the setting, but it isnt all that intuitive to find.
- Wed Nov 28, 2018 12:18 pm
- Forum: Questions & Answers
- Topic: Editmask
- Replies: 3
- Views: 11734
Re: Editmask
1. The placeholder issue is fixed in the latest EPC (EPC142030). The field will need to have ASQN attribute, and the placeholder will be shown when the field value is *SQLNULL
2. Leading zero display is configured through the System setting under System Information/Display and Print controls/Show ...
2. Leading zero display is configured through the System setting under System Information/Display and Print controls/Show ...
- Mon Nov 26, 2018 11:29 am
- Forum: Questions & Answers
- Topic: YYYYMMDD -> DDMMYYYY field for the web
- Replies: 3
- Views: 7978
Re: YYYYMMDD -> DDMMYYYY field for the web
Hi Sotiris
Just to add to Dominique's response, it is a good idea to make sure that the entered date is a valid one, before executing the AsDate intrinsic function - otherwise you will get a runtime error with that code
If ( #InputDate.IsDate( CCYYMMDDD ) )
#OutputDate := #InputDate.AsDate ...
Just to add to Dominique's response, it is a good idea to make sure that the entered date is a valid one, before executing the AsDate intrinsic function - otherwise you will get a runtime error with that code
If ( #InputDate.IsDate( CCYYMMDDD ) )
#OutputDate := #InputDate.AsDate ...
- Thu Jul 26, 2018 11:12 am
- Forum: Questions & Answers
- Topic: Should we use Material Design Style controls when developing VL Web application after V14 SP2?
- Replies: 6
- Views: 14038
Re: Should we use Material Design Style controls when developing VL Web application after V14 SP2?
Yes, you can, and probably should use Material Design even for desktop only applications. The look you will achieve is similar to (but not exactly the same as) Windows 10 applications. This is a general design direction for all applications now, not just mobile.
Of course you are not restricted to ...
Of course you are not restricted to ...
- Wed Jul 25, 2018 3:40 pm
- Forum: Tips and Techniques
- Topic: Field validation on VL Web client
- Replies: 0
- Views: 51472
Field validation on VL Web client
There was a new feature shipped with V14 SP2 which was not given much fanfare.... Repository field validation for VL Web applications. This allows you to check a field/fields against the field and file level rules defined at the repository level. Currently this feature is available for Prim_MD ...
- Fri Jul 06, 2018 2:53 pm
- Forum: Questions & Answers
- Topic: Overriding the msi installation paths in the deployment tool
- Replies: 3
- Views: 7025
Re: Overriding the msi installation paths in the deployment tool
Hi David, indeed the MSI installer (which we have been using since V13) uses the Microsoft recommended installation folder for applications, which is either:
c:\users\{logged on user}\appdata\local\apps\{company name}\{App description} for a "Current user only install"
or
c:\Program Files (x86 ...
c:\users\{logged on user}\appdata\local\apps\{company name}\{App description} for a "Current user only install"
or
c:\Program Files (x86 ...