Search found 300 matches

by soa
Fri Oct 04, 2019 9:41 am
Forum: Questions & Answers
Topic: vlweb MD TabSheet
Replies: 2
Views: 92

Re: vlweb MD TabSheet

Thanks pablo. I've copied in code and sort of got it working but it looks me as if something is broken in the IDE tooling for this component since I can't get tabsheets to from the Controls tab. I think I'll give this a miss until e apply the next EPC where, hopefully, it is fixed. Unless someone kn...
by soa
Thu Oct 03, 2019 6:20 pm
Forum: Questions & Answers
Topic: vlweb MD TabSheet
Replies: 2
Views: 92

vlweb MD TabSheet

Can anyone explain to me how to use the Material Design TabSheet? When I select Tabs from the MD Controls List U can see 2 - 1 MD looking thing that says 'Three top aligned...' and ' 2. Standard Tab Control. When I drag the first one on to a form it just has captions and no tab body area. It has Tab...
by soa
Tue Oct 01, 2019 9:34 am
Forum: Questions & Answers
Topic: Arrays
Replies: 4
Views: 116

Re: Arrays

Thanks for the help guys!
by soa
Mon Sep 30, 2019 6:47 pm
Forum: Questions & Answers
Topic: Arrays
Replies: 4
Views: 116

Arrays

VLWEB allows me to define a collection like

Define_Com Class(#prim_lcol<#WRK3A>) Name(#MKS)

Where #WRK3A is a simple Dictionary *CHAR 3

But I can't work out how insert an entry

#MKS.Intert(#WRK3A) doesn't work (not a component)

Is there a way to achieve a simple string array?
by soa
Fri Sep 27, 2019 3:27 pm
Forum: Questions & Answers
Topic: Collection in collections
Replies: 3
Views: 114

Re: Collection in collections

Thanks for the response.

The #STDMKC_1 variable is just a *CHAR 5 so this is the simplest array possible.
by soa
Thu Sep 26, 2019 4:33 pm
Forum: Questions & Answers
Topic: Collection in collections
Replies: 3
Views: 114

Collection in collections

I have a reusable part call #MARKENTRY which contains an array of strings like Define_Pty Name(StudentId) Get(*AUTO #STDID) Set(*AUTO #STDID) Define_Com Class(#PRIM_ACOL<#SMMKC2>) Name(#ItemMarkCol) In my model RP I have a collection of MARKENTRYs Define_Com Class(#PRIM_ACOL<#MARKEntry>) Name(#StdMa...
by soa
Thu Sep 26, 2019 8:09 am
Forum: Questions & Answers
Topic: Visual LANSA Context Menu
Replies: 7
Views: 143

Re: Visual LANSA Context Menu

Good discussion. Thanks to everybody who participated.
by soa
Tue Sep 24, 2019 5:54 pm
Forum: Questions & Answers
Topic: VLWEB Photo
Replies: 4
Views: 110

Re: VLWEB Photo

Looking through the posts it seems that FilePicker does much the same thing with less restrictions. Anyone got any thoughts on this?
by soa
Tue Sep 24, 2019 5:45 pm
Forum: Questions & Answers
Topic: VLWEB Photo
Replies: 4
Views: 110

VLWEB Photo

I need to use the control #xDemoCameraControl. The doc says it works with LANSA Mobile. Can it work with LONGRANGE?
by soa
Tue Sep 24, 2019 5:44 pm
Forum: Questions & Answers
Topic: Visual LANSA Context Menu
Replies: 7
Views: 143

Re: Visual LANSA Context Menu

Not quite but I'm looking forward to getting my hands on this epc.
by soa
Tue Sep 24, 2019 9:40 am
Forum: Questions & Answers
Topic: Visual LANSA Context Menu
Replies: 7
Views: 143

Visual LANSA Context Menu

I would like to have a list control where each line has a button which when clicked displays a drop down/context menu, Is this possible. I can easily create a button with three vertical dots but I can't find a context menu. I found an example of a button with a drop down menu but the control is not ...
by soa
Fri Sep 20, 2019 3:02 pm
Forum: Questions & Answers
Topic: *DATETIME
Replies: 2
Views: 104

Re: *DATETIME

Looks good,
thanks Mark
by soa
Fri Sep 20, 2019 10:39 am
Forum: Questions & Answers
Topic: *DATETIME
Replies: 2
Views: 104

*DATETIME

I have a variable Define Field(#dtavl) Type(*DATETIME) Length(19) I want to set the date and time portions This sets the date #dtavl := #CATGRPCL.AsDate( CCYYMMDD ) but this sets the time and but turns the date back to 1900-01-02 #dtavl := #WRK6N0.AsTime( HHMMSS ) How do I set both parts? I want to ...
by soa
Fri Sep 13, 2019 10:51 am
Forum: Questions & Answers
Topic: Storing Reference in model. VLWEB
Replies: 4
Views: 170

Re: Storing Reference in model. VLWEB

Thanks Danny. That makes a difference!
by soa
Thu Sep 12, 2019 12:55 pm
Forum: Questions & Answers
Topic: Storing Reference in model. VLWEB
Replies: 4
Views: 170

Storing Reference in model. VLWEB

I have a collection in my model and I want to store a reference to the currently selected item. When I load a List from my collection I have. Add_Entry To_List(#List) #List.CurrentItem.RelatedReference <= #list And in the Item click event I want to store the selected item #model.CurrentVisotRef <= #...
by soa
Thu Sep 12, 2019 11:55 am
Forum: Questions & Answers
Topic: Report with images
Replies: 6
Views: 214

Re: Report with images

If you are using VLWEB it possible, via a widget, to create complex PDFs on the browser side with several JavaScript libraries such as jspdf. In fact, these can be made to work on the iseries by executing the VLWEB RP in node.js. If you want PDFs on the iSeries side then LANSA Integrator is the way ...
by soa
Tue Aug 27, 2019 10:53 am
Forum: Questions & Answers
Topic: VLWEb Dropdown Items (RESOLVED)
Replies: 4
Views: 138

Re: VLWEb Dropdown Items (RESOLVED)

Cancel that last one - I checked it in rather than compile!
by soa
Tue Aug 27, 2019 10:50 am
Forum: Questions & Answers
Topic: VLWEb Dropdown Items (RESOLVED)
Replies: 4
Views: 138

Re: VLWEb Dropdown Items (RESOLVED)

Further. I've added a bunch of items and I want the first to be selected when the drop down is first displayed. I've tried #ddChartType.Items.Add Value('MSColumn2D') Caption('2D Bar') #ddChartType.Items.Add Value('MSColumn3D') Caption('3D Bar') #ddChartType.Value := 'MSColumn2D' but the dropdown com...
by soa
Tue Aug 27, 2019 9:22 am
Forum: Questions & Answers
Topic: VLWEb Dropdown Items (RESOLVED)
Replies: 4
Views: 138

Re: VLWEb Dropdown Items

Simple! Thanks James.
by soa
Tue Aug 27, 2019 8:59 am
Forum: Questions & Answers
Topic: VLWEb Dropdown Items (RESOLVED)
Replies: 4
Views: 138

VLWEb Dropdown Items (RESOLVED)

Dropdown item has value and caption properties but the documentation example only has

#ddChartType.Items.Add( 'Some Item' )

Is it possible to set the caption property in the same statement?