Questions tagged [netzke]
Netzke is an elegant and powerful architectural solution to several known problems that accompany development of complex AJAX-driven RIA (Rich Internet Applications). No matter how complex your application is, Netzke will help you keep your code maintainable and clean.
49
questions
0
votes
1answer
57 views
Sorting data in Rails by own SQL query
I'm working on a Rails application with gem Netzke.
I have GridPanel from Netzke::Basepack with my own buttons. How do I make actions for them to filter the table of GridPanel by my own SQL query?
I ...
1
vote
1answer
127 views
My checkbox columns don't work for associations in Netzke?
Ive setup a many-to-many relationship through a join table, with components similar to the boss_clerks demo. (Ive included a contrived example). Everything works except the CheckColumn on the ...
0
votes
1answer
104 views
Add action in netzke rails3
I wrote this docs at https://github.com/netzke/netzke/wiki/Adding-custom-actions-to-a-component
But I do not understand this.
undefined method `js_method'
Full component code
class Airports < ...
0
votes
2answers
319 views
Rails Netzke v0.10.1 - Refreshing grid panel within a tabpanel
I try to make a Netzke component with one master grid and subgrids in the south region of a Panel.
When a row in the maingrid is selected then should the subgrids be filtered with records related to ...
0
votes
1answer
401 views
Grid won't render on first page load (Netzke + Rails 4 + extjs)
I experience a weird behavior using netzke + rails 4 + extjs-4.2.1
Every time the page load at first time the div is displayed but the grid is not loaded until I refresh the page. I can't reproduce ...
0
votes
1answer
225 views
How to write sorting scope for netzke grid column?
When I am trying to implement sorting scope for one of my grid columns it always throws an error
as NoMethodError (undefined methodto_sym' for #)`
My code is
{
:name => :id,
:text => "...
0
votes
1answer
110 views
Netzke change form header title
def preconfigure_record_window(c)
super
c.header = true
c.width = 600
c.draggable = false
c.title = "New Title"
end
In this code I want to change the form title. Whatever I am trying it ...
0
votes
1answer
191 views
Netzke can not work
I follow this tutorial step by step. My ruby version is 1.9.3, and rails version is 3.2.16.
But still can not work. throw me an error:
NameError
undefined local variable or method `netzke' for #<...
0
votes
1answer
128 views
configuring netzke javascript code using inheritance (defining js code in a parent class with parameters)
I have two netzke grid components with action columns (and more on the way). The action columns are nearly identical, depending on the type. The only difference is the action to be done when clicking ...
0
votes
1answer
204 views
make panel scrollable in accordion using netzke
I have a netzke application, with a sidebar and a main area. In the main area I show a map. In the sidebar I have an accordion. In the accordion I have a menu, and when clicking on a menu-item, I ...
0
votes
1answer
243 views
Netzke Has many relation and rails fields_for
I have a simple has_many relation that can be implemented by rails fields_for. I am looking for the same behavior for Netzke.
Here is the classes:
class Question < ActiveRecord::Base
...
0
votes
1answer
244 views
netzke 0.8 not working with rails 4.0
I am using netzke gem - ~> 0.8.0 version with rails 4.0 and ruby 2.0
I am getting an error when I start the rails server.
Basically, my routes code is like this:
RailsApp::Application.routes.draw do
...
0
votes
1answer
259 views
Netzke Grid filtering
I have an issue related to filtering data in Netzke Grid.
column :user_id do |c|
c.editor = {xtype: :combobox, editable: false, min_chars: 2}
end
It is mentioned in the doc that,
A ...
0
votes
2answers
301 views
How to get the values of a table columns other than primary key
For getting the value of the primary key of the selected row, we can use record.get('id') in extjs. How to get the values of other columns (Say, if I have a column named name or t_id). In my case when ...
0
votes
0answers
112 views
Netzke Grid rows from the result of a DB query
I need to create an interface which contains a Form and an empty Grid. When I select the values in the Form and submits a query needs to created using 3 DB tables and the result of the query should be ...
0
votes
0answers
78 views
Netzke column locking
I saw a feature in Ext JS document - http://dev.sencha.com/deploy/ext-4.0.1/examples/grid/locking-grid.html. We can lock a column by set the option "locked" according the document, but when I did this ...
1
vote
1answer
169 views
Secure netzke rails components
I have a components, cruid for my app, with Netzke
class Services < Netzke::Basepack::Grid
and view where I run them
<%= netzke services %>
I secured a controller for this view with ...
2
votes
1answer
113 views
Netzke extending actions
I want to extend the behavior of apply action in netzke grid. While applying changes in the grid I want to display a confirmation message (same as in delete action).
What I have done is given below.
...
0
votes
1answer
120 views
Netzke confirmation popup
In Netzke Grid while deleting a record a confirmation is asked.
How can we implement the same for apply and save actions.
Thanks.
1
vote
1answer
730 views
How to filter a combobox which depends on the other combobox in a grid or form(netzke)?
The domain models: type1, type2, type3 and plant.
$ rails g model type1 name:string
$ rails g model type2 name:string
$ rails g model type3 type1:references type2:references name:string
$ rails g ...
0
votes
2answers
274 views
Rails saving data from associated form
How can I get the data from an associated form and insert it to the associated table from the main model?
class Supplier < ActiveRecord::Base
has_one :account, foreign_key: "acc_sup_id", :...
1
vote
1answer
357 views
how to implement accordion per user using netzke?
Here is the requirement:
In a border layout UI, a user(staff) grid is at the west, while the accordion at the center will show the selected user's several collections(say, awards, etc) in each panel ...
-1
votes
1answer
140 views
Autosave issue in rails 3.2
In the given code,
class Supplier < ActiveRecord::Base
has_one :criteria, foreign_key: "crt_sup_id", :autosave => true
self.primary_key = 'sup_id'
end
class Criteria < ...
0
votes
1answer
88 views
bind 2 instances to a single form - netzke
I have designed a form using netzke. In the same page same form is repeated.
While submitting this form both objects should saved to DB.
0
votes
1answer
242 views
search functionality - netzke grid
I am using netzke for one of my projects. When I checked the search functionality in netzke grid it is not working for foreign keys. I have even checked the demo application "Yanit" and the same error ...
0
votes
1answer
125 views
Netzke controller generation error
i'm new to Ruby and Rails and asking about error while generating simple controller
http://writelesscode.com/blog/2012/10/20/extjs-rails-crud-application-in-7-minutes/
$ rails g controller welcome ...
0
votes
2answers
308 views
Undefined method `new' Netzke Starting Tutorial
I followed the starting tutorial for Netzke, but when the page would show me the grid, I have an error :
NoMethodError in Welcome#index
undefined method `new' for Tasks:Module
Extracted source (...
1
vote
1answer
495 views
Netzke with file uploads, preferably carrierwave
I have a model with a single field with carrierwave for file upload. I searched the google group but don't find a straightforward way to add file uploads to netzke component. I will be happy with ...
0
votes
2answers
419 views
Creating charts with Netzke
Does anyone knows the way to create ext js charts with Netzke? I guess there is no such component right know, but maybe someone have an idea.
What are the basic steps to connect using Rails and EXT ...
0
votes
1answer
178 views
Association among three models in Netzke
I have 3 models: Machine,Mouse,KeyBoard these are in association.
class Machine
has_many: mouses
has_many: keyboards
end
class Mouse
belongs_to: machine
end
class KeyBoard
belongs_to: ...
1
vote
1answer
204 views
How to display three grid in netzke
How to display three grid in netzke.
The tables I want display are,
Boss => Clerk => Task
has_many relation between Boss and Clerk and also,
has_many relation between Clerk and Task.
Please help ...
0
votes
1answer
171 views
How to add single form in three tab using netzke tabpanel and only one save button
Please any one help me..
How to add single form in three tab using netzke tabpanel and only one save button.
Thanks
1
vote
2answers
608 views
Use params of loadNetzkeComponent in configuration
Is it possible to pass extra parameters to "loadNetzkeComponent" and use them in the compnent configuration?
Example:
JavaScript:
this.loadNetzkeComponent({name: 'Erp::OrderPanel', container:...
0
votes
1answer
535 views
Sprockets::FileOutsidePaths error with netzke
I have rails 3.1.0 & ruby 1.9.2 playing around with netzke & extjs4. I couldn't get extjs integrated with rails. please help.
I am following this tutorial
I have defined the symbolic path ...
0
votes
1answer
355 views
netzke extjs 4 rails Grid not visible
I'm playing with ExtJs 4.x and netzke gems (netzke-basepack (0.7.4) netzke-core (0.7.5) netzke-persistence (0.1.0)
I've configured all correctly but of course, something must be wrong as I can't see ...
2
votes
0answers
176 views
Netzke basepack. Need advice with multi uploading fields
Is there any easy way to include the multiupload feature to NetzkeFormView or GridView(AddInForm)?
My current image uloading field with carrierwave is:
{:name => :image_link, :xtype => :...
0
votes
1answer
132 views
Cucumber with Extjs4 choose radio step not working
I'm Working on Ruby on rail 3.1 with Netzke 0.7.4 and Cucumber.
I use Cucumber with Netzke it work great but I have found some problem on choose radio step.
I use this step.
When /^(?:|I )choose "([...
0
votes
1answer
169 views
using Cucumber with Netzke to call an action in Grid Panel
I'm working on Rails(3.1.3) with Netzke(0.7.3).
I very new for Cucumber.
add_account_for_user.feature
Feature: Add Account For User Feature
In order to add login account
As an Administrator
I want ...
0
votes
2answers
343 views
Using Ext JS Plugins in Netzke
https://github.com/rbartholomay/ExtJS.ux.HtmlEditor.Plugins is a group
of ExtJS4 compatible plugins for a htmleditor field.
What would be the best way of using these plugins in a Netzke form panel ...
0
votes
1answer
133 views
Extended search presets in grid panel
What is required to save extended search presets work?
When I click on Save in Search window, popup say Preset successfully saved. I see parameters passed to savePreset method, but presets are ...
0
votes
1answer
559 views
netzke FormPanel
I think i stucked here. I have a model (Test) with 3 fields: id, name, name2. So i want to write there something and click on Apply button on bottom and if all fields are filled and passed validation ...
0
votes
1answer
250 views
Set popup error message duration in Netzke
Now I'm working on Rails 3.1.3 with Netzke now.
And I want to config duration of the error message. that show when have field validation error in Grid Panel.
Cause it's very fast fade away (around ...
2
votes
0answers
375 views
How to use set_result with transacion in endpoint (Netzke gem)
I have create an endpoint for create new Client.
At first I have create Client and use transaction (see code below).
It's work normally.
# Before add set_result
js_method :on_new_contact, <&...
0
votes
1answer
148 views
How to create helper for Netzke component?
I want to create helper method for netzke component.
Because now I put that in netzke component class.
And it's look ugly code for me I want to change it. Thanks!! :)
0
votes
1answer
711 views
How can I use devise helper in netzke?
I'm using Devise and Netzke gems. My rails version is 3.1.1
I want to access a devise helper (current_user) in netzke component.
But it not in model or views. It in rails_root/app/component/...
2
votes
1answer
610 views
Rails 3.1 Netzke Asset Pipeline Issue
Walking through this tutorial and am having problems with Rails Asset Pipeline.
http://blog.writelesscode.com/blog/2010/06/14/extjs-rails-crud-application-in-7-minutes/
I make the symlink:
> ln -...
1
vote
2answers
517 views
Netzke on RAILS 3.1
I am newbe here about Netzke..
I am trying to follow the installation process in the Netzke web
site http://www.netzke.org and also from the git Netzke-core site..
I just download the EXT JS 4.0.2 ...
1
vote
1answer
452 views
Netzke / ExtJS 4 - How to implement Dynamic number of Panels inside an Accordion Panel
I am trying to read strings off a table in the database and use them as titles in panels inside an accordion panel.
In short the number of panels inside the accordion can change dynamically.
Here is ...
4
votes
4answers
1k views
Is anyone using Netzke in production?
I'm building an Ext.js application, and I'm planning on using rails for the backend. I'm trying to decide whether to use Netzke, or roll my own. Is anyone using Netzke in production?