小编Nam*_*Roy的帖子

ng-csv包含来自api调用的数据

我需要从api调用中为ng-csv分配数据.我试过这个.但没有奏效

script:
$scope.getArray = function () {

    var temp;
    $http.get(Config.serviceUrlBase + '/abc/ExportToCSV').success(function(data, status, headers, config) {
       temp = data;
    })
   return temp;
};
 //here data is string separated by comma and new line for csv format.

aspx file:
<Button ID="ExportToCSV" ng-csv="getArray" filename="test.csv" lazy-load="true"
>ExportToCSV</Button>
Run Code Online (Sandbox Code Playgroud)

我错过了什么吗?

angularjs

6
推荐指数
3
解决办法
5600
查看次数

使用Sitecore发布代理并在特定时间发布项目

在web.config发布代理中,Job每2分钟运行一次.对于一个项目,我添加了发布限制.我已经从日期和时间添加了发布.但是该项目将从Web数据库中删除,直到那个时间.

这是sitecore的行为吗?

此外,我尝试创建一个新版本的项目,并添加了发布限制.它按预期工作.即,项目不会从Web数据库中删除,并且在指定时间后才会发布.这个解决方案适当吗?

sitecore scheduled-tasks web-publishing sitecore8

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

Sitecore 8.2显示错误尝试访问方法'Sitecore.Context + PageMode.get_IsPageEditor()'失败

我已从Sitecore 8.1升级到Sitecore 8.2.我有一个方法,我正在使用:

Sitecore.Context.PageMode.IsPageEditor 
Run Code Online (Sandbox Code Playgroud)

为此,它给出了错误:

attempt by method METHOD_NAME to access method 'Sitecore.Context+PageMode.get_IsPageEditor()' failed.
Run Code Online (Sandbox Code Playgroud)

我错过了什么?

sitecore sitecore8.1 sitecore8.2

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