我需要从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)
我错过了什么吗?
在web.config发布代理中,Job每2分钟运行一次.对于一个项目,我添加了发布限制.我已经从日期和时间添加了发布.但是该项目将从Web数据库中删除,直到那个时间.
这是sitecore的行为吗?
此外,我尝试创建一个新版本的项目,并添加了发布限制.它按预期工作.即,项目不会从Web数据库中删除,并且在指定时间后才会发布.这个解决方案适当吗?
我已从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)
我错过了什么?