0

Hi guys! Can someone help me with my problem?
I'm really not that good when it comes to coding.
My problem is that how can display the number of new records received. Well heres my code

The code below is the function to get the record count on Inbox

<CODE>
<script>
function getRecordCount(db,table) {
var xmlHttp = XmlHttp.create();
var bAsync = false;
xmlHttp.open('POST', "GetRecords?DBName="+db+"&TableName="+table, bAsync);
xmlHttp.setRequestHeader('charset', 'UTF-8');
xmlHttp.setRequestHeader('RequestType', 'XmlHttpStream');
xmlHttp.send();
var response = xmlHttp.responseText;
var data = XmlDocument.create()
data.async = false
data.loadXML(response)
var count = data.selectSingleNode('//NumberOfRecords').text;
return count
}
</script>
</CODE>

This is the code I used to display the count

<CODE>
<if record.NAME == "mnuEVC_InboxTrans">
<script>
inbox = getRecordCount("EVCMOT","INBOX_TRANSFERS");
document.write(inbox);
</script>
</if>
</CODE>

Here is the sample of the page

Edited by happygeek: fixed formatting

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by sciwizeh
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.