Вопрос

I've created a table where users can add/remove rows containing past employment history Code here I'm using a Content Editor Webpart which points to an html file that contains both the code and html.

When I add a row and enter data, that data is lost when I leave the page and return. I have a second Content Editor Web Part and I've added text to it, and this text is retained when I leave and return to the page.

How can I "save" the rows and data in the fist CEW?

enter image description here

Это было полезно?

Решение

You can't persist any dynamic data in CEWP.

Instead, you should base your solution on a SharePoint list and store all data internally in a list. The code in CEWP will show data from that list, as well as store\update\delete items.

Actually, you should think about your solution architecture once again because probably you don't event need CEWP. You can add items directly to the list and use list views instead.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top