问题
How can I get field values of BC from Presentation Model in Siebel Open UI?
I was trying:
SiebelApp.S_App.Model.GetBusObj("").GetBusComp("")
but Model is not recognized. I also tried creating model with GetModel()
function, but it didn't succeed.
回答1:
If you need to access any BC in the Active View,you can do that via the Get method of the PM, eg: GetRecordSet will give you an array of variables.
See this example to see how you can GetFieldValue
If you need to access some other BCs not in the activeView, you have to go via eScript BS. This is kind of a security layer, even the older Browser script system had this limitation.
回答2:
As I researched in oracle support there is no way to directly access repository objects via PM. We should create Business Service to deal with this part.
来源:https://stackoverflow.com/questions/30340562/how-to-retrieve-business-component-rows-in-siebel-open-ui-pm