Web View

This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0

The Web View element allows the end user to open a web page instantly from an app only by tapping the link. It is a quick web view that provides the limited browsing functionalities as a sub-process of the app.

Usage

When to Use
Use the web view to:
–> Display rich content instantly.
–> Display general and public content that does not pose security risk.
–> Display information without requirement of web browser.

–> Display information that is independent of the application version (For example:- IOS, Android, etc)

Web View Configuration

The “Web View” element has the following properties:

  • UI Cnfiguration
  • Data Configuration

UI and Data Configuration

For the “Web View” element, you can configure the following properties:

TabProperty NameDescriptionMandatoryNew Default ValueVisibility Rule
BasicReference NameSpecifies a unique name of the element. At the application level, an element is identified and managed by the reference name.YesWebView_
XXXX
Basic URLIn this box, enter the URL of the web view. The application will access this URL to open the related application page in the web view element.

You can also define query parameters with the URL string.
No{{ fx }}
BasicCallbackIn this box, enter the callback function. It enables the interaction to fetch the data from the external application.No
BasicSuccess URLIn this box, enter a URL string. The app displays the content related to this URL after a specific task performs the related function successfully in the web view. No{{ fx }}
BasicFailure URLIn this box, enter a URL string. The app displays the content related to this URL after a specific task fails to perform the related function in the web view.No{{ fx }}
BasicOutput LocationIn this box, select an entity or element. The selected entity/element serves as a storage location. The callback function fetches the data from the external application and then stores it in the configured output location.No{{ fx }}
BasicQuery ParameterThis feature remains active if you do not add query parameters in the URL box. When you append query parameters to the URL in the URL box, this feature becomes inactive.

It allows you to define the query parameters in the form of a key-value pair.

To define the query parameter:
a. Click Add, and a Query Parameter dialog box opens.
b. In the Query Parameter dialog box, in the Key box, enter a key (for example:- Name).
c. In the Value box, enter the key’s value (for example:- abc).
d. To define other query parameters, click Add More, and then perform steps b and c.
No
BasicButton BarClick this check box to make a button bar available in the app browser. The button bar allows you to go to the previous or next page in the web view.NoClear Check box
BasicVisibleIf you click to select this check box, the Web View element becomes visible on the screen.NoSelected
BasicBusiness RuleClick this list and then select a pre-defined business rule that will determine the element’s visibility. If the user’s action satisfies the condition in the business rule, the application will display or hide the element.

To define the business rule, access the Business Rule Manager module.
No
BasicEnableIf you click to select this check box, the element becomes active on the screen. You can perform the function on the active element.NoSelected
BasicBusiness RuleClick this list and then select a business rule to make the element active or inactive. If the user’s action satisfies the condition in the business rule, the application will make the element active or inactive in the application.

To define the business rule, access the Business Rule Manager module.
UI PropertiesStylesAllows you to select a specific style for the element from the list of pre-defined styles. The vDesigner module offers pre-defined styles that you can apply to the element.NoDefault
UI PropertiesMargin
Allows you to define a margin around each side of the element. It provides four different boxes to define the margin outside the right, left, top, and bottom borders of the element.
No4
UI PropertiesElement’s AlignmentThis property contains three tabs. You can use these tabs as follows:
1. Left:- By default, this tab is selected. It aligns the element to the left of the page.
2. Center:- If you select this tab, it aligns the element at the center of the page.
3. Right:- If you select this tab, it aligns the element to the right of the page.
NoLeft
UI Properties-
Shape and
Decoration
TypeUnder the Shape and Decoration section, this property has the two following options:

Autofill:- If you select this option, the element will occupy the available space of the parent layout.

Manual:- If you select this option, you can define a specific size of the element.
NoAutofill
UI Properties-
Shape and
Decoration
Width ValueIn this box, enter the width of the element in the pixels unit or percentage unit.No
UI Properties-
Shape and
Decoration
Height ValueIn this box, enter the height of the element in the pixel unit.No300
UI Properties-
Shape and
Decoration
XAllows you to move the element along the X-axis; when the value increases, the element moves from left to right.NoCurrent X
axis co-ordinates
(Inactive State)
UI Properties-
Shape and
Decoration
YAllows you to move the element along the Y-axis; when the value increases, the element moves from top to bottom.No
Current 
Y
axis co-ordinates (Inactive state)

Data Configuration

TabProperty NameDescriptionMandatoryNew Default ValueVisibility Rule
Data PropertiesJS DisabledIf you click to select this check box, the java script feature becomes unavailable in the Web View element.

By default, you see this check box selected, which makes the web view secure. Also, turning this feature inactive blocks malicious code that can barge into the user’s privacy and track cookies.
NoSelected
Was this article helpful?
YesNo