Automatically assign parent category to sub-category entries? - expressionengine

I have a parent category called, 'Reviews', which has sub-categories, 'Albums', 'Tracks' and 'Gigs'.
The entries in the sub-categories had already been assigned those sub-categories before the parent category was created.
Is there any way I can automatically add the 'Reviews' (parent) category to all of its sub-category entries?

Related

Filter dropdown list based on another dropdown list in userform

Thank you for viewing this request.
Details:
I have 2 lists: Category ID; Task ID.
There is a 1 to many relationship from Category ID --> Task ID, meaning that Task ID can be associated with only 1 Category ID; but, multiple Task IDs can share the same Category ID.
Category ID = Broader Description | Example: Continent: North America
Task ID = Granular Description | Example: Since North America was selected only Canada, 'Merica, and Mexico should populate, not the rest of the countries.
Question:
When creating a dropdown list in a user form, is it possible to for Country Dropdown list to be filtered based off of what was already selected in Continent dropdown list?
Images for Reference:
This is what I want it to look like but for user form in VBA

Count Index based on Multiple Conditions - Excel

I have a table with order records for each Product Type. The columns contain information like Order Number, Customer Name, Product Category, Product, and Order Receipt Date.
My goal is to find the quantity of orders that fall into the below conditions:
New Customers Ordering any Product Category for the First Time
Existing Customers Ordering from any Product Category for the First Time
Reorders from any Product Category
What would be the best way to go about this?
Think I figured it out:
I created two columns for records: "First Product Type Order?" and "First Order?"
"First_Product_Type_Order": IF(AND(Order2=Order1,Product_Type2=Product_Type1),First_Product_Type_Order1,IF(SUMPRODUCT(($Customer$2:$Customer2=D2)*($Product_Type$2:$Product_Type2=Product_Type2))>1,"Reorder","First Time Order"))
"First_Order":
IF(Order2=Order1,First_Order1,IF(SUMPRODUCT(($Customer$2:$Customer2=Customer2)*1)>1,"Existing Customer","New Customer"))

Sorting word table items with sub items

I have list in MS Word table.
Items have subitems, each in separate row. Each subitem have indentation.
I need a way to sort this only items in this list, subitems should move with them.
I have same list in Excel also but I didn't manage to do much with it there too..
Let's call each item parent, each subitem child. Then following algorithm can be helpful.
Give to each parent id
To each child assign it's parent id
Sort Parents.
Display hierarchy again.
My understanding of task:
item 1
subitem1a
subitem1a1
subitem1a2
subitem1b
subitem1c
item 2
subitem2a
subitem2b
Suppose you want to sort it by descending, and displayed list should be presented like this:
item 2
subitem2a
subitem2b
item 1
subitem1a
subitem1a1
subitem1a2
subitem1b
subitem1c
Am I correct?

In rails_admin, how can I filter based on the presence of an association id?

In rails_admin, I've got a list of cities. Some have a numeric state_id and some have a nil. I want my cities list view to let me filter based on whether that field is filled or blank.
How can I do that?
This raises an exception:
config.model 'City' do
list do
filters [:state_id]
...
... because rails_admin can't find "city_id" among its list of "filterable fields", even though it's one of the displayed fields.
You have to set the field as filterable explicitly.
config.model 'City' do
list do
field :state_id do
filterable true
end
With that, I no longer needed the filters setting.

Dynamics CRM 2011 creating relationships between custom entities

I have defined 3 entities in MSCRM 2011.
1-Place: This is the main entity. In this form I have some fields (let say IDs, Whole Number) that I want to create some relationships with other custom entities.
2-Category: This has two fields, ID(Whole number) and Category Name(text.) This is simply a relation entitiy.
3-Place-Category Relationship: This entity contains relationships between Category and Place. It has two main arguments, both of them are whole number.
One place can have more than one Category.
I want to display end user Place and the categories related to to that place entity.
Thanks in advance.
More info about this question:
- In Place entity each Place has a unique ID (1 = Train Station, 2 = Jhon's Kebab House, 3 = Nando's, 4 = Wagamama ...)
- In Place entity I have plenty of data but Category IDs are used to match places with categories (like 42, 108 etc.)
- In Category entity I have two fields. Category ID's matched with their category names (1 = Cafe, 2 = Restaurant ... 42 = Train Station, ... 108 = Grocery etc.)
- In Place-Category Relationship entity I have IDs of the places and the IDs for the cateories.(like PlaceID = 1 CategoryID =42, PlaceID = 2 CategoryID = 2, PlaceID = 2 CategoryID = 5 ..etc)
There are 140K Places, 200 Categories and more than 400K Place-Category Relationship.
One place has at least one, maximum 80 categories.
I want to match all my Places with their Categories entity (by aid of Place-Category Relationship entity).
I want to automate this matching process.
since you have said the each place can have many categories but not vice versa .
so you just need two entities (Place,category) and you should create a one to many
relationship between them.
open the default solution
Expand the place category
click on the 1:N relationship and create a relationship between it
and the category entity
Note: to open the "default solution" lick settings=> customizations => click customize the
system on the right

Resources