Jump to content

Difference behavior when use custom TUniDBEdit control in grid vs in Fieldset


TuanHoang

Recommended Posts

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

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

  • Administrators

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...