Author: raju
Date: 2007-08-16 03:55:01 -0700 (Thu, 16 Aug 2007)
New Revision: 6081

Modified:
   labs/lzproject/trunk/lzx/lzproject/LZProject.lzx
Log:
Fixed datapath for project info text blocks.


Modified: labs/lzproject/trunk/lzx/lzproject/LZProject.lzx
===================================================================
--- labs/lzproject/trunk/lzx/lzproject/LZProject.lzx    2007-08-16 08:56:44 UTC 
(rev 6080)
+++ labs/lzproject/trunk/lzx/lzproject/LZProject.lzx    2007-08-16 10:55:01 UTC 
(rev 6081)
@@ -209,15 +209,17 @@
 
                   <!-- Project statistics -->
                   <view x="20" y="65">
-                    <simplelayout axis="x" spacing="10" />
-                    <text datapath="">
-                <!-- The trigger for a change of this text is the selection of 
a different
-                   project throught the combobox -->
-                <handler name="onvalue" reference="projComboDashboard">
-                  this.setDatapath("listProjectsDS:/response/projects/project["
-                                   
+projComboDashboard.value+"]/running/text()");
-                </handler>
-              </text>
+                      <simplelayout axis="x" spacing="10" />
+                      <text datapath="">
+                              <!-- The trigger for a change of this text is 
the selection of a different
+                                   project throught the combobox -->
+                              <handler name="onvalue" 
reference="projComboDashboard" args="projectID">
+                                  var dp = listProjectsDS.getPointer();
+                                  
dp.setXPath("listProjectsDS:/response/projects/[EMAIL PROTECTED] = '"
+                                      +projectID+"']/running"),
+                                  this.setText(dp.getNodeText());
+                              </handler>
+                      </text>
                   </view>
 
                   <!-- Project details -->
@@ -225,15 +227,17 @@
               <simplelayout axis="y" spacing="5" />
                     <text fontsize="10" fontstyle="bold" 
datapath="i18nDS:/app/main/dashboardTab/description/text()"/>
                     <BorderedBox height="150" width="${parent.width}"
-                      borderColor="#9bc0ff" bgcolor="#d8ebff" borderSize="3">
-                      <text width="$once{parent.innerWidth}" 
height="$once{parent.innerHeight}" multiline="true">
-                  <!-- The trigger for a change of this text is the selection 
of a different
-                     project throught the combobox -->
-                  <handler name="onvalue" reference="projComboDashboard">
-                    
this.setDatapath("listProjectsDS:/response/projects/project["
-                             +projComboDashboard.value+"]/description/text()");
-                  </handler>
-                </text>
+                                 borderColor="#9bc0ff" bgcolor="#d8ebff" 
borderSize="3">
+                  <text width="$once{parent.innerWidth}" 
height="$once{parent.innerHeight}" multiline="true">
+                              <!-- The trigger for a change of this text is 
the selection of a different
+                                   project throught the combobox -->
+                              <handler name="onvalue" 
reference="projComboDashboard" args="projectID">
+                                  var dp = listProjectsDS.getPointer();
+                                  
dp.setXPath("listProjectsDS:/response/projects/[EMAIL PROTECTED] = '"
+                                      +projectID+"']/description"),
+                                  this.setText(dp.getNodeText());
+                              </handler>
+                  </text>
                     </BorderedBox>
 
                   </view>
@@ -260,8 +264,8 @@
                     </BorderedBox>
                   </view>
 
-            <tabslider x="${parent.width-this.width-40}" y="20" width="250"
-                     height="${app.tabs.dashboard.height-this.y-26}" 
initstage="late">
+            <tabslider x="${parent.width-this.width-40}" y="20" width="250" 
initstage="late"
+                     height="${app.tabs.dashboard.height-this.y-26}">
               <!-- TODO: why is it not possible to directly add an attribute 
with a $path{} expression
                  to the tabslider or tabelement?  Nothing will show then! -->
               <node datapath="i18nDS:/app/main/">
@@ -344,19 +348,21 @@
               <simplelayout axis="y" spacing="5" />
                     <text fontsize="10" fontstyle="bold" 
datapath="i18nDS:/app/main/dashboardTab/description/text()"/>
                     <BorderedBox height="120" width="${parent.width}"
-                      borderColor="#9bc0ff" bgcolor="#d8ebff" borderSize="3">
-                      <text width="$once{parent.innerWidth}" 
height="$once{parent.innerHeight}" multiline="true">
-                  <!-- The trigger for a change of this text is the selection 
of a different
-                     project throught the combobox -->
-                  <handler name="onvalue" reference="projComboProject">
-                    
this.setDatapath("listProjectsDS:/response/projects/project["
-                             +projComboProject.value+"]/description/text()");
-                  </handler>
-                </text>
+                                 borderColor="#9bc0ff" bgcolor="#d8ebff" 
borderSize="3">
+                         <text width="$once{parent.innerWidth}" 
height="$once{parent.innerHeight}" multiline="true">
+                              <!-- The trigger for a change of this text is 
the selection of a different
+                                   project throught the combobox -->
+                              <handler name="onvalue" 
reference="projComboProject" args="projectID">
+                                  var dp = listProjectsDS.getPointer();
+                                  
dp.setXPath("listProjectsDS:/response/projects/[EMAIL PROTECTED] = '"
+                                      +projectID+"']/description"),
+                                  this.setText(dp.getNodeText());
+                              </handler>
+                        </text>
                     </BorderedBox>
                   </view>
 
-                        <TaskCreateEditForm id="createTaskForm" x="20" y="220" 
width="420" height="${app.tabs.dashboard.height-this.y-26}" />
+                  <TaskCreateEditForm id="createTaskForm" x="20" y="220" 
width="420" height="${app.tabs.dashboard.height-this.y-26}" />
 
             <tabslider x="${parent.width-this.width-40}" y="20" width="250"
                    height="${app.tabs.project.height-this.y-26}">


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to