Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with default add/edit forms for a grid inside tab: Unknown component add_window for tab #1

Open
nazarhussain opened this issue Sep 15, 2014 · 5 comments

Comments

@nazarhussain
Copy link

I am having problems with drop down items for add/edit forms when I load a grid inside a tab. When I click on any dropdown (belongs_to) relation, the remote call come up with following results

{"type":"rpc","tid":11,"action":"my_tab_panel","method":"get_combobox_options","result":{"netzkeFeedback":["Unknown component add_window for tab"]}}

The request params are:

{"path"=>"my_tab_panel__tab__add_window__add_form", "endpoint"=>"getComboboxOptions", "data"=>[{"query"=>"", "attr"=>"manager__name", "page"=>1, "start"=>0, "limit"=>25}], "tid"=>11, "authenticity_token"=>"Qjuz0Gj3AYYkupvbZC0W264FI8SW7MQXYMZCXvfCWWw=", "netzke"=>{"path"=>"my_tab_panel__tab__add_window__add_form", "endpoint"=>"getComboboxOptions", "data"=>[{"query"=>"", "attr"=>"manager__name", "page"=>1, "start"=>0, "limit"=>25}], "tid"=>11}}

If I render grid directly to view it works fine. Please help me to solve this issue.

@nazarhussain
Copy link
Author

Here is the code of the grid:

class MyTabPanel < Netzke::Workspace::TabPanel
  action :load_component

  js_configure do |c|
    c.on_load_component = <<-JS
      function() {
        this.loadTab("SupervisorsGrid", {newTab: true, clientConfig: {klass: "SupervisorsGrid"}});
      }
    JS
  end

  def configure(c)
    super
    c.bbar = [:load_component]
  end
end

@nazarhussain
Copy link
Author

I just tested it with custom form and having same problem.

@nazarhussain
Copy link
Author

@nomadCoder Max Please provide me help or guidance to solve this issue.

@danielvandavid
Copy link

Downgrade to 0.10.0.rc2 if you are using the latest version. It worked for me for a similar issue...

@nazarhussain
Copy link
Author

Thanks @danielvandavid . I already tried that specific version, but it did not work for me. Any thing loaded outside workspace tab-panels works great. Any thing loaded inside workspace gave component error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants