在sharepoint 2010中动态创建新的wiki页面(dynamically create a new wiki page in sharepoint 2010)
我是sharepoint的新手,我在sharepoint 2010做一个网站,
我创建了一个员工详细信息列表,它包含各种列,一旦用户在“确定”中将新项目添加到该列表,它应该重定向到弹出按钮,并且点击它将直接允许用户打开一个供他自己使用的新wiki页面。
如果编辑了现有记录,则应该打开该特定用户的现有Wiki页面。
我已经安装了visual studio 2010,以便我可以创建这个自定义webpart,
但我是sharepoint的新手,所以我不知道从哪里开始,怎么开始。
有谁可以请指导我完成这个。
提前致谢,
i m new to sharepoint, i m doing a site in sharepoint 2010,
i created a list of employee details, it contains various columns, once a new item is added to that list on "ok" by a user it should redirect to a pop up button, and onclick of which it will directly allow a user to open a new wiki page for his own use.
and if an existing record is edited, it should open the existing wiki page for that particular user.
i have installed visual studio 2010 so that i can create this custom webpart,
but i m new to sharepoint so i do not know where and how to start from.
could anyone please guide me through this.
thanks in advance,
原文:https://stackoverflow.com/questions/9941369
最满意答案
我相信在表上完成内联编辑的最简单方法是通过向阵列上的每个对象添加编辑标志来污染您的数据。
下面你可以找到它的例子:
angular.module('app', []) .controller('AppController', appController); function appController ($scope) { $scope.roomTypes = [{ name : 'Test' }, { name : 'Test2' }, { name : 'Test3' }] $scope.toggleMode = function (type) { type.editing = !type.editing; } }
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <div ng-app="app" ng-controller="AppController"> <table> <thead> <tr> <th>Name</th> <th>Actions</th> </tr> </thead> <tbody> <tr ng-repeat="type in roomTypes"> <td> <span ng-if="!type.editing"> {{type.name}} </span> <span ng-if="type.editing"> <input type="text" ng-model="type.name" > </span> </td> <td> <button ng-click="toggleMode(type)"> {{type.editing ? 'Save' : 'Edit'}} </button> </td> </tr> </tbody> </table> </div>
I believe the easiest way to accomplish inline editing on a table is to pollute your data by adding a editing flag to each object on your array.
Below you can find the example of it :
angular.module('app', []) .controller('AppController', appController); function appController ($scope) { $scope.roomTypes = [{ name : 'Test' }, { name : 'Test2' }, { name : 'Test3' }] $scope.toggleMode = function (type) { type.editing = !type.editing; } }
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <div ng-app="app" ng-controller="AppController"> <table> <thead> <tr> <th>Name</th> <th>Actions</th> </tr> </thead> <tbody> <tr ng-repeat="type in roomTypes"> <td> <span ng-if="!type.editing"> {{type.name}} </span> <span ng-if="type.editing"> <input type="text" ng-model="type.name" > </span> </td> <td> <button ng-click="toggleMode(type)"> {{type.editing ? 'Save' : 'Edit'}} </button> </td> </tr> </tbody> </table> </div>
相关问答
更多-
我相信在表上完成内联编辑的最简单方法是通过向阵列上的每个对象添加编辑标志来污染您的数据。 下面你可以找到它的例子: angular.module('app', []) .controller('AppController', appController); function appController ($scope) { $scope.roomTypes = [{ name : 'Test' }, { ...
-
你可以设置: dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.SelectedRows[0].Index; 以下是有关此属性的MSDN文档 。 You can set: dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.SelectedRows[0].Index; Here is the MSDN documentation on this propert ...
-
希望这能解决你的问题。 $scope.createSelectRowClick = function(){ if ($scope.selectedRow==null) { alert("Any rows selected"); } else { alert("valuetd " + $scope.organizationals[$scope.selectedRow].name); } } Hope this will solve your problem. $sco ...
-
var app = angular.module('main', []); app.controller('DemoCtrl', function ($scope,$filter) { $scope.selectAll = function (a) { angular.forEach($scope.action_distance, function (obj) ...
-
span不是最接近的input元素,它是input兄弟。 你可以像下面这样做。 $('input[data-tm-for-variation="pa_size"]').change(function(){ $(this).closest('li').find('span.price').fadeIn(); }); span is not closest element of input, it is sibling of input. You can do it like following. ...
-
在列表项目上创建动作集“焦点”并在那里设置刷新部分。 重点应放在下一行。 I struggled to find out an out-of-box solution, but I realized that Pega doesn't provide any. My bug happens because the section refreshes when the previous element is selected. And after refreshing it jumps to the next ...
-
尝试下面这段代码应该提醒teamid cell的innerText function generate_table() { var body = document.getElementsByTagName("body")[0]; var tbl = document.createEle ...
-
Angularjs如何显示listBox中所选行的隐藏数据?(Angularjs How to show hidden data from the selected row in a listBox?)[2022-04-25]
只需替换所选学生的变量即可。 喜欢 : $scope.setSelected = function(student, index) { $scope.selectedstudent = student; $scope.selectedRow = index; }; HTML :