H
Henry Ong
Hi all, I've been slaving over this for quite a while.
Scenario: I have a form connected to a Data Source(sql server).
Problem: I can't seem to get any values returned from the fields via Jscript.
Not sure if I'm correctly accessing the fields but here's my code:
function
msoxd__Facilities_PurchaseOrderForm_Quantity1_attr::OnAfterChange(eventObj)
{
var quantity =
("//dfs:myFields/dfs:dataFields/d:Facilities_PurchaseOrderForm/@Quantity1").text;
XDocument.UI.Alert(quantity);
}
I'm not getting any data output to the alert. Any ideas? And thank you in
advance!
Scenario: I have a form connected to a Data Source(sql server).
Problem: I can't seem to get any values returned from the fields via Jscript.
Not sure if I'm correctly accessing the fields but here's my code:
function
msoxd__Facilities_PurchaseOrderForm_Quantity1_attr::OnAfterChange(eventObj)
{
var quantity =
("//dfs:myFields/dfs:dataFields/d:Facilities_PurchaseOrderForm/@Quantity1").text;
XDocument.UI.Alert(quantity);
}
I'm not getting any data output to the alert. Any ideas? And thank you in
advance!