TuanHoang Posted November 11, 2017 Share Posted November 11, 2017 I create new control base on TUniDBEdit, it has trigger to show lookup dialog. I use this control in grid column editor (name accountEdit1) and name accountEdit2 in other Fieldset (second TagSheet) The first if I edit grid column, press trigger button, lookup dialog show before call field's onvalidation. The second if I edit accountEdit2 control, press trigger button, field's onvalidation call before lookup dialog show. I debugged, on the first procedure DoSetRemoteValue don't call, on the second procedure DoSetRemoteValue call before JSEventHandler. Why has difference behavior of same control? I use 1.0.0.1410 Trial Sorry for my English. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 11, 2017 Administrators Share Posted November 11, 2017 Do you have access to unigui source code? Sent from my SM-N900 using Tapatalk Link to comment Share on other sites More sharing options...
TuanHoang Posted November 11, 2017 Author Share Posted November 11, 2017 Do you have access to unigui source code? Sent from my SM-N900 using Tapatalk No, from call stack. Please help, I must show 2 or 3 forms of unigui to my boss before decide use unigui. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 11, 2017 Administrators Share Posted November 11, 2017 When editor is in a dbdrig it becomes a part of grid. It behaves differently. You should not use a dbedit for grid. Using a tuniedit is enough. Sent from my SM-N900 using Tapatalk Link to comment Share on other sites More sharing options...
TuanHoang Posted November 11, 2017 Author Share Posted November 11, 2017 Thank for your support I must use TUniDBEdit because from http://forums.unigui.com/index.php?/topic/9291-dbgrid-refresh-column-total-of-row-after-edit-column-qty/&do=findComment&comment=48017 If I use TUniDBEdit, value of column 4 from 200 will be update to 0 after I press tab (same value as I press enter). But now problem is not edit in grid, Now my problem is new control base on TUniDBEdit which has trigger to show lookup dialog. If field's onvalidation is called after call JSEventHandler (AEventName = 'Triggerclick'), I can disable onvalidation => show lookup => do something => re enable onvalidation at end. But now field's onvalidation is called before call JSEventHandler. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 11, 2017 Administrators Share Posted November 11, 2017 There is no difference between using a TUniEdit and a TUNiDBEdit. Both serve as an editor for Grid. When a DBEdit is used in a Grid it is no longer a DBEdit. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 11, 2017 Administrators Share Posted November 11, 2017 Thank for your support I must use TUniDBEdit because from http://forums.unigui.com/index.php?/topic/9291-dbgrid-refresh-column-total-of-row-after-edit-column-qty/&do=findComment&comment=48017 If I use TUniDBEdit, value of column 4 from 200 will be update to 0 after I press tab (same value as I press enter). But now problem is not edit in grid, Now my problem is new control base on TUniDBEdit which has trigger to show lookup dialog. If field's onvalidation is called after call JSEventHandler (AEventName = 'Triggerclick'), I can disable onvalidation => show lookup => do something => re enable onvalidation at end. But now field's onvalidation is called before call JSEventHandler. If you are using uniGUI at this level then you need to get a license first. Thanks Link to comment Share on other sites More sharing options...
TuanHoang Posted November 14, 2017 Author Share Posted November 14, 2017 If you are using uniGUI at this level then you need to get a license first. Thanks Dear Farshad I will do it in next month. Now I had some problem with Unigui. The first is http://forums.unigui.com/index.php?/topic/9291-dbgrid-refresh-column-total-of-row-after-edit-column-qty/&do=findComment&comment=48017. Can I use UniEdit instead of UniDBEdit. The second is DoSetRemoteValue is called before JSEventHandler. If I buy UniGui, Can I has solution to fix it? Sorry for my English. Tuan Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 14, 2017 Administrators Share Posted November 14, 2017 Hi, uniDBGrid mimics a VCL grid in many ways, but it doesn't work well when you modify a db row dynamically when you jump from one cell to another. I can not promise that we can resolve this. You need to find another workaround for time being. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now