Claims
- 1. A method for selecting rows displayed in a layout of a graphical user interface where the action of selecting a row results in display of related data, said method comprising:
creating a table view for a controlling table; attaching a data listener to the controlling table; rendering data in the controlling table; selecting an item of the controlling table, the item defining a unique identifier of the controlling table; setting a query variable for each of the at least one controlled table, wherein the query variable is related to the unique identifier; firing a data change event, to be received by the data listener, for each of the at least one controlled table; running queries using the query variable set for at least one controlled table; and rendering data for at least one controlled table, wherein the rendered data in the at least one controlled table is related to data in the controlling table.
- 2. The method as recited in claim 1, wherein data used to populate the controlling table is retrieved from a database using standard database queries with the query variables set in the starting phase.
- 3. The method as recited in claim 1, wherein the step of selecting an item further comprises retrieving the unique identifier for the controlling table.
- 4. The method as recited in claim 1, wherein at least one given controlled table is also a controlling table for at least one additional controlled table, and wherein data change events are fired for each at least one additional controlled table using unique identifiers retrieved for its corresponding controlling table.
- 5. The method as recited in claim 1, wherein the item selected is a row of the controlling table and the unique identifier is related to a column of the selected row.
- 6. The method as recited in claim 1, wherein the selecting of an item is performed by a user.
- 7. The method as recited in claim 1, wherein the selecting of an item is performed automatically using a predetermined item before enabling user selection of an item.
- 8. The method as recited in claim 7, said method further comprising:
selecting, by a user, a second item of the controlling table, the second item defining a second unique identifier; repeating the steps of:
setting a query variable for each of the at least one controlled table, wherein the query variable is related to the second unique identifier; firing a data change event for each of the at least one controlled table; running queries for each of the at least one controlled table using query variables set in the setting step; rendering data for each of the at least one controlled table, wherein the rendered data in the at least one controlled table is related to data in the controlling table; and enabling user selection of a new item in a controlling table.
- 9. A computer system for selecting rows displayed in a layout of a graphical user interface (GUI) where the action of selecting a row results in the display of related data, said computer system comprising:
a module comprising a GUI running on a computing device capable of executing object-oriented computer programs; a first section of object oriented computer code defining a layout schema for the GUI, the schema comprising class definitions for a table class, a table connection class, a table controller connection class, a data event class and a data listener interface, wherein the table controller connection class identifies at least one table controlled by a controlling table; and a second section of object-oriented computer code defining instances of the classes defined in the layout schema, whereby responsive to selection of a row in a controlling table, the data listener interface fires an event which results in related data being displayed in at least one controlled table.
- 10. The computer system as recited in claim 9, wherein a plurality of relationships between the GUI and layout of desired controlling tables and controlled tables are modifiable in a text file.
- 11. A memory for storing data for access by a graphical user interface (GUI) application program being executed on a data processing system, wherein the GUI allows selection of rows displayed in a layout of the GUI, where the action of selecting a row results in the display of related data, comprising:
an object-oriented class schema stored in a first memory, wherein the class schema comprises class definitions for a table class, a table connection class, a table controller connection class, a data event class and a data listener interface, wherein the table controller connection class identifies at least one table controlled by a controlling table; and an object oriented data structure stored in a second memory, the data structure comprising a plurality of class instances corresponding to classes defined in the class schema, whereby relationships between the GUI application program and layout of desired controlling tables and controlled tables enables selection of a row in a controlling table to result in populating at least one controlled table with data related to data in the controlling table.
- 12. The memory for storing data as recited in claim 11, wherein data in the second memory are inputs to the GUI upon launching of the GUI application program, thereby avoiding recompilation of the GUI application program when data in the second memory is modified.
- 13. A computer system for selecting data items displayed in a layout of a graphical user interface (GUI) where the action of selecting a data item results in the display of related data, said computer system comprising:
a module comprising a GUI running on a computing device capable of executing object-oriented computer programs; a first section of object oriented computer code defining a layout schema for the GUI, the schema comprising class definitions a controlling data item class, a data item connection class, a data item controller connection class, a data event class and a data listener interface, wherein the data item connection class identifies at least one data item controlled by a controlling data item; and a second section of object-oriented computer code defining instances of the classes defined in the layout schema, wherein a plurality of relationships between the GUI and layout of desired controlling data items and controlled data items enables selection of an item in a set of controlling data items to result in populating at least one controlled set of data items with data related to data in the controlling set of data items.
- 14. A method for selecting a data item displayed in a layout of a graphical user interface where the action of selecting a data item results in the display of related data, comprising:
creating a data item view for a controlling data item; attaching a data listener to the controlling data item; rendering data in the controlling data item; selecting a corresponding item of the controlling data item, the corresponding item defining a unique identifier of the controlling data item; setting a query variable for each of the at least one controlled data item, wherein the query variable is related to the unique identifier; firing a data change event, to be received by the data listener, for each of the at least one controlled data item; running queries using the query variable set for at least one controlled data item; and rendering data for at least one controlled data item, wherein the rendered data in the at least one controlled data item is related to data in the controlling data item.
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application is related to U.S. patent application Ser. No. 09/---,--- (Docket No.: HP 10016746) to Inna Lauris, entitled “MECHANISM ALLOWING SEPARATION OF GRAPHICAL DISPLAY OF OBJECT STATUS FROM UNDERLYING DATA”, and U.S. patent application Ser. No. 09/---,--- (Docket No. HP 10016745) to Jonathan Patrizio and Eric Soderberg, entitled “SYSTEM AND METHOD FOR DISPLAYING A LAYOUT OF GUI PROPERTIES PANEL”, both applications filed concurrently and assigned to a common assignee, and herein incorporated by reference in their entirety.