web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: mdehoog
Forum: Support 01-20-2020, 04:04 AM
Replies: 3
Views: 404
Posted By mdehoog
beter code

Your code is indeed better. Nice improvement.
Forum: Support 01-17-2020, 07:42 AM
Replies: 3
Views: 404
Posted By mdehoog
Solved it. Well kind of

Don't know if it is the best solution, so any improvement is welcome.
I found it is not ok to use delete on arrays.



This does the job.
var j=msg.results.length;
for (i=0; i < j; i++) {
...
Forum: Support 01-17-2020, 06:58 AM
Replies: 3
Views: 404
Posted By mdehoog
delete of JSON msg object results in null

I use this to remove certain object from a JSON message received.
for (i=0; i < msg.results.length; i++) {
if(msg.results[i].PMT != '1'){
delete msg.results[i];
}
}
It does indeed...
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -8. The time now is 07:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation