Search these areas:
Support Forums
Product Info

-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Data Analysis
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-New Responsive UI Module

DataWeb Help
Support Forums
Script Library
Knowledge Base

Home > Support


How To: Use script to determine the current mode of a dataregion
Article TypeHow To
TitleUse script to determine the current mode of a dataregion
<i>How can I determine the current displaymode (grid,details,etc) of a data region?</i><br />
<br />
Set the displaymode of an <a href="">ws:htmlblock</a>:<br />
<br />
Script inside of an ws:htmlblock is only executed when that ws:htmlblock is rendered. If you'd like to execute script only when your dataregion is in details mode, for example, enclose that script in an ws:htmlblock that displays only in details mode.<br />
<br />
The following view-code declares the variable "mode" and assigns to it a value according to its parent-dataregion's mode.<br />
<br />
<span class="smallCode"><pre>
&lt;!--#var mode="details";-->
&lt;ws:htmlblock displaymodes="grid">
&lt;ws:htmlblock displaymodes="update">
&lt;ws:htmlblock displaymodes="insert">
Last ReviewedFebruary 20, 2015 14:07:43

Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us