1) Is a "global sql var" global to the connection or to the view; the name suggests to the connection, the navigation for creating them suggests it is known only to that view.
2) Do I need to be concerned about how many SQL variables I designate in table data dictionaries? I assume there's overhead. I remember reading somewhere that creating them as a plus column in a report is perhaps more efficient, but then I'd prefer to create these just once in one place.
3) Should I be able to reference other variables when defining new ones? (I carry a lot of cost subtotals in an order record that are used in several combinations to make other calculations. I'd like to reference some calculations in other calculations without actually repeating the entire formula.
Example:
Labor_Cost = lbr_act +lbr_spl +lbr_alt
DOC_Cost = mtl_act +mtl_spl +mtl_alt +pur_act +pur_spl +pur_alt +ppr_act +ppr_spl +ppr_alt
Job_Cost = labor_cost +DOC_Cost
Value Added = Price (itself a calculated var) - DOC_Cost
These items would be used frequently in many reports.
I'm getting an "invalid column name" SQL error when opening the report in the design tool that suggests to me that either I cannot reference these vars in forumlas for other vars -- or perhaps I'm not doing it
correctly.
Thanks,
Bob