LANSA V11 Search Area

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
soapagent
Posts: 93
Joined: Mon Jul 16, 2012 6:19 pm

LANSA V11 Search Area

Post by soapagent »

I'm attempting to use the newly introduced search command area I've added a command and set its properties to appear in the Search Commands area. This is all good and I'm able to make at visible and hidden as required.

I'm using #com_Owner.Get_EventParameter Param_N(1) Paramvalue(#SearchValue) to get it's value which works.

But I can't see how its value can be set and it seems to remember whatever I've typed in there forever. I'd also like to display a popover for not found etcetera but I don't know what to set for the Uoverelement

The documentation I have refers to an example called EXAM0090 which I can't find.
Paul

Re: LANSA V11 Search Area

Post by Paul »

The LANSA Searching example, LREX0090, didn't make it into the last build. Maybe you are looking at the RPG doco?

I have attached a text file of the code that I have for this example. Hope this helps.
Attachments
LREX0090_Code.txt
Code for Searching Example, LREX0090
(3.99 KiB) Downloaded 298 times
soapagent
Posts: 93
Joined: Mon Jul 16, 2012 6:19 pm

Re: LANSA V11 Search Area (RDMLX)

Post by soapagent »

Thanks for that.

I have a document called 'LongRange Runtime Version 11 (RV11). I can't remember where I downloaded it from but it doesn't mention RPG and some of the features mentioned I've used successfully (such as the new image properties).

Even with the source code to LREX0090 there appears to be no way to clear/initialise the search area.

The search functionality works beautifully (I've used multiple command which fits my requirement like a glove) but I would like to be able to clear the search value as in the context very rarely will the user make the same search twice.
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: LANSA V11 Search Area

Post by tsupartono »

Hi,
Setting initial value of search field is currently not supported.
We'll implement this capability very soon - should appear within the next release or two.
soapagent
Posts: 93
Joined: Mon Jul 16, 2012 6:19 pm

Re: LANSA V11 Search Area

Post by soapagent »

That's good enough for me. I've seen how fast you guys can move when you have to!
soapagent
Posts: 93
Joined: Mon Jul 16, 2012 6:19 pm

Re: LANSA V11 Search Area

Post by soapagent »

Is it now possible to clear the Search area (see below)
Mark_Dale
Posts: 61
Joined: Thu Apr 19, 2012 11:06 am

Re: LANSA V11 Search Area

Post by Mark_Dale »

I think it is possible, provided you assign a symbolic name to the menu item associated with each type of search.

In the LANSADemo schema, program examples, use case, searching,

edit the menu items

edit the Search By Name Menu Item and give it the symbolic name LREX0090_BY_NAME.

Now, in the LREX0090 lansa component, modify the clear messages button action as follows:

When (= CLEAR)
* Clear Messages

#COM_OWNER.IsNewForm := True
#uInRow := 0
#Com_Owner.uLog Text('Log messages cleared')

#Com_Owner.Set_Null Property('/Form.Menus.LREX0090_BY_NAME.Search.Value')

That should now reset the search value to null when you press clear messages.
Attachments
LR Capture.PNG
LR Capture.PNG (32.01 KiB) Viewed 5689 times
soapagent
Posts: 93
Joined: Mon Jul 16, 2012 6:19 pm

Re: LANSA V11 Search Area

Post by soapagent »

Thanks Mark, I'll give it a go.
Post Reply