I have a small dilemma
I've created a view OnHandInquiryView (based on query OnHandInquiryQuery)
This view is going to be used as a datasource on a read-only inquiry form, and possibly on a report.
When I look at my view’s Metadata --> Datasources, nothing shows up, but they do show up under the Metadata --> OnHandInquiryQuery
The query contains InventTable as a datasource
I have a number of custom display and calculation method on InventTable
One method is called findPackSize, which does all sorts of wonderful things looking at fields on InventTable, unit conversion tables, and other custom tables.
I would like to add a display method on my OnHandInquiryView which will call the InventTable’s findPackSize method
How can I reference a view’s datasource (or the datasource in the query that is used to build the view) within a method on that view?
I’ve tried using InventTable, and InventTable_ds, but the method on my view doesn’t like either of those.
Rewriting the methods from InventTable onto my OnHandInquiryView is not really desirable, because it would be time consuming, would require me to maintain similar code in two separate methods, and might not work anyway, since I would still need to reference fields from InventTable in my view-level method
This is just one example. There are many other methods, on this and other data sources of my view, which I would like to be able to call from a method on my view
If anyone has ever done something like this (calling a method on one of a view’s data sources, and/or referencing a field that is not one of the field on the view but is a field in one of the datasources), please let me know.