how can get cols content of one view

i want to make one querybuilder like http://querybuilder.js.org/demo.html.
i need to dynamically add some cols,rows and also some inputs.
but i need to get content of parent veiw of them to parse query from it.
i dont know how i must do this.

		{  	id:'querymaking',
			cols:[]
		},

as u can see i have this like view and next user can content to cols element. how i can get cols content in final
best regard

but i need to get content of parent veiw of them

You can use getChildViews to get the direct child views from the top one.
To collect the whole structure you need to have a function which will call getChildViews in the recursive way.

Also, you can have a top view as a form, so you will be able to use form.getValues to collect values from all inputs inside of the form ( on all levels of hierarchy )