Search found 24 matches

by AbelS
Thu Apr 11, 2019 7:41 am
Forum: Questions & Answers
Topic: Make a Column right justify data
Replies: 2
Views: 5353

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: 4406

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: 2459

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: 2459

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: 2459

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: 1119

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: 833

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: 830

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: 2494

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: 2494

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: 2494

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: 2494

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: 2494

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: 1197

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: 1197

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: 1150

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.
by AbelS
Fri May 18, 2018 2:02 pm
Forum: Questions & Answers
Topic: Downloading PDFs using WAMS
Replies: 5
Views: 1150

Re: Downloading PDFs using WAMS

Don't set the attachment file name.

To open in a new window set the show_in_new_window property to true.

HTH
by AbelS
Tue Mar 20, 2018 10:56 am
Forum: Tips and Techniques
Topic: Graph in WAM LANSA 13.2
Replies: 2
Views: 8874

Re: Graph in WAM LANSA 13.2

Hi Leon No such a tool if you are thinking of how you create a chart in MS Excel directly from a table, but you can use RDMLX lists to populate the data in Google Image Chart weblets. Note: Version 13 ships with the deprecated image charts. Google deprecated image charts back in 2012. They still run...
by AbelS
Mon Feb 26, 2018 2:56 pm
Forum: Questions & Answers
Topic: WAMS - Detect when Dynamic Select Weblet Response is Returned
Replies: 2
Views: 988

Re: WAMS - Detect when Dynamic Select Weblet Response is Returned

Hi Casey Try using a DOM mutation observer: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver 1. For the MutationObserverInit object set the childList and subtree properties to true 2. Set the target node to the <span> that wraps the dynamic select <select> element You will get multi...
by AbelS
Thu Nov 02, 2017 2:47 pm
Forum: Questions & Answers
Topic: VL Web(LANSA for the Web) :Current JOB changed other user ID
Replies: 8
Views: 4618

Re: VL Web(LANSA for the Web) :Current JOB changed other user ID

Some important warnings/caveats if you change user profiles yourself within a running web job: 1. Any tables already opened won't be rechecked for authority 2. LANSA won't be aware of the user profile change (LANSA authority checks) 3. If the user profile has a different CCSID, results may be unpred...