RESPENT 2013 CUST CSR RENDER وضع NEWFORM (أيضا للاستثمار وعرضه) يجعل عناصر تحكم الإدخال بصرف النظر عن الملصقات

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/92493

سؤال

لعدة أسابيع، أقوم بتطوير بعض الميزات لمشاريعي الجديدة على SharePoint 2013 باستخدام تقنية جديدة تسمى Referening Referering (CSR). حتى الآن لم تكن هناك مشكلات تقريبا باستثناء عدم وجود وثائق أو عدم وجود أمثلة متقدمة.

نية:

أريد تخصيص نموذج جديد وأيضا أشكال أخرى (وليس الحقول وعدم طرق العرض، ولكن النماذج!) التي يتم تقديمها في ListFormWebPart (وليس DataViewWebPart) حتى أتمكن من تقديم الحقول بأي طريقة أريدها، على سبيل المثال، إضافة علامات تبويب تغيير التخطيط، وجعل عدة أعمدة وما إلى ذلك. أريد أيضا استخدام قوالب حقل JSlink المكتوبة بالفعل، لذلك فإن تقديم الخادم و XSLT ليس هو الطريقة التي أبحث عنها.

إذا كنت أستخدم وضع Render CSR القياسي، فلا يمكنني تجاوز القيم.

لقطة شاشة وضع التجمع CSR يمكنني استخدامها من إعدادات WebPart

المشكلة:

مباشرة بعد تشغيل وضع Render مخصص CSR (قبل إضافة أي تخصيصات)، ويبلغ WebPart عناصر التحكم في إدخال الإدخال الحقلي عن هذه الملصقات الحقلية وجدول النموذج نفسه.

screenshot من كيفية تقديم النموذج في وضع "جديد" " loading="lazy" fetchpriority="high"> </ p>

<p> <img src="https://i.stack.imgur.com/6v8j9.png" alt=

هل كانت مفيدة؟

المحلول

It seems that the Custom mode was not really tested by MS. I've been digging into the Custom mode for several days, and I actually found a workaround, although I don't think it really pays off to use it.

You can find example of using this workaround to create a tabbed list form on CodePlex:

Here is the screenshot of the resulting form:

enter image description here

The main problem is that you have to employ a rather big amount of code to make it work. And even then, it doesn't work perfectly. I had to apply a rather ugly hotfix to recover Modified and Created info. And also using this method, you have to generate field labels manually.

Some advices of how you can change form layout in Standard mode can be found in this article (see "Example: manipulating form layout"):

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top