nkarthick,
Could you take a look at the last post on
Location in reports
I'm trying to figure out how to test to see if there is a Location Type named "Install Loc" and if so create code to not show it on sales reports. I never know if this Location is going to be used, but if it is is should not show on Sales Reports.
Install Loc is ALWAYS the most granular location. I assume this is the "5th" location. However if I only have 2 locations defined say Room & Install Loc, is Install Loc still 5 or is it 0?
I assume the Order is
0 - Campus
1 - Building
2 - Floor
3 - Room
4 - Closet or in our case Install Loc
Is Location 4 always Closet, even if only two locations, Room and Closet, are defined for the project? If so, then I know how to use your code to solve my problem.
However if Room is now (0) and Closet (1), I need to come up with a way to know if Closet (Install Loc) is defined in the project.
-ch