Hi all(Tony),
I found in documentation an example on CheckInvoice where you can do dynamic editing forms. However, I just can't figure out where this CheckInvoice function should be hooked with?
in editrules? How?
function CheckInvoice(formid) { var invno = 'invoice=' + $(“#invoice”,formid).val() ; if (invno == 'invoice=') { alert(“invoice is blank; please enter account #”) } else { $.getJSON(searchinvoice, invno, function(data) { if (data.status == 'No match found; please try again') { alert(data.status) } else { // Load the fields we know about $(“#invoiced”,formid).val(data.invoiced); $(“#outstanding”,formid).val(data.os); $(“#acctname”,formid).val(data.account); $(“#project”,formid).val(data.project); // Disabled loaded fields $(“#acctname”,formid).attr('disabled',true); $(“#project”,formid).attr('disabled',true); // Hide unneeded fields $(“#tr_comment”,formid).hide(); $(“#tr_projectnumber”,formid).hide(); $(“#tr_shorttitle”,formid).hide(); $(“#tr_client”,formid).hide();
Regards,
Burt
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top