The presidential example


This example uses two small database files(info deviously stolen from wikipedia):
Select party :

NumberPresidentTook officeLeft officeVice president
7Andrew JacksonMarch 4, 1829March 4, 1837John Calhoun, Martin Van Buren
8Martin Van BurenMarch 4, 1837March 4, 1841Richard Johnson
11James PolkMarch 4, 1845March 4, 1849George Dallas
14Franklin PierceMarch 4, 1853March 4, 1857William King[1] vacant
15James BuchananMarch 4, 1857March 4, 1861John Breckinridge
17Andrew JohnsonApril 15, 1865March 4, 1869vacant
22Grover ClevelandMarch 4, 1885March 4, 1889Thomas Hendricks
24Grover Cleveland (2nd time)March 4, 1893March 4, 1897Adlai E. Stevenson
28Woodrow WilsonMarch 4, 1913March 4, 1921Thomas Marshall
32Franklin RooseveltMarch 4, 1933April 12, 1945John Garner, Henry Wallace, Harry Truman
33Harry TrumanApril 12, 1945January 20, 1953vacant, Alben Barkley
35John KennedyJanuary 20, 1961November 22, 1963Lyndon Johnson
36Lyndon JohnsonNovember 22, 1963January 20, 1969vacant, Hubert Humphrey
39Jimmy CarterJanuary 20, 1977January 20, 1981Walter Mondale
42Bill ClintonJanuary 20, 1993January 20, 2001Al Gore

Summary:
The Democratic Party is one of two major political parties in the United States, the other being the Republican Party. The party under its present name was established by Andrew Jackson during the 1820s, but it traces its origins to Thomas Jefferson and the Democratic-Republican Party in 1792. It is the oldest political party in the world.

Currently, the Democratic Party is the minority party in the United States Senate and the House of Representatives. Democrats control 19 state legislatures and 22 governorships.
Since 1896, the Democrats have been the more liberal major party (in the modern American sense of the word, i.e. center-left). The pro-working class, activist philosophy of Franklin D. Roosevelt has shaped much of the party's agenda since 1933; his New Deal coalition controlled the national government into the 1960s. The Civil Rights Movement of the 1960s, championed by the party despite opposition at the time from its conservative Southern wing, has continued to inspire the party's ideas and principles.
Wikpedia link.

How does all this work, then?
Well, if you look at the code(example_presidents.js), you see what happens(just look, don't run). But basically i am using two dataviews, and between these there is a master-detail relationship.
The description text above is changed through the data_aware_object's onChange event, here set on creation.

NOTE: This project is not actively maintained, however, parts of this project has moved to the Business Process Management System Optimal BPM. Check out that later on.

Get Firefox! SourceForge.net Logo