[Bond-users] Bond - Simple Application

Piers Rowan piers.rowan at extrastaff.com.au
Wed Oct 31 21:30:55 EDT 2007


You're a legend it worked!


On Thu, 2007-11-01 at 14:12 +1300, Andrew Hill wrote:
> Do you have the full XML for it?

I'll post something to my web site and get back to you.

Perhaps my stumbling through BondDB / Postgres / etc may help other
developers wishing to rapidly create native Linux apps.

Many thanks

Piers


> 
> If you have a <field> reference in the client sql it should link to it.
> Ie.
> <window name="master">
>     <dbobject name="master">
>     <sql>SELECT * FROM person</sql>
>     <list>
>     ....
>     </list>
> </window>
> 
> <window name="slave">
>     <dbobject name="slave">
>     <sql>SELECT * FROM address WHERE personid='<field 
> dbobjectsrc="master" table="person">id</field>'
>     <list>
>     ...
>     </list>
>     <entry> ....
> </window>
> 
> What happens here, is when you navigate the list in master form, it updates
> the contents of hte slave form automatically. It just needs something to
> link the two, like a field, widget or loadby flag in the dbobject query.
> 
> Piers Rowan wrote:
> > Hi Andrew,
> >
> > I have managed to put together an Address Book application with Bond.
> > Bond seems very impressive as a way of taking a well thought out
> > database and creating a full blown app.
> >
> > I have taken the simple.xml and paymaster.xml as a basis to have a two
> > window application (In simple.xml the list and record are in the same
> > window):
> >
> > * address-view-window
> > * address-list-window
> >
> > I can get the list open which is great but I can't work out how to click
> > a name on the list and refresh the "view" window with that record.
> >
> > Can anyone help out with a suggestion?
> >
> > <cell expand="true" xpos="1" ypos="1" xspan="2">
> > 	<list name="contact_list" sortable="true" minheight="130">
> > 		<column title="First Name">
> > 			<field>first_name</field>
> > 		</column>	
> > 		<column title="Last Name">
> > 			<field>last_name</field>
> > 		</column>	
> > 	</list>
> > </cell> 
> >
> > Many thanks
> >
> > Piers
> >
> > _______________________________________________
> > Bond-users mailing list
> > Bond-users at hcoop.net
> > http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
> >   
> 
> 
> _______________________________________________
> Bond-users mailing list
> Bond-users at hcoop.net
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
-- 


Piers Rowan
Director
Extrastaff

Tel: 08 8202 4111
Mob: 0418 899 874

www.extrastaff.com.au




More information about the Bond-users mailing list