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

Question

Question

Web Access iframe in Forms

asked on November 23, 2016

Hello, 

In one of our Forms processes, users open a task and are provided links to Web Access so they can review files prior to uploading revisions. The URLs are supplied by Workflow, which starts the Forms process and assigns the user task.

In the Forms approval page, where the assigned task displays, an iframe displays the initial form as well as Web Access once the link is clicked. While the iframe that displays the initial form renders at 100% height, when Web Access loads, the iframe height reloads at 139px, but renders on the page at the min-height value of 300px. I can't for the life of me figure out where to change this value -- I've tried a number of things -- so before I get to much further, I hope someone here can point me in the right direction. 

Thanks in advance!

Jesse

0 0

Replies

replied on November 23, 2016 Show version history

Sample iFrame code that specifies Width and Height.

Width and\or Height can be specified as a % or as a px amount.

<iframe id="myframe" src="http://localhost/laserfiche" width="100%" height="600px"></iframe>

Hope this helps

0 0
replied on November 24, 2016

Care to share how you are getting the iframe to load the WebLink URL on page load?

0 0
replied on November 24, 2016

Hi Doug

I'm using Forms V10.1.xx, using LF Workflow I create the Web URL and then pass it a Field I have hidden in the form, I use that fields variable in my iframe code, sample below

<iframe id="myframe" src="{/dataset/InvFrame}" width="100%" height="600px"></iframe>

0 0
replied on December 20, 2016 Show version history

(Sorry for the delay, other fires to put out...)

In our case, the iframe is generated by Forms, so as far as I can tell, I don't have such direct control over its parameters.

See the attached screenshots, which may help to explain what I'm seeing.

When a user opens a task from Forms, a new Approval view window opens to the page displayed on the first screenshot, "iframeForms.jpg". They access the page in the second image by clicking on one of the links at the top of the page, e.g. "Plans Folder".  

Everything below the header is in an iframe. As seen in the first screenshot, Forms renders at 100% height, whereas in the second, Web Access renders at the min-height value of 300px (in the generated HTML it is actually written as "height:139px".

Any ideas?

iframeForms.jpg
iframeWebaccess.jpg
iframeForms.jpg (554.71 KB)
0 0
replied on December 20, 2016

Can you download the actual form.xml? You may have to change the file type to .txt from .xml to be able to attach it.

0 0
replied on December 22, 2016

Here is the downloaded xml, hadn't thought to look there, although nothing immediately jumped out at me.

Thanks

0 0
replied on December 20, 2016

Hi Jesse,

I can actually reproduce some version of this. I'll follow up with the Forms team about it. I'm not entirely sure why this occurs but my rough high-level working theory for now is that the height of the iframe is dependent somehow on the returned content, and page reloads within the frame (such as when authentication occurs for Web Access) play with it in unexpected ways.

Is it necessary that Web Access open inside the approval tab? If not then in the custom HTML where you set up the links in this form, add the target attribute to the <a> element, with the value "_blank", for example:

<a target="_blank" href="https://myWebServer.myDomain.com/laserfiche?queryPathFromWorkflow">My Link Text</a>

This will cause Web Access to be opened in a new window/tab, rather than in the frame. You could also use "_top" to open it in the full window as opposed to just the iframe, but then you'd navigate away from the user task which is probably less desirable.

0 0
replied on December 27, 2016

Adding target="_blank", is the solution we will likely end up using if we can't fix it. While this does solve the immediate problem, we'd still prefer to keep Web Access in the iframe if possible. The primary users of the system will be working exclusively in Forms otherwise, and we want to keep it as simple as possible, so users won't need to login again, open extra windows or tabs, etc.

So, not a big deal, but if you find a solution, we'd be very appreciative.

Thanks

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

Sign in to reply to this post.