From 5ecd7f5d3cd13c3a77636be80c9eba89afc9f38f Mon Sep 17 00:00:00 2001 From: leithoff Date: Fri, 22 Jul 2016 12:03:59 +0200 Subject: [PATCH] Updated CodeCorner3 (markdown) --- CodeCorner3.md | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/CodeCorner3.md b/CodeCorner3.md index 2f66fea..d9c02e2 100644 --- a/CodeCorner3.md +++ b/CodeCorner3.md @@ -1,7 +1,7 @@ > [Wiki](Home) ▸ [Developer Docs](Developer Docs) ▸ [Code Corner](Code Corner) ▸ **day three** ▸ [a day in between](CodeCorner3a) *** -on day three we went out of base camp eGroupware and stepped into the high fields of ((eTemplate))s.
+on day three we went out of base camp eGroupware and stepped into the high fields of our template system.
 

Motivation

@@ -191,7 +191,7 @@ thats a typical textbox with label up front (description), placed in a grid (for
Step 5
-
now we need a button to send our data that we collect to us. To accomplish this, we have to add a column to our grid.
+
now we need a button to send our data that we collect to us.
@@ -212,27 +212,40 @@ those are buttons in a row (of a grid)
Step 6
-
Create a widget before the grid
+
Create an area to display some info before the grid
    -
  • Doubleclick on the label of our name-text-field.
  • -
  • Click on the word grid
  • -
  • in the upper area of the properties window is a bar with two select boxes. Within the second one select insert a widget before.
  • -
  • select grid as type
  • +
  • put in some separator before the grid
    <hrule/>
    .
  • +
  • put in a box
    <groupbox id="debuginfo"> </groupbox>
  • +
  • assign a label/caption to the box (just below the groupbox) +
    +<groupbox id="debuginfo">
    +<caption label="Debuginfo"/>
    +
  • +
  • put in a grid +
    +			<grid>
    +				<columns>
    +					<column/>
    +				</columns>
    +				<rows>
    +					<row>
    +						<textbox multiline="true" id="message" no_lang="1" readonly="true"/>
    +					</row>
    +					<row>
    +						<textbox lable="record-id" id="test_id" no_lang="1" readonly="true"/>
    +					</row>
    +				</rows>
    +			</grid>
    +
    +
  • Save
  • -
  • doubleclick the small rectangle right below the horizontal rule below the button CSS-Style (that is the newly created grid, first cell).
  • -
  • select text as type, Hello as label and who as name.
  • -
  • disable the cell within the grid-row attributes, by typing !@who in the disabled property
  • -
  • check the checkbox readonly to make it an read-only textfield. This has two effects: -
      -
    • for one thing the value of @who is not editable
    • -
    • the borders around the text-field vanish.
    • -
    +
  • now clear cache and cookies of your browser, call Clear cache and register hooks in admin . :
  • -
  • Save
  • +
  • you should see your new template