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

Question

Question

Web Access Bug: Folder Pane always comes back upon page reload, even when turned off

asked on March 3, 2017 Show version history

We have an implementation where we are embedding Web Access 10.2 into a Laserfiche form as an iframe. The iframe source will point to a specific Laserfiche folder, the URL for which is constructed dynamically when the form loads based on a form field value (which is set by Workflow).

In order to maximize screen real-estate, we want to display ONLY the contents pane.

We went to Display Options and turned off both the Details Pane and the Folder Pane. This works temporarily, except when the page is reloaded the Folder Pane comes back.

For these users, we want to permanently turn off the Folder Pane. They won't be doing any sort of repository navigation. They just need to look at a list of documents inside a given folder, and open those documents to view ONLY the images (no thumbnails or metadata).

Related to this, is there a way to remove the top navbar as well? We don't want these users to perform any searches or accidentally log themselves off from the top right corner. And again, this would help with maximizing screen real-estate when viewing the documents inside an iframe.

The use case for this is very simple and also extremely common: initial form submitter will upload a bunch of files to a starting form, and an approver needs to then view them during the approval step. However, we don't want them to have to download each file to be able to view it. That's why we want to leverage Web Access (along with LFDS's single sign-on ability). So we're trying to "dumb down" the Web Access iframe as much as possible to minimize confusion and possibility of user error.

0 0

Replies

replied on March 3, 2017

Regarding the navbar and breadcrumbs, we ended up using this nasty hack inside the form:

$("iframe").load(function() {
    $("iframe").contents().find(".entryBrowserToolbar").remove();
    $("iframe").contents().find(".navbar").remove();
});

Obviously this is risky, since it relies on the markup of Web Access, which can change from version to version. But, for now, it gets the job done.

We tried the same approach for the folder pane. Unfortunately, the styling of the panes seem tightly intertwined. We ended up setting the width of the iframe to 800px, which made the folder pane go away since it's responsive. However, this has the ugly side effect of adding a horizontal scrollbar to the iframe (yuck!) but it will have to do for now.

0 0
replied on March 6, 2017

Hi Ege, 

 

We can reproduce the issue about the folder pane not remembering it's last state and reopening on page load. We filed a bug report for this (SCR154115). The fix is currently targeted for the Laserfiche 10.2.1 release, due out in the next couple months. 

 

As for the contents pane only iframe case, the feature that comes closest to accomplishing this out of the box is the 'mode=embed' query parameter. The mode query parameter forces Web Client into one of it's responsive UIs (embed mode in this case). Embed mode hides the navbar, but not the toolbar, and was specifically designed with iframes in mind. It does't accomplish exactly what you want, but I figured I'd mention it for reference. 

 

I'll bring the use case for a 'contents pane only' iframe view back to the team and we'll consider adding it in a future release. 

 

 

 

0 0
replied on July 20, 2018

Ryan,

 

Did SCR154115 ever get fixed?  I'm have the same bug with the "Details Pane" not remembering and displaying each time I try to use an iFrame and embed mode doesnt' do anything.

 

(https://answers.laserfiche.com/questions/143274/Is-there-anyway-to-NOT-display-the-details-panes-Metadata-Fields-etc-at-all-and-to-make-it-a-default)


Bryce

0 0
replied on July 23, 2018

Hi Bryce, 

 

Yes, this bug was fixed and released with Laserfiche Web Client 10.2.1. Any subsequent version should also have this fix (for the folder pane). 

 

I can't reproduce the issue you described regarding the detail pane. What version of Web Client are you using?

0 0
replied on July 23, 2018

Ryan,

 

10.3.1.51 and I'll tell you I can get it to work if the Entry ID is static. If I use a dynamic value that's when I'm noticing the Details Pane not remembering the previous selection and reverting to always displayed.

 

My iFrame's form configuration:

<iframe src="URL?db=LF NAME&amp;&amp;id={/dataset/LaserficheEntryID}&amp;?mode=embed" style="width: 700px; height: 700px;"></iframe>

 

And it hits this bug regardless if I use embed mode or not.

0 0
replied on April 2, 2019

Hi Bryce,

Did you ever find a solution for this issue?

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

Sign in to reply to this post.