Get all properties and form items from a page

Kenny Deblaere asked on May 6, 2016 12:15

Hello

I've been looking to get all properties and form items from a page. This is my code, but I can't find anything from those properties or form items.

TreeProvider tree = new TreeProvider();
var document = tree.SelectSingleDocument(1052);

Is there a solution to get the elements from the page?

Correct Answer

Anton Grekhovodov answered on May 6, 2016 12:33

Hi Kenny,

You can get all properties names from document.ColumnNames property, if you want to get values you can use document["columnName"] collection.

What do you mean when you said form item? Is it a webpart?

1 votesVote for this answer Unmark Correct answer

Recent Answers


Kenny Deblaere answered on May 6, 2016 12:38

Thank you Anton

This works. Form is an extra tab in my pages, where the user/developer can enter their properties.

Kind regards

Kenny

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on May 6, 2016 12:44

Accessing form fields would be same as any other. They should have the columnname that you gave them in the backend while creating the form setup.

Thanks, Chetan

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.