小编s.s*_*mar的帖子

角度ui网格日期过滤器以在列中搜索日期

我想使用角度ui日期过滤器在搜索列中搜索日期。

当我尝试在列中搜索我的日期时,它没有显示正确的日期。我希望它显示用户搜索的完全匹配。示例:如果用户键入22-aug-16,则应仅显示与此日期匹配的日期,假设用户仅键入25-aug,则应仅显示与数据库中存在的任何年份的8月25日匹配的日期。

我尝试使用我的代码,例如

.controller(
                'BlockADetailsController',
                [
                        '$scope', '$rootScope','$location','$routeParams', '$filter', 'CommonService', 'BlockADetailsService', '$q',
                        function($scope, $rootScope,$location, $routeParams, $filter, CommonService, BlockADetailsService, $q) {
$scope.changeActorGridOptions = {
enableFiltering : true,
columnDefs : [
                                            {
{
                                                name : 'lLDate',
                                                field : 'lLDate',                                               
                                                displayName : 'LAST_LOGIN',                                         
                                                width : '100',
                                                minWidth: '90',
                                                cellTemplate : '<div title="{{COL_FIELD | date:\'dd-MMM-yy\' }}">{{COL_FIELD | date:"dd-MMM-yy"  }}</div>',
                                                headerTooltip : true,
                                                cellClass : function(grid, row,
                                                        col, rowRenderIndex,
                                                        colRenderIndex) {
                                                    return 'gridGroupCell';
                                                },
                                                headerCellFilter : 'translate',                                         
                                            },
Run Code Online (Sandbox Code Playgroud)

在这里我也尝试过

type: 'date'
Run Code Online (Sandbox Code Playgroud)

并且还添加了在stackoverflow中同类问题中提到的onselect函数。

喜欢,

onSelect: function(date){ …
Run Code Online (Sandbox Code Playgroud)

date angularjs angular-ui-grid datefilter

1
推荐指数
1
解决办法
5926
查看次数

如何使用SQL在列中的逗号后删除空格?

我想使用SQL脚本在列中的逗号后删除空格。我正在使用oracle DB。

例如, 数据库结构

我想从“名称”列中删除一个空格(在Sathish,kumar,raghavan之后),

我希望桌子看起来像所需格式

同样,所有要修改的记录。我试过这个查询

update incitable SET name = LTRIM(RTRIM(name));
Run Code Online (Sandbox Code Playgroud)

但这并没有带来任何变化

请帮忙。

对不起,语法错误。

sql oracle oracle10g

0
推荐指数
1
解决办法
1254
查看次数

标签 统计

angular-ui-grid ×1

angularjs ×1

date ×1

datefilter ×1

oracle ×1

oracle10g ×1

sql ×1