wangxuebin Posted June 25, 2014 Posted June 25, 2014 I use a unidbgrid,a unidbmemo,a unihtmlframe,a query dataset from mysql,when unidbgrid row changes,the data in the dataset will be update to unidbmemo and unihtmlframe,if I just query the data,everything seems ok,but when I edit the data in the unidbmemo,and update to dataset and unihtmlframe ,'server unavailable,please try later ' error popup often,but not every time. someone can help me?thanks! my envis: delphi xe2 unigui 0.95.10046 Quote
adragan Posted June 25, 2014 Posted June 25, 2014 It seems that you must have an id ( integer) for your dataset , an update query and a refresh query using that id. Even if the id is not visible in the grid. Otherwise the DBGrid behaves eratically. Quote
wangxuebin Posted June 25, 2014 Author Posted June 25, 2014 yes,the dataset have an ID,which is an autoincrement field,has been included in the fields list of the query 's SQL statements.You can test it at : http://yntjinfo.com/jphp/jphp.dll thanks for your reply. Quote
Administrators Farshad Mohajeri Posted June 25, 2014 Administrators Posted June 25, 2014 It is not possible to understand what is going on from what you posted above. Quote
Administrators Farshad Mohajeri Posted June 25, 2014 Administrators Posted June 25, 2014 "server unavailable,please try later" It shows that your server side code does not respond before AjaxTimeout interval. Either increase AjaxTimeout or find out why server side operation takes that long. Quote
wangxuebin Posted June 25, 2014 Author Posted June 25, 2014 but I set AjaxTimeout=300000,is 5 minutes.I find that if I post normal text,it often works good, but post texts that contain html tokens ,it offen fails,and popup "server unavailable,please try later" error.After then,any operations on the browser just get error again. And before post,I have encode the texts that contain html tokens using js function esacpae. Quote
Administrators Farshad Mohajeri Posted June 25, 2014 Administrators Posted June 25, 2014 I don't how you do this and what is content of the post you send, so it is difficult to tell. Quote
Administrators Farshad Mohajeri Posted June 25, 2014 Administrators Posted June 25, 2014 Please narrow down your issue to a test case and send a bug report. That's the only way we can help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.