Add boolean property to user details

I have created a km property with type "Boolean" and render "boolean" but UME card displays that property as text field.
Portal: EP7.0SP16
Does anybody know is it possible to render custom attribute(booleans) as checkbox?

Hi
You can add custom attributes for users in UME configuration.Separate each property with ;.
These custom property only supports string ,so you need to convert them explicitly in your code.
Regards

Similar Messages

  • Error when add new property to User Profile "General Information" portlet

    Portal 5.0.2 .NET 1.1
    The following error occurs when:
    1. Create new property (Everyone has select access)2. Edit "General Information" User Profile portlet and add the new property, then "Finish"
    <property name>: Current user is attempting to save an invalid property.
    Is there something that I am missing? Thanks Meredith

    Meredith,
    Don't forget to map the property to User objects in the Global Object Property Map. I suspect that this is the problem.
    jennifer

  • Extending user details: Label in user Profile

    Hello,
    I have followed the document "How to Extend User Details" to add custom properties to user details. However, although it is possible to add labels to the user details iView (which you can access from KM), it does not seem possible to add labels for these properties on the User Profile (which you access through Personalize->User Profile).
    I have checked <a href="https://www.sdn.sap.com/irj/sdn/thread?forumID=42&threadID=129068&messageID=1443674">this</a> post, and the answer refers to the User Details iView, not the User Profile maintenance.
    Regards,
    Martin

    Hello Anja,
    This is a nice surprise (I remember you from your visit here to SA Breweries).
    The labels display fine in the User Details iView, but in Personalise -> User Profile, only the field names show up, the way they have been defined, e.g. expertarea, as opposed to "Expert Area", just as in the screenshots in the How-To Guide. The entries save without a problem.
    In other words, the field labels show up just as you defined them in UM Configuration, but you have no ability to change them to proper descriptive texts (as you would with KM property labels).
    Regards,
    Martin

  • Update Request User Details with updateRegistrationUserDetails

    Hi,
    I have the following scenario: The Self-Registration form is defined with the fields First Name, Middle Name, Last Name, Manager Login. When the request is created, based on the Manager Login, the other user's attributes are set according to the Manager's Attributes. So when the manager goes to approve the request, most of the user information are already set. To update the User Details in the request, I can call the updateRegistrationUserDetails of Request API.
    Problem: I can not update the fields other than those defined in the FormMetadata.Xml. So I have to add the fields and set them as optional but I don't want to show non required fields to the end-user. I wish to have those attributes as not visible in the self-request form. Then I can update the information using the API.
    Question: How to add fields to the User Details of the request and not show them in the self-request form?
    Thanks,

    As I've said, I could not update the request fields that were not declared in the FormMetadata.xml. You can try set them as not visible but I am not sure the visibile attribute works for the SelfRegistration form. If it is not a problem, you can show the fields and set them as optional true. In my exaple, the SelfReg form has a manager employee code field.
    Create an entity adapter and assign it to the Request object, pre-insert.
    1) create two variables: requestKey, requestObjecAction, managerEmpCode (in my example)
    2) test if the request object action is Create Entity.
    3) call the method to update the request. below is my example:
         // Updates the request with the information of manager: Manager Login,
         // Location, Department and Organization
         public String updateRequestWithManagerInfo(long requestKey, String managerEmpCode) {
              String result = JavaTaskBase.EXECUTION_ERROR;
              logger.debug("******** Starting updateRequestWithManagerInfo *************");
              logger.debug("requestKey: " + requestKey);
              logger.debug("managerEmpCode: " + managerEmpCode);
              try {
                   HashMap<String, String> filter = new HashMap<String, String>();
                   filter.put(JavaTaskBase.USR_UDF_EMPLOYEE_ID, managerEmpCode);
                   String[] columns = new String[] { JavaTaskBase.USER_KEY_FIELD,
                             JavaTaskBase.USER_LOGIN_FIELD, JavaTaskBase.USR_UDF_LOCATION,
                             JavaTaskBase.USR_UDF_HR_DEPARTMENT,
                             JavaTaskBase.ORGANIZATION_ATTRIBUTE_NAME };
                   logger.debug("Querying User by EmpCode...");
                   // Update Request Attributes: requestKey, ManagerId
                   tcResultSet resultSet = this.getUserOperations().findUsersFiltered(filter, columns);
                   logger.debug("tcResultSet.getTotaRowCount(): "+ resultSet.getTotalRowCount());
                   resultSet.goToRow(0);
                   String organizationName = resultSet.getStringValue(JavaTaskBase.ORGANIZATION_ATTRIBUTE_NAME);
                   String managerLogin = resultSet.getStringValue(JavaTaskBase.USER_LOGIN_FIELD);
                   String managerLocation = resultSet.getStringValue(JavaTaskBase.USR_UDF_LOCATION);
                   String managerDepto = resultSet.getStringValue(JavaTaskBase.USR_UDF_HR_DEPARTMENT);
                   String managerKey = resultSet.getStringValue(JavaTaskBase.USER_KEY_FIELD);
                   logger.debug("Manager Organization: " + organizationName);
                   logger.debug("Manager Login: " + managerLogin);
                   logger.debug("Manager Location: " + managerLocation);
                   logger.debug("Manager Department: " + managerDepto);
                   logger.debug("Manager Key: " + managerKey);
                   // Prepares the information to update the request
                   HashMap<String, String> values = new HashMap<String, String>();
                   values.put(JavaTaskBase.ORGANIZATION_ATTRIBUTE_NAME, organizationName);
                   values.put(JavaTaskBase.USR_UDF_LOCATION, managerLocation);
                   values.put(JavaTaskBase.USR_UDF_HR_DEPARTMENT, managerDepto);
                   values.put(JavaTaskBase.USER_MANAGER_LOGIN, managerLogin);
                   logger.debug("Updating Request Info...");
                   // Updates the request
                   this.getRequestOperations().updateRegistrationUserDetails(
                             requestKey, values);
                   logger.debug("Request Updated Successfulfy.");
                   result = managerKey;
              } catch (Exception ex) {
                   logger.error("Error in updateRequestWithManagerInfo method", ex);
                   ex.printStackTrace();
                   result = JavaTaskBase.EXECUTION_ERROR;
              return result;
    thanks,
    Renato.

  • User Details iView - show an image as property

    Hi,
    I would like to add an image to the user details iView showing the gender of the person (e.g. male = blue icon, female = red icon).
    So the shown image must be depending on the users gender.
    Do you know if this is possible? Is it only a "simple" Layout render or something else?
    Showing icons should be possible I think (the collaboration visible status is also there). But how can I add own Icons representing a property?
    Would be great if you could tell me if this is possible and how.
    Thanks in advance.
    Stefan

    Hi Stefan,
    how do you add the text? As plain HTML? This would explain why it looks different from the rest of your text since plain HTML by default doesn't get the font style that is applied to other HTMLB elements.
    Three ways to style the text the way you want it:
    1) Use an HTMLB control which renders the font the way you want it (e.g. label)
    2) View the source code of your generated HTML. Find a text snippet which looks the way you want your text to look. Copy the CSS class and add it to your text for example with a span:
    <span class="classnameyoulookedup">Your Text</span>
    3) Add the styling you want directly inline to your text:
    <span style="font-size:...">Your text</span>
    I hope this helps,
    Esther

  • To add custom user attributes in portal user details

    Hi,
    I am looking at the possibility of adding custom user information attributes in User details of Portal User. By default there are few tabs provided ( general, account info, contact info, additional information.....). I am planning to have another extra tab (custom tab with some custom fields ) to be developed and accessible through external application. My data source would be AS database.
    Not necessary that the custom fields to be visible in the UI. but should be manipulated programatically.  
    Request inputs on feasibility and also the approach that could be followed.
    TIA,
    -Naresh

    Hi,
    Follow the link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/0316d50bbe025ce10000000a1553f7/frameset.htm
    This explains the process of adding the custom attributes in user admin.
    Thanks,
    Rajani

  • Add customized task to user screen for IdM 7.0

    The user screen in IdM 7.0 is a lot more different from the previous versions.
    A navigation bar is used for launching different tasks(workflows).
    I want to add a new user request task to MenuBar Requests or add a new task to the Launch Requests page. The old document/training mentioned adding customized task to End User Tasks is not working for Version 7.0 at all.
    Overall, my question is how I can add my customized workflow to /user screen?
    Thank you.

    Hi,
    Look to implement links to custom taskdefinitions from the End User Request Menu. Unfortunately there's no form/process mapping for this object at this time. Here's an example of a customisation on the End User Request Menu,
    <Form noDefaultButtons='true' objectLocationID='objectName=End+User+Request+Menu&isBegin=true&objectPath=0&objectType=UserForm'>
          <Display class='EditForm'>
            <Property name='title' value='UI_ENDUSER_REQUEST_LAUNCH_TITLE'/>
         <Property name='subTitle' value='UI_ENDUSER_REQUEST_LAUNCH_SUBTITLE'/>
          </Display>
          <Properties>
            <Property name='doNotRegenerateEndUserMenu'>
              <Boolean>false</Boolean>
            </Property>
          </Properties>
          <Field>
         <Display class='SectionHead'>
           <Property name='required'>
             <Boolean>false</Boolean>
           </Property>
           <Property name='title' value='Self-Service Options'/>
         </Display>
         <Field>
           <Display class='LinkForm'/>
           <Field>
             <Display class='Link'>
               <Property name='name' value='Request Application Access'/>
               <Property name='URL' value='user/processLaunch.jsp?id=Request+Application+Access'/>
               <Property name='arguments'>
              <map>
                <s>op_requestorOrg</s>
                <ref>waveset.organization</ref>
                <s>op_requestorFullname</s>
                <ref>accounts[Lighthouse].fullname</ref>
              </map>
               </Property>
             </Display>
           </Field>You also need to register the workflow in the End User Tasks configuration objects as follows:
    <Configuration id='#ID#Configuration:EndUserTasks' name='End User Tasks'>
      <Extension>
        <List>
          <List>
            <String>Request Application Access</String>
            <String>Initiates a request for a new account</String>
          </List>HTH,
    Paul

  • OIM 11g add custom role on user creation

    Hi,
    I when i create a user in OIM11g by default it gets added to "ALL USERS" role.
    I have created a new role and want to add user to this custom role while creating users. How can i do this in OIM11g
    Regards,
    Ab
    Edited by: 824473 on Jan 18, 2011 2:33 AM

    set Auto submit true. you can't set the value for ValueChangedListener property in current release of R2. This is bug and you can raise SR for same. But, this won't cause saving data into USR table. ValueChandedListener property for Modify User page only.
    As you said, data is not being saved in the USR table then verify your steps again:
    create sandbox->users->create user/edit user/view user details page->click customize->leftTopcorner->View->Source->select area->edit->Click Add Content (on left top)->Data Component catalog->scroll down and select User VO->Refresh dialogue box->select the field and click 'Add'->on dropdown select 'ADF Input test w/label/for view user page it should be output test w/label->close that window->Check if it added to create user form->save and close customization
    for user detail page select "Managed User->UserVo1 " as datacomponent
    Re: UDF creation on User form in 11gR2
    for valuechangedlistener the fixes all ready available. you have to do some workaround as other poster has given in above link:
    1.Create a sandbox and activate it. Open the page that contains the UDF, and click Customize.
    2.Select View, Source.
    3.Note the value of the valueChangeListener property of a predefined field. To do so:
    a.Click the predefined field, and then click Edit to open the Component Properties dialog box.
    b.Copy the value of the valueChangeListener property.
    4.Export the sandbox as a ZIP file.
    5.Extract the ZIP file and edit the jsff.xml file for the specific screen.
    6.Add the following attributes to the ADF tag, for example af:inputText, for the UDF:
    ◦valueChangeListener=VALUE_COPIED_IN_STEP3
    ◦autoSubmit="true"
    7.Create the ZIP file for the sandbox.
    8.Import the sandbox.
    9.Publish the sandbox.
    Edited by: Nishith Nayan on Sep 21, 2012 1:04 PM

  • Need help in pulling ADLDS user details

    Hi,
    I am trying to pull all the user details with a certain search criterea from a ADLDS with more than 20 user attributes. I tried both directory searcher and Powershell for gathering the information (out of this powershell works fast). Due to formating the
    attributes it takes more than 30 minutes to run the script. Could some suggest me a better solution for this.
    Thanks
    Pradeep

    Richard,
    I  started using Directory searcher and the result  was less than 50 percent less than the time taken for Get-aduser. But in below script total time taken is more than three hours where as in VB and Perl it takes less than 20 minutes for the
    total execution including the 5 minutes of wait time. Could you help me increase the time taken. Total of around 50 plus attributes . When i go into for loop only it takes time
    ========================== 
    $config="E:\Powershell\CONFIG"
    $logdir="E:\Powershell\LOGS"
    $scriptdir="E:\Powershell\FEEDS"
    $outdir="E:\Powershell\OUTBOX"
    $configfile="$config\config.txt"
    $configfile="$config\config.txt"
    $date = Get-Date
    $date2=$date.ToString("MMddyy")
    $F_FeedFileName="Transfer_full.txt"
    $F_FeedBackupFileName="Transfer_full_bak.txt"
    $file3="Transfer_temp.txt"
    $global:scriptname="GeneralFeedD.ps1"
    $script = $scriptname.Split(".")
    $name=$script[0]
    $global:date = Get-Date
    $log= "$logdir\$name"
    $global:flag=0
    $searchbase="ou=people,o=xxxx"
    $adldsServer=get-content $configfile
    $F_FeedAttrCfg=get-content "Feed_Attributes.cfg"
    $strFileName="$log\$name.txt"
    $Backuplogfile="$log\$name"+"_bak.txt"
    #File Details
    $EmployeeFeedNormal = "EmployeeFeedNormal"
    $ContractorFeedNormal = "ContractorFeedNormal"
    $VendorContractorFeedNormal = "VendorContractorFeedNormal"
    $EmployeeFeedNormalwithUID = "EmployeeFeedNormalwithUID"
    $ContractorFeedNormalwithUID = "ContractorFeedNormalwithUID"
    $VendorContractorFeedNormalwithUID = "VendorContractorFeedNormalwithUID"
    $EmployeeFeedNormalwithUIDandGUID = "EmployeeFeedNormalwithUIDandGUID"
    $ContractorFeedNormalwithUIDandGUID = "ContractorFeedNormalwithUIDandGUID"
    $VendorContractorFeedNormalwithUIDandGUID = "VendorContractorFeedNormalwithUIDandGUID"
    $EmployeeFeedNormal_bkp = "EmployeeFeedNormal.bak"
    $ContractorFeedNormal_bkp = "ContractorFeedNormal.bak"
    $VendorContractorFeedNormal_bkp = "VendorContractorFeedNormal.bak"
    $EmployeeFeedNormalwithUID_bkp = "EmployeeFeedNormalwithUID.bak"
    $ContractorFeedNormalwithUID_bkp = "ContractorFeedNormalwithUID.bak"
    $VendorContractorFeedNormalwithUID_bkp = "VendorContractorFeedNormalwithUID.bak"
    $EmployeeFeedNormalwithUIDandGUID_bkp = "EmployeeFeedNormalwithUIDandGUID.bak"
    $ContractorFeedNormalwithUIDandGUID_bkp = "ContractorFeedNormalwithUIDandGUID.bak"
    $VendorContractorFeedNormalwithUIDandGUID_bkp = "VendorContractorFeedNormalwithUIDandGUID.bak"
    # FUNCTIONS
    # Message
    Function message ([string] $line)
        $date = Get-Date
        $line = "$scriptname | INFO | $date | $line"
        $line| Out-File $strFileName -Append  
    Function error ([string] $line)
        $date = Get-Date
        $line = "$scriptname | ERROR | $date | $line"
        $line| Out-File $strFileName -Append  
    # Reading Configuration Files
    if((Test-Path $configfile) -ne 0)
        $adldsServer=get-content $configfile
            foreach($en in $adldsServer)
         if($en -match "server")
             $server=$en.split("=")
             $HOST1=$server[1]
         if($en -match "password")
             $pass=$en.split("=")
             $PASSWD=$pass[1]
         if($en -match "user")
             $user=$en.split("=")
             $ADMIN=$user[1]
        $PWord = ConvertTo-SecureString –String $PASSWD –AsPlainText -Force
        $Credential = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $ADMIN,$PWord
    else
     Error ("Configuration File $configfile is not present");
     Message ("Calling script SendMail.pl for sending mail");
        $global:errormsg="Configuration File $configfile is not present"
        Invoke-Expression "$scriptdir\SendMail.ps1"
        Error "Script failed"
        Exit
    # Checking Log Directory
    if((Test-Path $log) -eq 0)
        #cd "$logdir"
        mkdir "$logdir\$name"
    If ((Test-Path $strFileName) -eq 0)
       New-Item $strFileName -type file
       message "New log file created"
    else
        Copy-Item $strFileName $Backuplogfile
        Remove-Item $strFileName
        message "Backup of log file created"
    # Checking Script Directory
    if((Test-Path $scriptdir) -eq 0)
     Error ("Script Directory $scriptdir is not present");
     Message ("Calling script SendMail.pl for sending mail");
        $global:errormsg="Script Directory $scriptdir is not present"
        Invoke-Expression "$scriptdir\SendMail.ps1"
        Error "Script failed"
        Exit
    # Checking Outbox Directory
    if((Test-Path $outdir) -eq 0)
     Error ("Outbox Directory $outdir is not present");
     Message ("Calling script SendMail.pl for sending mail");
        $global:errormsg="Outbox Directory $outdir is not present"
        Invoke-Expression "$scriptdir\SendMail.ps1"
        Error "Script failed"
        Exit
    message "*****Beginning of module*****"
    $FeedHeaderAttribs = @(0..64)
    $FeedHeaderAttribs = $F_FeedAttrCfg.split("|")
    $FeedAttrLength = $FeedHeaderAttribs.length
    # Taking Back up of the files
    # Check for previous day output.csv file and take back up of it if present
    if((Test-Path $EmployeeFeedNormal) -ne 0 )
        copy-Item $EmployeeFeedNormal $EmployeeFeedNormal_bkp
        Remove-Item $EmployeeFeedNormal
    if((Test-Path $ContractorFeedNormal) -ne 0 )
        copy-Item $ContractorFeedNormal $ContractorFeedNormal_bkp
        Remove-Item $ContractorFeedNormal
    if((Test-Path $VendorContractorFeedNormal) -ne 0 )
        copy-Item $VendorContractorFeedNormal $VendorContractorFeedNormal_bkp
        Remove-Item $VendorContractorFeedNormal
    if((Test-Path $EmployeeFeedNormalwithUID) -ne 0 )
        copy-Item $EmployeeFeedNormalwithUID $EmployeeFeedNormalwithUID_bkp
        Remove-Item $EmployeeFeedNormalwithUID
    if((Test-Path $ContractorFeedNormalwithUID) -ne 0 )
        copy-Item $ContractorFeedNormalwithUID $ContractorFeedNormalwithUID_bkp
        Remove-Item $ContractorFeedNormalwithUID
    if((Test-Path $VendorContractorFeedNormalwithUID) -ne 0 )
        copy-Item $VendorContractorFeedNormalwithUID $VendorContractorFeedNormalwithUID_bkp
        Remove-Item $VendorContractorFeedNormalwithUID
    if((Test-Path $EmployeeFeedNormalwithUIDandGUID) -ne 0 )
        copy-Item $EmployeeFeedNormalwithUIDandGUID $EmployeeFeedNormalwithUIDandGUID_bkp
        Remove-Item $EmployeeFeedNormalwithUIDandGUID
    if((Test-Path $ContractorFeedNormalwithUIDandGUID) -ne 0 )
        copy-Item $ContractorFeedNormalwithUIDandGUID $ContractorFeedNormalwithUIDandGUID_bkp
        Remove-Item $ContractorFeedNormalwithUIDandGUID
    if((Test-Path $VendorContractorFeedNormalwithUIDandGUID) -ne 0 )
        copy-Item $VendorContractorFeedNormalwithUIDandGUID $VendorContractorFeedNormalwithUIDandGUID_bkp
        Remove-Item $VendorContractorFeedNormalwithUIDandGUID
    message "Backup of files is taken"
    $hash1=@{}
    for ($i=0;$i -lt $FeedAttrLength;$i++)
         $hash1.Set_Item($FeedHeaderAttribs[$i],$i)
    $FeedFileHeader="employeenumber|cn|pregisteredname|givenname|pmiddlename|sn|title|telephonenumber|mobile|pager|facsimiletelephonenumber|pmaildrop|pnotesfullname|mail|pmanagerid|manager_name|manager_mail|manager|ppersontype|employeeType|pemploymentstatus|pemploymentstatus_cd|pemploymentstatusdate|pcompany|plocalorganization|pbusiness_cd|pbusiness_descr|punit_cd|punit_descr|pdepartmentid|pdepartment|pcc-cd|pcc_descr|pbuildingcode|pbuildingname|postaladdress|postalcode|l|st|c|vcid|pvendorcompanyid|pvendorcompany|pcompanydesignation|pjobcode|pdeactivationdate|pband|pleaderindicator|uid|pguid|hiredate|pstartdate|createtimestamp"
    $FeedFileHeader = $FeedFileHeader -replace "employeetype","employeeType"
    $FeedFileHeader = $FeedFileHeader -replace "pcc-cd","pcc_cd"
    message "Filehandle for output file opened"
    $FeedFileHeader | out-file $EmployeeFeedNormal -Append
    $FeedFileHeader | out-file $ContractorFeedNormal -Append
    $FeedFileHeader | out-file $VendorContractorFeedNormal -Append
    $FeedFileHeader | out-file $EmployeeFeedNormalwithUID -Append
    $FeedFileHeader | out-file $ContractorFeedNormalwithUID -Append
    $FeedFileHeader | out-file $VendorContractorFeedNormalwithUID -Append
    $FeedFileHeader | out-file $EmployeeFeedNormalwithUIDandGUID -Append
    $FeedFileHeader | out-file $ContractorFeedNormalwithUIDandGUID -Append
    $FeedFileHeader | out-file $VendorContractorFeedNormalwithUIDandGUID -Append
    # Function to fetch the attributes
    Function DLookUp(){
    $Result=$o=$objitem=$null
    $Strfilter="(&(obuseraccountcontrol=ACTIVATED)(pcompanydesignation=xxxx)(|(ppersontype=C)(ppersontype=vc)))"
    $use=$ADMIN.Split("\")
    $u=$use[1]
    $Domain="LDAP://$Host1/ou=people,o=aexp"
    $objDomain = New-Object System.DirectoryServices.DirectoryEntry $Domain,$u,$PASSWD
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = $objDomain
    $objSearcher.PageSize = 1000
    $objSearcher.Filter = $strFilter
    $objSearcher.SearchScope = "Subtree"
    $colPropList=@("employeenumber","cn","pregisteredname","givenname","pmiddlename","sn","title","telephonenumber","mobile","pager","facsimiletelephonenumber","pmaildrop","pnotesfullname","mail","pmanagerid","manager","ppersontype","employeeType","pemploymentstatus","pemploymentstatuscd","pemploymentstatusdate","pcompany","plocalorganization","pbusinesscd","pbusinessdescr","punitcd","punitdescr","pdepartmentid","pdepartment","pcc-cd","pccdescr","pbuildingcode","pbuildingname","postaladdress","postalcode","l","st","c","vcid","pvendorcompanyid","pvendorcompany","pcompanydesignation","pjobcode","pdeactivationdate","pband","pleaderindicator","uid","pguid","hiredate","pstartdate","createtimestamp"");
    foreach ($i in $colPropList){$a=$objSearcher.PropertiesToLoad.Add($i)}
    $colResults = $objSearcher.FindAll()
    $objItem = $Colresults.Properties
    if ($objItem -eq $null) {
           $result = "NoMatch"
        else {
            $result = $objItem
        return $result
        $objSearcher.Dispose()
    message "Querying LDAP started"
    $dObj = DLookup "obuseraccountcontrol" "DEACTIVATED"
    $GlobalCount=0
    $ProcessedProfiles=0
    $LogCounter=0
        $LineArray=@(0..64)
        $OutputArr=@(0..64)
        $entryn=@(0..2)
    foreach($entry in $dObj)
     $GlobalCount=$GlobalCount+1
     $ProcessedProfiles=10000*$LogCounter
     if ( $GlobalCount -eq ($ProcessedProfiles+1) ){
              message "Processed $ProcessedProfiles profiles so far"
              $LogCounter = $LogCounter+1
        $pmanagerid=$entry.Item("pmanagerid")
     $manager=$entry.Item("manager")
     $manager_name=""
     $manager_mail=""
    if($manager)
     $TempEhash=$manager.split(",")
     $ehashval1=$TempEhash[0]
     if(($ehashval1.IndexOf("pehash=") -eq 0) -or ($ehashval1.IndexOf("cn=") -eq 0))
      $ehashval2=$ehashval1.split("=")
      $attr=$ehashval2[0]
      $val=$ehashval2[1]
            $man = Get-ADuser -Server $HOST1 -Credential $Credential -Filter {$attr -eq $val} -searchbase $searchbase -Properties cn,mail
            if($man -ne $null)
                $manager_name=$man.cn
                $manager_mail=$man.mail
        for ($i=0;$i -lt $FeedAttrLength;$i++)
      if($FeedHeaderAttribs[$i] -eq "manager_name")
       $LineArray[$i]=$manager_name
      elseif($FeedHeaderAttribs[$i] -eq "manager_mail")
       $LineArray[$i]=$manager_mail  
      elseif ($FeedHeaderAttribs[$i] -eq "pbusinesscd" )
                $LineArray[$i]=""
            elseif ($FeedHeaderAttribs[$i] -eq "punitcd" )
                $LineArray[$i]=""
            elseif ($FeedHeaderAttribs[$i] -eq "punitdescr" )
                $LineArray[$i]=""
            elseif ($FeedHeaderAttribs[$i] -eq "pbusinessdescr" )
                $LineArray[$i]=""
            else
          $Record=$entry.Item($FeedHeaderAttribs[$i])
          $Record=$Record -replace "`n$",""
          $Record=$Record -replace "`n",""
          $Record=$Record -replace "`r",""
          $Record=$Record -replace "%{1,}","%%"
             $LineArray[$i]=$Record
        for ($j=0;$j -lt $FeedAttrLength;$j++)
         $NameAttr=$FeedHeaderAttribs[$j]
         $NumberAttr=$hash1.Get_Item($NameAttr)
         if ( (($NumberAttr -ne "") -and ($NumberAttr -ne "null")) -or $NumberAttr -eq 0 )
                if ($NameAttr -eq "uid")
                    $l=$j
                    $uid=$LineArray[$NumberAttr]
                    $OutputArr[$j]=""
                elseif ($NameAttr -eq "pguid")
                    $m=$j
                    $guid=$LineArray[$NumberAttr]
                    $OutputArr[$j]=""
                elseif ($NameAttr -eq "ppersontype")
                    $p=$j;
                    $OutputArr[$j]=$LineArray[$NumberAttr]
                else
                    $OutputArr[$j]=$LineArray[$NumberAttr]
         else
                $OutputArr[$j] = ""
        for ($i=0;$i -lt $FeedAttrLength;$i++)
            if($OutputArr[$i] -eq "" -or $OutputArr[$i] -eq "null")
                 $OutputArr[$i]=""
            else
                 $OutputArr[$i] = $OutputArr[$i] -replace "`n"," "
        for ($x=0;$x -lt 3;$x++)
            $ent=""
            if ($x -eq 1)
                $OutputArr[$l]=$uid
            if ($x -eq 2)
                $OutputArr[$m]=$guid
            for ($y=0;$y -lt $FeedAttrLength;$y++)
                if($y -eq $FeedAttrLength -1)
                   $ent=$ent+"`""+$OutputArr[$y]+"`""
                else
                   $ent=$ent+"`""+$OutputArr[$y]+"`""+"|"
            $entryn[$x]=$ent
        #$entryn[0] = $entryn[0] -replace "`r",""
        #$entryn[1] = $entryn[1] -replace "`r",""
        #$entryn[2] = $entryn[2] -replace "`r",""
        if ($OutputArr[$p] -eq "E")
            $entryn[0] | out-file $EmployeeFeedNormal -Append
            $entryn[1] | out-file $EmployeeFeedNormalwithUID -Append
            $entryn[2] | out-file $EmployeeFeedNormalwithUIDandGUID -Append
        elseif ($OutputArr[$p] -eq "C")
            $entryn[0] | out-file $ContractorFeedNormal -Append
            $entryn[1] | out-file $ContractorFeedNormalwithUID -Append
            $entryn[2] | out-file $ContractorFeedNormalwithUIDandGUID -Append
        elseif ($OutputArr[$p] -eq "VC")
            $entryn[0] | out-file $VendorContractorFeedNormal -Append
            $entryn[1] | out-file $VendorContractorFeedNormalwithUID -Append
            $entryn[2] | out-file $VendorContractorFeedNormalwithUIDandGUID -Append
    Message "Total $GlobalCount records were processed"
    Message "Script ActivatedGeneralFeed.ps1 executed successfully"
    Pradeep

  • Add Undo property to JTextPane

    Hi
    I am getting problem for adding UNDO functionality to jtextpane.My requirement is to undo or restore the data by clicking a button.
    According to my application requirement i have to add multiple(as many as required) panels to a scroll pane dynamically.And these panels consist of a text pane and a combo box.when user will click on the undo button the data in the text pane should be restored.
    For this i made a panel class(DynamicPanels in the code below which contains the text pane and combo boxes) and creating array of panel classes and adding these panels through loop.
    The problem here is , as i am adding the panels dynamically. while trying to add any logic for undo in side the loop it is giving class cast exception ( by applying logic in different way null pointer exception as here the instances are created dynamically i.e runtime).
    Please help me to overcome this issue.
    Thanks.
    //UndoInTextPaneFrame.java
    import javax.swing.*;
    import javax.swing.event.UndoableEditEvent;
    import javax.swing.event.UndoableEditListener;
    import javax.swing.text.Document;
    import javax.swing.undo.CannotUndoException;
    import javax.swing.undo.UndoManager;
    public class UndoInTextPaneFrame extends JFrame{
        final static int NO_OFPANELS=10;
        DynamicPanels[] arrayOfPanels=new DynamicPanels[NO_OFPANELS];
        private javax.swing.JButton jButton1;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JScrollPane jScrollPane1;
        public UndoInTextPaneFrame(){
            jScrollPane1 = new javax.swing.JScrollPane();
            jPanel1 = new javax.swing.JPanel();
            jButton1 = new javax.swing.JButton("UNDO");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    System.out.println("UNDO button clicked");
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Frame to add UNDO property");
            setSize(400,300);
            getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS));
            jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
            jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.Y_AXIS));
            for(int i=0;i<arrayOfPanels.length;i++){
                arrayOfPanels= new DynamicPanels(i);
    jPanel1.add(arrayOfPanels[i]);
    //LOGIC FOR UNDO
    // JTextPane txtPane=(JTextPane)arrayOfPanels[i].getComponent(0);
    jScrollPane1.setViewportView(jPanel1);
    getContentPane().add(jScrollPane1);
    getContentPane().add(jButton1);
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new UndoInTextPaneFrame().setVisible(true);
    class DynamicPanels extends JPanel{
    final UndoManager undo;
    private JTextPane jTextPane1;
    private JComboBox jComboBox1;
    private JScrollPane jScrollPane1;
    public DynamicPanels(int number) {
    jTextPane1 = new JTextPane();
    jComboBox1=new JComboBox();
    jScrollPane1=new JScrollPane();
    Document doc = jTextPane1.getDocument();
    undo= new UndoManager();
    // Listen for undo and redo events
    doc.addUndoableEditListener(new UndoableEditListener() {
    public void undoableEditHappened(UndoableEditEvent evt) {
    undo.addEdit(evt.getEdit());
    try {
    if (undo.canUndo()) {
    undo.undo();
    } catch (CannotUndoException e) {
    jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    jScrollPane1.setViewportView(jTextPane1);
    setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.X_AXIS));
    add(jScrollPane1);
    add(jComboBox1);

    https://forums.oracle.com/forums/thread.jspa?threadID=2469362&tstart=0

  • User details in a specific computer- Config Mgr 2012 R2

    I am using SCCM 2012 R2. I need to have an option for user details on a computer in a specific collection. When I select a computer after searching under devices, I would like to see search options(attached Screen shot) 
    for Primary device user or other details last logon etc. related to user on that computer. 
    Its currently not available in the product I guess. I have also tried to enable last logon in AD discovery.
    I have user affinity configured and can see these details from SCCM reports but would like to see user details when I select the computer and see who the user this belongs to rather than running and creating custom reports. Currently I am implementing
    SCCM and migrating setup from an existing tool. These features are readily available in that tool.
    Any help on this please.
     Thanks

    I've already logged something similar, back in Feb, at MS Connect website for checking deployments as would be good to see last logged in user.
    https://connect.microsoft.com/ConfigurationManagervnext/feedback/details/823608/sccm-2012-checking-deployment-to-system
    You'll need to sign up and join the Configuration Manager program to view and you can vote this up as an issue and add your feedback.  The more votes the better ;-)
    Cheers
    Paul | sccmentor.wordpress.com

  • How to update the loggedin user details using iuser

    Hi,
    our requirement is to edit and save the logged in user details retrieved from iusercontext.
    Please anyone help me out.
    please provide any sample code snippet regarding the same.
    Thank you,
    Hareesh
    Edited by: hareeshvenkat on Aug 30, 2011 12:42 PM
    Edited by: hareeshvenkat on Aug 30, 2011 2:03 PM

    Hello,
    You can change details of the user via IUserMaint interface.
    for example this is how you change the language of the user :
    IUserMaint Muser = uf.getMutableUser(userUniqueid);
    boolean res = Muser.setLocale(new Locale("en"));
    Muser.commit();
    You can find details about IUserMaint  in [http://help.sap.com/javadocs/NW04S/SPS09/se/com/sap/security/api/IUserMaint.html]
    Constantine

  • Use of boolean property node in LabView 6i

    I am running LabView 6i version 6.0.2.
    I am using a reference to a front panel boolean control to stop the execution of a state machine in a subVI.  The subVI has a property node linked to this reference.  This property node shows that it is "Bool", but when I set the property node's element to "value", the value is not a boolean type.  I can't figure out how to set the boolean property node's element so that I can read the state of the boolean control.  How should I configure this?  

    The data type of the value property is a variant.  It is possible to convert a variant to a boolean, but you probably don't want to do that.
    The reason is that you have the mechanical action of the boolean set to "latch ...", and that means that the value property isn't very useful.
    Change the mechanical action to "switch ...", then the value property will be a boolean.
    Note that this means that you will probably have to reset the boolean programatically after the user clicks on it.

  • Who is who link to user details

    Hello,
    I've a problem in ESS/Who is who. When choosing a user from list it doesn't display any detail of user. It returns to searching page.
    Why I can't see the user details when choosing the link of user?
    Thanks&Regards

    It may be a problem with Infosets
    go to SPRO-personnel management-Employee self services-service specific settings-address book-who is who -Selection and output-select the infoset-check any values(fields) are there under the output fields detail .if not add the required fields
    if helpful reward points

  • CF9 Service not starting - error parsing boolean property notifyclientonalert

    Hi, I clean installed CF9 (after uninstalling CF8) on win2003 32bit and all was workign fine, however after a server restart the CF9 Application service refuses to start automatically or manually. I am getting an error in windows event logs saying see Coldfsuion logs, but there is nothing in these logs, not very helppful!  any ideas apart from a reinstall?
    After reinstalling I get the same problme, but this tuime in coldfusion server log I get the following error message
    "Error","jrpp-2","11/17/11","16:21:59",,"Monitor service: Error parsing boolean property notifyclientonalert, using default false"
    thanks
    Oli

    Hi Oli,
    Suggest try start CF from CMD prompt. Run cmd as an admin, CD ColdFusion9\bin\ , type CFSTART press enter. Some detail of what happens?
    HTH, Carl.

Maybe you are looking for

  • I'm unable to instantly watch netflix on my Powerbook G4  Mac OS X10.5.8.  Can I download the required Mac OS 10.4.11?

    I'm unable to instantly watch netflix on my Powerbook G4 Mac OSX 10.5.8.  Am I able to download the required Mac OS 10.4.11?  Thank you.

  • Hyperion Planning Loading Data refreshment issue

    Hi All, I have use load data utility and it will load meta data in to planning application and for effect the same in Essbase need to refresh the application using manage data base i don't want to refresh the data base want i exactly i want to do is

  • HTMLDataSet paragraph tag in header not allowed?

    Anything I am doing wrong? Spry's HTMLDataSet (SpryHTMLDataSet.js - version 0.25 - Spry Pre-Release 1.6.1) doesn't seem to give the data in any column in which the header is enclosed within a paragraph tag. Snippets demonstrating this are below.  The

  • Preloader browser/server problem

    Hello. I recently completed a Flash project for a client of mine. On all the swf movies, I have put a preloader script that downloads the whole movie before it plays. Off of my IP (1and1 internet) all the movies load flawlessly in all the browsers I

  • Aperture in the work group

    We are looking at using Aperture in our workgroup of three photographers. Our plan is to store all "Master" images in folders on an X-Raid file server by date and project name. Each MacPro workstation will have Aperture installed and each user will h