Search found 52 matches

by BrendanB
Wed Jun 16, 2021 11:03 am
Forum: Questions & Answers
Topic: content-type application/x-www-form-urlencoded
Replies: 4
Views: 61

Re: content-type application/x-www-form-urlencoded

Dino,

great, but which one worked for you...
by BrendanB
Wed Jun 16, 2021 7:37 am
Forum: Questions & Answers
Topic: content-type application/x-www-form-urlencoded
Replies: 4
Views: 61

Re: content-type application/x-www-form-urlencoded

Dino,

you could try:

#HttpRequest.Content.ContentInfo.MediaType := 'application/x-www-form-urlencoded'

If that doesnt do it,

#httpRequest.Options.AddHeader Name('Content-Type') Value('application/x-www-form-urlencoded')

might also work.
by BrendanB
Wed May 19, 2021 10:48 am
Forum: Questions & Answers
Topic: BubbleCharts
Replies: 3
Views: 224

Re: BubbleCharts

Actually, on further reflection, just try: Evtroutine Handling(#BubbleChartValueX.Click) Com_Sender(#Sender) #SYS_WEB.Console.Log( ('** ' + #BubbleChartCategory.Caption) ) #SYS_WEB.Console.Log( ('** Y= ' + #BubbleChartValueY.Value.AsString) ) #SYS_WEB.Console.Log( ('** X= ' + #BubbleChartValueX.Valu...
by BrendanB
Wed May 19, 2021 10:04 am
Forum: Questions & Answers
Topic: BubbleCharts
Replies: 3
Views: 224

Re: BubbleCharts

Jim, a quick poke around suggests that you could try the following (based on the fact that #BubbleChart is a list). Evtroutine Handling(#BubbleChartValueX.Click) Com_Sender(#Sender) #COM_SELF.HandleClickEvent( #Sender ) Endroutine Mthroutine Name(HandleClickEvent) Define_Map For(*INPUT) Class(#PRIM_...
by BrendanB
Mon May 03, 2021 3:17 pm
Forum: Questions & Answers
Topic: LANSA Integrator: Machine-dependent characters are garbled when executed on Windows
Replies: 2
Views: 3164

Re: LANSA Integrator: Machine-dependent characters are garbled when executed on Windows

Hi Yukiko, It is not clear from your code what the definitions of the following are: #jsmcmd #jsmmsg #jsmsts I suspect that they may be defined as type Char(500) or similar. if you put some definitions at the top of your form: Define Field(#u_jsmcmd) Type(*NVARCHAR) Length(1024) Define Field(#u_jsms...
by BrendanB
Mon May 03, 2021 12:26 pm
Forum: Questions & Answers
Topic: VLWEB and Autofill
Replies: 1
Views: 2885

Re: VLWEB and Autofill

Jim, This can be accomplished via a widget. (Widget should be a 'Control' widget, place it on the page and set to Visible(False). Widget needs a method 'TurnOff' : // // TurnOff - Turn Off Autocomplete on Inputs // PROTOTYPE.TurnOff = function() { let tagArr = document.getElementsByTagName("input");...
by BrendanB
Thu Apr 01, 2021 9:56 am
Forum: Questions & Answers
Topic: VLWeb - XPRIM_HttpRequest - VPN Proxy Settings
Replies: 1
Views: 3574

Re: VLWeb - XPRIM_HttpRequest - VPN Proxy Settings

I think this is something that you have to get the network people to correct. It is essential to remember that it is an 'unattended' server that is making the request, not a user, and so the proxy needs to be made transparent for that server (that is, not request authentication just for that server)...
by BrendanB
Thu Nov 19, 2020 2:25 pm
Forum: Questions & Answers
Topic: Bad Gateway 502 error HTTP Response
Replies: 3
Views: 2037

Re: Bad Gateway 502 error HTTP Response

Rene, I had a similar issue just recently, and for me it turned out that the firewall between the 400 and the external webservice was blocking the incoming traffic, so the request went out, was received by the external webservice (in your case, by composer), but then the network blocked any response...
by BrendanB
Mon Oct 26, 2020 9:56 am
Forum: Questions & Answers
Topic: STM_FILE BIFS
Replies: 4
Views: 3032

Re: STM_FILE BIFS

Jim, you may be able to use something like: Mthroutine Name(CleanFile) Define_Map For(*INPUT) Class(#PRIM_DC.UnicodeString) Name(#InputFilePath) Define_Map For(*RESULT) Class(#PRIM_DC.UnicodeString) Name(#Result) Define_Com Class(#PRIM_IOC.FileStream) Name(#FileStream) Define_Com Class(#PRIM_IOC.Str...
by BrendanB
Wed Sep 30, 2020 12:30 pm
Forum: Questions & Answers
Topic: OpenLDAP service ADD to create a user
Replies: 0
Views: 5091

OpenLDAP service ADD to create a user

Hi,

Im wondering if anyone has used the OpenLDAP Integrator service to Create Users?

Specifically, ADD seems to Create a User ok, but there doesnt seem to be a way to set the password for the user.

B.
by BrendanB
Wed Sep 16, 2020 9:20 am
Forum: Questions & Answers
Topic: Date Control value is previous day
Replies: 6
Views: 3522

Re: Date Control value is previous day

Andy, the important part is #dateProcessed.value.asLocalizedDateTime the value returned from the datepicker is a UTC datetime... so when you get the 'date' if you dont specify to LocalizeDateTime, then you will get the UTC date (without the UTC adjustment). so for example, sydney is +10 hours, so if...
by BrendanB
Tue Aug 04, 2020 3:06 pm
Forum: Questions & Answers
Topic: Clear button in EditField
Replies: 2
Views: 1977

Re: Clear button in EditField

Art, the Changed Event is fired twice when the Clear Button is pressed. Both times, the value is blank define_com class(#prim_nmbr) name(#ClearBtnClickCounter) Evtroutine Handling(#Edit.Changed) If (#Edit.Value = '') #ClearBtnClickCounter += 1 else #ClearBtnClickCounter := 0 endif if (#ClearBtnClick...
by BrendanB
Mon Aug 03, 2020 9:02 am
Forum: Questions & Answers
Topic: Reading JSON
Replies: 2
Views: 2036

Re: Reading JSON

Jim, try something like: Define_Com Class(#PRIM_JSON.Document) Name(#lDocument) #UniCodeString := #Request.Response.AsString.Trim #lDocument.LoadFromString( #UniCodeString ) if (#Document.isObject) << returns false if not a JSON object... #msgdta := #lDocument.RootNode<'MESSAGE'>.AsString Endif Or e...
by BrendanB
Wed Jul 22, 2020 10:19 am
Forum: Questions & Answers
Topic: #PRIM_MD.List Row Background Colour
Replies: 2
Views: 1981

Re: #PRIM_MD.List Row Background Colour

Jim, you could 'cheat' a little... place a Panel (sized FitBoth) on the list entry (Send to Back). Then set the color: #BackPanel.CurrentItem.Style <= #BackgroundStyle or #BackPanel.CurrentItem.ThemeDrawStyle <= #AlternateColor since a #PRIM_MD.List is a compound control, you can have as many items ...
by BrendanB
Fri Jul 10, 2020 8:52 am
Forum: Questions & Answers
Topic: RESTful on IBM i
Replies: 19
Views: 9864

Re: RESTful on IBM i

Jim, try here: https://www.lansa.com/downloads/support/tips/installing-a-dedicated-windows-web-server-for-mixed-multi.pdf I have used this guide successfully at with a few sites. Additionally, if you add something like: "map": [ { "aliases": [ "WEBSERVICES/swaggerV2" ], "method": "Get", "module": "W...
by BrendanB
Wed Jul 08, 2020 4:14 pm
Forum: Questions & Answers
Topic: Integrator - OpenLDAP - Password with special characters
Replies: 2
Views: 2799

Re: Integrator - OpenLDAP - Password with special characters

Joe, I might be missing something, but i usually use double-quotes to escape things like passwords: so using something like #jsmxcmd := ('BIND HOST(&1) DN(&2) PASSWORD("&3")').substitute(#Server #DN #Password) usually that gets the password 'escaped'.... #JSMXCMD := ('BIND HOST(&1) DN(&2) PASSWORD("...
by BrendanB
Fri Apr 24, 2020 9:12 am
Forum: Questions & Answers
Topic: VLWeb Completed Event for File Downloads
Replies: 2
Views: 3163

Re: VLWeb Completed Event for File Downloads

Joe, 2 things here: 1. when you have a routine that does: routine <<< can be evtroutine or mthroutine <<showloading image>> << do important stuff >> <<hideloading image>> endroutine what happens is the *SCREEN IS NOT RENDERED* until the endroutine. if you were to do: Define_Evt Name(DownloadRequeste...
by BrendanB
Mon Dec 02, 2019 9:42 am
Forum: Questions & Answers
Topic: Method options *CONSTRUCTOR and *REQUIRED
Replies: 3
Views: 1956

Re: Method options *CONSTRUCTOR and *REQUIRED

Marcus, The thing to remember: *New #TestComponent is not the same as *New #TestComponent.umConstructor The first is the *DEFAULT* constructor, the second is the constructor that you defined. The required flag tells VL that it cannot use the default constructor for the object. I think the bug is tha...
by BrendanB
Fri Nov 29, 2019 9:51 am
Forum: Questions & Answers
Topic: Method options *CONSTRUCTOR and *REQUIRED
Replies: 3
Views: 1956

Re: Method options *CONSTRUCTOR and *REQUIRED

Marcus, try creating a RP Function Options(*DIRECT) Begin_Com Role(*EXTENDS #PRIM_OBJT) Define_Com Class(#prim_alph) Name(#searchValue) Define_Com Class(#prim_alph) Name(#replacementValue) Define_Pty Name(SearchValue) Get(*Auto #searchValue) Set(*Auto #searchValue) Define_Pty Name(ReplacementValue) ...
by BrendanB
Tue Nov 26, 2019 9:58 am
Forum: Questions & Answers
Topic: VL-WEB #PRIM_LIST Selected?
Replies: 2
Views: 1470

Re: VL-WEB #PRIM_LIST Selected?

Art,

did you try:

Code: Select all


Evtroutine Handling(#List.ItemSelected) Item(#Item)

* Call Mthroutine to Load Popup

Endroutine

B.