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.
LANSA V11 Search Area
-
Paul
Re: LANSA V11 Search Area
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.
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
Re: LANSA V11 Search Area (RDMLX)
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.
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
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.
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
That's good enough for me. I've seen how fast you guys can move when you have to!
Re: LANSA V11 Search Area
Is it now possible to clear the Search area (see below)
Re: LANSA V11 Search Area
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.
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 (32.01 KiB) Viewed 5693 times
Re: LANSA V11 Search Area
Thanks Mark, I'll give it a go.