Hi Hoang
As it is a url and not a local script you host, you cannot use a web external resource. The following method does require you to write some XSLT.
If you are using your own layout weblets, just add your link after you call the "script" XSLT template.
If you are using a standard shipped ...
Search found 33 matches
- Thu Jun 25, 2020 3:35 pm
- Forum: Questions & Answers
- Topic: How to Include script link in LANSA WAM
- Replies: 1
- Views: 4808
- Thu May 14, 2020 9:40 am
- Forum: Questions & Answers
- Topic: Change content-type for WAM
- Replies: 7
- Views: 32354
Re: Change content-type for WAM
If you use content-type application/* then the runtime won't do any transcoding (that is, it handles the content as binary). If you want to use application/json, then you need to create your BLOB content with the target encoding (ISO-8859-1 or UTF-8 . Note that if you are on IBM i, any text content ...
- Wed May 13, 2020 9:12 am
- Forum: Questions & Answers
- Topic: Change content-type for WAM
- Replies: 7
- Views: 32354
Re: Change content-type for WAM
HI Klaus
Here is the topic about LOBs and how to create them and set custom HTTP headers:
https://docs.lansa.com/14/en/lansa087/index.htm#lansa/wamengb3_0060.htm%3FTocPath%3DWeb%2520Application%2520Modules%2520(WAMs)%7C3.%2520Essential%2520Topics%7C3.8%2520LOB%2520Data%2520Types%2520and ...
Here is the topic about LOBs and how to create them and set custom HTTP headers:
https://docs.lansa.com/14/en/lansa087/index.htm#lansa/wamengb3_0060.htm%3FTocPath%3DWeb%2520Application%2520Modules%2520(WAMs)%7C3.%2520Essential%2520Topics%7C3.8%2520LOB%2520Data%2520Types%2520and ...
- Tue May 12, 2020 10:27 am
- Forum: Questions & Answers
- Topic: Change content-type for WAM
- Replies: 7
- Views: 32354
Re: Change content-type for WAM
If you want to prepare your own custom JSON (but not use web services), you can send the response as a CLOB. With a CLOB, you set the response headers yourself.
HTH
Abel
HTH
Abel
- Mon Dec 09, 2019 2:02 pm
- Forum: Questions & Answers
- Topic: Error updating web job status
- Replies: 6
- Views: 18972
Re: Error updating web job status
I think you are referring to table DC@W05 that lives in xxxCOMLIB library.
Cheers
Abel
Cheers
Abel
- Fri Nov 22, 2019 1:22 pm
- Forum: Questions & Answers
- Topic: Cannot read JSON file with CCSID 37
- Replies: 1
- Views: 4420
Re: Cannot read JSON file with CCSID 37
According to https://docs.lansa.com/14/en/lansa015/index.htm#lansa/l4wtgu10_0710.htm XPRIM_File expects the contents to be encoded in UTF-8.
Try creating a copy of the file in UTF-8:
In QShell
1. Change your directory to where the file is (alternatively provide full paths) cd <your directory>
2 ...
Try creating a copy of the file in UTF-8:
In QShell
1. Change your directory to where the file is (alternatively provide full paths) cd <your directory>
2 ...
- Wed Nov 13, 2019 9:54 am
- Forum: Questions & Answers
- Topic: std_toexcel (export to excel) - not working in V14
- Replies: 3
- Views: 6861
Re: std_toexcel (export to excel) - not working in V14
Not VL Win. Just talking about ActiveX inside the browser.
PS: Tested std_toexcel on V14SP2. It works (in IE11 with the proper security settings lowered to enable ActiveX). So, likely something else is breaking earlier and the Javascript to export to Excel is not being run.
Cheers
Abel
PS: Tested std_toexcel on V14SP2. It works (in IE11 with the proper security settings lowered to enable ActiveX). So, likely something else is breaking earlier and the Javascript to export to Excel is not being run.
Cheers
Abel
- Fri Nov 08, 2019 1:47 pm
- Forum: Questions & Answers
- Topic: std_toexcel (export to excel) - not working in V14
- Replies: 3
- Views: 6861
Re: std_toexcel (export to excel) - not working in V14
If there is an error trying to use ActiveX it should pop an alert box indicating an error. Maybe there is an error beforehand. Look at your Javascript console.
BTW, you should consider moving away from using ActiveX (and IE).
Cheers
Abel
BTW, you should consider moving away from using ActiveX (and IE).
Cheers
Abel
- Mon Sep 02, 2019 10:43 am
- Forum: Tips and Techniques
- Topic: Usage Share of Internet Browsers 1996 - 2019
- Replies: 0
- Views: 194779
Usage Share of Internet Browsers 1996 - 2019
Interesting stats about how the usage share of browsers have changed.
https://www.reddit.com/r/dataisbeautiful/comments/cxuah9/usage_share_of_internet_browsers_1996_2019_oc/
The next version of MS Edge is Chromium based adding to the share of Chromium based browsers.
I wonder if IE usage is now ...
https://www.reddit.com/r/dataisbeautiful/comments/cxuah9/usage_share_of_internet_browsers_1996_2019_oc/
The next version of MS Edge is Chromium based adding to the share of Chromium based browsers.
I wonder if IE usage is now ...
- Thu Apr 11, 2019 7:41 am
- Forum: Questions & Answers
- Topic: Make a Column right justify data
- Replies: 2
- Views: 10172
Re: Make a Column right justify data
Hi Art
Use the DisplayAlignment under the "Common" group (together with ColumnCaptionAlign for the column heading).
Regards
Abel
Use the DisplayAlignment under the "Common" group (together with ColumnCaptionAlign for the column heading).
Regards
Abel
- Mon Apr 08, 2019 10:07 am
- Forum: Questions & Answers
- Topic: JQuery UI Autocomplete
- Replies: 1
- Views: 9182
Re: JQuery UI Autocomplete
Hi Pravik
You need to set the labelField property to A1_LOAN (Have a look at the labelField and valueField properties of the std_autocomplete weblet to see how they work). In your case, you only need to use labelField.
PS: The messages you added for diagnostic won't show in the browser. The JSON ...
You need to set the labelField property to A1_LOAN (Have a look at the labelField and valueField properties of the std_autocomplete weblet to see how they work). In your case, you only need to use labelField.
PS: The messages you added for diagnostic won't show in the browser. The JSON ...
- Fri Feb 01, 2019 10:11 am
- Forum: Questions & Answers
- Topic: Tutorial - Web Application Modules (WAMs) - 404
- Replies: 6
- Views: 16459
Re: Tutorial - Web Application Modules (WAMs) - 404
Your WAM is not compiling due to the errors shown.
If you use fields defined in the LANSA repository, you don't need to define them in your RDMLX, just use them. When you define your own fields, don't start their names with "std" or" x", as these prefixes are reserved for fields and components ...
If you use fields defined in the LANSA repository, you don't need to define them in your RDMLX, just use them. When you define your own fields, don't start their names with "std" or" x", as these prefixes are reserved for fields and components ...
- Tue Jan 08, 2019 2:21 pm
- Forum: Questions & Answers
- Topic: Tutorial - Web Application Modules (WAMs) - 404
- Replies: 6
- Views: 16459
Re: Tutorial - Web Application Modules (WAMs) - 404
Forgot to mention to first confirm Art's suggestion that you have compiled your WAM.
Cheers
Cheers
- Tue Jan 08, 2019 12:56 pm
- Forum: Questions & Answers
- Topic: Tutorial - Web Application Modules (WAMs) - 404
- Replies: 6
- Views: 16459
Re: Tutorial - Web Application Modules (WAMs) - 404
Hi Weissnix
I Agree with Art (if you are just starting to develop for Web) use Web pages instead of WAMs.
However, if you have to maintain existing WAMs, then going through the tutorials is a good idea.
On the bottom of the IDE you will see "LANSA:XHTML". Click on it and you will be presented ...
I Agree with Art (if you are just starting to develop for Web) use Web pages instead of WAMs.
However, if you have to maintain existing WAMs, then going through the tutorials is a good idea.
On the bottom of the IDE you will see "LANSA:XHTML". Click on it and you will be presented ...
- Thu Sep 27, 2018 8:07 am
- Forum: Questions & Answers
- Topic: Weblet datepicker
- Replies: 3
- Views: 7285
Re: Weblet datepicker
Your screenshot datepicker looks like the deprecated std_date weblet, not the current jQuery UI datepicker (std_datepicker).
In the WAM Editor, click on the date field and in Details, see which weblet it is.
If you use the jQuery UI datepicker, change the "firstDay" property to choose the first ...
In the WAM Editor, click on the date field and in Details, see which weblet it is.
If you use the jQuery UI datepicker, change the "firstDay" property to choose the first ...
- Tue Aug 21, 2018 9:59 am
- Forum: Questions & Answers
- Topic: STD_DATEPICKER Signaling a WAMEVENT in the framework
- Replies: 1
- Views: 4628
Re: STD_DATEPICKER Signaling a WAMEVENT in the framework
The datepicker is not designed to submit a form, so it doesn't have a VLF WAM event property.
An option is to drop an anchor or button weblet in the hidden section and add an onchange Javascript to the datepicker that calls the click event on the anchor/button. You nominate the VLF WAM event on the ...
An option is to drop an anchor or button weblet in the hidden section and add an onchange Javascript to the datepicker that calls the click event on the anchor/button. You nominate the VLF WAM event on the ...
- Fri Aug 10, 2018 3:19 pm
- Forum: Questions & Answers
- Topic: V14SP1 WAM: Query string format when receiving parameters from other sites.
- Replies: 2
- Views: 6006
Re: V14SP1 WAM: Query string format when receiving parameters from other sites.
See the second last post for this issue: viewtopic.php?f=3&t=1837
WAMs don't support your desired format. Imagine a user has a field name "LANG". It would clash with the WAM's language parameter.
HTH
WAMs don't support your desired format. Imagine a user has a field name "LANG". It would clash with the WAM's language parameter.
HTH
- Wed Aug 08, 2018 7:55 am
- Forum: Questions & Answers
- Topic: Post and Get with Wam
- Replies: 10
- Views: 22200
Re: Post and Get with Wam
To pass a field value in the url you have to use the f() notation. If you don't have control on the format of the url from the target website, you will need to write a script that receives the request, translates it to the format required by a WAM and redirects the request
Ensure that you are ...
Ensure that you are ...
- Tue Aug 07, 2018 9:16 am
- Forum: Questions & Answers
- Topic: Post and Get with Wam
- Replies: 10
- Views: 22200
Re: Post and Get with Wam
I just noticed your field name is "additionData". You need to use the field id (short name) not the long name (See what the short name is in your LANSA repository)
- Tue Aug 07, 2018 8:44 am
- Forum: Questions & Answers
- Topic: Post and Get with Wam
- Replies: 10
- Views: 22200
Re: Post and Get with Wam
If you don't want the fields in the url, create a form, add the fields you want to send to this form and post it.
HTH
HTH