cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Factory function is not being called.

shobhit2108
Explorer
0 Kudos

I am having a Simple form that is binded to a JSON model. I want to decide about the type of controls inside that based on my model data. Hence, I am trying to implement Factory function. SAPUI5 VERSION: 1.108.1

I added the factory function in the view but it is never called up in the controller.

junwu
Active Contributor
0 Kudos

which method you expect to be executed?

shobhit2108
Explorer
0 Kudos

createDynamicContent

ashwink02
Explorer
0 Kudos

Hi Shobit,

Is there any error in console of the browser which you can notice ? Because code wise it seems fine and the factory function createDynamicContent should have been called based on your current code.

You can also check whether there is an error during execution of OnInit Hook Method. Might be the case where model has not been set properly.

Accepted Solutions (0)

Answers (0)