Search found 152 matches

by dannyoorburg
Fri Dec 16, 2016 11:05 am
Forum: Questions & Answers
Topic: Using Designs PRIM_TREE
Replies: 6
Views: 2060

Re: Using Designs PRIM_TREE

Hi, The Tree Design is a Panel, and as such it has a SizeChanged event. That event is NOT about the Browser changing size, if that's what's causing the confusion, but about the Panel itself changing size (probably triggered by layout managers resizing the Tree that it lives in). If you want to know ...
by dannyoorburg
Thu Dec 15, 2016 3:20 pm
Forum: Questions & Answers
Topic: How to setvalue a field component in Web page
Replies: 2
Views: 1434

Re: How to setvalue a field component in Web page

Hi Taku, the generic SetValue is indeed not (yet) implemented on the Web. That leaves you with - either specifically naming the input fields you'd like to clear (I usually do it through a Group_By) Group_By Name(#InputFields) Fields(#STD_TEXT #STD_NUM) Evtroutine Handling(#Button_ClearAll.Click) #In...
by dannyoorburg
Thu Dec 15, 2016 3:00 pm
Forum: Questions & Answers
Topic: Logging Web Page Access
Replies: 1
Views: 1054

Re: Logging Web Page Access

Hi Casey,

the short answer is no. VL WEB doesn't have any automated logging build in.

The information is accessible though, if you want to do your own logging, through system variables as *WEBIPADDR and *USER_AUTHENTICATED.

Regards,
Danny
by dannyoorburg
Wed Dec 07, 2016 11:06 am
Forum: Questions & Answers
Topic: VL Web error
Replies: 9
Views: 3575

Re: VL Web error

Hi,

it's just telling you that your reference #lcBillCatg is *NULL. (And that it can't set the pShipperNo property on a NULL reference)

Is it correct that that's a dynamic reference? Does it make sense that it could be *NULL?

Cheers,
Danny
by dannyoorburg
Tue Dec 06, 2016 7:39 pm
Forum: Questions & Answers
Topic: Check password
Replies: 5
Views: 2822

Re: Check password

Hi Rene,

you'll need to manually add the Widget's public interface.

Alternatively you should probably have done a Copy from the right-click menu on Stewart's widget.

That would have copied interface + definition.

Danny
by dannyoorburg
Thu Dec 01, 2016 4:45 pm
Forum: Questions & Answers
Topic: Automating Carousel
Replies: 5
Views: 1930

Re: Automating Carousel

Hi Shumpei,

if you check out the documentation for carousel:

http://docs.lansa.com/14/EN/lansa016/PRIM_CARO.htm

You'll find several methods to control its behavior programmatically.

Regards,
Danny
by dannyoorburg
Wed Nov 30, 2016 6:16 am
Forum: Questions & Answers
Topic: Add a GIF as a Bitmap
Replies: 1
Views: 991

Re: Add a GIF as a Bitmap

#SYS_WEB.LoadingImage

http://docs.lansa.com/14/en/lansa016/PR ... gImage.htm

gives you access to the spinner.

Danny
by dannyoorburg
Sat Nov 26, 2016 7:31 am
Forum: Questions & Answers
Topic: Prevent non-login user can see source codes
Replies: 3
Views: 1192

Re: Prevent non-login user can see source codes

Hi Megumi, You can't prevent people seeing source code in a browser...that's why pretty much everybody delivers their sourcecode obfuscated (all meaningful names gone). LANSA does the same. If you compile RDML without the Debug flag on, it will also be obfuscated (in as much as we can without stoppi...
by dannyoorburg
Mon Nov 21, 2016 8:57 am
Forum: Questions & Answers
Topic: VL Web library list on IBM i
Replies: 5
Views: 2409

Re: VL Web library list on IBM i

Hi, There is very little difference between a Server Module running a Server Routine and a WAM running a Web Routine. They run in the exact same environment. I'm not sure how to best implement your requirements, there will be other people better placed to comment on that, I'm just very surprised tha...
by dannyoorburg
Tue Nov 15, 2016 12:14 pm
Forum: Questions & Answers
Topic: How to check if a JSON response element is NULL
Replies: 4
Views: 2380

Re: How to check if a JSON response element is NULL

Hi David,

maybe you should code it

Code: Select all

If ((#JSON.RootItem<"title">.Type = Null ) *ORIF ((#JSON.RootItem<"title">.Type = Object) *AndIf (#JSON.RootItem<"title">.ItemCount = 0)))
...
Endif
so it doesn't fall over the moment you one day install an EPC that that contains a proper fix...

Regards,
Danny
by dannyoorburg
Tue Nov 15, 2016 10:07 am
Forum: Questions & Answers
Topic: How to check if a JSON response element is NULL
Replies: 4
Views: 2380

Re: How to check if a JSON response element is NULL

Hi David, if ( 'title' ) is not supplied in your JSON, as in: { "name":"Danny", "age":42 } then ( #Root<'title'> *is *NULL ) SHOULD evaluate to TRUE. But if title IS supplied, but given the 'null' value { "name":"Danny", "age":42, "title": null } then Visual LANSA ends up creating an instance of a J...
by dannyoorburg
Mon Oct 24, 2016 6:22 pm
Forum: Questions & Answers
Topic: How to catch Tab key in PRIM_LIST.DropDown (VLF-ONE)
Replies: 8
Views: 2352

Re: How to catch Tab key in PRIM_LIST.DropDown (VLF-ONE)

Hi,

So why can't you just set the correct Tab Order?

Regards,
Danny
by dannyoorburg
Fri Oct 21, 2016 6:29 pm
Forum: Questions & Answers
Topic: How to set a srvroutine in a "Failed" state programmatically
Replies: 4
Views: 1643

Re: How to set a srvroutine in a "Failed" state programmatically

But wouldn't it be so much more graceful to return a field with some sort of result code that has meaning within your application....

:)

Danny
by dannyoorburg
Wed Oct 19, 2016 12:23 pm
Forum: Questions & Answers
Topic: BLOB
Replies: 11
Views: 3004

Re: BLOB

Hi Andrea,

can you describe the functionality you're trying to achieve / problem you're trying to solve with this particular construct.

Just out of curiosity, there might be other ways of achieving the same result....

Cheers,
Danny
by dannyoorburg
Tue Oct 18, 2016 10:24 pm
Forum: Questions & Answers
Topic: BLOB
Replies: 11
Views: 3004

Re: BLOB

I'll have one more guess without actually trying it myself :)

Should it be a CLOB instead of a BLOB?

Danny
by dannyoorburg
Fri Oct 14, 2016 8:04 pm
Forum: Questions & Answers
Topic: BLOB
Replies: 11
Views: 3004

Re: BLOB

This is just a quick guess... But I'm suspicious of the length of the path into the blob folder... What would happen if it's more than 256 chars?

But I haven't actually tried this...

Maybe that helps....
by dannyoorburg
Sun Oct 09, 2016 4:31 pm
Forum: Suggestions for Product Enhancements
Topic: Source Code to text files
Replies: 8
Views: 4519

Re: Source Code to text files

Hard to imagine how you ever lived without isn't it.... I understand it is a bit quirky because Lansa still needs the Repository tables. And you can still do imports /exports even though you should probably just use the VCS files to propagate changes... But I'm happy to hear more people are starting...
by dannyoorburg
Tue Sep 20, 2016 1:41 pm
Forum: Questions & Answers
Topic: Server modules
Replies: 15
Views: 8419

Re: Server modules

Hi Bill, see the attached sample. This is not necessarily the best way to do a login, ( you might want to check out the new Web Page templates for an alternative architecture as well ), but it shows the concept of transferring to another page and staying within the same session. The package contains...
by dannyoorburg
Sat Sep 17, 2016 7:52 am
Forum: Questions & Answers
Topic: Server modules
Replies: 15
Views: 8419

Re: Server modules

Hi Bill,

You don't pass in a URL. The Define_Com for the Server Routine (with Response(*WEBPAGE #NEXTPAGE) contains enough information for Lansa to construct the URL under the covers...

I can post a simple sample if it's still unclear...

Danny
by dannyoorburg
Wed Sep 14, 2016 4:18 pm
Forum: Questions & Answers
Topic: SP1 changes - issues
Replies: 5
Views: 4972

Re: SP1 changes - issues

Hi Andrea, am I correct in understanding that you see different behavior regarding caching but it is now actually CORRECT in SP1? There are some fixes in SP1 that assure that a recompile of the WebPage should ALWAYS result in a refresh of all compiled RDMLX, with or without cache manifest. I hope th...