Jump to content

unidatetimepicker error when use as an editor in dbgrid.


devya

Recommended Posts

Dear Supports

I have DBgrid connect with FireDac Query to SQL server, one of the field type is Datetime from SQL Server.

And i link Unidatetimepicker as editor for this field inside the UniDBGrid.

But when we edit / insert the data and save the data we facing error  Could not parse SQL TimeStamp string

image.thumb.png.c396efb9558a0b1db15c9e64301f781a.png

this how we link the datetime picker

image.thumb.png.e50050665b23cb51a3882677346536f8.png

 

Can help me to fix this error ?

I am using Unigui 1.90.0.1547

 

 

Link to comment
Share on other sites

27 minutes ago, Sherzod said:

Hello,

How do you insert data into a database. Are the date formats the same?

I just use button to do Querry.append;

And i load all the field direct from the FDQuery

I am using DBGrid to edit/insert the data with Row editor

image.png.b824d3c3ad0da6b4d35a6767024bdeb8.png

Link to comment
Share on other sites

46 minutes ago, x11 said:

Use parameters in SQL-query

Query1.ParamByName('DateTimeField1').AsDateTime := uniDateTime1.Date;

 

Hi, @x11

Thanks for your advice, but i am edit directly to the query itself. I am not doing parse update query.

All the field are okey, except this datetime field with the unidatetimepicker.

 

Link to comment
Share on other sites

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...