PDA

View Full Version : Help on Laszlo Window


spawnthing
06-24-2008, 05:45 PM
Hi,

I'm trying to figure out what event in the window that when this window is being active or say, clicked all the components with in that window will be enabled, I've set all this components (texts, edittexts and buttons) to enabled="false", it goes like this.

I have two(2) windows, window A contains a grid view with names on it and window B contains all the information's in that particular name on window A.

What I wanted is, when I select a node in window A it displays information about that certain name in window B. And when I click on window B, It automatically enables the components with in window B.

any help, sorry for the bad english.. :)

kind regards,

spawnthing

rcyeager
06-24-2008, 07:00 PM
A general approach that would work is to control the enabled state of the window components with constraints, something like this pseudocode:


<window>
<attribute name="isEnabled" value="false" type="boolean"/>

<handler name="onclick">
this.setAttribute("isEnabled", true);
</handler>

<control1 enabled="${classroot.isEnabled}"/>
<control2 enabled="${classroot.isEnabled}"/>
...

</window>


Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

spawnthing
06-24-2008, 10:54 PM
wow, it worked!

thanks a lot man..

by the way, your sites really are nice.

Are they all powered with Openlaszlo?



kind regards,

spawnthing

rcyeager
06-24-2008, 11:49 PM
Thanks for the compliment!

Yes, Cooqy is OL v3.3, while Qrowd is OL 4.x.

I'm currently putting the finishing touches on a webtop start page for Qrowd, similar to something like Netvibes.

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

spawnthing
06-26-2008, 06:06 PM
Thanks for the compliment!

Yes, Cooqy is OL v3.3, while Qrowd is OL 4.x.

I'm currently putting the finishing touches on a webtop start page for Qrowd, similar to something like Netvibes.

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

It really is nice.

Well, Im working on a project now. (adding,editing and removing datas from an xml file without any db connectors) just openlaszlo and the xml file.

what do you think?

would there be a possibility?

:)





kind regards,


spawnthing

rcyeager
06-26-2008, 06:26 PM
Hi,

I'm not sure what the question is...a possibility of what?

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

spawnthing
06-29-2008, 01:35 AM
Hi,

I'm not sure what the question is...a possibility of what?

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

What I mean by that is..

is it possible to Add, Update and Delete data on an XML directly on openlaszlo?

I mean, just openlaszlo and the XML file..

rcyeager
06-29-2008, 02:17 AM
OpenLaszlo is a browser client technology. Browser clients cannot typically interact with files on the local machine. The typical way to store XML data is on the server, which can be done in a file or in a database.

The Flash runtime does have a capability called Local Shared Objects for accessing the local filesystem from the browser, but it is not a general-purpose solution. http://en.wikipedia.org/wiki/Local_Shared_Object

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

spawnthing
06-29-2008, 03:09 AM
Yeah, but what I need as of now is a sample ( a code to do that ).

Can you please provide me with a sample application (please make it very simple) that demonstrate how it is done (manipulating data's on an XML database using openlaszlo).

It would much appreciated if you can provide me with that. :)

thank you in advance. :)

kind regards,

spawnthing

rcyeager
06-29-2008, 09:59 AM
There are plenty of examples of building data-driven apps, both in the documentation and with the examples that ship with the distribution under the "examples" directory.

http://www.openlaszlo.org/lps3/docs/guide/data_app.html

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

spawnthing
06-29-2008, 04:48 PM
Thank you so much rcyeager for the help. It is gladly appreciated. :)

kind regards,

spawnthing