How to add custom filter in header in magento - magento-1.7

In my magento site,
I have there drop down list in header, I want to search Or navigate product after last drop down item select. drop down are dependent each other (i mean third depends on second, second depends on first) third drop down are attributes values of the second drop down category item.
it should be work like filters. I have create .phtml file and have added these drop down in header. please help me out.
Thanks in Advance

Customise your layered navigation functionality
An example of layered navigation with your problem
You have 3 attributes:- (Category,Color, Manufacaturer) Color is dependent on category and Manufacturer in Color
So when you pass #cat=5 the ajax call will filter out the products. Also filter out the second dropdown according to available products existing color.. Then similarly pass #cat=5&color=23.... so on
This filteration is already done in layered navigation. You just have to custmise your code to use this in dropdown
:)

Related

How to include list view BackPack with other components or widgets?

I would like yo add something to the list view in order to make a report.
Is it possible without override the view and had some components or widgets below ?
How can I include the list view several times on a page ?
Thanks for your help
You can easily add stuff to the List page using Backpack Widgets. They basically allow you to include a view within an existing page. You can of course include a custom view (aka custom widget) instead of an existing one.
You CANNOT however include the list view more than one time per page. It's not coded in a way that allows that.

How can I add a custom column menu tab in ag-grid?

Is there a way to add a custom column menu tab with my own favourite icon which on click would render my custom react component?
something like
myColDef.menuTabs: ['generalMenuTab', 'filterMenuTab', 'myCustomMenuTab']
FYI I'm using v12.0.2
What you're after can't be done I'm afraid. The grid supports React components in all sorts of ways (renderers, editors, filters etc), but not via the column menu.
I've updated the docs page to remove the gibberish issue - it'll be fixed properly in the next release, thanks for highlighting this.
This would be helpful to have. In particular for us, we'd like to filter based off row properties, and not row values. Creating our own tab to filter by cell colors that we have assigned with our own set of labels would be useful.
I agree that it would be a nice feature to have. Apparently, there's no quick out-of-the-box solution to do it. The only workaround I see is to implement your own custom Header component which would display any buttons your want.
There you can put a button to open your own custom menu, which you can implement as any regular UI component. It also means you'll need to manually implement all standard menu options that Ag-Grid provides out of the box if you need them.

After creating a top level category, the category itself is part of it

I recently created a new category which should appear on my page. This category should have 3 Items which should be as well displayed directly on the main page. But instead my category is shown on the top page, but I have to select it first to view my 3 Items in it.
To show my 3 Items, I can click on either "Connectivity Management".
It looks as if I had 2 Categories in each other, but that's not the case. I definitely have just one.
I had a look at the servicenow documentation about categories, but there was no hint about my problem.
I am using the FUJI release.
Any Idea how I can remove the bottom category?
I have other top level categories which work just as I wanted them, I compared both and found no difference.
How are you adding this to your page and what type of page are you adding this to?
I've seem something similar happen when adding this to a Homepage such as the ESS Homepage. Is this what you are trying to do?
When selecting to add a Catalog Category to a home page you will have two options, Category Details and Category Items
If you choose Category Details, you see something similar to what you see.
If you instead choose Category Items, you will see the items within the category

UI5 Generic Tile with filter functionality

I have Generic Tiles in my UI5 App. My requirement is to implement the functionality of Icon Tab Bar - Filter (https://sapui5.hana.ondemand.com/explored.html#/sample/sap.m.sample.IconTabBar/preview) for these tiles. I have separate tile for each status and on clicking it should display the list in the table depending on the clicked status eg: 'completed tickets'.
The table and the tiles are in different views. If this is possible please provide suggestions as to how this can be accomplished.
Thanks,
Srinivasan
You could follow the example of the IconTabBar almost literally, and just swap the icons for tiles.
When you press an icon in the IconTabBar in the example, the logic connected to that icon will add a filter to the binding of the table. You should do the same: the logic connected to your tiles, should also change the filter of the table binding. Every tile could result in a different filter to the binding. With that, you would see the table filtered based on the tiles you clicked.
With your table being in a different view than the tiles, you may want to use the router to communicate between the two views. You could e.g. have tile one to navigate to /YourApp/#/Stuff/FilterBySomething and tile two to navigate to /YourApp/#/Stuff/FilterBySomethingElse. In the view containing your table, you should then pick up the filter info and add the filter to the table binding accordingly. More info on how this works can be found in Step 31 of the SAPUI5 walkthough.

Tab control to autoenter field contents

I have a set of tabs inside the window items layout in the database file.
when I click the plus popover button, I want it to generate a new record in the products layout and fill out all the fields based on the active tabs and the extra description field based on the last edit box field at the bottom of the tabs. can someone help me do this as I have tried a few different scripts and have had no success. once the record has been created in the products layout/table, I also want it to generate a record in the window item table based on the linked itemid field and the autoenter calculation that is setup on the description field.
this is probably all very confusing but I would be glad of any help you can offer.
Window Item Database Copy
Your question is more a problem than a question.
I'm assuming your questions:
1) should I use a script trigger for that?
Probably not. You should use a button to call the script, it should create all the records you need, come back to the layout and open the popover.
2) how to check the active tabs?
You should you the getLayoutObjectAttribute ( , "isFrontPanel" ). That will allow you to correctly set the ifs.
3) how to create a record in any table?
to be honest, you should start by going to the layout you want and then creating the record. That's an easier way.
What you are trying to accomplish is not that hard. You just need to break it in smaller steps.