Audience
  • Form Designers
Required Knowledge
  • Views
  • Controls

Introduction

The latest How To topics are available in the K2 Five User Guide or the K2 Cloud User Guide’s How to section.

The Content control is in essence an Inline Frame (iFrame) representing a nested browsing context, effectively embedding another View, Form, or website into the current View/Form. Documents and videos that are embedded in a website can also be used in the URL of the Content control. Each browsing context has its own session history and active document. The browsing context that contains the embedded content is called the parent browsing context. The top-level browsing context (which has no parent) is typically the browser window. The Content control can be used to insert content from another source, such as an advertisement, into a View/Form. Although an iFrame behaves like an inline image, it can be configured with its own scrollbar independent of the surrounding View/Form's scrollbar.

Implementation Details

In the following example we used the URL of a List View in the Content control.

Image

The URL of a View or a Form can be accessed in the Properties section on the Finish screen of the View or Form Designer.

Image

The List View will open as an embedded item in the Customer Item View at Runtime.

Image

Example Scenario

We will use an Item View with a Content control to show how the control can be used to display a website within a View. Follow the steps below to set up the scenario.

  1. Create an Item View with a Content control.
  2. Type the URL of the website in the Properties section of the control.
  3. Select the option to Show Preview in the Properties > General section. 
  4. The website loads in the Content control.
    Image
  5. Finish the View.
  6. When running the View, the website is displayed within the View and is accessible from within the View.
    Image