VLF-WIN Mini Filter

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
trossiter
Posts: 34
Joined: Wed Feb 22, 2017 3:19 am

VLF-WIN Mini Filter

Post by trossiter »

I am working on a business object for my client to work with product support call logs. The old filter I was using contained a field for the customer number and two buttons that affected how the business object performed. One button would populate the instance list with the matching customer from the search, and clicking on that instance would launch a command to view all previous call logs from that customer. The other would launch a new call log for that customer, bypassing the instance list altogether.

My client wants nothing to do with the instance list, so I have turned my filter into a mini filter. I removed the buttons and added a checkbox that affects which command to launch when the user presses enter on the customer field.
filter structure.PNG
filter structure.PNG (1.87 KiB) Viewed 7948 times
The taskbar that would display the mini filter currently displays a caption with the name of the current business object selected. Whenever I select my business object, I can only see a portion of my mini filter, about the same width as the caption that was previously there.
filter in framework.PNG
filter in framework.PNG (7.76 KiB) Viewed 7948 times
Where would I go to find this setting for the framework so I can show all of the mini filter or both the caption and the mini filter?
Theron Rossiter
Kawasaki Motors Manufacturing Corp., USA
MarkDale
Posts: 116
Joined: Wed Dec 02, 2015 10:06 am

Re: VLF-WIN Mini Filter

Post by MarkDale »

Have you had a look at shipped example DF_FILT9. It contains a panel called theMiniPanel, that can be sized according to your requirements (I think)
trossiter
Posts: 34
Joined: Wed Feb 22, 2017 3:19 am

Re: VLF-WIN Mini Filter

Post by trossiter »

Sorry I hadn't replied sooner. I got the mini filter to work by using #com_owner.avMiniFiltField1, avMiniFiltButton1 and avMiniFiltButton2 rather than using control components like I had in the previous version of LANSA.

Now my question is: Since the framework theme makes the buttons have white text against a light blue background which is very hard to read, is there a way to change the color of the buttons or of the caption on the buttons without changing the overall theme of the framework? If I were using control components, it would be simple. However, using #com_owner.avMiniFiltField1 and avMiniFiltButton1 makes it to where there are no components on my reusable part, and I can't seem to find an option to set for changing the color. I have tried changing the visual style of the entire reusable part, but that does nothing.
Theron Rossiter
Kawasaki Motors Manufacturing Corp., USA
trossiter
Posts: 34
Joined: Wed Feb 22, 2017 3:19 am

Re: VLF-WIN Mini Filter

Post by trossiter »

I switched back to using control components, and somehow it's working correctly this time. I'm able to add a visual style to the buttons, and that is solving my problem.
Theron Rossiter
Kawasaki Motors Manufacturing Corp., USA
Post Reply