Showing posts with label detail-view. Show all posts
Showing posts with label detail-view. Show all posts

Sunday, January 10, 2010

The Latest Dashcode Problem

I think that it sounds silly, but, now that I have figured out all the other problems in my GUI interface, I now am unable to add more than 2 views to my stack within the "browser" component. I can add new view stacks, but the problem is that they appear outside of my original browser component, requiring that I re-create that. Then, there is the problem of me not being able to edit the canvas for that new view stack (or group).

If there are any Dashcode developers out there that can help me out, please comment.

Thanks for visiting my new Blog!

Found Solution to Row Selection Problem in Dashcode

So after a while of playing around, I found that my problems earlier were due simply because I was trying to get data from the wrong datasource.

A quick and simple tip for everybody so that you do not have to go through what I did:
Make sure that you are trying get your selected data from your list datasource, not the original datasource for the list (if that makes sense).

Here is some code:

function myRowClickHandler(event){
  // make sure to grab the datasource specifically for your list
  var myDataSource = dashcode.getDataSource('myList');
  // Simply alert out the selected row data
  alert(myDataSource.selection().valueForKey('person_name'));
}