Red Hat DIRECTORY SERVER 7.1 - GATEWAY CUSTOMIZATION Informations techniques Page 126

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 186
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 125
Identity Manager Workflows, Forms, and Views
Page 126 Identity Manager 7.1 Update 1 Release Notes
1. Use the Identity Manager IDE to open the form to which you want to add the warning.
2. Add the
<Property name='messages'>
to the main EditForm or HtmlPage display class.
3. Add the
<defvar name='msgList'>
code block from the following sample code.
4. Substitute the message key that identifies the message text to be displayed in the Alert box
in the code sample string:
<
message name='UI_USER_REQUESTS_ACCOUNTID_NOT_FOUND_ALERT_VALUE
>
5. Save and close the file.
NOTE Although this example illustrates how to insert a Warning
ErrorMessage
object into a form, you can assign a different severity level.
Code Example
<Display class='EditForm'>
<Property name='componentTableWidth' value='100%'/>
<Property name='rowPolarity' value='false'/>
<Property name='requiredMarkerLocation' value='left'/>
<Property name='messages'>
<ref>msgList</ref>
</Property>
</Display>
<defvar name='msgList'>
<cond>
<and>
<notnull>
<ref>username</ref>
</notnull>
<isnull>
<ref>userview</ref>
</isnull>
</and>
<list>
<new class='com.waveset.msgcat.ErrorMessage'>
<invoke class='com.waveset.msgcat.Severity' name='fromString'>
<s>warning</s>
</invoke>
<message name='UI_USER_REQUESTS_ACCOUNTID_NOT_FOUND_ALERT_VALUE'>
<ref>username</ref>
</message>
</new>
</list>
</cond>
</defvar>
Vue de la page 125
1 2 ... 121 122 123 124 125 126 127 128 129 130 131 ... 185 186

Commentaires sur ces manuels

Pas de commentaire