No announcement yet.

View template doesn't load

  • Filter
  • Time
  • Show
Clear All
new posts

  • View template doesn't load

    Hello, I use an append function onto Quote entity. I made changes on Quote.json like this:

    This way I get a new view loaded at the end of the Quote page. At this point I make an Ajax call and send the results to another view via CreateView -

    This last view creates successfully but the problem is that it doesn't load any template at all, here is the code -

    I get the console.log value, but template "itemas" doesn't load and I see only the template loaded in previous view.

  • #2
    at first use Quote/action/getObjects url, and the method in backend controller has to be named postActionGetObjects
    the method data has to return an object, but you return nothing. better to extend Views.Record.Panels.Bottom, not main


    • #3
      I return an object from that postActionGetObjects and return is perfectly fine. But the problem is that I don't get any new view created by this view:
      I set the template, but it doesn't show up in the page.


      • #4
        and don't remember you set el and model in view options. If you follow an example, check how it works with quote items