Examples of restrictions on the data that users see

You control the data that users see by restricting the data that is returned from the database. For example, you can restrict the person groups that users see when selecting an owner in the Change application.

Example: Restricting the person groups that users see when selecting an owner in the Change application

In this example, you set the allowqualifiedrestriction property into the XML for the tab in the window:

<dialog id="owner" label="Select Owner">
   <tabgroup id="owner_labor">

	  <tab id="owner_labor_group" label="Person Groups" mboname="persongroup" allowqualifiedrestriction="true” 
beanclass="psdi.webclient.beans.common.OwnerGroupBean">

Example: Restricting when users see the ’View Work Details’ window in the Assets application

In this example, you set the allowqualifiedrestriction property into the XML for the tab in the table in the window:

   <dialog id="wopms_byasset" label="View Work Details" relationship="VIEWWOPMS" 
  beanclass="psdi.webclient.beans.common.ViewWOPMsBeanAsset" width="975" height="400">

    <section id="viewWOandPMs_ViewWOandPMsFieldGridAsset" border="true">
      <multiparttextbox id="viewWOandPMs_ViewWOandPMsFieldGrid_2" dataattribute="assetnum" inputmode="readonly" 
  descdataattribute="asset.description" longdescinputmode="readonly" descinputmode="readonly" />
      <checkbox id="viewWOandPMs_ViewWOandPMsFieldGrid_3a" dataattribute="showchildren" />
          <checkbox id="viewWOandPMs_ViewWOandPMsFieldGrid_3b" dataattribute="showparents" />

   <buttongroup id="viewWOandPMs_ViewWOandPMsFieldGridAsset99">
    <pushbutton id="viewWOandPMs_ViewWOandPMsFieldGridAsset98" label="Refresh" default="true" mxevent="doRefresh"
targetid="wopms_byasset"/>
   </buttongroup>
   </section>

   <tabgroup id="viewWOandPMs_viewWOandPMsAsset">

   <tab id="viewWOandPMs_viewWOandPMsAsset_ViewWO_tab" default="true" label="Work">
     <table id="viewWOandPMs_viewWOandPMsAsset_ViewWO" label="Work" relationship="VIEWWORK_BYASSET" 
allowqualifiedrestriction="true” beanclass="psdi.webclient.beans.common.ViewWOByAssetBean" selectmode="multiple">

        <defaultvalue id="viewwoasset_historyflag_default" dataattribute="historyflag" value="N" 
defaulttype="query" />
        <defaultvalue id="viewwoasset_istask_default" dataattribute="istask" value="N" defaulttype="query" />

Example: Restricting the classifications that users see when classifying a service request in the Service Request application

In this example, you set the allowqualifiedrestriction property into the XML for the table in the tree in the window:

 <dialog id="associateClassification" label="Classify">

  <tree mboname="CLASSSTRUCTURE" allowqualifiedrestriction="true” id="associateClassification_tree" 
beanclass="psdi.webclient.beans.assetcat.AssociateSpecBean" width="600" height="250" openfirstlevel="false"
maxchildren="1000">