View template doesn't load

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • The50
    Member
    • Nov 2017
    • 39

    View template doesn't load

    Hello, I use an append function onto Quote entity. I made changes on Quote.json like this:
    Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.


    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 - https://pastebin.com/5hJpZkqm

    This last view creates successfully but the problem is that it doesn't load any template at all, here is the code - https://pastebin.com/KQ3RSk1N

    I get the console.log value, but template "itemas" doesn't load and I see only the template loaded in previous view.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    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.
    https://pastebin.com/KQ3RSk1N better to extend Views.Record.Panels.Bottom, not main

    Comment

    • The50
      Member
      • Nov 2017
      • 39

      #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: https://pastebin.com/KQ3RSk1N
      I set the template, but it doesn't show up in the page.

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #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

        Comment

        Working...