Skip to Content
author's profile photo Former Member
Former Member

Set values of model (automatic model instantiation)


I have a Fiori App where the Model is loaded via automatic model instantiation.

Is there any possibility add parameters in the init function of the Component? (or somewhere else)

I want to add header values, but I dont want to add them in the manifest.json cause of security aspect.

Thank you very much for your help.

Best regards,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 21, 2016 at 12:10 PM


    ideally you want to keep your named models listed in the manifest file, however, you can also create a named model in the component as well inside the init function and then assigning it to the view.

    Add a comment
    10|10000 characters needed characters exceeded

    • correct, you do not have a view on the component, however, you can still set it on the Component .

      maybe someone else may have a different opinion ? try it and see ...

      also, you may need to see what the context of the this keyword is on your component... the this keyword sometimes is out of context so make sure you have the component context for it.

      good luck!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.