How to convert this JS:
function btnShowOrderDetails::OnClick(eventObj)
{
// Show the order details for the order that this button corresponds to.
if (eventObj.Source.baseName == "Orders")
ShowOrderDetails(eventObj.Source.getAttribute("OrderID"));
}
to C# code?
May be to this?
public void btnTest_OnClick(DocActionEvent e) {
e.Source.attributes.getNamedItem("OrderID") [...]
}
??
Mattia Saccotelli - 02 Dec 2004 13:34 GMT
this works (with a dynamic button in a repeating table with controls):
thisXDocument.UI.Alert(
"" + e.Source.attributes.length + " " +
e.Source.xml + " " +
e.Source.attributes[0].text + " " +
e.Source.attributes.getNamedItem("ID").text
);
> How to convert this JS:
>
[quoted text clipped - 15 lines]
>
> ??