Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 12, 2010 04:00 PM by DylanRoberts
Mar 04, 2010 04:07 PM|LINK
Given this simple example:
Mar 08, 2010 12:19 PM|LINK
Is this really that hard of a question for the experienced users to answer? I thought this would be answered within half a day.
Mar 16, 2010 06:08 PM|LINK
I have been searching for the answer to that question as well, did you ever find an answer?
Mar 18, 2010 04:39 PM|LINK
I have also been wondering about this!
I create all my dataviews imperatively, and keep references to them in global variables, mostly because of this issue.
What is the answer??
Mar 18, 2010 04:53 PM|LINK
i believe I got it to work by getting the data by a normal ajax call and then setting the data of the dataview using mydataview.set_data(mydata);
Mar 18, 2010 05:46 PM|LINK
once you have the dataview in a variable, the rest is easy.
The question was, if the dataview is instantiated declaratively, meaning in the markup, how do you 'get' the dataview to be able to set the data or fetch parameters or whatever else?
Mar 27, 2010 01:06 PM|LINK
Hi, cgarland. Did you find a solution to this? I have been having the same issue with my application; I create a dataview declaratively, but I cannot update it - which i need to do after adding or deleting records. Using $get('dvName') doesn't seem to
return a dataview.
able to call dv.fetchData();
It's not a very good solution, and I'm sure there's got to be something I'm missing, but I was desparate and it seems to have worked for now.
If there is a way to do this, I'd like to hear it too.
Apr 12, 2010 04:00 PM|LINK
I found the answer, or at least a few good options, here:
Feel free to mark as answer. :)