First ajax call = on page load ajax call from editview.tpl file post data current logged in user username and his department to sample.php
Second ajax call = when i press some custom button in my edit view form ajax call post some data some value. to sample.php
Now the issue is i'm using a query in sample.php which insert data coming from both ajax calls into sugarcrm database but first ajax call data disappers when my second ajax call works.
Anyone have any idea whats wrong i am doing?