Skip to content

Commit

Permalink
HDI update (standard action added)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland-Lannuzel committed May 23, 2024
1 parent bd4a81a commit d7b42a9
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 3 deletions.
Binary file modified Data/HowDoI.4DD
Binary file not shown.
1 change: 1 addition & 0 deletions Data/export.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>4D Write Pro New Document</title><style type="text/css">body { background-color:#FFFFFF }ul, ol { margin:0;padding:0 }table { border-collapse:collapse;border-spacing:0;border-width:1pt }tr { border-width:1pt }td { vertical-align:top;border-width:1pt }p,li { white-space:pre-wrap;border-width:2pt;font-size:12pt;margin:0pt;padding:0pt;font-family:'Times New Roman' }p.Normal,li.Normal { white-space:pre-wrap }p._p1,li._p1 { margin:6pt 14.2pt 6pt 0pt;text-align:left;font-size:13pt }p._p2,li._p2 { text-align:center;font-family:'Arial';font-size:14pt;color:#FFBBBC;font-weight:bold }p._p3,li._p3 { text-align:left;font-family:'Arial';color:#FFFFFF;font-weight:bold }p._p4,li._p4 { text-align:left;font-family:'Arial';font-size:10pt;color:#595959;font-weight:bold }p._p5,li._p5 { margin:0pt 6pt 0pt 0pt;text-align:right;font-family:'Arial' }p._p6,li._p6 { text-align:center;font-family:'Arial';font-size:10pt }p._p7,li._p7 { text-align:left;font-family:'Arial';color:#FFFFFF }p._p8,li._p8 { text-align:right;font-family:'Arial';color:#FFFFFF }p._p9,li._p9 { text-align:center;font-family:'Arial';font-size:14pt;color:#8F97FF;font-weight:bold }p._p10,li._p10 { text-align:right;font-family:'Arial';font-size:18pt;color:#FFFFFF }p._p11,li._p11 { text-align:center;font-family:'Arial';font-size:14pt;color:#FFED76;font-weight:bold }p._p12,li._p12 { margin:0pt 6pt 0pt 0pt;text-align:center;font-family:'Arial';font-weight:bold }table._table1 { margin:4pt 4pt 4pt 12pt;border-style:solid;border-width:0.5pt }table._table2 { margin:2pt 0pt 2pt 12pt;border-style:solid;border-width:0.5pt }tr._tr1 { background-color:#808080 }tr._tr2 { background-color:#F8E4E4 }tr._tr3 { background-color:#FCBF49 }td._td1 { padding:2pt 4pt;width:432.85pt;border-style:solid none;border-width:0.05pt;vertical-align:middle }td._td2 { padding:2pt;width:287pt;border-style:solid none;border-width:0.05pt;vertical-align:middle }td._td3 { padding:2pt;width:137.05pt;border-style:solid solid solid none;border-width:0.05pt;vertical-align:middle }td._td4 { padding:0pt 2pt 0pt 4pt;width:288.5pt;border-style:solid none solid solid;border-width:0.05pt;vertical-align:middle }td._td5 { padding:0pt 2pt 0pt 4pt;width:139.55pt;border-style:solid none solid solid;border-width:0.05pt;vertical-align:middle }td._td6 { padding:0pt 2pt 0pt 4pt;width:288.75pt;border-style:solid none solid solid;border-width:0.05pt;vertical-align:middle }td._td7 { padding:0pt 4pt 0pt 2pt;width:137.05pt;border-style:solid;border-width:0.05pt;vertical-align:middle }td._td8 { padding:2pt 4pt 2pt 2pt;width:137.05pt;border-style:solid solid solid none;border-width:0.05pt;vertical-align:middle }td._td9 { padding:2pt 4pt;width:432.9pt;border-style:solid none;border-width:0.05pt;vertical-align:middle }td._td10 { padding:2pt;width:137.1pt;border-style:solid solid solid none;border-width:0.05pt;vertical-align:middle }td._td11 { padding:0pt 2pt 0pt 4pt;width:435.1pt;border-style:solid none solid solid;border-width:0.05pt;vertical-align:middle }td._td12 { padding:2pt 4pt 2pt 2pt;width:137.1pt;border-style:solid solid solid none;border-width:0.05pt;vertical-align:middle }</style></head><body><p class="Normal _p1"><span style="font-style:italic;font-weight:bold">Default behaviour : Errors </span><span style="font-style:italic">will occur if the datasource is empty</span><span style="font-style:italic;font-weight:bold">​</span></p><table id="tableAsia" class="_table1"><tr class="_tr1"><td colspan="2" class="_td1"><p class="Normal _p2">ASIA</p></td></tr><tr class="_tr1"><td class="_td2"><p class="Normal _p3">Name</p></td><td class="_td3"><p class="Normal _p3">Phone</p></td></tr><tr class="_tr2"><td class="_td4"><p class="Normal _p4"> <span style="font-weight:normal"><span style="font-weight:bold"> </span>(## Error # 59 contacts)</span>​</p></td><td class="_td5"><p class="Normal _p4">​</p></td></tr><tr><td class="_td6"><p class="Normal _p5"><span style="font-size:10pt"> </span>​</p></td><td class="_td7"><p class="Normal _p6">​</p></td></tr><tr class="_tr1"><td class="_td2"><p class="Normal _p7">WORLD: ## Error # 59 contacts</p></td><td class="_td8"><p class="Normal _p8">​</p></td></tr></table><p class="Normal _p1"><span style="font-style:italic;font-weight:bold">Option 1: </span><span style="font-style:italic">The <span style="font-weight:bold">data row</span> will be <span style="font-weight:bold">hidden</span> when the datasource is empty</span><span style="font-weight:bold">​</span></p><table id="tableEurope" class="_table2"><tr class="_tr1"><td colspan="2" class="_td1"><p class="Normal _p9">EUROPE</p></td></tr><tr class="_tr1"><td class="_td2"><p class="Normal _p3">Name</p></td><td class="_td3"><p class="Normal _p3">Phone</p></td></tr><tr class="_tr1"><td class="_td2"><p class="Normal _p7">WORLD: ## Error # 59 contacts</p></td><td class="_td8"><p class="Normal _p10">​</p></td></tr></table><p class="Normal _p1"><span style="font-style:italic;font-weight:bold">Option 2: </span><span style="font-style:italic">The <span style="font-weight:bold">whole table</span> will be <span style="font-weight:bold">hidden</span> when the datasource is empty</span><span style="font-weight:bold">​</span></p><p class="Normal _p1"><span style="font-style:italic;font-weight:bold">Option 3: </span><span style="font-style:italic">The <span style="font-weight:bold">data row</span> will be <span style="font-weight:bold">replaced</span> by a <span style="font-weight:bold">place holder</span> when the datasource is empty</span><span style="font-weight:bold">​</span></p><table id="tableSouthAmerica" class="_table2"><tr class="_tr1"><td colspan="2" class="_td9"><p class="Normal _p11">SOUTH AMERICA</p></td></tr><tr class="_tr1"><td class="_td2"><p class="Normal _p3">Name</p></td><td class="_td10"><p class="Normal _p3">Phone</p></td></tr><tr class="_tr3"><td colspan="2" class="_td11"><p class="Normal _p12">This row is displayed (only) when the datasource is empty</p></td></tr><tr class="_tr1"><td class="_td2"><p class="Normal _p7">WORLD: ## Error # 59 contacts</p></td><td class="_td12"><p class="Normal _p10">​</p></td></tr></table><p class="Normal">​</p></body></html>
Binary file added Data/export.pdf
Binary file not shown.
65 changes: 63 additions & 2 deletions Project/Sources/Forms/HDI2/form.4DForm
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@
"sizingX": "grow",
"sizingY": "grow"
},
"Rectangle1": {
"type": "rectangle",
"top": 510,
"left": 610,
"width": 620,
"height": 240,
"borderRadius": 8,
"stroke": "#c0c0c0",
"sizingY": "move",
"sizingX": "fixed"
},
"btnTrace": {
"type": "checkbox",
"text": "Trace code",
Expand Down Expand Up @@ -124,7 +135,7 @@
"top": 90,
"left": 608,
"width": 620,
"height": 650,
"height": 410,
"sizingX": "grow",
"sizingY": "grow",
"dataSource": "WParea1",
Expand Down Expand Up @@ -333,6 +344,56 @@
"height": 64,
"picture": "/RESOURCES/Images/Arrows/ArrowLeft.png",
"sizingY": "move"
},
"Popup Dropdown List": {
"type": "dropdown",
"left": 947,
"top": 671,
"width": 242,
"height": 22,
"events": [
"onDataChange"
],
"action": "emptyDatasource",
"focusable": false,
"sizingX": "fixed",
"sizingY": "move"
},
"Text": {
"type": "text",
"text": "You can change the behaviour of each table using the standard action \"emptyDatasource\" associated to a dropdown list like below.\r\rSelect any table to activate this dropdown list then change the option.\r(you should switch to \"Display template\" first if tables are not visible !)",
"top": 530,
"left": 630,
"width": 580,
"height": 132,
"fontSize": 18,
"sizingX": "fixed",
"sizingY": "move"
},
"Text1": {
"type": "text",
"text": "Empty data source display mode:",
"top": 674,
"left": 690,
"width": 250,
"height": 16,
"textAlign": "right",
"fontWeight": "bold",
"sizingX": "fixed",
"sizingY": "move"
},
"Text2": {
"type": "text",
"text": "Note : only the 4th table has been designed to display a placeholder row!",
"top": 708,
"left": 640,
"width": 560,
"height": 22,
"fontSize": 16,
"sizingX": "fixed",
"sizingY": "move",
"fontStyle": "italic",
"textAlign": "center"
}
}
}
Expand All @@ -341,7 +402,7 @@
"version": "1",
"kind": "form"
},
"geometryStamp": 5365,
"geometryStamp": 5506,
"editor": {
"activeView": "View 1",
"defaultView": "View 1",
Expand Down
3 changes: 2 additions & 1 deletion Project/Sources/TableForms/4/TemplateInput/form.4DForm
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@
"onDataChange"
],
"action": "emptyDatasource",
"sizingX": "move"
"sizingX": "move",
"focusable": false
}
}
}
Expand Down

0 comments on commit d7b42a9

Please sign in to comment.