Jump to content

Recommended Posts

Posted

Hi,

I'm facing a rather big issue. I've received a complaint of a big customer that when changing the price and quantity in the orders, prices are not calculated correctly anymore.

I use a row editor in unidbgrid and have an event beforepost on the dataset that calculates the price of the line.

The event is not called anymore in the latest version of Unigui.

Has something changed here?

I need to check with another dataset type as I also upgraded my IbDac components to be 10.4 compatible but if it's a Unigui issue, please look at it urgently because I'm having a few angry customers for the moment.

Thx,

Dominique

Posted

Hi Farshad,

I've found the cause.

Here included you can find a simple sample application. It seems there is a problem with using OnFieldImage.

This sample uses a firedac memory dataset and calculates the total amount in the beforepost.

When the code in OnFieldImage is enabled, 1 out of 2 times the beforepost is not called.

When the code is disabled, the beforepost is always called.

Could you please take a look at this?

Thx,

Dominique

TestOnPost.zip

  • Administrators
Posted

Yes, there is a problem here.

Here is a quick workaround which you can apply:

In file uniDBGrid.pas please comment below 2 lines:
 

      if (not GridEditable) or xCol.ReadOnly then  // avoid hacking attempts
        Exit;

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...