AnsweredAssumed Answered

two different ajax calls hiding data of first ajax call

Question asked by umar.akhlaq on Dec 15, 2015

I have two ajax call one from my custom javascript lets say custom.js included in my module editviewdefs.php and other ajax call going from editview.tpl file.
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?
Thankyou
M.Umar Akhlaq

Outcomes