Announcement

Collapse
No announcement yet.

View template doesn't load

Collapse
X
  • 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:
    https://pastebin.com/XY7ua1b0

    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.

  • #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


    • #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


      • #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...
        X