Page 1 of 1

New To Visual Lansa

Posted: Tue Apr 30, 2019 1:54 am
by Fromm603
I am a long time IBMi (RPGLE) guy. Does anyone have a roadmap on learning VL? eLearning, the tutorials, and even remote mentoring, just not doing the trick. I picked up and understood HTML/CSS/Javascript better.

Re: New To Visual Lansa

Posted: Tue Apr 30, 2019 4:51 am
by René Houba
Hi, where are you from?

Kind regards,
René

Re: New To Visual Lansa

Posted: Tue Apr 30, 2019 7:33 am
by Fromm603
Rene, I am in the Chicago area.

Re: New To Visual Lansa

Posted: Tue Apr 30, 2019 3:28 pm
by MarkD
What sort of thing to you want to design and build first?
e.g. Web or Windows, back office/core or public facing, mobile (small screen) or PC based, etc, etc.

Re: New To Visual Lansa

Posted: Tue Apr 30, 2019 11:34 pm
by jyoung
Hi and Welcome,

Do you have an idea where you are getting hung up?

Have you seen the developer resources? https://developer.lansa.com/resources/

Don't hesitate to post a question here, the folks here have always been supportive and helpful.
I've asked more than my fair share of questions. :D

The LANSA environment is huge, it does a ton of things and there can be a lot of moving parts to keep track of.

Don't get too frustrated, be patient with it, and when you are struggling with something, post it here.

Joe

Re: New To Visual Lansa

Posted: Tue Apr 30, 2019 11:36 pm
by atostaine
Are you comfortable with the IDE?

Do you understand RDML? Fetch is chain, SELECT is SETLL/READE loop, etc. RDMLX has all of the intrinsics just like RPG, even more, but they are on the other side of the variable. For instance %trim(myfield) is #myfield.trim in LANSA.

Intrinsics like asDisplayString use RPG style edit codes that are easy to remember.

There used to be a simple CRUD example. It has read/update and is a good place to start IMO.

Re: New To Visual Lansa

Posted: Wed May 01, 2019 12:32 am
by Fromm603
Thanks all. I just need to show my boss that I can accomplish something, a simple inquiry screen, over 1 file. So where do I start? I am using the Frameworks.
So I add a business object, create an instance list (I'll need 2 files here, so no idea how that'll work), a filter (simple hidden?) and a command handler.
So how do these objects play with each other?
Is there a way to print these (without copy and paste to a word doc or notepad)?

Is there something like an F4 to show be what parameters a Method contains?

So LANSA created a filter for me, but it contains errors. For instance:
#Search.ExecuteAsync ACCESSKEYS(#Accesskeys) INSTANCELIST_COLUMNS(#InstanceList_Columns)

Gives me the error:
Method ExecuteAsnyc does not contain parameter name ACCESSKEYS

Re: New To Visual Lansa

Posted: Wed May 01, 2019 12:55 am
by LANSAGuru
Fromm603,

LANSA is huge...there are lot of paradigms/products

These are how marketing people think about it, in terms of what it can accomplish
https://www.lansa.com/products/

I prefer to think about it in terms of platform...what it runs on and what architecture it embodies
5250/client server/WEB/Mobile

First, I would suggest picking a first project and sharing which piece you are trying to learn.
Is it Web, Client Server, 5250 refacing, etc...it will help to narrow down the answer about how to learn all of above

https://developer.lansa.com/resources/ it has links to the various places you can find info

Ask questions here...you will get answers from everyone including even the devs sometimes

I am going to assume you are trying to learn VL Web, but important question...are you going to do 5250 refacing or not? If this is the case then the road map is going to be different and include VLF.

An overlooked resource are the little examples on the desktop.
Click Home button
Samples on the far right of the home screen (Scroll if you don't see it)
There will be a samples tab and you can subset the list based upon topic...there are lots of little mini examples in there with bite size pieces...I would try and understand those and it may help with larger topics.

The guide...
Building Web Applications with Visual LANSA
https://docs.lansa.com/14/en/lansa017/i ... A%7C_____0

Have you read it? There are lots of little techniques in there which you might be unaware of unless you read it.

Question: remote mentoring is there to answer very specific questions...are they not answering the questions you have?

Question: or are you just looking for more training material? This is limited in my understanding to elearing and tutorials which overlap

Re: New To Visual Lansa

Posted: Wed May 01, 2019 1:02 am
by atostaine
Fromm603 wrote:
Wed May 01, 2019 12:32 am

Is there something like an F4 to show be what parameters a Method contains?

So LANSA created a filter for me, but it contains errors. For instance:
#Search.ExecuteAsync ACCESSKEYS(#Accesskeys) INSTANCELIST_COLUMNS(#InstanceList_Columns)

Gives me the error:
Method ExecuteAsnyc does not contain parameter name ACCESSKEYS
F2 should show the method definition. ExecuteAsync means it's calling a server routine. Do you have the code for that? Search it for #Search

Re: New To Visual Lansa

Posted: Wed May 01, 2019 1:30 am
by LANSAGuru
Is this VLF-WIN (client server) or VLF-ONE (Web)?

[So how do these objects play with each other? ]

I would read the VLF Guide ... it sounds like you are struggling with basic concepts. It reads from beginning to end building upon concepts like business object, filter, etc...

[a simple inquiry screen, over 1 file
I'll need 2 files here]

I would describe this in more detail what you are looking for because (to me at least) I don't know what you are asking.

[Is there a way to print these (without copy and paste to a word doc or notepad)? ]

Print what, the source code? To do that go to the source view of a component and select file/print

[Is there something like an F4 to show be what parameters a Method contains?]

Read the guide on how to use the IDE.
https://docs.lansa.com/14/en/lansa095/i ... s%7C_____0

It shows how to use the IDE (the answer to your question is F2 to see properties, methods, etc..)

[#Search.ExecuteAsync ACCESSKEYS(#Accesskeys) INSTANCELIST_COLUMNS(#InstanceList_Columns)
Method ExecuteAsnyc does not contain parameter name ACCESSKEYS]

this answer the question above, you are using VLF-ONE

accesskeys is a parm the filter generator creates...it looks like the server module it is calling does not have this parameter
I suspect that when you built the instance list you did not fill in the box which says what is the unique identifier for the business object (the keys of the file in other words). The first box is what you see, the second box are the keys...(boxes you drag and drop fields into)

==
Commentary...so the VLF is supposed to be a quick start for people just starting, but the irony sometimes is it has more to learn than just learning VL Web (for instance). I would suggest you take the time to go through the VLF Guide Tutorials and just build the simple instance list, filter, command handler example as shown. It sounds like what you are doing here....have you done this?

If that doesn't work keep asking questions here.

You can use remote mentoring or simple log calls with technical support.

Re: New To Visual Lansa

Posted: Wed May 01, 2019 1:40 am
by jyoung
One of the key things to remember is that in the web world (VLWEB in this case) there are two different actors, the client and the server. The client runs in the user's browser and CANNOT access data directly from the server. In order to get data, it MUST call a Server Module. I mention this because sometimes devs I introduced LANSA to would want to write select, fetch etc. statements in the client. You can do this VLWIN (I think) but not VLWEB.

It looks like you are using the "Common Activities" tab from the framework. So VLF created the Filter (client) and should have created a Server Module (server) as well. I suspect that for some reason, the Server Module did not get compiled or has an error (perhaps a table issue) and hence the error you are seeing.

The Repository view has a flag that shows the "Local Compiled State". Access the menu by right clicking on the column headings (Item, Identifier, etc.). This will help you see what has been compiled or not.
Capture1.PNG
Capture1.PNG (24.99 KiB) Viewed 11016 times
As Art mentioned, pressing F2 on the "ExecuteAsync" method will show you the parameters for the Server Module in the Features window.
Capture2.PNG
Capture2.PNG (16.37 KiB) Viewed 11016 times
If you have the demo materials installed, I would suggest starting with a Table that LANSA already knows about, such as the xEmployee Table.
Capture3.PNG
Capture3.PNG (18.02 KiB) Viewed 11016 times
Then using the Common Activities with the xEmployee table, should get you a working example to play with.

Joe

Re: New To Visual Lansa

Posted: Tue May 07, 2019 7:51 am
by Fromm603
OK, with the help from some of the above comments, I have a simple inquiry screen, kind of working. Also a lot of help from my remote mentoring. I have a 3 row, 1 column command handler. The 1st and 3rd rows will contain some general data, the 2nd row has a 4 column list. (I used the layout manager)

So if I try and drag and drop database fields onto the 3rd row, they simply do not go or stay where I want them. Material design is trying to make the fields huge, and they overlap and do crazy things.
In my world if the IBMi, a really old tool called SDA, lets me create screens in no time flat, is there no simple tool such as this for LANSA?

I can't seem to get a left margin on the leftmost column of my list either.

Re: New To Visual Lansa

Posted: Tue May 07, 2019 7:59 am
by atostaine
Dropping fields on a list will always put them at the end. Adjust the displayposition property .

For moving things around with margins and stuff you want/need layout manager. I used to do a full day class on layout manager at shops.

You could delete any layouts and just drop things where you want them but only to get you started. You will want layout manager for everything.

It’s better in v14 but there is still a lot to learn.

Re: New To Visual Lansa

Posted: Tue May 21, 2019 6:55 am
by dhnaigles
Fromm603,
There is online training available (for a price). If you are building a VLF_WIN application, you will find tutorials in the VLF documentation. If you are having issues with layouts, it might be best if you use the samples and look for Table Layout. There are many examples of windows and web components using this layout style.
You could manually define the layouts and positioning of your fields, but this would be very time consuming as the number of lines of code to make it work is much more than you would have done in SDA.
I know I'm being vague, but Visual LANSA is gigantic and it is difficult to point someone in a very specific direction. I hope this helps, but let me know if you might like some specific issues addressed. I do believe we LANSA developers must help one another so that we are all successful.