Skip to content

Instantly share code, notes, and snippets.

@dcaoyuan
Created January 17, 2015 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcaoyuan/7cd27e4daa05d50ac707 to your computer and use it in GitHub Desktop.
Save dcaoyuan/7cd27e4daa05d50ac707 to your computer and use it in GitHub Desktop.
function entityStateNotity(id, record, fieldName, fields, print, http_get, http_post) {
var arr = record.get(fieldName);
var lastAction = arr[arr.length-1].get('action');
http_post.apply('http://localhost:8080/kwafer/insert/'+id, '.entityState\n{"' +
lastAction.get('opKey') + '": "' +
lastAction.get('opValue') + '"}')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment