Browse Source

Add links to change report

Neal Wilson 11 years ago
parent
commit
1f175c6203
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      config/Reports/invchange.xml

+ 9
- 1
config/Reports/invchange.xml View File

91
 				while(query.next())
91
 				while(query.next())
92
 				{
92
 				{
93
 					output.writeStartElement("tr");
93
 					output.writeStartElement("tr");
94
-					output.writeTextElement("td", query.value(0)); //ID
94
+					output.writeStartElement("td");
95
+					output.writeStartElement("a");
96
+					output.writeAttribute("href", "typica://script/" + query.value(0));
97
+					output.writeTextElement("span", query.value(0)); //ID
98
+					output.writeEndElement();
99
+					output.writeEndElement();
95
 					output.writeTextElement("td", query.value(1)); //Coffee
100
 					output.writeTextElement("td", query.value(1)); //Coffee
96
 					output.writeTextElement("td", query.value(2)); //Reference
101
 					output.writeTextElement("td", query.value(2)); //Reference
97
 					output.writeTextElement("td", query.value(3)); //Starting Wt
102
 					output.writeTextElement("td", query.value(3)); //Starting Wt
123
 			endDateField.dateChanged.connect(function() {
128
 			endDateField.dateChanged.connect(function() {
124
 				refresh();
129
 				refresh();
125
 			});
130
 			});
131
+			view.scriptLinkClicked.connect(function(url) {
132
+				print(url);
133
+			});
126
 		]]>
134
 		]]>
127
 	</program>
135
 	</program>
128
 </window>
136
 </window>

Loading…
Cancel
Save