Showing posts with label UI. Show all posts
Showing posts with label UI. Show all posts

Tuesday, July 22, 2014

How to Enable The Submit Button For Custom UDFs in OIM11gR2

Follow the below steps to enable the submit button:
  • Export your sandbox that you have used to add the UDFs on Modify User Form.
  • Extract the Sandbox zip file.
  • Search for userModifyForm.jsff.xml and open it in edit mode. 
  • For each UDF for which you want submit button to be enabled, add below properties in the ADF tag, :
valueChangeListener="#{pageFlowScope.cartDetailStateBean.attributeValueChangedListener}" autoSubmit="true"

For example:

AS-IS
  
      http://xmlns.oracle.com/adf/faces/rich
" value="#{bindings.JobTitle__c.inputValue}" label="#{bindings.JobTitle__c.hints.label}" required="#{bindings.JobTitle__c.hints.mandatory}" columns="#{bindings.JobTitle__c.hints.displayWidth}" maximumLength="#{bindings.JobTitle__c.hints.precision}" shortDesc="#{bindings.JobTitle__c.hints.tooltip}" id="dtrt_dc_2235532621">
         http://java.sun.com/jsf/core
" binding="#{bindings.JobTitle__c.validator}"/>
     

    
TO-BE
  
      http://xmlns.oracle.com/adf/faces/rich

" value="#{bindings.JobTitle__c.inputValue}" label="#{bindings.JobTitle__c.hints.label}" required="#{bindings.JobTitle__c.hints.mandatory}" columns="#{bindings.JobTitle__c.hints.displayWidth}" maximumLength="#{bindings.JobTitle__c.hints.precision}" shortDesc="#{bindings.JobTitle__c.hints.tooltip}" valueChangeListener="#{pageFlowScope.cartDetailStateBean.attributeValueChangedListener}" autoSubmit="true" id="dtrt_dc_2235532621">
         http://java.sun.com/jsf/core
" binding="#{bindings.JobTitle__c.validator}"/>
     

  
  • Create the zip again. 
  • Import the sandbox and activate the sandbox to verify the change.
  • Once the change is verified, publish the sandbox.

Friday, April 4, 2014

Customizing the OIM 11g R2 UI

This is the first part of series of blogs on UI Customization where I will be updating the tricks I used to customize the OIM UI:

If you want to display the fullname or any other attribute instead of default User Login, follow below steps:

1. Create and activate a sandbox.

2. Click on the Customize link at the top of the screen. On the top left corner, click on  View Source in the newly appeared menu bar.



3. Click on the "xelsysadm" and click Edit.



4. Scroll down on the Component Properties window to get to "Text" property. Click on drop down arrow and choose "Expression Builder" as the option. Enter below:

#{oimcontext.currentUser['Display Name']}





Note: You can use any variable here like Employee Number, SSN, Common Name etc.

5. Click Test and then Apply to see the changes.


You can also keyword like "Welcome" or "Hello" like

Welcome #{oimcontext.currentUser['Display Name']}

in the expression builder.