You are viewing limited content. For full access, please sign in.

Question

Question

Choose columns via SDK

asked on June 15, 2016

We are using the Laserfiche.RepositoryAccess SDK to generate thousands of folders within the repository.  For every folder generated I want to be able to specify the columns that will be displayed for all users.  Is this possible?

  • We are using Laserfiche v10.1
  • We use WebAccess
  • For all users, the "Browser Columns" option is set to "Remember for each folder" 

 

Any solution is acceptable but I would prefer to do it through the SDK so I can pick the columns at the same time I create the folder.

0 0

Replies

replied on June 15, 2016

To do this programmatically you will need to manipulate the column display attributes on the Everyone group. The [XmlColumnDisplay]Data attribute contains an xml document that describes the column layout for each folder. If you set it on the Everyone group, users will grab the defaults for each folder from there. See my comment in this post for details on the xml format. You can also set the columns in the LF Client or WA and view your user attributes in the admin console to get an idea of how the xml is formatted.

When a new folder is created, you will retrieve the xml from the Everyone group, modify it to add the column layout for the new folder, and save it back to the Everyone group attributes.

0 0
replied on June 16, 2016

I read your response in the other discussions.  This seems really dangerous because if you make a mistake it could really screw up the display. 

 

Also, do you have to manually split the XML if it is larger than 1500 characters or will the SDK automatically split it for you?

0 0
replied on June 16, 2016

You need to split the XML yourself, otherwise the attempt to save the xml will fail with an 'out of range' type error.

0 0
replied on June 16, 2016

Is there a place I can get a list of column names that correlate with the "ColCode" values when the type is "System"? 

Is there any other types other than "System" and "Field"?  Those are the only two I could find.

0 0
replied on June 16, 2016

The best way is to just add all of the columns in the client and see what they save as, this is not something we have publicaly documented.  The third type is "RecycleBin" for recycle bin listings.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.