Search found 334 matches

by soa
Mon May 25, 2020 8:45 am
Forum: Questions & Answers
Topic: select from unknown file
Replies: 2
Views: 74

Re: select from unknown file

Use the ACCESS_FILE BIF or SELECT_SQL with a USING parameter.
by soa
Thu May 21, 2020 8:59 am
Forum: Questions & Answers
Topic: Integrator PDFSpoolFileService - Image Size
Replies: 2
Views: 1910

Re: Integrator PDFSpoolFileService - Image Size

The PDF Document Service allows PDFs to be manipulated.

You would need to create a PDF from PDFSpoolFileService the use DDF Document Service to create a new PDF enclosing the initial to which you should be able to add an overlayed image/watermark which can be defined as an image in the xml file.
by soa
Fri May 15, 2020 8:42 am
Forum: Questions & Answers
Topic: Change content-type for WAM
Replies: 7
Views: 775

Re: Change content-type for WAM

I think you can create a temporary ifs file with the encoding you want and write your content to it then use that file as the http response. Then the temporary file can be automatically deleted.
by soa
Wed Apr 22, 2020 8:56 am
Forum: Questions & Answers
Topic: Make web page use whole browser window
Replies: 5
Views: 1325

Re: Make web page use whole browser window

A web page will always fill the entire browser. The question is then the content. All my VLWEB apps use a View Container - which fills the whole page and all associated View fill the entire client area if the Container - I don't know how to make them NOT fit?
by soa
Tue Apr 07, 2020 10:05 am
Forum: Questions & Answers
Topic: Fusioncharts & VLWEB
Replies: 2
Views: 993

Re: Fusioncharts & VLWEB

I haven't seen this but that looks suspiciously like fusioncharts to me!
by soa
Mon Apr 06, 2020 2:47 pm
Forum: Questions & Answers
Topic: Compressing Image size from File picker
Replies: 6
Views: 1131

Re: Compressing Image size from File picker

With Webevent functions we use a JavaScript library from www.plupload.com which is available under an AGPL license which allows client side image resizing which obviously speeds up the uploads hugely. For passport style photos We've gone from 12-20 meg images down to < 90k which still do the job. It...
by soa
Mon Apr 06, 2020 10:01 am
Forum: Questions & Answers
Topic: Fusioncharts & VLWEB
Replies: 2
Views: 993

Fusioncharts & VLWEB

Now that Idera have acquired Fusionchart it would be absolutely fantastic if someone in LANSA could develop a widget around their charting tools. We have used FusionChart for many years and have found it capable of meeting all of our charting needs. This would be a revenue generator for Idera as we ...
by soa
Mon Apr 06, 2020 9:20 am
Forum: Questions & Answers
Topic: Compressing Image size from File picker
Replies: 6
Views: 1131

Re: Compressing Image size from File picker

Sorry I misread the VLWIN as VLWEB - we've been web focused for so long windows applications never occur to me.
by soa
Mon Apr 06, 2020 9:06 am
Forum: Questions & Answers
Topic: Compressing Image size from File picker
Replies: 6
Views: 1131

Re: Compressing Image size from File picker

How would rewriting the app in VLWEB improve the upload speed?
by soa
Mon Mar 30, 2020 4:24 pm
Forum: Questions & Answers
Topic: Widgets
Replies: 0
Views: 2133

Widgets

Has anyone out there developed any widgets they'd like to share?
by soa
Fri Mar 27, 2020 4:49 pm
Forum: Questions & Answers
Topic: Object won't compile
Replies: 12
Views: 2104

Re: Object won't compile

Just to get a start - you can always try logging into the IDE as the partition security officer which will ignore such considerations.
by soa
Thu Mar 19, 2020 6:08 pm
Forum: Questions & Answers
Topic: Is Select faster than Selectlist?
Replies: 2
Views: 1106

Re: Is Select faster than Selectlist?

You don't mention whether this is RDML or RDMLX. If it is RDML then the working list is an RPG multiple occurrence data structure which is basically a big dumb chunk of memory in which case I would expect it to very fast indeed (RPG had to be fast on ancient slow machines so in the 21st Century it's...
by soa
Wed Mar 18, 2020 9:43 am
Forum: Questions & Answers
Topic: Reading a large set of JSON data
Replies: 3
Views: 1386

Re: Reading a large set of JSON data

My Mistake.Try Define_Com Class(#PRIM_JSON.Document) Name(#lDocument) Define_Com Class(#PRIM_DC.UnicodeString) Name(#UniCodeString) #UniCodeString := #Request.Response.AsString #lDocument.LoadFromString( #UniCodeString.AsNativeString ) For Each(#Child) In(#lDocument.RootNode) #CONRSPID := #Child<'id...
by soa
Tue Mar 17, 2020 9:08 am
Forum: Questions & Answers
Topic: Reading a large set of JSON data
Replies: 3
Views: 1386

Re: Reading a large set of JSON data

Use XPRIM_Jsonreader - this is a forward only json parser. It identifies the start and end of objects and arrays etcetera so you have to code to keep a track of where you are but its around 30 times faster than the other stuff. Search this forum for an example.
by soa
Wed Feb 19, 2020 10:56 am
Forum: Questions & Answers
Topic: Calling and RDMLX function in IBM and passing parameters
Replies: 2
Views: 1324

Re: Calling and RDMLX function in IBM and passing parameters

UDEF is the only way I've found.

BTW you also use

LANSA REQUEST(X_RUN) PARTITION('DEX') PROCESS(ORDERX) FUNCTION(CALC) X_RUNADPRM('PRTR=*PATH')

and X_RUNADPRM invoke the debugger thus

X_RUNADPRM('dbug=y dbht=myidepc:51234')
by soa
Fri Jan 24, 2020 3:45 pm
Forum: Questions & Answers
Topic: Tabs
Replies: 10
Views: 1235

Re: Tabs

So the MD Tab control just provides the bit at the top but an old school tab control is used to provide the tabsheets. I've just tried it and it works but I would never have guessed that!

Thanks.
by soa
Wed Jan 22, 2020 9:39 am
Forum: Questions & Answers
Topic: Tabs
Replies: 10
Views: 1235

Re: Tabs

James I've posted earlier about MD Tabs https://forum.developer.lansa.com/viewtopic.php?f=3&t=2207&p=6051&hilit=tabs#p6051 They do not seem to be intuitively working from the IDE (i.e. drag and drop a tabsheet on the surface, then drop one or more sheets on to it which then act like standard panels)...
by soa
Tue Dec 03, 2019 8:30 am
Forum: Questions & Answers
Topic: Not really a question - PWAs
Replies: 2
Views: 492

Re: Not really a question - PWAs

Looking forward to whatever comes next!
by soa
Mon Dec 02, 2019 11:52 am
Forum: Questions & Answers
Topic: Reading json in VL Web
Replies: 4
Views: 544

Re: Reading json in VL Web

Worked out of the box, exactly what I wanted. Thanks Danny. I'll share this with the team.
by soa
Fri Nov 29, 2019 4:40 pm
Forum: Questions & Answers
Topic: Reading json in VL Web
Replies: 4
Views: 544

Re: Reading json in VL Web

Big help Danny, thanks. Can you point me in the direction of some examples of use I need to extract values from a json string like the following. { "eformlist":[ { "Type":"SHWEX", "Code":"ONSTG", "EFID":"47", "EFIID":"4707" }, { "Type":"SHWEX", "Code":"ONSTI", "EFID":"48", "EFIID":"566" } ] }