[Bond-users] Bond - Simple Application

Andrew Hill dru at treshna.com
Wed Oct 31 21:12:21 EDT 2007


Do you have the full XML for it?

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
>   





More information about the Bond-users mailing list