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.
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.