Hi Robert,

Thanks for the reply.

My difficulty lay in only having a basic understanding of how Laszlo 
handles classes, and how to access the data in the dataset as the class 
is being rendered. I solved it by assigning an attribute to a view and 
setting the value of it using [EMAIL PROTECTED], I could then access the 
attribute on an onclick and pass it's value to a method in another view. 
I'm sure there are better ways of doing this but it's working :-)

Martin

Robin Sheat wrote:
> On Tuesday 11 July 2006 15:12, Martin Allchin wrote:
>   
>> On an onclick of one of the tabs I would like to load more information
>> about that profile (tab) into the right pane.
>>     
> I haven't done this, but my thoughts:
> Each tab has a datapath (or whatever) associated with it, that contains it's 
> title, and the information to display when it's clicked (at least, this is 
> how I'd set it up). When you click the tab, it should send that datapath to 
> the view which renders the content.
> Or, build each view when you read the data, and give each tab a reference to 
> its view (or, perhaps better, have each view inside a container, perhaps 
> using states). The tab tells the container or its view to show, and hides the 
> other ones. If you have them in a container, then you could just pass that a 
> name, and the container will deactivate them all except the one you want to 
> show.
>
> This is just cursory thinking about it, there may be better ways.
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>   


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to