Search found 692 matches

by MarkD
Thu Oct 10, 2024 10:04 am
Forum: Questions & Answers
Topic: REST API Response with custom JSON String containing invalid characters when ran in the IBMi
Replies: 5
Views: 22167

Re: REST API Response with custom JSON String containing invalid characters when ran in the IBMi

I suspect that the IBM i server “gibberish” response is correct, but it is in EBCDIC format instead of ASCII/UTF-8 format.

That’s probably because the custom setting probably turns off automatic EBCDIC -> ASCII conversion as it leaves the server.

You could check this theory by returning the test ...
by MarkD
Tue Aug 24, 2021 10:48 am
Forum: Questions & Answers
Topic: SPACE_OBJECT weirdness?
Replies: 3
Views: 70051

Re: SPACE_OBJECT weirdness?

Also space objects are only ever stored in the memory of the process that created them.
by MarkD
Tue Aug 24, 2021 10:47 am
Forum: Questions & Answers
Topic: SPACE_OBJECT weirdness?
Replies: 3
Views: 70051

Re: SPACE_OBJECT weirdness?

I think the message means that you are trying to define a new space cell after you have read or written data to the space.

i.e. Once you read or write to a space you cannot subsequently try to alter the space's definition.
by MarkD
Sat Jul 24, 2021 1:45 pm
Forum: Questions & Answers
Topic: VLFONE Theme Customization
Replies: 1
Views: 38503

Re: VLFONE Theme Customization

I think you disable the search box by setting its width to zero in the framework definition.
Capture.PNG
Capture.PNG (38.53 KiB) Viewed 38485 times
by MarkD
Fri Jul 09, 2021 2:14 pm
Forum: Questions & Answers
Topic: VLFONE Theme Customization
Replies: 1
Views: 39150

Re: VLFONE Theme Customization

The message suggests some part of the property #sys_web.WebPage.style is null.
You could find out with some temporary debug code I guess.
by MarkD
Sun Apr 18, 2021 3:01 pm
Forum: Questions & Answers
Topic: VLF-One tablet=Y automatically
Replies: 2
Views: 44679

Re: VLF-One tablet=Y automatically

If you don't specify desktop=, tablet= or phone= on the URL at all it should default based on the device's screen width.
I think the defaults are <= 640 is a phone, <= 1007 is a tablet, >= 1008 is a desktop device.

If you have an alternative way to make the determination you could do that by ...
by MarkD
Fri Apr 09, 2021 11:03 am
Forum: Questions & Answers
Topic: VLF with RAMP Security
Replies: 2
Views: 45405

Re: VLF with RAMP Security

All the HTTP style communications are protected by HTTPS as you indicate.

I think that all "super server" TCP/IP sockets connnections can also be encrypted since V12 (or maybe even earlier).

See this tip - https://www.lansa.com/support/tips/t0532.html

This might also be useful - https://www.lansa ...
by MarkD
Fri Apr 09, 2021 10:56 am
Forum: Questions & Answers
Topic: Disabling Command Definition buttons
Replies: 5
Views: 57753

Re: Disabling Command Definition buttons

Could you clarify what you mean by the user clicking on an instance list column?

1. Do you mean the column heading?


2. Or do you mean on an item in the column which also causes the instance list ‘row’ (item) to become selected?

If it is the second option, then the act of selecting the instance ...
by MarkD
Sun Feb 21, 2021 12:13 pm
Forum: Questions & Answers
Topic: using avCheckInstanceAuthority in snap-in instance list
Replies: 1
Views: 41938

Re: using avCheckInstanceAuthority in snap-in instance list

This is VLF-WIN I presume?

I think you need to call it yourself to determine whether to add the list entry.

Let me know if you need an example.
by MarkD
Thu Jan 14, 2021 11:47 am
Forum: Questions & Answers
Topic: Pop Panel On Smaller screen Size - VLFOne
Replies: 2
Views: 79168

Re: Pop Panel On Smaller screen Size - VLFOne

Have you tried tracing out the computed Top and Left values to see if they are within the web pages viewing area?
e.g. Negative values are acceptable and would probably make the pop up effectively invisible as it is out of the browser's viewing area.
by MarkD
Fri Nov 06, 2020 12:25 pm
Forum: Questions & Answers
Topic: VLF-WIN V14 SP2 and performance
Replies: 5
Views: 56926

Re: VLF-WIN V14 SP2 and performance

Are you clearing (emptying) the working list each time on the client before passing it to the server to fill ?
by MarkD
Sat Oct 24, 2020 10:03 am
Forum: Questions & Answers
Topic: STM_FILE BIFS
Replies: 4
Views: 47965

Re: STM_FILE BIFS

If you have a sample of the bad data could you maybe try out using the TRANSFORM_FILE built-in function?

https://docs.lansa.com/14/en/lansa015/index.htm#lansa/transform_file.htm

Note how it has an option to handle 'bad' characters - but it does not well define what they might be.

If the CSV input ...
by MarkD
Fri Oct 23, 2020 10:33 am
Forum: Questions & Answers
Topic: & returning &amp;
Replies: 4
Views: 86848

Re: & returning &amp;

To understand why this happens try this incorrect HTML fragment:

<div> I like use a lot of <div> tags in my HTML pages </div>

It needs to be coded as

<div> I like use a lot of &lt;div&gt; tags in my HTML pages </div>

to work.
by MarkD
Fri Oct 23, 2020 10:17 am
Forum: Questions & Answers
Topic: & returning &amp;
Replies: 4
Views: 86848

Re: & returning &amp;

That's why the ampersand ( & ) is &amp;

That's also why, for example, less than ( < ) and greater than ( > ) characters would be stored as &lt; and &gt;

See https://www.htmlhelp.com/reference/html40/entities/special.html for an example of some of the most common characters.

I don't think you can ...
by MarkD
Thu Oct 22, 2020 9:42 am
Forum: Questions & Answers
Topic: & returning &amp;
Replies: 4
Views: 86848

Re: & returning &amp;

Is the CLOB data formatted as HTML, XMLor just plain text ?
by MarkD
Wed Oct 21, 2020 10:30 am
Forum: Questions & Answers
Topic: Messages not appearing after calling an RP
Replies: 1
Views: 42663

Re: Messages not appearing after calling an RP

Is your GET_MESSAGE read loop in a method or in a subroutine?
If it is in a method try changing it to be a subroutine.
Methods all have their own individual message queues, which are not the same queue as the method invoker's queue.
by MarkD
Wed Oct 14, 2020 2:15 pm
Forum: Questions & Answers
Topic: VLF-One Redisplay Business Object
Replies: 3
Views: 101579

Re: VLF-One Redisplay Business Object

That should be achievable (maybe) but it might take a few goes to get it right as I don't have a system to try it out on.

First, you need to put an event handler in your system IIP - your version of the shipped UF_OSYSTM reusable part.
Something like this:

Capture.PNG

This handles a user ...
by MarkD
Sat Oct 10, 2020 10:56 am
Forum: Questions & Answers
Topic: VLF-One Redisplay Business Object
Replies: 3
Views: 101579

Re: VLF-One Redisplay Business Object

Do you mean you just want to cause the business object's container pane to come to the front/top and nothing else to happen ?
by MarkD
Thu Oct 08, 2020 9:53 am
Forum: Questions & Answers
Topic: Null In JSON
Replies: 4
Views: 48908

Re: Null In JSON

Can you try:

If (#Child<'resting'> *isnot *null)

Also, each reference to #Child<'resting'> causes a lookup of the parsed JSON tree, so it might be quicker to execute using something like:

#TempRefererence <= #Child<'resting'>

Then use #TempReference instead of multiple #Child<'resting ...
by MarkD
Wed Sep 30, 2020 4:17 pm
Forum: Questions & Answers
Topic: Handling Lansa HTML field on iseries
Replies: 6
Views: 76607

Re: Handling Lansa HTML field on iseries

There seem to be lots of RPG program examples on the web for writing BLOB and CLOB data.