Wiki Link: [discussion:5537]
Solution Starters (BulkEdit) for MSPS 2013 

Feb 15 2013 at 10:23 AM
Good day!
Tell us, please, do you plan to put the decision “Solution Starters 2010” particularly “BulkEdit” on MSPS 2013?
Thanks for the reply.

Feb 20 2013 at 2:34 PM
Edited Feb 21 2013 at 4:59 PM
Thanks for the reply.
The fact is that we try to migrate the solution Solution Starters (BulkEdit) on MSPS2013, but the control initialization error occurs.

Line: 707
Error: 'GridManager' is undefined
SCRIPT5009: 'GridManager' is undefined
BulkEdit.aspx, line 707 character 27
SCRIPT5009: 'GridManager' is undefined
BulkEdit.aspx, line 701 character 32


We looked at the structure of files and noticed some changes in the API JSGRID.
In particular, this file is not at all now:
<script type="text/javascript" src="~/_layouts/.../ProjectFramework.js"></script>

Feb 21 2013 at 4:44 PM
My Post in SPS 2013 forums:
http://social.technet.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3331cc66-527f-4491-b72f-e28a5cfd19be


Feb 27 2013 at 8:41 AM
Edited Feb 27 2013 at 8:45 AM
I migrated solution "Bulkedit" to MSPS 2013.
I can send the project. Mail for contact: mspx@mail.ru.
If authors of the project "Solution Starters" will not be against I can put project here or on codeplex.com.

Details (russian):
1. В .Net 4.5 чуть изменился поход к доступу к статическим методам и переменным.
Поэтому C:\Users\sps2013\Documents\Visual Studio 2012\Projects\DemandManagement.BulkEditTool\DemandManagement.BulkEditTool\JSGrid\DataAdapter.cs
Метод mdPropUid.TryParse(fieldName, out mdPropUid); заменил на
var mdPropUid = Guid.Empty;
try
{
mdPropUid = Guid.Parse(fieldName);
}
catch
{
}

2. C:\Users\sps2013\Documents\Visual Studio 2012\Projects\DemandManagement.BulkEditTool\DemandManagement.BulkEditTool\Layouts\INC\BulkEditTool\GridManager.js
MS Удалили несколько файлов .js (ProjectFramework.debug.js, ./INC/PWA/LIBRARY/RemoteTextConv.js) по работе с MSPS и расширили новыми, добавили логику в старые.
/// <reference path="/_layouts/15/inc/pwa/library/shell.js"/>
/// <reference path="/_layouts/15/inc/pwa/library/shell.debug.js" />
/// <reference path="/_layouts/15/inc/pwa/library/CustomFieldWidget.js" />
/// <reference path="/_layouts/15/inc/pwa/library/CustomFieldWidget.debug.js" />
/// <reference path="/_layouts/15/inc/pwa/library/ps.core.js"/>
/// <reference path="/_layouts/15/inc/pwa/library/ps.core.debug.js"/>
/// <reference path="/_layouts/15/inc/pwa/library/ps.projectmanagers.js"/>
/// <reference path="/_layouts/15/inc/pwa/library/ps.projectmanagers.debug.js"/>
/// <reference path="/_layouts/15/inc/pwa/library/projectservertreepicker.js"/>
/// <reference path="/_layouts/15/inc/pwa/library/ProjectServerTreePicker.debug.js"/>


3. По типу RichText C:\Users\sps2013\Documents\Visual Studio 2012\Projects\DemandManagement.BulkEditTool\DemandManagement.BulkEditTool\Layouts\BulkEditTool\RichTextEditor.aspx
Не запускался по загрузке метод JS Workspace_OnLoad(). Добавил spBodyOnLoadFunctionNames.push("WorkspaceOnLoad");

4. Чтобы заработал lookup добавил ="/_layouts/15/inc/pwa/library/projectservertreepicker, там теперь вся логика и здесь часть ps.core.js.
5. Чтобы заработала передача полей в сетку через PWA:ItemSwapper в SelectFieldsFilters.aspx посмотрел на этот контрол.
У него изменился формат файла и название переменных, некоторые переменные из свойств стали методами.
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\INC\PWA\LIBRARY\RichItemSwapper.debug.js
Раньше файл был ItemSwapper.htc
Заменил itemSwapperFields.SetBetaSelectedIndex(i);
selectedFields.push(itemSwapperFields.get_betaSelectedIndexValue());
6. Подправил C:\Users\sps2013\Documents\Visual Studio 2012\Projects\DemandManagement.BulkEditTool\DemandManagement.BulkEditTool\Layouts\Styles\BulkEditTool\styles.css
7. Подравил ссылку C:\Users\sps2013\Documents\Visual Studio 2012\Projects\DemandManagement.BulkEditTool\DemandManagement.BulkEditTool\Layouts\BulkEditTool\SelectFieldsFilters.aspx
<SP:ScriptLink ID="ScriptLink5" runat="server" Name="/_layouts/15/INC/ACCSVC/jquery-1.4.3.min.js" LoadAfterUI="true" OnDemand="false" />

8. Сетка была чувствительна к включениям сюда C:\Users\sps2013\Documents\Visual Studio 2012\Projects\DemandManagement.BulkEditTool\DemandManagement.BulkEditTool\Layouts\BulkEditTool\BulkEdit.aspx
Файлов типа /// <reference path="/_layouts/15/SP.core.debug.js"/>
/// <reference path="/_layouts/15/SP.core.js"/>
/// <reference path="/_layouts/15/SP.debug.js"/>
/// <reference path="/_layouts/15/SP.js"/>
/// <reference path="/_layouts/15/SP.Ribbon.debug.js" />
/// <reference path="/_layouts/15/SP.Ribbon.js" />
В виде <SP:ScriptLink ID="ScriptLink12" runat="server" Name="xxx.js" LoadAfterUI="true" OnDemand="false" />

9. Удалили из hiv15 PWASettings.master. Теперь используется MasterPageFile="~/_layouts/15/pwa/PWADlg.master"



Updating...
Page view tracker