Page 1 of 1

LANSA V11 Search Area

Posted: Mon Mar 25, 2013 5:04 pm
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.

Re: LANSA V11 Search Area

Posted: Mon Mar 25, 2013 5:20 pm
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.

Re: LANSA V11 Search Area (RDMLX)

Posted: Mon Mar 25, 2013 5:50 pm
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.

Re: LANSA V11 Search Area

Posted: Tue Mar 26, 2013 8:54 am
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.

Re: LANSA V11 Search Area

Posted: Tue Mar 26, 2013 9:05 am
by soapagent
That's good enough for me. I've seen how fast you guys can move when you have to!

Re: LANSA V11 Search Area

Posted: Thu Jul 02, 2015 5:14 pm
by soapagent
Is it now possible to clear the Search area (see below)

Re: LANSA V11 Search Area

Posted: Tue Jul 07, 2015 1:52 pm
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.

Re: LANSA V11 Search Area

Posted: Tue Jul 07, 2015 3:03 pm
by soapagent
Thanks Mark, I'll give it a go.