+
+void SCMWidget::UpdateNotes(void)
+{
+// QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation");
+//NID (P-key) | UID | POID | Note
+
+ QSqlQuery query;
+ query.prepare("SELECT note FROM Notes WHERE uid = ?");
+// "c.name, email, c.address, phone1, phone2, fax, description, v.vlid FROM "
+// "Vendor AS v LEFT OUTER JOIN Location AS l ON v.vid = l.vid "
+// "LEFT OUTER JOIN (Contact AS c JOIN ContactType AS ct ON c.ctid = ct.ctid) "
+// "ON v.vid = c.vid WHERE v.vid = ?");
+ query.addBindValue(currentUID);
+ query.exec();
+
+ notes->clear();
+
+ while (query.next())
+ {
+ QListWidgetItem * item = new QListWidgetItem(query.value(0).toString());
+ notes->addItem(item);
+ }
+}
+