Search Columns in SharePoint 2013 KnockoutJS

I have a basic project loading project data from a SharePoint 2013 list. Retrieving data and displaying data is easy, the problem I am facing is in edit mode that displays the correct control. Everything should not be a text field. This means that the people control selects dropdownmenus to manage the calendar.

MSFT has pretty good documentation on using client-side election management here http://msdn.microsoft.com/en-us/library/office/jj713593.aspx

The problem I'm causing is causing this control inside my view model.

Setting the control value does not look complicated thanks to this blog post: http://www.sharepointcolumn.com/sp2013-setting-people-picker-value-in-newform-aspx/

I tried to look at the calculated values, but this does not work. Does anyone have a blog post that I missed? The closest linked mail I can find: http://yetanothersharepointblog.wordpress.com/2012/12/11/working-with-sharepoint-lookup-columns-in-knockout-js/

And finally, since it seems that I'm the only one who does this, does anyone think that I should not reinvent the wheel with my forms and just bind each item to the corresponding item in the SharePoint list in edit or display mode? I suppose that would be easier.

+7
sharepoint sharepoint-2013
source share
1 answer

From a SharePoint professional to another, I highly recommend you do this. Just redirect the user to the element / display edit page, and let SharePoint take care of how to handle the elements of the user interface form.

Because, suppose you implement your own form, what if the user decides to add another column to the list? Will you update your code to support another field?

From my personal experience with the beast, I came to the conclusion that the structural implementation of the existing functionality tends to go wrong.

In addition, if you have some list of custom-made elements and you want to ensure their editing, try to do something by opening the cute SP.UI.ModalDialog, it's elegant, and you use sharepoint to do your job.

But this is just advice.

+2
source share

All Articles