Forum Discussion
_anomDiebolt_
8 years agoQrew Elite
States And Regions ~ Add New Record
https://haversineconsulting.quickbase.com/db/bm6zr9qak?a=nwr
Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=609
Notes:
(1) The States and Regions are unlikely to change short of a new government forming or a change in your Sales Regions so there may not be any good reason to store the State or Region data in one or more related tables. Doing so will just crowd up your application with superfluous fields and tables.
(2) Using table relationships would coerce historic data to map to new states or regions when this probably is not the desired behavior.
(3) This is a very generic solution that can be adopted to any type of lookup scenario.
https://haversineconsulting.quickbase.com/db/bm6zr9qak?a=nwr
Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=609
Notes:
(1) The States and Regions are unlikely to change short of a new government forming or a change in your Sales Regions so there may not be any good reason to store the State or Region data in one or more related tables. Doing so will just crowd up your application with superfluous fields and tables.
(2) Using table relationships would coerce historic data to map to new states or regions when this probably is not the desired behavior.
(3) This is a very generic solution that can be adopted to any type of lookup scenario.
- QuickBaseCoachD8 years agoQrew CaptainIn this situation where there is a clean native solution, what is wrong with staying native and just having a few tables where users can easily see what is going on. In this case I don't think its a contest to get the functionality using the fewest number of tables and fields.
The other native solution if there are few enough states is to just have an IF or Case statement to hard code a formula to map the states to the sales territories. But I don't like that as much as it hides the assignment from regular users as they cannot see the formula. - _anomDiebolt_8 years agoQrew Elite> get the functionality using the fewest number of tables and fields.
Fewer and shorter are generally better goals.
Let's conceive of a metric called "noise ratio" which is defined as say the total number of fields in a table divided by the number of raw information bearing fields in a table. Using (1) summary fields, (2) lookup fields, (3) formula URLs and (4) the creation of extra tables just increases the noise ratio. It may not be a problem for the native implementation of any one particular feature in a table but over time hundreds of new fields get created that only inflate the noise ratio. I have seen client applications with dozens of fields that don't even get used but nobody dares delete them for fear the field may brake something if deleted.
>just have an IF or Case statement to hard code a formula to map the states to the sales territories.
As to your second point, if you use a formula what happens when the regions change their definition over time. If you use a formula the historic region associated with the state will change. - QuickBaseCoachD8 years agoQrew CaptainThe native solution to your 2nd issue, which is valid, is to use a snapshot field for the lookup. Yes, yet one more field.
For the 1st issue, how does the sales manager go into to make a territory change under your solution? how does he stand back and look at he current territory assignments and then make changes? He can't see the logic of the assignments as they are buried under the covers and he can't just go in himself to make a territory change when say the new fiscal year rolls around and he needs to hire a new sales rep and re-jig the territories. - _anomDiebolt_8 years agoQrew Elite> use a snapshot field for the lookup
I concede this and I knew you were going to mention snapshot. But there is a lot of cognitive overload keeping all these fields types straight in your mind:- formula field
- summary field
- lookup field
- proxy field
- snapshot field
- record picker field
- key field
- reference field
- base field - term shows up in some API methods
- virtual field - term shows up in some API methods
- built in field
- composite / compound field (addresses, phone numbers with extensions)
- custom field
- columns sometimes used when referring to a field in a report
- connected field
You just change the mapping like so:var map = {
Admittedly a sales manager may not feel comfortable changing even one line in the script but there are all sorts of ways to make this easier including sending themn to a re-eduction camp or encouraging QuickBase to build more script hooks into the product.
//"Aguascalientes": "Region1",
"Aguascalientes": "Region2",
...
}
Anyway I think this is a fruitful discussion of the pros and cons. - QuickBaseCoachD8 years agoQrew Captain:) I don't think that I want the sales manager to have admin access to the app. They are usually really good with selling and schmoozing people and really bad with computers.
- _anomDiebolt_8 years agoQrew EliteYes, Sales People will be the first we replaced with bots.
- ManuelAlvarez8 years agoQrew Trainee
Thank you for your comments! It _s been very helpfull