question

nellie-2760 avatar image
0 Votes"
nellie-2760 asked TongZhangMSFT-7548 commented

Sharepoint 2019 CRUD FORMS

Really confused on development of new sp2019.
I have been doing sp development using Visual Studio to create fields.xml , contentype.xml , crud forms , list definition.xml for views using caml, then I create an event receiver to listen to the lists for workflow.I use sp server-side API to manipulate data
Now with the new sp2019 can i still do this and its acceptable in today modern design e.g spfx ??
But this spfx is for web parts but I want to create an full app with views,custom forms.
I cannot use PowerApps or sharepoint designer

Thanks

dotnet-csharpsharepoint-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered nellie-2760 commented

there are two modes for creating a Sharepoint 2019 applications (crud forms)

1) external site that uses the Sharepoint rest api. You can write in any language you want, and the server code uses the Sharepoint rest (client) api to do updates. You add a link to your site on a Sharepoint page. Using oauth you can share authentication.

2) a Sharepoint web part. this is a html/javascript component hosted by an actual Sharepoint page. this the replacement for old Sharepoint server applications. there is a js client library that matches the old server api features (access lists, etc). these are developed with node and the IDE of choice.

https://docs.microsoft.com/en-us/visualstudio/sharepoint/how-to-create-a-sharepoint-web-part?view=vs-2022

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

wow !!!
So I cant use xml to create list definitions , views ?
I cant have a caml view which renders title hyperlink to point to crud form ?
and I cant use serverside API ?
no wsp ?
this is on-premise away from the cloud.

0 Votes 0 ·
TongZhangMSFT-7548 avatar image
0 Votes"
TongZhangMSFT-7548 answered TongZhangMSFT-7548 commented

Hi @nellie-2760,
Per my research and test, you can do CURD in SharePoint 2019 using REST API.

Here are some documents about how to work with the REST API, you can refer to. Hope it can help you. Thank you for your understanding and support.

Reference:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom
https://www.spguides.com/sharepoint-rest-api/

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @nellie-2760,
I am checking to see if the problem has been resolved .If you have any questions you can feel free to contact me.

0 Votes 0 ·
nellie-2760 avatar image
0 Votes"
nellie-2760 answered

hi yes but I have to generate views but what I want is to create the following
- fields.xml
- Lists with views
- when a user goes into a view and clicks on title it will take me to a custom form
- if you can do it on spd and power apps surely .net can do this
can I still use XML , create forms in _layouts , create server pages like the good old days ????


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered Bruce-SqlWork edited

Modern sharepoint lists do not support custom server pages. if the Sharepoint admin allows classic mode, then you can use the classic features you know, but only for classic mode pages.

you might want to look at the starter kit for devs to see what is doable with the modern lists

https://github.com/pnp/sp-starter-kit

there is a simple form example:

https://github.com/pnp/sp-starter-kit/blob/master/documentation/components/ext-collab-discussnow.md

note: the start kit examples use the official Office UI Fabric React components for the UI

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/use-fabric-react-components

note 2: the power apps UI is also written in react.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.