Retrieve content type column name in a WebPart

%3CLINGO-SUB%20id%3D%22lingo-sub-1024144%22%20slang%3D%22fr-FR%22%3ERetrieve%20content%20type%20column%20name%20in%20a%20WebPart%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1024144%22%20slang%3D%22fr-FR%22%3E%3CP%3EHello%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20my%20first%20experience%20in%20Sharepoint%20Online...%3C%2FP%3E%3CP%3EI%20first%20created%20a%20content%20type%20for%20billings.%20Then%20created%20a%20document%20library%20and%20finally%20created%20the%20association%20with%20the%20content%20type.%20So%20far%20so%20good.%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20i%20have%20to%20develop%20a%20form%20in%20a%20webpart.%20The%20form%20is%20generated%20based%20on%20the%20column%20names%20of%20the%20content%20type.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20several%20issues%3A%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3E%26nbsp%3BHow%20can%20i%20retrieve%20the%20column%20names%20from%20the%20content%20type%20used%20in%20a%20specific%20library%3C%2FLI%3E%3CLI%3EHow%20can%20I%20manage%20a%20form%20in%20webpart%3F%20I%20tried%20to%20paste%20a%20form%20and%20unfortunately%20the%20tag%20is%20removed.%20Rather%20annoying%20because%20i'm%20using%20JS%20to%20retrieve%20dynamically%20formElements.%20Anyway%2C%20if%20the%20form%20is%20generated%20dynamically%2C%20i%20should%20manage.%3C%2FLI%3E%3C%2FOL%3E%3CP%3EI'm%20rather%20stuck%20here%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1024144%22%20slang%3D%22fr-FR%22%3E%3CLINGO-LABEL%3EApp%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
New Contributor

Hello, 

Here is my first experience in Sharepoint Online...

I first created a content type for billings. Then created a document library and finally created the association with the content type. So far so good. 

Now i have to develop a form in a webpart. The form is generated based on the column names of the content type.

 

I have several issues : 

  1.  How can i retrieve the column names from the content type used in a specific library
  2. How can i manage a form in webpart ? I tried to paste a form and unfortunatelly the tag is removed. Rather annoying because i'm using JS to retrieve dynamically formElements. Anyway, if the form is generated dynamically, i should manage.

I'm rather stuck here

Thanks

 

0 Replies