Browse Source

Add links to change report

Neal Wilson 10 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,7 +91,12 @@
91 91
 				while(query.next())
92 92
 				{
93 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 100
 					output.writeTextElement("td", query.value(1)); //Coffee
96 101
 					output.writeTextElement("td", query.value(2)); //Reference
97 102
 					output.writeTextElement("td", query.value(3)); //Starting Wt
@@ -123,6 +128,9 @@
123 128
 			endDateField.dateChanged.connect(function() {
124 129
 				refresh();
125 130
 			});
131
+			view.scriptLinkClicked.connect(function(url) {
132
+				print(url);
133
+			});
126 134
 		]]>
127 135
 	</program>
128 136
 </window>

Loading…
Cancel
Save