[Bond-users] Couple questions

Davor Ocelic docelic at mail.inet.hr
Sat Aug 11 06:07:37 EDT 2007


Hey folks,

Here:

1) Can text on a label be aligned? In the 2.1 DTD I don't see 
   %text_alignment; being supported for label.

2) How can I define a default width/height for a window? For 
   example, set default height to 600 but still allow users to
   make it smaller or bigger if they want (so I can't use min/maxheight).

3) Could bonddb quote field names? I have a table whose column
   names are pure numbers (like 208, 214, 301).

   This works in postgres if you put them in double quotes, such
   as "208".

   When I put field name in <field>, I specify it without quotes and
   then field retrieval works from bond/bonddb, but when I try to 
   write, it fails with:

   <bonddb/bonddbwrite.c:593 bonddb_write_execsql();> Exec :
     UPDATE po SET 203='120' WHERE po.pn='default'

   Error bonddb/bonddbwrite.c: 615: bonddb_write_execsql():
     SQL Failed with ERROR:
      syntax error at or near "203" LINE 1: 
        UPDATE po SET 203='120' WHERE po...

Thanks,
-doc




More information about the Bond-users mailing list