Skip to content

Functional Configuration

Alexandre Blanchet edited this page Mar 24, 2015 · 13 revisions

Top Buttons

<?xml version="1.0" encoding="UTF-8"?>  
    <buttons>
        <Button>
            <erase>true</erase>
            <designation>Bouton1</designation> 
            <function>function_clic_btnX</function>
        </Button> 
        <Button>
            <designation>Afficheur1</designation> 
            <supercontext>data_name</supercontext>
        </Button>
   </buttons>
  • Tags Glossary
  • erase : bool -> Hides the button if it is unavailable ( false by default)
  • designation : text -> Contains a text to display for the current process . ( empty by default) Use </br> to add a new text line
  • function : string -> Associates button to process defined in Functions.When the button is clicked, the process is launched
  • supercontext : string -> variable of the supercontext. This variable can be associated with data got back in the treatments of the consumers or data associated with a peripheral for the data of type measure

Bottom Buttons

<?xml version="1.0" encoding="UTF-8"?>
<buttons>
  <Button>
    <designation>VALID</designation>
    <function>VALID</function>
  </Button>
  <Button>
    <designation>CORRECT</designation>
    <function>CORRECT</function>
  </Button>
  <Button>
    <designation>CANCEL</designation>
    <function>CANCEL</function>
  </Button>
  <Button>
    <designation>SWITCH</designation>
    <function>SWITCH</function>
  </Button>
  <Button>
    <designation>BEFORE</designation>
    <function>BEFORE</function>
  </Button>
  <Button>
    <designation>AFTER</designation>
    <function>AFTER</function>
  </Button>

  <Button>
   <designation>NONE</designation>
   <function>NONE</function>
  </Button>

Functions

<functions>
  <process1> 
    <data1> 
      <instruction>Effectuez votre saisie</instruction> 
    </data1>
    <ack/> 
   </process1>
   ...
  • Tags Glossary
  • process : have to correspond to identifiers defined in button_xml
  • data : data model defined in das_data_model table ( ex: persoin, persoout)
  • instruction : contains a information visible in the top panel when the process is displayed
  • ack : allows the sending of process info( name, workstation) to network to execute process
<process2> 
    <data3> 
      <filter>data2</filter>
      <instruction>Sélectionnez les ordres de production concernés</instruction>
      <loop name="Terminer" type="choice" nb="0">0</loop>
    </data3> 
    <clean supercontext="superdata2"/>
    <ack/> 
</process2>
  • Tags Glossary
    • filter :
    • loop : loop allows to define a multiple acquisition of data. If this tag equals 0, the data acquisition number will be unlimited. If it is superior, the number of acquisition will be equal to this value.
      • type "select" : fills a list with toggle (activation/deactivation of choice).
      • type "choice" : fills a accumulated list.
      • type "count" : idem "choice" an tests limited values of quantity.
    • clean : drop the value for specify key in the supercontext
<entree disable="(persoout,!=,null)" material="psc" background="1" functionloop="0" priority="1">
    <persoout supercontext="persoout">
        <instruction>Sélectionnez la personne concernée</instruction>
    </persoout>
    <store model="groups" supercontext="_groups" type="erase"/>
    <ack/>
</entree>
  • Tags Glossary
    • functionloop : specifies if the function is in loop mode or not. 1 to activate the loop mode and 0 to deactivate the loop mode
    • priority: value 1: there is a thrown event on peripheral, the function will run first and foremost.
    • background: value 1: the background mode is activated.
    • material: has as a value the code of the material attached to the background function.