Search found 28 matches

by AbelS
Fri Nov 22, 2019 1:22 pm
Forum: Questions & Answers
Topic: Cannot read JSON file with CCSID 37
Replies: 1
Views: 64

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. Con...
by AbelS
Wed Nov 13, 2019 9:54 am
Forum: Questions & Answers
Topic: std_toexcel (export to excel) - not working in V14
Replies: 3
Views: 424

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
by AbelS
Fri Nov 08, 2019 1:47 pm
Forum: Questions & Answers
Topic: std_toexcel (export to excel) - not working in V14
Replies: 3
Views: 424

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
by AbelS
Mon Sep 02, 2019 10:43 am
Forum: Tips and Techniques
Topic: Usage Share of Internet Browsers 1996 - 2019
Replies: 0
Views: 417

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 main...
by AbelS
Thu Apr 11, 2019 7:41 am
Forum: Questions & Answers
Topic: Make a Column right justify data
Replies: 2
Views: 5482

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
by AbelS
Mon Apr 08, 2019 10:07 am
Forum: Questions & Answers
Topic: JQuery UI Autocomplete
Replies: 1
Views: 4505

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 res...
by AbelS
Fri Feb 01, 2019 10:11 am
Forum: Questions & Answers
Topic: Tutorial - Web Application Modules (WAMs) - 404
Replies: 6
Views: 2706

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 shipp...
by AbelS
Tue Jan 08, 2019 2:21 pm
Forum: Questions & Answers
Topic: Tutorial - Web Application Modules (WAMs) - 404
Replies: 6
Views: 2706

Re: Tutorial - Web Application Modules (WAMs) - 404

Forgot to mention to first confirm Art's suggestion that you have compiled your WAM.

Cheers
by AbelS
Tue Jan 08, 2019 12:56 pm
Forum: Questions & Answers
Topic: Tutorial - Web Application Modules (WAMs) - 404
Replies: 6
Views: 2706

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 with t...
by AbelS
Thu Sep 27, 2018 8:07 am
Forum: Questions & Answers
Topic: Weblet datepicker
Replies: 3
Views: 1252

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 day ...
by AbelS
Tue Aug 21, 2018 9:59 am
Forum: Questions & Answers
Topic: STD_DATEPICKER Signaling a WAMEVENT in the framework
Replies: 1
Views: 913

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 ...
by AbelS
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: 916

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
by AbelS
Wed Aug 08, 2018 7:55 am
Forum: Questions & Answers
Topic: Post and Get with Wam
Replies: 10
Views: 2862

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 using...
by AbelS
Tue Aug 07, 2018 9:16 am
Forum: Questions & Answers
Topic: Post and Get with Wam
Replies: 10
Views: 2862

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)
by AbelS
Tue Aug 07, 2018 8:44 am
Forum: Questions & Answers
Topic: Post and Get with Wam
Replies: 10
Views: 2862

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
by AbelS
Fri Aug 03, 2018 9:36 am
Forum: Questions & Answers
Topic: Post and Get with Wam
Replies: 10
Views: 2862

Re: Post and Get with Wam

You have to build the link yourself and use Javascript. For example see https://stackoverflow.com/questions/902 ... javascript
by AbelS
Tue Jul 31, 2018 1:51 pm
Forum: Questions & Answers
Topic: Post and Get with Wam
Replies: 10
Views: 2862

Re: Post and Get with Wam

For POST, you need to do nothing special. The form that you post must have the fields you want to pass to your target webroutine (where they should be mapped for input) For passing fields in the url, see: https://docs.lansa.com/14/en/lansa087/index.htm#lansa/wamb1_220.htm%3FTocPath%3DWeb%2520Applica...
by AbelS
Thu Jun 28, 2018 10:13 am
Forum: Questions & Answers
Topic: Get value of Radio Button in List
Replies: 5
Views: 1357

Re: Get value of Radio Button in List

But after reload, the radio button in list can not be checked in the selected value. [/i] I don't get what you mean. Please use an example. The first time load I can not set default selected too. [/i] To preset the radio button as "checked", set the value to "code". In my earlier example it would b...
by AbelS
Wed Jun 27, 2018 10:07 am
Forum: Questions & Answers
Topic: Get value of Radio Button in List
Replies: 5
Views: 1357

Re: Get value of Radio Button in List

Hi Drop the radio button weblet over a input list column (for example std_code). Make sure you set a code value ("code" property in weblet details). See screenshot For example, if you use column std_code and nominate "CHK" as the code property, when you post the list, std_code will have "CHK" for th...
by AbelS
Mon May 21, 2018 12:01 pm
Forum: Questions & Answers
Topic: Downloading PDFs using WAMS
Replies: 5
Views: 1342

Re: Downloading PDFs using WAMS

1. Instead of setting the attachment file name using #http1.AttachmentFileName := 'mydocname'
add the header yourself: #http1.AddHeader( 'Content-disposition', 'inline; filename=mydocname')

2. The 'show_in_new_window' property is a weblet property. Look at the std_lob weblet.