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

Question

Question

Column Display settings for Everyone

asked on July 6, 2016

I want to setup Laserfiche so it only shows the Name by default for every folder for everyone.  And then there is one other folder that should show Name and File Name (a custom field).

 

Using the following links...Choose-columns-via-SDK and custom columns for subfolders I came up with the following XML to add to the Everyone group.  I added the attribute [xmlColumnDisplay]Data and put  the following XML into the value.

<?xml version="1.0" encoding="utf-16"?>
<columndisplay generatedby="Laserfiche Web Access 10">
  <layouts>
    <layout id="1">
      <columns>
        <column Width="229" ColCode="N" Type="System" />
      </columns>
    </layout>
	<layout id="2">
		<columns>
			<column Width="107" ColCode="N" Type="System" />
			<column Width="455" Field="File Name" ColCode="File Name" Type="Field" />
		</columns>
	</layout>
  </layouts>
  <allfolders layoutid="1" />
  <folders>
	<folder id="1961" layoutid="2" />
  </folders>
</columndisplay>

I am getting some behavior I wasn't expecting.

  • Is there any reason the above XML is invalid?  This seems to work for some users but not for other users.  I am guessing that there is some conflict with the xmlColumnDisplay settings for the specific user but I am not sure how to identify the conflict (or even if there is one). 
  • How does Web Access determine whether the columns the user is picking goes into the <allfolders> node vs. the <folders><folder id="" layoutid="" /></folders> node.  It seems to be inconsistent, sometimes when the user picks columns from the UI it stores those settings in the <allfolders> node while other times it saves it into the <folders> node?
  • How unique does the layout id need to be?  In other words, if I create a layout in the Everyone group with an ID of "1" can I also create a layout for a specific user with an ID of "1"?  Also, can I create a layout  with an ID of "1" for multiple users (other than Everyone group)?

 

0 0

Answer

SELECTED ANSWER
replied on July 7, 2016

Yes, "allfolders" is only used when they are set to 'the same for all folders'. Try using the same layout for 'allfolders' as for the root folder to handle both cases:

<?xml version="1.0" encoding="utf-16"?>
<columndisplay>
  <layouts>
    <layout id="1">
      <columns>
        <column Width="229" ColCode="N" Type="System" />
      </columns>
    </layout>
  </layouts>
  <allfolders layoutid="1" />
  <folders>
	<folder id="1" layoutid="1" />
  </folders>
</columndisplay>

 

1 0

Replies

replied on July 6, 2016

The xml looks valid, and it works for me when I set it on my Everyone group attributes. I think the problem you are seeing is because your users already have columns saved in their user attributes.

The "allfolders" layout is only used if the user has their column display set to "Applied to all folders". Otherwise Client/Web Access will look up the folder tree until they find a <folder> node that has a layout. 

When determining which layout to load, the user's XmlColumnDisplay in their own attributes will take precedence over what is in the Everyone group.  If they have a layout remembered on a folder, but that folder also has a layout in the Everyone group, the Everyone group layout will be ignored.

The layout id only needs to be unique within the xml document.

2 0
replied on July 6, 2016

So does the "allfolders" node only apply if the user has their settings set to "The same for all folders"?

I have changed my setting to "Remembers for each folder".   Now for folders that I have not set a specific layout it defaults to Name, Creation Date, Last Modified, Pages and Template.  I was hoping that I could change this default to only show "Name".  Is there a way to do this?

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

Sign in to reply to this post.