Retrieving Model's metadata using OdiRef
981118Mar 14 2013 — edited Mar 14 2013Folks,
Does anyone knows how to get the "resource name" from a file type model, using odiRef?
Let me be more specific: in a interface, when mapping a value to a target column, I have to insert the file name of a model's resource name. Have to note that the interface's target model is not the same model from which the resource name is being sought.
The idea here is not harcoding strings in a mapping. Instead, take the string from a model's metadata.
I've looked the "Introduction to the Substitution API" (http://docs.oracle.com/cd/E25178_01/integrate.1111/e12645/api_intro.htm) and the "A.2.33 getModel() Method" (http://docs.oracle.com/cd/E25178_01/integrate.1111/e12645/odiref_reference.htm#CIAJGCDG) but none of them gave me clues. Worse, the getModel() method refers to the current model that's being worked on, not an arbitrary model.