Search found 148 matches

by dannyoorburg
Tue Apr 18, 2017 2:20 pm
Forum: Questions & Answers
Topic: *INSTANCE_OF #PRIM_XXXX on Web page
Replies: 7
Views: 2260

Re: *INSTANCE_OF #PRIM_XXXX on Web page

Hi Megumi, I managed to have a look at your sample. There's a bit more to it. All these versions of INSTANCE_OF testing all do the right thing, the only problem is that EVP's (field visualizations) inadvertently inherit from PRIM_PANL in the Web Runtime. THAT is the defect that will need fixing. PRI...
by dannyoorburg
Fri Apr 14, 2017 12:58 pm
Forum: Questions & Answers
Topic: *INSTANCE_OF #PRIM_XXXX on Web page
Replies: 7
Views: 2260

Re: *INSTANCE_OF #PRIM_XXXX on Web page

Yes. That's what I meant.

And I was pretty sure that works.... hmm.

Not working today so I can't try. I'll get back to you.

Danny
by dannyoorburg
Fri Apr 14, 2017 11:52 am
Forum: Questions & Answers
Topic: *INSTANCE_OF #PRIM_XXXX on Web page
Replies: 7
Views: 2260

Re: *INSTANCE_OF #PRIM_XXXX on Web page

Hi Megumi,

As a workaround, use the For commands Operation parameter instead.

http://docs.lansa.com/14/en/lansa015/in ... .htm#FOR_P

It can do INSTANCE_OF as well...

Cheers,
Danny
by dannyoorburg
Wed Apr 05, 2017 1:39 pm
Forum: Questions & Answers
Topic: My first Widget
Replies: 2
Views: 1243

Re: My first Widget

Hi,

the

Wavesurfer.on('ready', function () {
Wavesurfer.play();
});

is defined in the main flow, it'll execute when Wavesurfer is still an undefined variable.

You probably want to move that into your construct function.

Cheers,
Danny
by dannyoorburg
Tue Mar 21, 2017 4:39 pm
Forum: Questions & Answers
Topic: Styling HTML page
Replies: 1
Views: 788

Re: Styling HTML page

Hi,

no, you can't modify the generated HTML, you can copy it and completely own it, but I would only do that as a last resort.

You can however specify an image that will function as the splash screen in the Web Page / Integration Tab / Loading Screen section.

Regards,
Danny
by dannyoorburg
Fri Jan 27, 2017 11:17 am
Forum: Suggestions for Product Enhancements
Topic: Better JavaScript Error Messages
Replies: 3
Views: 2566

Re: Better JavaScript Error Messages

Hi Joe, Widgets are stored in the Repository, so no, there's no file to edit somewhere, My widgets have been really small so far, so a simple copy paste of the source code from the IDE into another editor and back was just fine. Alternatively, your way of externalizing more complex JavaScript into s...
by dannyoorburg
Thu Jan 26, 2017 12:10 pm
Forum: Suggestions for Product Enhancements
Topic: Better JavaScript Error Messages
Replies: 3
Views: 2566

Re: Better JavaScript Error Messages

Hi Joe, you fell into the exception that deals with a syntax error in the downloaded JavaScript. It should report exactly which file contains the syntax error, which it currently doesn't, we'll rectify that. It was never that important for the JavaScript that is compiled RDMLX, because it gets gener...
by dannyoorburg
Sat Jan 14, 2017 11:41 am
Forum: Questions & Answers
Topic: Fatal Script Error (evaluating old.awOverride)
Replies: 6
Views: 2328

Re: Fatal Script Error (evaluating old.awOverride)

Can you copy and paste the whole error message?

Danny
by dannyoorburg
Tue Jan 10, 2017 3:57 pm
Forum: Questions & Answers
Topic: Vanity URLs on the IBM i
Replies: 4
Views: 1765

Re: Vanity URLs on the IBM i

Hi Joe, I'm still inclined to create an index.html, as described in: http://vlforum.lansa.com.au/viewtopic.php?f=4&t=47 so the URL can just be www.myserver.com/myapp and it will default to the index.html inside that folder. (We're looking at formalizing this idea so the deployment tool will do it fo...
by dannyoorburg
Sat Jan 07, 2017 8:20 am
Forum: Questions & Answers
Topic: Images no longer being found after check in
Replies: 3
Views: 1515

Re: Images no longer being found after check in

Hi, yes, when you change images you DO need to recompile (one of its) container(s). Otherwise you just change the Repository definition but not the actual file in your execute folder. I don't know why checking in the image would delete/change the file in the execute folder, I'll have a play with tha...
by dannyoorburg
Sat Jan 07, 2017 7:29 am
Forum: Questions & Answers
Topic: Images no longer being found after check in
Replies: 3
Views: 1515

Re: Images no longer being found after check in

I'm not sure how you lost them. But the actual image file gets created from its repository definition by compiling a page/reusable/theme that uses that particular image. So normally you wouldn't have to worry about checking in an image. It's just a resource that travels along with the html/javascrip...
by dannyoorburg
Wed Jan 04, 2017 9:29 am
Forum: Questions & Answers
Topic: Thoughts on Task Tracking
Replies: 10
Views: 3069

Re: Thoughts on Task Tracking

Hi,

I seem to remember from your previous posts that you had a VCS setup, in which case Task Tracking won't be available to you as there's no need for it.

Or did I misinterpret that somehow?

Regards,
Danny
by dannyoorburg
Thu Dec 29, 2016 8:45 am
Forum: Questions & Answers
Topic: Object Inheritance and Data Loading
Replies: 2
Views: 1173

Re: Object Inheritance and Data Loading

Hi, Fields in Visual Lansa don't play nicely with inheritance. They never have. If you were to use a field like #STD_TEXT in RDMLX in both your component AND its ancestor, you'll find it's actually 2 different fields, each with their own value. The listfield mapping will only look at the fields used...
by dannyoorburg
Wed Dec 21, 2016 9:22 am
Forum: Questions & Answers
Topic: How to determine if a Widget is loaded
Replies: 3
Views: 1263

Re: How to determine if a Widget is loaded

I usually use 2 booleans to do pretty much the same thing... Define Field(#ChartInitialized) Type(*BOOLEAN) Default(False) Define Field(#DataLoaded) Type(*BOOLEAN) Default(False) Mthroutine Name(PopulateChart) If (#ChartInitialized *And #DataLoaded) * Populate Chart Endif Endroutine and then just ca...
by dannyoorburg
Wed Dec 21, 2016 8:00 am
Forum: Questions & Answers
Topic: How to determine if a Widget is loaded
Replies: 3
Views: 1263

Re: How to determine if a Widget is loaded

You'll have to wait for the Initialize event to fire on your Widget instance...

So whatever code you have now to populate it should probably be in the #MY_WIDGET.Initialize event routine.

Cheers,
Danny
by dannyoorburg
Tue Dec 20, 2016 8:07 am
Forum: Questions & Answers
Topic: Feature is not a member of PRIM_LIBI.IVarCharIntrinsics
Replies: 4
Views: 1460

Re: Feature is not a member of PRIM_LIBI.IVarCharIntrinsics

I guess it got confusing because your data object has a default property of Caption defined. Because of the default property it can now do value AND reference semantics, i.e. both *AUTO and *REFERENCE are valid (although very different in meaning). I'm personally a bit wary of default properties bec...
by dannyoorburg
Fri Dec 16, 2016 11:05 am
Forum: Questions & Answers
Topic: Using Designs PRIM_TREE
Replies: 6
Views: 2036

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

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

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

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