datetime is giving empty value in update and insert

Questionsdatetime is giving empty value in update and insert
anita yadav asked 4 years ago

Hi Team,

I have used datetime formatter to view/add/update the mysql datatype column in grid, but it is inserting/updating with empty value in datatime mysql table.

I have used code like below:-$col = array();
$col[“title”] = ‘DttmUploaded’;
$col[“name”] = ‘DttmUploaded’;
$col[“width”] = “180”;
$col[“editable”] = true;
$col[“formatter”] = “datetime”;
$col[“editoptions”] = array(“size”=>20, “value”=>date(‘Y-m-d H:i:s’));
$col[“formatoptions”] = array(“srcformat”=>’Y-m-d h:i:s’,”newformat”=>’m-d-Y h:i:s’);
$cols[] = $col;

but while insert it gives following insert query

INSERT INTO `businessentity` (`Id`, `FileRecordId`, `IsProcessed`, `CreatedDate`, `DttmSubmitted`, `ImportedBy`, BusinessEntityNumber,Name,Priority,ParentBeNumber,RecapClockType `,DttmUploaded`) VALUES (NULL, ‘-1’, ‘0’, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ‘204’ ,’dcsd’,’dsf’,’1′,’3′,’3′,”)

Do i need to do anything else, to get the value.

Could you plz help me. I have stuck into this.

Thanks and Regards

3 Answers
Abu Ghufran Staff answered 4 years ago

I’ve reviewed your case and will be updating back after regenerating this issue.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 4 years ago

I’ve emailed you an update. Please check after updating it.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
anita yadav answered 4 years ago

Thanks, Abu. The build worked for me. Thanks a lot for your instant help.

Your Answer

1 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?