Page 1 of 1

VLF-WIN Mini Filter

Posted: Wed Mar 08, 2017 4:23 am
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 7945 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 7945 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?

Re: VLF-WIN Mini Filter

Posted: Wed Mar 08, 2017 8:42 am
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)

Re: VLF-WIN Mini Filter

Posted: Tue Mar 28, 2017 11:54 pm
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.

Re: VLF-WIN Mini Filter

Posted: Wed Mar 29, 2017 1:37 am
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.