/usr/share/help/sl/glom/index.docbook is in glom-doc 1.30.1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY legal SYSTEM "legal.xml">
<!ENTITY appversion "1.6">
<!ENTITY manrevision "0.2">
<!ENTITY date "20 June 2004">
<!ENTITY app "Glom">
<!-- Information about the entities
The legal.xml file contains legal information, there is no need to edit the file.
Use the appversion entity to specify the version of the application.
Use the manrevision entity to specify the revision number of this manual.
Use the date entity to specify the release date of this manual.
Use the app entity to specify the name of the application. -->]>
<!--
(Do not remove this comment block.)
Maintained by the GNOME Documentation Project
http://developer.gnome.org/projects/gdp
Template version: 2.0 beta
Template last modified Apr 11, 2002
-->
<!-- =============Document Header ============================= -->
<article id="index" lang="sl">
<!-- please do not change the id; for translations, change lang to -->
<!-- appropriate code -->
<articleinfo>
<title lang="en">Glom User Guide V0.2</title>
<subtitle lang="en">for Glom v1.6</subtitle>
<copyright lang="en">
<year>2004</year>
<holder>Murray Cumming</holder>
</copyright>
<!-- translators: uncomment this:
<copyright>
<year>2002</year>
<holder>ME-THE-TRANSLATOR (Latin translation)</holder>
</copyright>
-->
<!-- An address can be added to the publisher information. If a role is
not specified, the publisher/author is the same for all versions of the
document. -->
<publisher>
<publishername lang="en">Glom Development Team </publishername>
</publisher>
<legalnotice id="legalnotice">
<para lang="en">
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation
License (GFDL), Version 1.1 or any later version published
by the Free Software Foundation with no Invariant Sections,
no Front-Cover Texts, and no Back-Cover Texts. You can find
a copy of the GFDL at this <ulink type="help" url="ghelp:fdl">link</ulink> or in the file COPYING-DOCS
distributed with this manual.
</para>
<para lang="en"> This manual is part of a collection of GNOME manuals
distributed under the GFDL. If you want to distribute this
manual separately from the collection, you can do so by
adding a copy of the license to the manual, as described in
section 6 of the license.
</para>
<para lang="en">
Many of the names used by companies to distinguish their
products and services are claimed as trademarks. Where those
names appear in any GNOME documentation, and the members of
the GNOME Documentation Project are made aware of those
trademarks, then the names are in capital letters or initial
capital letters.
</para>
<para lang="en">
DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED
UNDER THE TERMS OF THE GNU FREE DOCUMENTATION LICENSE
WITH THE FURTHER UNDERSTANDING THAT:
<orderedlist>
<listitem>
<para lang="en">DOCUMENT IS PROVIDED ON AN "AS IS" BASIS,
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
THAT THE DOCUMENT OR MODIFIED VERSION OF THE
DOCUMENT IS FREE OF DEFECTS MERCHANTABLE, FIT FOR
A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE
RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE
OF THE DOCUMENT OR MODIFIED VERSION OF THE
DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR
MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT,
YOU (NOT THE INITIAL WRITER, AUTHOR OR ANY
CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS
LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED
VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER
EXCEPT UNDER THIS DISCLAIMER; AND
</para>
</listitem>
<listitem>
<para lang="en">UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL
THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE),
CONTRACT, OR OTHERWISE, SHALL THE AUTHOR,
INITIAL WRITER, ANY CONTRIBUTOR, OR ANY
DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION
OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH
PARTIES, BE LIABLE TO ANY PERSON FOR ANY
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES OF ANY CHARACTER
INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS
OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR
MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR
LOSSES ARISING OUT OF OR RELATING TO USE OF THE
DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT,
EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF
THE POSSIBILITY OF SUCH DAMAGES.
</para>
</listitem>
</orderedlist>
</para>
</legalnotice>
<!-- This file contains link to license for the documentation (GNU FDL), and
other legal stuff such as "NO WARRANTY" statement. Please do not change
any of this. -->
<authorgroup>
<author role="maintainer" lang="en">
<firstname>Murray</firstname>
<surname>Cumming</surname>
<affiliation>
<orgname>Glom Development Team</orgname>
<address> <email>murrayc@murrayc.com</email> </address>
</affiliation>
</author>
<!-- This is appropriate place for other contributors: translators,
maintainers, etc. Commented out by default.
<othercredit role="translator">
<firstname>Latin</firstname>
<surname>Translator 1</surname>
<affiliation>
<orgname>Latin Translation Team</orgname>
<address> <email>translator@gnome.org</email> </address>
</affiliation>
<contrib>Latin translation</contrib>
</othercredit>
-->
</authorgroup>
<!-- According to GNU FDL, revision history is mandatory if you are -->
<!-- modifying/reusing someone else's document. If not, you can omit it. -->
<!-- Remember to remove the &manrevision; entity from the revision entries other
-->
<!-- than the current revision. -->
<!-- The revision numbering system for GNOME manuals is as follows: -->
<!-- * the revision number consists of two components -->
<!-- * the first component of the revision number reflects the release version of the GNOME desktop. -->
<!-- * the second component of the revision number is a decimal unit that is incremented with each revision of the manual. -->
<!-- For example, if the GNOME desktop release is V2.x, the first version of the manual that -->
<!-- is written in that desktop timeframe is V2.0, the second version of the manual is V2.1, etc. -->
<!-- When the desktop release version changes to V3.x, the revision number of the manual changes -->
<!-- to V3.0, and so on. -->
<revhistory>
<revision lang="en">
<revnumber>Glom 1.6</revnumber>
<date>20 June 2004</date>
<revdescription>
<para role="author" lang="en">Murray Cumming</para>
<para role="publisher" lang="en">Murray Cumming</para>
</revdescription>
</revision>
</revhistory>
<releaseinfo lang="en">This manual describes version 1.6 of Glom
</releaseinfo>
<legalnotice>
<title>Odziv</title>
<para lang="en">To report a bug or make a suggestion regarding the Glom or
this manual can be submitted to the
<ulink url="http://bugzilla.gnome.org" type="http">GNOME Bugzilla
</ulink>, under the Glom product. Please search bugzilla before
submitting your bug to ensure that yours hasn't already been reported.
</para>
<!-- Translators may also add here feedback address for translations -->
</legalnotice>
<abstract role="description">
<para lang="en">User manual for Glom.</para>
</abstract>
</articleinfo>
<indexterm zone="index" lang="en">
<primary>MY-GNOME-APP</primary>
</indexterm>
<indexterm zone="index" lang="en">
<primary>mygnomeapp</primary>
</indexterm>
<!-- ============= Document Body ============================= -->
<!-- ============= Introduction ============================== -->
<!-- Use the Introduction section to give a brief overview of what
the application is and what it does. -->
<sect1 id="mrp-introduction">
<title>Uvod</title>
<para lang="en">Glom allows you to design and use database systems.</para>
<!-- TODO: Take text from the website. -->
</sect1>
<!-- =========== Getting Started ============================== -->
<!-- Use the Getting Started section to describe the steps required
to start the application and to describe the user interface components
of the application. If there is other information that it is important
for readers to know before they start using the application, you should
also include this information here.
If the information about how to get started is very short, you can
include it in the Introduction and omit this section. -->
<sect1 id="glom-getting-started">
<title lang="en">Getting Started</title>
<sect2 id="glom-start">
<title lang="en">Starting Glom</title>
<para lang="en">You can start <application>Glom</application> in the following ways:
</para>
<variablelist>
<varlistentry>
<term lang="en"><guimenu>Applications</guimenu> menu</term>
<listitem>
<para lang="en">Choose
<menuchoice>
<guisubmenu>Office</guisubmenu>
<guimenuitem>Glom</guimenuitem>
</menuchoice>. </para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="glom-when-start">
<title lang="en">When You Start Glom</title>
<para lang="en">When you start <application>Glom</application>, the following window is
displayed. You may open an existing Glom file or create a new one, possibly basing a new Glom file on one of the examples.</para>
<!-- ==== Figure ==== -->
<figure id="openproject">
<title lang="en">Glom Start Up Window, Opening an Existing File</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/start_open.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Shows Glom main window used to open an existing Glom file.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<figure id="newproject">
<title lang="en">Glom Start Up Window, Creating a New File</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/start_create.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Shows Glom main window used to create a new Glom file.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<!-- ==== End of Figure ==== -->
</sect2>
</sect1>
<!-- ================ Usage ================================ -->
<!-- Use this section to describe how to use the application to perform the tasks for
which the application is designed. -->
<sect1 id="glom-operator-usage">
<title lang="en">Using Glom as an Operator</title>
<para lang="en">To open an existing Glom document, either open that document from the File Manager, or choose Glom from the Applications menu, and then choose the document when asked. Glom will ask you for a user name and password to access the database. Your administrator will provide your user name and password.</para>
<para lang="en">When you open an existing document, Glom will be in <literal>Operator</literal> <literal>user level</literal>. This user level allows you to find and edit records, but does not allow you to change the fundamental structure of the database.</para>
<sect2 id="navigation">
<title lang="en">Navigation</title>
<para lang="en">Each database has several tables. To look at a different table, choose <literal>Tables</literal> from the <literal>Navigate</literal> menu. Then double-click on the table, or select it and click the <literal>Open</literal> button.</para>
<figure id="operator-navigation-tables">
<title lang="en">Navigating to a Table</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_tables.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Navigating to a Table.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
</sect2>
<sect2 id="viewing-and-entering-data">
<title lang="en">Viewing and Entering Data</title>
<para lang="en">When in <literal>Data Mode</literal>, you can view or enter information in either the <literal>List</literal> or <literal>Details</literal> view.</para>
<sect3 id="the-list-view">
<title lang="en">The List View</title>
<para lang="en">The List view shows many records at once and usually shows only the most important fields.</para>
<para lang="en">When you enter data into a field it will be saved into the database immediately after you finish editing the field. If it is a date or time field then the data format will be checked for you.</para>
<para lang="en">To create a new record just click the <literal>New</literal> button, or start typing into a field in the last empty row. A new record row will be created with blank fields for you to fill in.</para>
<figure id="operator-data-list">
<title lang="en">The List View</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_data_list.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>The List View.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<para lang="en">To sort the records just click on a column header. For instance, you could might click on a date column to list invoices in order of their date, and click again to list them in reverse order.</para>
</sect3>
<sect3 id="the-details-view">
<title lang="en">The Details View</title>
<para lang="en">The details view shows only one record and usually shows all the fields arranged suitably.</para>
<para lang="en">When you enter data into a field it will be saved into the database immediately after you finish editing the field. If it is a date or time field then the data format will be checked for you.</para>
<para lang="en">To create a new record just click the <literal>New</literal> button. A new record will be created with blank fields for you to fill in.</para>
<figure id="operator-data-details">
<title lang="en">The Details View</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_data_details.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>The Details View.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
</sect3>
</sect2>
<sect2 id="finding-data">
<title lang="en">Finding Data</title>
<para lang="en">Choose <literal>Find Mode</literal> from the Mode menu. The fields in the List and Details views will now be empty, and a Find button will appear at the bottom of the window.</para>
<para lang="en">Enter information, or part of the information, into a field to find records with that information in that field. For instance, enter Jim into a name field to find records with "Jim" or "Jimmy" in the name.</para>
<para lang="en">When you press the <literal>Find</literal> button, Glom will search for records and then display them. If only one record is found then it will show you that record in the Details view. If several records are found then it will show you those records in the List view.</para>
<!-- TODO: screenshot -->
</sect2>
<sect2 id="glom-operator-printing-reports">
<title lang="en">Printing Reports</title>
<para lang="en">If your database developer has defined some reports for a table then you will seem them listed in the <literal>Reports</literal> menu. Just choose the report from the menu to create the report. If you have previously performed a search then the report will contain only the currently-found data. Otherwise it will contain all data in the current report. Remember that each table has its own reports so you may need to switch to the relevant table to use a particular report.</para>
<figure id="operator-report-result">
<title lang="en">A report</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_report_result.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>A report.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
</sect2>
</sect1>
<sect1 id="glom-developer-usage">
<title lang="en">Using Glom as a Developer</title>
<para lang="en">When you create a new document, Glom will be in the <literal>Developer</literal> <literal>user level</literal>. You can also change to the Developer user level after opening an existing document, with the <literal>User Level</literal> menu. Glom will only allow this if the administrator has allowed it.</para>
<sect2 id="adding-tables">
<title lang="en">Adding Tables</title>
<para lang="en">You can see the list of existing tables by choosing <literal>Tables</literal> from the <literal>Navigate</literal> menu. You will also see this window after connecting to a database server, after creating a new document. To create a new table, click the <literal>Add</literal> button and enter the name for the new table. Glom will suggest a human-readable title for this table. <literal>Operators</literal> will see this title instead of the actual table name. You can also mark a tables as <literal>hidden</literal> from Operators. For instance, Operators should see "Invoice Lines" as related records from the "Invoices" table, but they should never be able to navigate directly to the "Invoice Lines" table.</para>
<!-- TODO: screenshot -->
<para lang="en">You can also specify one table as the <literal>default table</literal>. This table will be shown whenever an operator opens an existing document, without asking him to select a table from the list.</para>
<para lang="en">You can also use this window to rename an existing table.</para>
<para lang="en">Click the <literal>Open</literal> button to look at the selected table.</para>
</sect2>
<sect2 id="editing-fields">
<title lang="en">Editing Fields</title>
<para lang="en">Choose <literal>Fields</literal> from the <literal>Developer</literal> menu. This shows the list of fields in the table. New tables automatically have a primary key field, but you can change this field if necessary.</para>
<para lang="en">Click the <literal>Add</literal> button to add a new field, then enter the name of the new field. Glom will guess an appropriate human-readable title for this field, but you can edit this. <literal>Operators</literal> will see this title instead of the actual field name.</para>
<para lang="en">To specify more field details, select the field and click the <literal>Details</literal> button.</para>
<figure id="developer-editing-fields">
<title lang="en">Editing Fields</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_design_fields.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Editing the table's fields.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<sect3 id="primary-keys">
<title lang="en">Primary Keys</title>
<para lang="en">Each table must have one, and only one, <literal>Primary Key</literal>. The value in this field will be unique, meaning that each value in this field will appear in only one record in the table. For instance, each record in a "Customers" table would have a "Customer ID". This value will be used to refer to that customer from other tables, such as "Projects" and "Invoices" records. See the <link linkend="sec-developer-relationships">Creating Relationships</link> section to see how you can relate tables together.</para>
</sect3>
<sect3 id="field-types">
<title lang="en">Field Types</title>
<para lang="en">Glom offers a few simple field types:
<orderedlist>
<listitem><simpara lang="en">Number</simpara></listitem>
<listitem><simpara lang="en">Text</simpara></listitem>
<listitem><simpara lang="en">Date</simpara></listitem>
<listitem><simpara lang="en">Time</simpara></listitem>
<listitem><simpara lang="en">Boolean - either true or false</simpara></listitem>
<listitem><simpara lang="en">Image</simpara></listitem>
</orderedlist>
</para>
</sect3>
<sect3 id="calculated-fields">
<title lang="en">Calculated Fields</title>
<para lang="en">Field values can be calculated in terms of other fields, using the Python programming language. This calculation should be the implementation of a python function, which should return a value. The return value will be used as the value of the field. This value will be recalculated every time one of the source fields changes. TODO: This only works for default values at the moment, and you can not use field values in the calculation yet.</para>
<para lang="en">You can also use calculations to specify a default value for fields, by selecting the <literal>Default Value</literal> tab in the <literal>Field Details</literal> window, clicking on the <literal>Calculate Value</literal> check box, and then entering a Python calculation. You can test this calculation in the <literal>Edit</literal> window.</para>
</sect3>
</sect2>
<sect2 id="arranging-layouts">
<title lang="en">Arranging Layouts</title>
<para lang="en">Each table has <literal>List</literal> and <literal>Details</literal> views, and by default these show all fields in the table, in order of creation. You can edit the layout by choosing <literal>Layout</literal> from the <literal>Developer</literal> menu.</para>
<sect3 id="arranging-the-list-view">
<title lang="en">Arranging the List View</title>
<para lang="en">For the <literal>List</literal> view, you can specify the sequence of field columns, and whether some fields are hidden.</para>
<figure id="developer-layout-list">
<title lang="en">Editing the List Layout</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_design_layout_list.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Editing the list layout.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
</sect3>
<sect3 id="arranging-the-details-view">
<title lang="en">Arranging the Details View</title>
<para lang="en">For the <literal>Details</literal> view, you can create groups of fields, and give these groups titles. You can then place fields in these groups and specify the sequence fo fields in these groups. You can also specify the sequence of these groups. For instance, in a "Contacts" table, you might create a "Name" group, and place the "title", "first_name" and "last_name" fields in that group. You might have other groups for the "Address" fields.</para>
<figure id="developer-layout-details">
<title lang="en">Editing the details Layout</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_design_layout_details.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Editing the Details Layout.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
</sect3>
</sect2>
<sect2 id="sec-developer-relationships">
<title lang="en">Creating Relationships</title>
<para lang="en">Tables in the Database are often related together. For instance, an "Invoices" table might have a "Customer ID" field. A value in this field would specify a record in the "Customers" table with the same value. Glom can show extra information, such as the customer name, from that related record. Or it can show a list of several related records - for instance, several related "Invoice Lines" that are related to a record in the "Invoice" record.</para>
<para lang="en">To create relationships, choose <literal>Relationships</literal> from the <literal>Developer</literal> menu. This will show the list of existing relationships. Click the <literal>Add</literal> button to create a new relationship, and enter a name for it. You should then choose a field in the current table, and a field in another table to which it should be related. This relationship will find any records in the other table for which the values in both fields are equal.</para>
<!-- TODO: screenshot -->
<para lang="en">You can use the relationship in the following places.
<orderedlist>
<listitem><simpara lang="en">To show a related field on the List or Details view.</simpara></listitem>
<listitem><simpara lang="en">To show a list of related records on the Details view.</simpara></listitem>
<listitem><simpara lang="en">To lookup a value from a field in a related record. For instance, to copy the current price of a "Product" into the "Price" field of an "Invoice Line" record.</simpara></listitem>
<listitem><simpara lang="en">To calculate a field value.</simpara></listitem>
</orderedlist>
</para>
</sect2>
<sect2 id="users-administration">
<title lang="en">Users Administration</title>
<para lang="en">To define the <literal>Operators</literal> who can use your database, and to specify what access they have to the various tables, choose <literal>Users</literal> from the <literal>Developer</literal> menu.</para>
<!-- TODO: screenshot -->
</sect2>
<sect2 id="translations">
<title lang="en">Translations</title>
<para lang="en">Glom's user interface (and this document) is translated into several languages, as you should see already if you are using your computer with a non-English user interface. In addition, Glom automatically shows and understands numbers and dates according to the current user's local conventions. For instance, a user in the USA might enter a price as 1.99 and a date as 1/13/2008, but a German user of the same database will later see that as 1,99 and 13.1.2008.</para>
<para lang="en">However, the Glom system that you create also contains text that must be translated if it will be used by people who speak different languages. For instance, you must provide translations for the titles of your tables, fields, and reports. All of these text items can be seen in a list when you choose <literal>Translations</literal> from the <literal>Developer</literal> menu. In this window you can specify the language that you used for the original text, and enter translations for each text item for additional languages. When the Glom system is opened by a user of that language then these
text items will be shown in the user interface.</para>
<!-- TODO: Update this screenshot -->
<figure id="developer-translations">
<title lang="en">Translations</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_design_translations.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Translations.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<para lang="en">Experienced translators may be more familiar with the .po file format, or you might wish to use the many tools that work with the .po file format. By using the <literal>Export</literal> button you can create a .po file to use in a separate tool or to send to a translator. You can then import the resulting translation by using the <literal>Import</literal> button.</para>
</sect2>
<sect2 id="defining-reports">
<title lang="en">Defining Reports</title>
<sect3 id="adding-or-editing-reports">
<title lang="en">Adding or Editing Reports</title>
<para lang="en">Glom can produce reports to show specific fields for sets of records, sorted and grouped.
For instance, a shop might need a report listing all products sold in one month, grouped by product type, and sorted by price inside each group. Each table has its own reports, which are available to the operator from the <literal>Reports</literal> menu.</para>
<para lang="en">To define a report, or to change the definition of an existing report, choose <literal>Reports</literal> from the <literal>Developer</literal> menu.</para>
<figure id="developer-editing-reports">
<title lang="en">Creating or Editing Reports</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_design_reports.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Creating or editing reports.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<para lang="en">Notice that each report has an ID as well as a human-readable name. This allows your report to have a translated title when used on a computer that uses a different language.</para>
</sect3>
<sect3 id="editing-a-report">
<title lang="en">Editing a Report</title>
<para lang="en">A Glom report has three areas:
<orderedlist>
<listitem><simpara lang="en">The Header, which appears at the start of the report</simpara></listitem>
<listitem><simpara lang="en">The Main area, in which the records and summary lines are shown, with the actual data from the database.</simpara></listitem>
<listitem><simpara lang="en">The Footer, which appears at the end of the report.</simpara></listitem>
</orderedlist>
</para>
<para lang="en">Inside an area, such as the Main part, you may add report <literal>Parts</literal>, such as fields, text, or images. These will usually appear in a row on the printed report, with one row for each record. In the simple case, this will look much like Glom's list view. You can add parts to your report by selecting them from the <literal>Available Parts</literal> list and then clicking the <literal>Add</literal> button. The part will then be added to the <literal>Parts</literal> list, in the selected area.</para>
<para lang="en">To specify details for the parts, such as the text or image to display, or to choose the field to display, select the part in the <literal>Parts</literal> list and click the <literal>Edit</literal> button. You may also specify field formatting by clicking the <literal>Formatting</literal> button, just as you would when defining a details or list layout.</para>
<figure id="developer-editing-reports-details">
<title lang="en">Editing a Report</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_design_reports_details.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Editing a report.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<para lang="en">Some parts may contain other parts and have extra properties to control how they present their child parts. For instance, the <literal>Group By</literal> part groups records together by a field. For instance, a products report might group a list of products by product type. You can even add a second sub-grouping inside the main <literal>Group By</literal> part, by selecting your top-level <literal>Group By</literal> part in the <literal>Parts</literal> list while adding a new <literal>Group By</literal> part from the <literal>Available Parts</literal> list. For instance, you might group your products by manufacturer, inside each product type group.</para>
<para lang="en">To specify the field by which the records should be grouped, select your <literal>Group By</literal> part in the <literal>Parts</literal> list and click the <literal>Edit</literal> button. You can then choose the field by which the records should be grouped, and select the fields by which these records should be sorted within the group. You may also specify some additional fields to be displayed in the group's title row. For instance, you might want to group products by a manufacturer ID, but also show the manufacturer name.</para>
<figure id="developer-editing-reports-group_by">
<title lang="en">Editing a Group By Part</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_design_reports_group_by.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Editing a report.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<para lang="en">The <literal>Vertical Group</literal> part may contain other items. For instance, it allows you to arrange fields below each other instead of just one after the other in the horizontal row. This is useful for grouping related fields such as address lines, or just to squeeze more information into the records's row on the report.</para>
<figure id="developer-editing-reports-vertical_group">
<title lang="en">A Report with Vertical Groups</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_design_reports_vertical_group.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>A Report with Vertical Groups.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<para lang="en">When you have finished, click the <literal>Close</literal> button to save the report's definition. Your report can then be chosen from the <literal>Reports</literal> menu. See the <link linkend="glom-operator-printing-reports">Printing Reports</link> section for more details.</para>
</sect3>
</sect2>
</sect1>
<!-- =============Dialogs ================================= -->
<!-- This section contains the help to all dialogs that contain help button -->
<sect1 id="dialogs">
<title lang="en">Dialogs</title>
<sect2 id="dialog_existing_or_new">
<title lang="en">Dialog: Initial dialog</title>
<para lang="en">This dialog allows the user to choose an existing document or create a new document. Existing documents may be selecting from the list of recently opened documents or by select a file with the file chooser dialog. Documents can also be opened via the network if other users are running Glom on the local network. Finally, a new document can be created either by opening a template file which already contains some initial tables and records, or by creating an empty document.</para>
</sect2>
<sect2 id="dialog_new_database">
<title lang="en">Dialog: New database</title>
<para/>
</sect2>
<sect2 id="dialog_error_create_database">
<title lang="en">Dialog: Create database</title>
<para/>
</sect2>
<sect2 id="dialog_connection">
<title lang="en">Dialog: Connection</title>
<para lang="en">This dialog requests a user name and password for connection to a database server. This is usually not the same username and password combination with which you log in to your system. All Glom systems require a database server on which the actual data will be stored. If the database server is not running on your local computer ("localhost"), then you must also provide its network hostname, such as "glomserver.openismus.com", though your hostname will be different.</para>
<para lang="en">Your system administrator can provide these database login details.</para>
<para lang="en">If you are the system administrator, see Glom's <ulink url="http://www.glom.org/wiki/index.php?title=Initial_Postgres_Configuration" type="http">Postgres Configuration</ulink> web page for help with installing and configuring a database server.</para>
</sect2>
<sect2 id="dialog_error_connection">
<title lang="en">Dialog: Connection Error</title>
<para lang="en">This dialog is shown when Glom could not connect to the specified database server. Either the database server is not running at the specified hostname, or the user name and password were not accepted by the database server. See the <link linkend="dialog_connection">Connection Dialog</link> section for more details.</para>
<para/>
</sect2>
<sect2 id="dialog_database_preferences">
<title lang="en">Dialog: Database preferences</title>
<para/>
</sect2>
<sect2 id="dialog_change_language">
<title lang="en">Dialog: Change language</title>
<para/>
</sect2>
<sect2 id="window_textobject">
<title lang="en">Window: Textobject</title>
<para/>
</sect2>
<sect2 id="window_imageobject">
<title lang="en">Window: Imageobject</title>
<para/>
</sect2>
<sect2 id="dialog_notebook">
<title lang="en">Dialog: Notebook</title>
<para/>
</sect2>
<sect2 id="dialog_data_invalid_format">
<title lang="en">Dialog: Data invalid format</title>
<para/>
</sect2>
<sect2 id="dialog_relationship_overview">
<title lang="en">Dialog: Relationship overview</title>
<para/>
</sect2>
<sect2 id="window_groups">
<title lang="en">Window: Groups</title>
<para/>
</sect2>
<sect2 id="dialog_groupby_sort_fields">
<title lang="en">Dialog: Group by sort fields</title>
<para/>
</sect2>
<sect2 id="dialog_groupby_secondary_fields">
<title lang="en">Dialog: Group by secondary fields</title>
<para/>
</sect2>
<sect2 id="window_button_script">
<title lang="en">Window: Button script</title>
<para/>
</sect2>
<sect2 id="window_field_calculation">
<title lang="en">Window: Field calculation</title>
<para/>
</sect2>
<sect2 id="dialog_new_group">
<title lang="en">Dialog: New group</title>
<para/>
</sect2>
<sect2 id="dialog_choose_user">
<title lang="en">Dialog: Choose user</title>
<para/>
</sect2>
<sect2 id="dialog_user">
<title lang="en">Dialog: User</title>
<para/>
</sect2>
<sect2 id="dialog_translation_identify_original">
<title lang="en">Dialog: Translation identify original</title>
<para/>
</sect2>
<sect2 id="dialog_translation_copy">
<title lang="en">Dialog: Translation copy</title>
<para/>
</sect2>
<sect2 id="dialog_choose_date">
<title lang="en">Dialog: Choose Date</title>
<para/>
</sect2>
<sect2 id="dialog_import_csv">
<title lang="en">Dialog: Import Into Table</title>
<para lang="en">This dialog allows the user to import a CSV (comma separated value) file into the current database table. It shows the first few rows of the file to import and allows the user to select the target field in the database for each column in the CSV file. For auto-incremented primary keys, the primary key field cannot be used as a target field, but otherwise one column must be imported into the primary key field.</para>
</sect2>
</sect1>
<!-- ============= Bugs ================================== -->
<!-- This section is optional and is commented out by default.
You can use it to describe known bugs and limitations of the
program if there are any - please be frank and list all
problems you know of.
<sect1 id="mayapp-bugs">
<title>Known Bugs and Limitations</title>
<para> </para>
</sect1>
-->
<!-- ============= About ================================== -->
<!-- This section contains info about the program (not docs), such as
author's name(s), web page, license, feedback address. This
section is optional: primary place for this info is "About.." box of
the program. However, if you do wish to include this info in the
manual, this is the place to put it. Alternatively, you can put this information in the title page.-->
<sect1 id="Glom-about">
<title lang="en">About Glom</title>
<para lang="en"> Glom is maintained by Glom and GNOME community volunteers.
To find more information about
Glom, please visit the
<ulink url="http://www.glom.org/" type="http">Glom Web
site</ulink>. </para>
<para lang="en">
To report a bug or make a suggestion regarding this application or
this manual, you can submit them using
<ulink url="http://bugzilla.gnome.org" type="help">bugzilla</ulink>.
</para>
<para lang="en">
Another excellent source of information are the Glom
<ulink url="http://www.glom.org" type="http">mailing lists</ulink>.
</para>
<para lang="en"> This program is distributed under the terms of the GNU
General Public license as published by the Free Software
Foundation; either version 2 of the License, or (at your option)
any later version. A copy of this license can be found at this
<ulink url="ghelp:gpl" type="help">link</ulink>, or in the file
COPYING included with the source code of this program. </para>
</sect1>
<appendix id="sec-concepts">
<title lang="en">Concepts</title>
<para lang="en">Glom is easy to use, but you must understand the following basic concepts.
<orderedlist>
<listitem><simpara lang="en"><literal>Database</literal>: Each Glom document allows access to one database.</simpara></listitem>
<listitem><simpara lang="en"><literal>Table</literal>: Each database contains several tables, such as "Customers" and "Invoices" tables.</simpara></listitem>
<listitem><simpara lang="en"><literal>Field</literal>: Each table has several fields, such as "Customer ID", "First Name", and "Date of Birth" fields. In other documents and applications, fields are sometimes called "Columns"</simpara></listitem>
<listitem><simpara lang="en"><literal>Records</literal>: Each table contains several records, each of which has values for each of the fields. For instance, the "Customers" table will have a record for each customer. In other documents and applications, records are sometimes called <literal>Rows</literal>.</simpara></listitem>
<listitem><simpara lang="en"><literal>Relationships</literal>: Each table might be related to other tables, via fields in both tables. For instance, a "Customers" table could have a relationship to the "Invoices" table, so that people could see all the invoices for that customer. Only developers need to understand this concept. In other documents and applications, relationships are sometimes called "Joins".</simpara></listitem>
</orderedlist>
</para>
</appendix>
<appendix id="sec-calculated-fields">
<title lang="en">Calculated fields and button scripts</title>
<para lang="en">Calculated fields and button scripts use the Python programming language. The calculation or script is the implementation of a function whose signature is provided for you.</para>
<figure id="developer-editing-fields-calculated">
<title lang="en">Editing the definition of a calculated field</title>
<screenshot>
<mediaobject lang="en">
<imageobject><imagedata fileref="figures/glom_design_fields_dialog_calculated.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Editing the definition of a calculated field.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<sect1 id="field-values">
<title lang="en">Field values</title>
<para lang="en">For instance, <programlisting lang="en">record["name_first"]</programlisting> is the value of the name_first field in the current record.</para>
</sect1>
<sect1 id="related-records">
<title lang="en">Related Records</title>
<para lang="en">For instance, <programlisting lang="en">record.related["location"]</programlisting> provides the related records for the current record.</para>
<sect2 id="single-related-records">
<title lang="en">Single related records</title>
<para lang="en">For relationships that specify a single record, you can get the value of a field in that record. For instance, <programlisting lang="en">record.related["location"]["name"]</programlisting> is the value of the name field in the table indicated by the location relationship (often called location::name).</para>
</sect2>
<sect2 id="multiple-related-records">
<title lang="en">Multiple related records</title>
<para lang="en">For relationships that specify multiple records, you can use the aggregate functions (sum, count, average) to get overall values. For instance, <programlisting lang="en">record.related["invoice_lines"].sum("total_price")</programlisting>.</para>
</sect2>
</sect1>
<sect1 id="testing-for-empty-values">
<title lang="en">Testing for empty values</title>
<para lang="en">
How you test for empty values depends on the type of field:
</para>
<sect2 id="non-text-fields">
<title lang="en">Non-text fields</title>
<para lang="en">Non-text fields may be empty, indicating that the user has not entered any value in the field. For instance, Glom does not assume that an empty value in a numeric field should mean 0.</para>
<para lang="en">You can test whether a field is empty by using Python's None. For instance:</para>
<para>
<programlisting lang="en">
if(record["contact_id"] == None):
return "No Contact"
else:
return record.related["contacts"]["name_full"]
</programlisting>
</para>
<para lang="en">You might also test whether there are any related records. For instance:</para>
<para>
<programlisting lang="en">
if(record.related["contacts"] == None):
return "No Contact"
else:
return record.related["contacts"]["name_full"]
</programlisting>
</para>
</sect2>
<sect2 id="text-fields">
<title lang="en">Text fields</title>
<para lang="en">For text fields, you should check for zero-length strings. It is not possible in Glom to distinguish between zero-length strings and the absence of any string, because there is no advantage to doing so. For instance:</para>
<para>
<programlisting lang="en">
if(record["name_full"] == ""):
return "No Name"
else:
return record["name_full"]
</programlisting>
</para>
</sect2>
</sect1>
<sect1 id="using-the-full-pygda-api">
<title lang="en">Using the full pygda API</title>
<para lang="en">pygda is a python API for the libgda API. The record's <literal>connection</literal> attribute provides a gda.connection that can be used to access the current database directly. This allows you to run any SQL query, for instance to read data from the database with a SELECT, or to change values in the database with an UPDATE. Note that the connection is already open so you can avoid the difficult work of specifying the connection details.</para>
<para lang="en">The record's <literal>table_name</literal> attribute also provides the name of the current table.</para>
<para lang="en">This example reads all data from the current table and prints the values to the terminal: </para>
<para>
<programlisting lang="en">
# Use the current database's connection
# to get all the data for the current table.
#
# record.connection is an already-open gda.connection object,
# saving us the bother of opening the connection,
# or even knowing the name of the database.
query = "SELECT * FROM %s" % record.table_name
data_model = gda.gda_execute_select_command(record.connection, query)
rows = data_model.get_n_rows()
columns = data_model.get_n_columns()
print " Number of columns: ", columns
for i in range(columns):
print " column ", i;
print " name=", data_model.get_column_title(i)
# Find out whether it's the primary key:
field = data_model.describe_column(i)
if field.get_primary_key():
print " (primary key)"
print "\n";
print " Number of rows: ", rows
for row_index in range(rows):
print " row ", row_index;
for col_index in range(columns):
print " value=", data_model.get_value_at(col_index, row_index).get()
print "\n";
</programlisting>
</para>
</sect1>
</appendix>
</article>
|