Skip to main content
Eptura Knowledge Center

Define a datasource restriction

<div id="mc-main-content" role="main"> <h1> Define a datasource restriction </h1> <p> <span class="glosstext"> Technologies &gt; User Interface Add-Ins &gt; Parts for Reports &gt; Report with Parsed Restriction </span> </p> <p> Restrictions work as filters, allowing the user to see only records that make sense in each specific situation. Restrictions can be defined directly in the AXVW, as shown below: </p> <p> </p> <p class="CodeBox"> &lt;dataSource id=&quot;employeeDs&quot;&gt; <br /> &lt;table name=&quot;em&quot; role=&quot;main&quot;/&gt; <br /> &lt;field name=&quot;em_id&quot;/&gt; <b> <br /> &lt;restriction type=&quot;parsed&quot;&gt; <br /> &lt;clause table=&quot;em&quot; name=&quot;em_std&quot; op=&quot;=&quot; value=&quot;TECH&quot;/&gt; <br /> &lt;/restriction&gt; </b> <br /> &lt;/dataSource&gt; <code style="font-family: monospace;"> </code> </p> <p> A restriction may be given type <code class="codeColor"> parsed </code> , shown above, or <code class="codeColor"> sql </code> : </p> <p class="CodeBox"> &lt;restriction type=&quot;sql&quot; sql=&quot;NOT(project.status LIKE 'Approved%')&quot;/&gt; </p> <p> Restrictions may also be applied dynamically from one view to another. For example, the user might set the search criteria in the console window, and click on the Search button – the console window will apply selected values as a restriction to the target report view. </p> <p> Additional restrictions can also be assigned to specific users, and applied to any view that the user navigates to. These restrictions are called VPA (Virtual Private Archibus) restrictions and are defined by the Database Manager. </p> <p> Restrictions can filter out all available records, in which case the form view will display empty values, and the report view will display no records. <br /> </p> <p class="Note"> View: <a href="http://localhost:8080/archibus/schema/ab-products/solutions/parts/grid/ab-ex-report-grid-rm-restriction.axvw" target="_blank"> http://localhost:8080/archibus/schema/ab-products/solutions/parts/grid/ab-ex-report-grid-rm-restriction.axvw </a> </p> </div>