Me again!
I'm trying to create a view which displays categories, firstly by company name, and then by the type of entity. This is for a Vendors database, where I have the entry types "Vendor Head Office", "Vendor Sales Office" and "Distributor".
My problem is that I want only one level of categorization for the head office, but two levels for the others, to get a view like this:
>CompanyName
Head Office
>Vendor Sales Offices
SalesOffice1
SalesOffice2
>Distributors
Distributor1
Distributor2
>CompanyName
Head Office
>Vendor Sales Offices
SalesOffice1
SalesOffice2
SalesOffice3
>Distributors
...
I have accomplished this multi-level categorization by setting a column with the following formula:
The "\\" creates a new category, which is perfect. My problem is that we need the top category (the company name) to be sorted alphabetically, but in the heirarchy "Vendor Sales Offices" should appear ABOVE "Distributors", which goes against the alphabet constraint!
I have tried all manner of hidden columns etc, but they won't work because this column is created by the formula, and is not programmable. By CREATING this column seperately, I lose the two-level heirarchy!
This is a pain, and I don't know if its even possible to do what I'm asking, but any help would be appreciated. Sorry for the long post!
I'm trying to create a view which displays categories, firstly by company name, and then by the type of entity. This is for a Vendors database, where I have the entry types "Vendor Head Office", "Vendor Sales Office" and "Distributor".
My problem is that I want only one level of categorization for the head office, but two levels for the others, to get a view like this:
>CompanyName
Head Office
>Vendor Sales Offices
SalesOffice1
SalesOffice2
>Distributors
Distributor1
Distributor2
>CompanyName
Head Office
>Vendor Sales Offices
SalesOffice1
SalesOffice2
SalesOffice3
>Distributors
...
I have accomplished this multi-level categorization by setting a column with the following formula:
Code:
@If(AccountType="Vendor Sales Office":"Distributor"; fdCompanyHeadOffice+"\\"+AccountType;CompanyName)
The "\\" creates a new category, which is perfect. My problem is that we need the top category (the company name) to be sorted alphabetically, but in the heirarchy "Vendor Sales Offices" should appear ABOVE "Distributors", which goes against the alphabet constraint!
I have tried all manner of hidden columns etc, but they won't work because this column is created by the formula, and is not programmable. By CREATING this column seperately, I lose the two-level heirarchy!
This is a pain, and I don't know if its even possible to do what I'm asking, but any help would be appreciated. Sorry for the long post!