Need to send a dashboard page as an excel file in an iBot

Hi,
Is it possible to send a whole dashboard page as an excel file in an iBot/agent?
We're using OBIEE 11.1.1.5.0 and have a requirement where different users need to access the dashboard pages via excel. Most of the pages have multiple requests and some also have charts.
The other alternative that we looked at is using the MSOffice plugin but even with that i'm only able to access the individual requests one at a time but not the dashboard page.
Thanks!!

I think I found a workaround that resolves our issue: I send the dashboard page as an html attachment in an iBot and then open it with excel once received (open with).
Thanks for your replies..

Similar Messages

  • How to send a dashboard page as selection with ibot

    Hi,
    I am trying to send a dashboard page via email, but with a previous selection I have done through prompts.
    This is what I have done:
    1.Created the selection and saved as "Generic"
    2.Selection is saved in my user OBIUSER under /users/obiuser/_selections/hj0qcjg2ln00aro9
    3.I copied "Generic" from the above folder to a folder XY under the SHARED folder where I have some other dashboard stored.
    4.When I am in Delviery content , choose "select content" and browse in the XY folder, but I see only the dashboard pages and not the selection "Generic"
    The reason, I have copied it, is that from the delivery content session, I can not see my user, but just the SHARED folder.
    Do I maybe need to create a _selections folder under the SHARED one and save it there?
    Thanks and Regards
    Giuliano

    The article describes that when you have a saved selection for a dashboard page and you set this saved selection as default, the iBot will use this saved selection to filter the data on the dashboard page.
    So, unfortunately, there is no option to select the saved selection you want to use for a dashboard.

  • I created a file yesterday in Pages version 5.1. Today when I went to open the file a box popped up saying that I needed a newer version pf Pages to open the file. Any thoughts??

    I created a file yesterday in Pages Version 5.1. Today I went back to open that file and a box popped up saying I need a newer version of Pages to open that file. Any thoughts??

    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Peter

  • Ability to download the whole dashboard page into MS Excel or powerpoint

    Folks,
    i think this may be unique requirement or may be someone tried it,
    from the Out of Box functionality, we only have ability to download the each report on a page to a MS Excel or power point
    but i am looking on how to implement the functionality of downloading all the reports in the page/or the whole page itself into excel or powerpoint using click of button as we do have download into pdf/html versions.
    i tried to hijack the existing pdf/html code, but did not work
    any ideas/suggestions if this can be implemented or code that i can use
    Thank You
    Kumar

    Hi friend,
    you must use BI Office for that. To install it, log on Presentation Service with your user, click 'More Products' -> BI Office. Install it, and the, open excel or powerpoint. You will have a new menu where you can download reports as you are in Presentation Service.
    Regards.
    Edited by: Hammett81 on Jul 30, 2010 9:16 PM

  • My page generates an Excel file but sometimes fails if the page loads to slowly...

    I'm having a problem generating an Excel file using CF and
    looping over a bunch of queries to get a table of data to display
    to the user. This is slow but works fine except for an instance
    recently where the page seems to be loading but after a few minutes
    it stops and says "the page cannot be displayed". The error leads
    me to believe it is a server error and not a CF error but I'm not
    sure. I don't have timeout checked in my CF Admin so that should
    mean that I can request pages for as long as I need to right?
    I'm using the cfheader and cfcontent to dynamically generate
    an Excel spreadsheet from my HTML. I tried using the cfflush tag
    and that seemed to help since it pushes content to the browser
    during the page load but it doesn't work with the cfheader and
    cfcontent tags.
    So then I tried using the cfsavecontent tag and then save the
    HTML to a file but again I couldn't use the cfflush tag inside the
    cfsavecontent tag so now I'm stuck.
    The page DOES load when I run in on my local machine with MX
    6.1 Developer Edition and SQL Server Personal Edition. It DOES NOT
    work when I run it on my production server that then calls my
    separate database server. I'm wondering if there is a timeout (non
    CF) set somewhere on the productions server or the database server
    or if there is some sort of limit to the amount of data you can
    transfer between servers?
    I'm totally stumped now so any advice is greatly
    appreciated!

    That didn't work for me and the page times out right about 5
    minutes (300 seconds). I don't have timeout checked in the CF
    Administrator so I don't think it is CF that is causing the
    timeout. I checked IIS also and the timeout is set to 900 seconds.
    Is there a possibility that SQL Server has some sort of
    connection limit and I'm using too many cfquery tags? If anyone has
    experienced a similar problem I would really appreciate the help,
    thanks.

  • Trying to send the alv's information to excel file

    Hello iam trying to send the alv's information, when i execute my program sent an alv with that information that i have selected and then i would like to sent that information that the alv containe to an excel file, that why i press the button located top of alv, this sent an excel screen but this screen appears plain,without information but doesn't send an error.
    thanks a lot for you help

    Mr Heilman:
    I am really sorry for to many question and this troubles
      this is the segment fo code that i am using:
    *& Report  ZREPORTE_PA9011
    REPORT  zreporte_pa9011 NO STANDARD PAGE HEADING MESSAGE-ID 02.
    *Tables declaration
    TABLES pa9011.
    TYPES BEGIN OF prueba.
            INCLUDE STRUCTURE pa9011.
    TYPES END OF prueba.
    DATA prueba TYPE STANDARD TABLE OF prueba WITH HEADER LINE.
    *declaracion de las variables para el alv
    TYPE-POOLS: slis.
    DATA: repname  LIKE sy-repid,          "variables alv
          heading  TYPE slis_t_listheader,
          layout   TYPE slis_layout_alv,
          fieldtab TYPE slis_t_fieldcat_alv.
    *Sections parameters
    SELECTION-SCREEN: BEGIN OF BLOCK bi WITH FRAME TITLE text-001.
    SELECT-OPTIONS subtipo FOR pa9011-subty.
    PARAMETER:     pbegda LIKE pa9011-begda.
    SELECTION-SCREEN: END OF BLOCK bi.
    START-OF-SELECTION.
      repname = sy-repid.
      PERFORM selecciona_datos.
      PERFORM transfer_to_alv.
    *&      Form  selecciona_datos
          text
    FORM selecciona_datos.
      REFRESH prueba.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE prueba FROM pa9011
      WHERE subty IN subtipo
      AND begda GT pbegda.
      IF sy-subrc NE 0.
        MESSAGE e000 WITH 'Aun no existen datos cargados'.
      ENDIF.
    ENDFORM.                    "selecciona_datos
    *&      Form  transfer_to_alv
    send the information from prueba into alv
    FORM transfer_to_alv.
      PERFORM initialize_fieldcat USING fieldtab[].
      PERFORM build_layouts USING layout.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
           i_callback_program      = repname
         i_callback_user_command = 'AT_USER_COMMAND'
          i_callback_top_of_page  = 'BUILD_COMMENT'
          i_structure_name        =
           is_layout               = layout
           it_fieldcat             = fieldtab[]
           i_default               = 'X'
         i_save                  = g_save
         is_variant              = g_variant
         TABLES
           t_outtab                = PRUEBA
         EXCEPTIONS
           program_error           = 1
           OTHERS                  = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    "transfer_to_alv
    *&      Form  initialize_fieldcat
          text
         -->P_FIELDTAB text
    FORM initialize_fieldcat USING p_fieldtab TYPE slis_t_fieldcat_alv.
      DATA: l_fieldcat TYPE slis_fieldcat_alv.
      REFRESH p_fieldtab.
      CLEAR l_fieldcat.
      l_fieldcat-tabname = 'PRUEBA'.
      l_fieldcat-ref_tabname = 'PA9011'.
      l_fieldcat-sp_group = 'A'.
      l_fieldcat-fieldname = 'SUBTY'.
      l_fieldcat-seltext_m = text-t01.
      l_fieldcat-col_pos = 1.
      APPEND l_fieldcat TO p_fieldtab.
      l_fieldcat-fieldname = 'BEGDA'.
      l_fieldcat-seltext_m = text-t02.
      l_fieldcat-col_pos = 2.
      APPEND l_fieldcat TO p_fieldtab.
      l_fieldcat-fieldname = 'ENDDA'.
      l_fieldcat-seltext_m = text-t03.
      l_fieldcat-col_pos = 3.
      APPEND l_fieldcat TO p_fieldtab.
      l_fieldcat-fieldname = 'AEDTM'.
      l_fieldcat-seltext_m = text-t04.
      l_fieldcat-col_pos = 4.
      APPEND l_fieldcat TO p_fieldtab.
      l_fieldcat-fieldname = 'UNAME'.
      l_fieldcat-seltext_m = text-t05.
      l_fieldcat-col_pos = 5.
      APPEND l_fieldcat TO p_fieldtab.
      l_fieldcat-fieldname = 'PREAS'.
      l_fieldcat-seltext_m = text-t06.
      l_fieldcat-col_pos = 6.
      APPEND l_fieldcat TO p_fieldtab.
      l_fieldcat-fieldname = 'ZDESCRSEGURO'.
      l_fieldcat-seltext_m = text-t07.
      l_fieldcat-col_pos = 7.
      APPEND l_fieldcat TO p_fieldtab.
      l_fieldcat-fieldname = 'ZASEGURADORA'.
      l_fieldcat-seltext_m = text-t08.
      l_fieldcat-col_pos = 8.
      APPEND l_fieldcat TO p_fieldtab.
      l_fieldcat-fieldname = 'ZCOBERTURA'.
      l_fieldcat-seltext_m = text-t09.
      l_fieldcat-col_pos = 9.
      APPEND l_fieldcat TO p_fieldtab.
      ENDFORM.                    "initialize_fieldcat
    *&      Form  build_layouts
          text
    FORM build_layouts USING p_layout TYPE slis_layout_alv.
      p_layout-colwidth_optimize = 'X'.
      p_layout-zebra = 'X'.
      p_layout-f2code = '&amp;ETA'.
      p_layout-detail_popup = 'X'.
    ENDFORM.                    "build_layouts
    *&      Form  build_comment
          text
    FORM build_comment.
      DATA: hline TYPE slis_listheader,
            text(60) TYPE c.
      REFRESH heading.
      CLEAR: hline, text.
      hline-typ  = 'H'.
      text =  text-h01.
      hline-info = text.
      APPEND hline TO heading.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = heading.
    ENDFORM.                    "build_comment

  • Need a script to update AD information from Excel file, however employee ID is use for identify the user in AD

    Please help me to get this done!....Thanks in Advance
    This is current script I use to update AD record but its taking user id to pick the user in AD, which is some time give error not update properly..
    # UpdateUsers.ps1
    # PowerShell program to update Active Directory users from the information in a
    # Microsoft Excel spreadsheet. Only single-valued string attributes supported.
    # Author: Richard Mueller
    # PowerShell Version 1.0
    # September 12, 2011
    Trap
        If ("$_".StartsWith("Cannot load COM type Excel.Application"))
            "Excel application not found, program aborted"
            Add-Content -Path $LogFile -Value "## Excel application not found"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        If (("$_".StartsWith("Exception has been thrown")) -and ($Step -eq "4"))
            "Excel spreadsheet not found, program aborted"
            Add-Content -Path $LogFile -Value "## Excel spreadsheet not found: $ExcelPath"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        If ("$_".StartsWith("The server is not operational"))
            "Domain Controller not found, program aborted"
            Add-Content -Path $LogFile -Value "## Domain Controller not found"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        If ("$_".StartsWith("The directory service is unavailable"))
            "Active Directory not found, program aborted"
            Add-Content -Path $LogFile -Value "## Active Directory not found"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        If ("$_".StartsWith("The specified domain"))
            "Domain not found, program aborted"
            Add-Content -Path $LogFile -Value "## Domain not found"
            Add-Content -Path $LogFile -Value "   $_"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            Break
        "Unexpected error: $_"
        Add-Content -Path $LogFile -Value "## Unexpected error: $_"
        Add-Content -Path $LogFile -Value "   Step: $Step"
        Break
    Function CleanUp
        Trap
            "Error during cleanup: $_"
            Add-Content -Path $LogFile -Value "## Error during cleanup: $_"
            $Script:Errors = $Script:Errors + 1
            Continue
        # Function to release Excel objects from memory.
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Columns)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Rows)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Range)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Sheet)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Worksheets)} While ($x -gt -1)
        $Workbook.Close($False)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Workbook)} While ($x -gt -1)
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Workbooks)} While ($x -gt -1)
        $Excel.Quit()
        Do {$x = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($Excel)} While ($x -gt -1)
    # Specify paths to spreadsheet and log file.
    $Script:Errors = 0
    $Step = "1"
    $ExcelPath = "c:\scripts\UpdateUsers.xls"
    $LogFile = "c:\scripts\UpdateUsers.log"
    Write-Host "Please Standby..."
    # Add to the log file.
    $Step = "2"
    Add-Content -Path $LogFile -Value "------------------------------------------------" -ErrorAction Stop
    Add-Content -Path $LogFile -Value "UpdateUsers.ps1 Version 1.0 (September 12, 2011)"
    Add-Content -Path $LogFile -Value $("Started: " + (Get-Date).ToString())
    Add-Content -Path $LogFile -Value "Spreadsheet: $ExcelPath"
    Add-Content -Path $LogFile -Value "Log file: $LogFile"
    $Step = "3"
    # Open specified Excel spreadsheet.
    $Excel = New-Object -ComObject "Excel.Application"
    $Workbooks = $Excel.Workbooks
    $Step = "4"
    $Workbook = $Workbooks.Open($ExcelPath)
    $Worksheets = $Workbook.Worksheets
    $Sheet = $Worksheets.Item(1)
    $Range = $Sheet.UsedRange
    $Rows = $Range.Rows
    $Columns = $Range.Columns
    $Step = "5"
    # Hash table of attribute syntaxes.
    # The LDAP display names will be read from the spreadsheet.
    # The corresponding syntaxes will be read from the Schema container.
    $Attributes = @{}
    # Array of spreadsheet column headings.
    $Cols = @()
    $Step = "6"
    # Read attribute LDAP Display Names from the first row of the spreadsheet.
    $ID = 0
    For ($k = 1; $k -le $Columns.Count; $k = $k + 1)
        # Retrieve column heading, the lDAPDisplayName of an attribute.
        $Value = $Sheet.Cells.Item(1, $k).Text
        # Keep track of all column headings.
        $Cols += $Value
        # Skip duplicates in hash table.
        If ($Attributes.ContainsKey($Value) -eq $False)
            # Default is "NotFound", until found in the AD Schema.
            $Attributes.Add($Value, "NotFound")
        # Keep track of which column uniquely identifies users.
        If ($Value.ToLower() -eq "distinguishedname") {$ID = $k}
        If (($Value.ToLower() -eq "samaccountname") -and ($ID -eq 0)) {$ID = $k}
        # This script cannot be used to rename users.
        If ($value.ToLower() -eq "cn")
            Add-Content -Path $LogFile -Value "## This script cannot be used to rename users"
            Add-Content -Path $LogFile -Value "   Do not specify the cn attribute in the spreadsheet"
            Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
            CleanUp
            Return "Program aborted: cn attribute found in spreadsheet" `
                + "`nSee log file: $LogFile"
    $Step = "7"
    If ($ID -eq 0)
        Add-Content -Path $LogFile -Value "## No column found to identify users"
        Add-Content -Path $LogFile -Value "   One column must be distinguishedName or sAMAccountName"
        Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
        CleanUp
        Return "Program aborted: No column found in spreadsheet to identify users" `
            + "`nSee log file: $LogFile"
    # Create filter to query for attributes in the schema.
    $Attrs = $Attributes.Keys
    $Filter = "(&(objectCategory=AttributeSchema)(|"
    ForEach ($Attr In $Attrs)
        $Filter = $Filter + "(lDAPDisplayName=$Attr)"
    $Filter = $Filter + "))"
    $Step = "8"
    $RootDSE = [System.DirectoryServices.DirectoryEntry]([ADSI]"LDAP://RootDSE")
    $Domain = $RootDSE.Get("defaultNamingContext")
    $Schema = $RootDSE.Get("schemaNamingContext")
    $Step = "9"
    # Use the NameTranslate object.
    $objTrans = New-Object -comObject "NameTranslate"
    $objNT = $objTrans.GetType()
    # Initialize NameTranslate by locating the Global Catalog.
    $objNT.InvokeMember("Init", "InvokeMethod", $Null, $objTrans, (3, $Null))
    $Step = "10"
    # Retrieve NetBIOS name of the current domain.
    $objNT.InvokeMember("Set", "InvokeMethod", $Null, $objTrans, (1, "$Domain"))
    $NetBIOSDomain = $objNT.InvokeMember("Get", "InvokeMethod", $Null, $objTrans, 3)
    Add-Content -Path $LogFile -Value "NetBIOS name of domain: $NetBIOSDomain"
    $Step = "11"
    $Searcher = New-Object System.DirectoryServices.DirectorySearcher
    $Searcher.SearchRoot = [ADSI]"LDAP://$Schema"
    $Searcher.PageSize = 200
    $Searcher.SearchScope = "subtree"
    $Searcher.PropertiesToLoad.Add("lDAPDisplayName") > $Null
    $Searcher.PropertiesToLoad.Add("attributeSyntax") > $Null
    $Searcher.PropertiesToLoad.Add("isSingleValued") > $Null
    $Searcher.PropertiesToLoad.Add("systemFlags") > $Null
    # Filter on specified attributes.
    $Searcher.Filter = $Filter
    $Step = "12"
    # Query Active Directory.
    $Results = $Searcher.FindAll()
    # Enumerate recordset.
    ForEach ($Result In $Results)
        # Retrieve properties of attributes.
        $Name = $Result.Properties.Item("lDAPDisplayName")[0]
        $SysFlags = $Result.Properties.Item("systemFlags")[0]
        $SyntaxNum = $Result.Properties.Item("attributeSyntax")[0]
        $SingleValued = $Result.Properties.Item("isSingleValued")[0]
        # Only single-valued string attributes supported by this version of the program.
        Switch ($SyntaxNum)
            "2.5.5.12" {$Syntax = "String"}
            Default {$Syntax = "NotSupported"}
        If ($Name.ToLower() -eq "distinguishedname") {$Syntax = "DN"}
        If (($SysFlags -band 4) -ne 0)
            $Attributes[$Name] = "Constructed"
        Else
            If ($SingleValued -eq $True)
                $Attributes[$Name] = $Syntax
            Else
                $Attributes[$Name] = "NotSupported"
    $Step = "13"
    # Check if any attributes not found or have unsupported syntax.
    $Found = $True
    ForEach ($Attr In $Attrs)
        $Syntax = $Attributes[$Attr]
        If ($Syntax -eq "NotFound")
            Add-Content -Path $LogFile -Value "## Attribute $Attr not found in schema"
            "Attribute $Attr not found in schema"
            $Found = $False
        If ($Syntax -eq "NotSupported")
            Add-Content -Path $LogFile -Value "## Attribute $Attr has a syntax that is not supported"
            "Attribute $Attr has a syntax that is not supported"
            $Found = $False
        If ($Syntax -eq "Constructed")
            Add-Content -Path $LogFile -Value "## Attribute $Attr is operational, so is not supported"
            "Attribute $Attr is operational, so is not supported"
            $Found = $False
    $Step = "14"
    If ($Found -eq $False)
        Add-Content -Path $LogFile -Value $("Program aborted: " + (Get-Date).ToString())
        CleanUp
        Return "Program aborted" `
            + "`nSee log file: $LogFile"
    # Read remaining rows of the spreadsheet, until the first blank value is found
    # in the column that identifies users.
    $Step = "15"
    $Script:Updated = 0
    $Script:Unchanged = 0
    $j = 2
    Do {
        # Retieve ID value for the user first.
        $Value = $Sheet.Cells.Item($J, $ID).Text
        $Found = $False
        $Step = "16"
        If ($Cols[$ID - 1] -eq "distinguishedname")
            # Any forward slash characters must be escaped.
            $DN = $Value.Replace("/", "\/")
            # Bind to the user object.
            # If user not found, $User.Name will be $Null.
            $User = [ADSI]"LDAP://$DN"
            If ($User.Name -ne $Null)
                $Found = $True
        $Step = "17"
        If ($Cols[$ID - 1] -eq "samaccountname")
            Trap
                Write-Host ""
                "Error translating name: $_"
                Add-Content -Path $LogFile -Value "## Error translating name $Value"
                Add-Content -Path $LogFile -Value "   Description: $_"
                $Script:Errors = $Script:Errors + 1
                Continue
            # Convert sAMAccountName to distinguishedName.
            $DN = ""
            $Step = "18"
            $objNT.InvokeMember("Set", "InvokeMethod", $Null, $objTrans, (3, "$NetBIOSDomain$Value"))
            $DN = $objNT.InvokeMember("Get", "InvokeMethod", $Null, $objTrans, 1)
            $Step = "19"
            If ($DN -ne "")
                $Step = "20"
                # Any forward slash characters must be escaped.
                $DN = $DN.Replace("/", "\/")
                # Bind to the user object.
                $User = [ADSI]"LDAP://$DN"
                $Found = $True
        If ($Found -eq $True)
            $Step = "21"
            # Read remaining values for this user.
            $Changed = $False
            For ($k = 1; $k -le $Columns.Count; $k = $k + 1)
                # Skip the identifying column.
                If ($k -ne $ID)
                    $Step = "22"
                    # Retrieve attribute name for this column from array.
                    $AttrName = $Cols[$k - 1]
                    # Retrieve attribute syntax from hash table.
                    $Syntax = $Attributes[$AttrName]
                    $Step = "23"
                    # Retrieve attribute value for this user.
                    $Value = $Sheet.Cells.Item($j, $k).Text
                    # Skip blank values.
                    If ($Value -ne "")
                        If ($Syntax -eq "String")
                            Trap
                                If ("$_".StartsWith("The directory property cannot be found"))
                                    Continue
                                Else
                                    Write-Host ""
                                    "Error retrieving value from Active Directory: $_"
                                    Add-Content -Path $LogFile -Value "## Error retrieving $AttrName for user $DN"
                                    Add-Content -Path $LogFile -Value "   Description: $_"
                                    $Script:Errors = $Script:Errors + 1
                                    Continue
                            $Step = "24"
                            # Single-valued string attribute.
                            # Retrieve existing value.
                            $OldValue = ""
                            $OldValue = $User.Get($AttrName)
                            # Check if existing value to be deleted.
                            If ($Value.ToLower() -eq ".delete")
                                If ($OldValue -ne "")
                                    If ($AttrName.ToLower -eq "samaccountname")
                                        Add-Content -Path $LogFile -Value `
                                            "## Mandatory attribute sAMAccountName cannot be cleared for user: $DN"
                                        $Script:Errors = $Script:Errors + 1
                                    Else
                                        Trap
                                            Write-Host ""
                                            "Error deleting value from Active Directory: $_"
                                            Add-Content -Path $LogFile -Value "## Error deleting $AttrName for user $DN"
                                            Add-Content -Path $LogFile -Value "   Description: $_"
                                            $Script:Errors = $Script:Errors + 1
                                            Continue
                                        $Step = "25"
                                        # Make the attribute value "not set".
                                        $User.PutEx(1, $AttrName, 0)
                                        $Changed = $True
                            Else
                                $Step = "26"
                                # Check if new value from spreadsheet different.
                                If ($Value -ne $OldValue)
                                    Trap
                                        Write-Host ""
                                        "Error assigning value from Active Directory: $_"
                                        Add-Content -Path $LogFile -Value "## Error assigning $AttrName for user $DN"
                                        Add-Content -Path $LogFile -Value "   Description: $_"
                                        $Script:Errors = $Script:Errors + 1
                                        Continue
                                    # Assign the new value to the attribute.
                                    $User.Put($AttrName, $Value)
                                    $Changed = $True
                        Else
                            # Unexpected error.
                            Add-Content -Path $LogFile -Value `
                                "## Unexpected syntax: $Syntax for attribute $AttrName for user $DN"
                            $Script:Errors = $Script:Errors + 1
            If ($Changed -eq $True)
                Trap
                    Write-Host ""
                    "Error saving to Active Directory: $_"
                    Add-Content -Path $LogFile -Value "## Error saving to AD for user $DN"
                    Add-Content -Path $LogFile -Value "   Description: $_"
                    $Script:Errors = $Script:Errors + 1
                    $Script:Updated = $Script:Updated - 1
                    Continue
                $User.SetInfo()
                Add-Content -Path $LogFile -Value "Update user: $DN"
                Write-Host "." -NoNewLine
                $Script:Updated = $Script:Updated + 1
            Else
                Add-Content -Path $LogFile -Value "User unchanged: $DN"
                Write-Host "." -NoNewLine
                $Script:Unchanged = $Script:Unchanged + 1
        Else
            Add-Content -Path $LogFile -Value "## User not found: $Value"
            Write-Host "." -NoNewLine
            $Script:Errors = $Script:Errors + 1
        $j = $J + 1
    } Until ($Sheet.Cells.Item($j, $ID).Text -eq "")
    $Step = "27"
    CleanUp
    Add-Content -Path $LogFile -Value $("Finished: " + (Get-Date).ToString())
    Add-Content -Path $LogFile -Value "Number of users updated: $Script:Updated"
    Add-Content -Path $LogFile -Value "Number of users unchanged: $Script:Unchanged"
    Add-Content -Path $LogFile -Value "Number of errors: $Script:Errors"
    Write-Host ""
    "Done"
    "Number of errors: $Script:Errors"
    "See log file: $LogFile"

    Actually scripts run fine with excel file, currently we are using user-id to pick to update AD. Now we want to update AD use employee id. You can say to identify the record in AD through employee ID instead of user-id. 
    I do not think you will get anyone here to fix that for you.  You need to find someone who knows PowerShell to help you or learn PowerShell your self.
    I would fix it for you but not for free.  It is too oddly designed and has too many dependencies.  Any small change is likely to break it.
    ¯\_(ツ)_/¯

  • Importing from XML to Excel - need to know how to append to existing Excel file

    Hello,
    I have several XML files that I will need to import into one Excel spreadsheet. I have been able to figure out how to import an XML file to an Excel file but when I import a second XML file, the contents of the second XML overwrite the Excel spreadsheet.
    I am looking for an option to append. Thanks in advance
    private void XmlToExcel(string xmlFilePath, string excelFilePath)
    object misValue = System.Reflection.Missing.Value;
    DataSet Trans_ds = new System.Data.DataSet();
    Trans_ds.ReadXml(xmlFilePath);
    Excel.Application excel = new Excel.Application();
    excel.Application.Workbooks.Add(true);
    System.Data.DataTable table = Trans_ds.Tables[0];
    Worksheet worksheet = (Worksheet)excel.ActiveSheet;
    Range excelRange = (Excel.Range)worksheet.get_Range("A" + worksheet.Rows.Count, Type.Missing);
    int lastRow = excelRange.get_End(XlDirection.xlUp).Row;
    int ColumnIndex = 0;
    int rowIndex = lastRow++;
    foreach (System.Data.DataColumn col in table.Columns)
    ColumnIndex++;
    excel.Cells[lastRow, ColumnIndex] = col.ColumnName;
    foreach (DataRow row in table.Rows)
    rowIndex++;
    ColumnIndex = 0;
    foreach (DataColumn col in table.Columns)
    ColumnIndex++;
    excel.Cells[rowIndex + 1, ColumnIndex] = row[col.ColumnName];
    worksheet.StandardWidth = 20.0;
    worksheet.SaveAs(excelFilePath, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue);
    excel.Quit();
    releaseObject(worksheet);
    releaseObject(excel);

    See if this helps.  I opened the old excel file and added the new rows into the existing workbook.
    private void XmlToExcel(string xmlFilePath, string excelFilePath, Boolean append)
    object misValue = System.Reflection.Missing.Value;
    DataSet Trans_ds = new System.Data.DataSet();
    Trans_ds.ReadXml(xmlFilePath);
    Excel.Application excel = new Excel.Application();
    Excel.Workbook Bk = excel.Workbooks.Add(true);
    System.Data.DataTable table = Trans_ds.Tables[0];
    Excel.Worksheet worksheet = (Excel.Worksheet)excel.Worksheets[1];
    Excel.Range excelRange = (Excel.Range)worksheet.get_Range("A" + worksheet.Rows.Count, Type.Missing);
    int lastRow = excelRange.get_End(Excel.XlDirection.xlUp).Row;
    int ColumnIndex = 0;
    int rowIndex = lastRow++;
    foreach (System.Data.DataColumn col in table.Columns)
    ColumnIndex++;
    excel.Cells[lastRow, ColumnIndex] = col.ColumnName;
    foreach (DataRow row in table.Rows)
    rowIndex++;
    ColumnIndex = 0;
    foreach (DataColumn col in table.Columns)
    ColumnIndex++;
    excel.Cells[rowIndex + 1, ColumnIndex] = row[col.ColumnName];
    worksheet.StandardWidth = 20.0;
    if (append == false)
    worksheet.SaveAs(excelFilePath, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue);
    else
    //open old workbook
    Excel.Workbook oldworkbook = (Excel.Workbook)excel.Workbooks._Open(
    excelFilePath,
    Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing);
    //get first sheet in workbook
    Excel.Worksheet oldxlSht = (Excel.Worksheet)oldworkbook.Worksheets[1];
    //get column A of old worksheet to find last row in sheet
    Excel.Range xlRange = (Excel.Range)oldxlSht.get_Range(
    "A" + oldxlSht.Rows.Count, Type.Missing);
    int LastRow = xlRange.get_End(Microsoft.Office.Interop.Excel.XlDirection.xlUp).Row;
    int newrow = LastRow + 1;
    //get last row of new worksheet
    xlRange = (Excel.Range)worksheet.get_Range(
    "A" + oldxlSht.Rows.Count, Type.Missing);
    LastRow = xlRange.get_End(Microsoft.Office.Interop.Excel.XlDirection.xlUp).Row;
    // copy rows of new worksheet to old worksheet
    xlRange = (Excel.Range)worksheet.Rows["1:" + LastRow, Type.Missing];
    xlRange.Copy(oldxlSht.Rows[newrow, Type.Missing]);
    oldworkbook.Save();
    excel.Quit();
    releaseObject(oldxlSht);
    releaseObject(worksheet);
    releaseObject(excel);
    jdweng

  • I need help with the numbering pages in a book file

    I have a 53 chapter book that which each chapter is its own document. It used to work great. The page numbers of each document used to continue from the last page number of the previous document. That was until today when I opened it and all the page numbers now start at one. I don't know what to do. I have checked all of the options I knew to check. Each document still has the 'automatic page numbering' option selected. I truly don't want to have to go through and manully renumber every document. It will take time I do not have. If I can get somebody's help, it would be wonderful.

    Nor do I. It sounds like everything is set correctly. You might want to try creating a new Book file and add the individaul documents into it and see if that fixes things. Also, have you tried updating the numberingfrom the menu since this started?

  • Send mail using ALV tree(for excel file) outlook

    Hello Gurus!!!
    The code is as follows :-
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = 'C:\exceldown\tree2.xls'
       FILETYPE                        = 'ASC'
      APPEND                          = ' '
       WRITE_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                        = lt_project.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CREATE OBJECT outlook 'Outlook.Application'.
    CALL METHOD OF outlook 'CREATEITEM' = outmail EXPORTING #1 = 0.
    SET PROPERTY OF outmail 'TO' = '[email protected]'.
    SET PROPERTY OF outmail 'SUBJECT' = 'Project Management'.
    SET PROPERTY OF outmail 'BODY' =  'This is excel attachment'.
    *SET PROPERTY OF outmail 'Insert File' = 'C:\exceldown\tree2.xls'.
    <b>CALL METHOD OF outmail 'Insert File'.   <b>****NOT WORKING</b>
    SET PROPERTY OF outmail 'Attach' = 'C:\exceldown\tree2.xls'.</b>
    CALL METHOD OF outmail 'SEND'.
    FREE OBJECT outlook.
    Kindly suggest your answers.
    Helpful points will be rewarded
    Thanks,
    Sachin.

    Achieved the requirement using FM RS_TREE_CONSTRUCT

  • Need Help: Could WEBI report directly based on EXCEL file be refreshed?

    In 3.0, Could WEBI reports directly based on EXCEL file be refreshed, after exporting to BOE platform?
    I've made a test on that and find out WEBI report could not be freshed in Infoview while DESKI report could.
    Some colleague suggest me to build the WEBI report based on a Universe created based on the EXCEL file.
    I want to confirm, is it a by-design that we could only refresh WEBI report based on universe? or I could do some setting to made the refreshment of WEBI based directly on EXCEL file works?
    Please Help!! Thanks a lot~~~

    Hi Rachel,
    You could try the Rich Client Product Guide [http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_web_intelligence_rich_client_en.pdf] but I don't think it is a problem...more like a feature by design - it makes sense.
    You could try the route of creating a universe on top of excel... See posts
    [DBMS Independent universe;
    [how to connect to excel sheet and create a universe on top of that;
    Hope this helps
    Jacques

  • How to deliver dashboard page for each user using IBOT.

    Hi all,
    I have setup SA_SYSTEM and able to deliver the reports to indivisaul users,
    Now I want to send the dashboard page for indivisual user..
    How we can impliment this.
    My IBOT run for all users and deliver the mail...similarly we want for dashboard page.

    I have created session variable and used it in default prompt and used a presentation variable.
    My report is refering this presentaion varable..
    I can see the log ..reports are generating for each MD's Now.
    I am getting PDF in mail also but error.
    Request was canceled
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 46066] Operation cancelled. (HY000)

  • Return link on OBIEE dashboard page

    When we have a drill down from a dashboard page to a report, we will have a return link on the report to navigate back to the dashboard page.
    But if we are drilling down to another dashboard page, Can we have the OBIEE return link functionality on the target dashboard page to navigate back to the first dashboard page?
    I have tried following options:
    1.When I tried to incorporate this using OBIEE Guided navigation link, navigation is happening with all the filters which is expected.
    2.I tried it with link rather than Guided navigation link, the navigation is happening like the page loading for the first time, hence the user has to re-enter the prompts fields for dashboard page execution.
    My Objects are dashboards D1,D2 and Report R1
    Drill down on D1 will navigate to D2 and drill down on D2 will navigate to Report R1 and clicking return on R1 will navigate to D2.To navigate from D2 back to D1, I need the OBIEE return functionality.
    Can anyone help me on this?
    Thanks Shravan

    Hi Srikanth,
    Thank you for your response.
    I tried to follow the content in the link and I get a Web Page Not Found response.
    I substitued the parameters of scid and the Portalpath.
    I am not sure what else is going wrong.
    What is expected is if D1 dashboard being executed with certain parameters before navigation, then on clicking the Return link, we need to get the dashboard page executed with same parameters which is like Back button.I will not be able to use the script for Back functionality of the browser as I also have a drill dwon from the D2 dashboard page to the Report R1. Hence on clicking on Return will take me to R1 rather than D1.
    Below is the execution sequence that is required:
    D1-->D2-->D1
    D1-->D2-->R1-->D2-->D1
    Hence I would like to know how can I get the OBIEE return link displayed on the dashboard page which we get on a drill down request.
    Thanks
    Shravan

  • Easiest way of moving a dashboard page?

    I need to move a dashboard page made by a user to the dashboard area of another user. Is it possible? If so, what is the easiest way of doing it?
    Thanks a lot in advance,
    Fabio

    Settings - > Administration -> Manage Presentation Catalogue
    You will need to enable 'Show Hidden Items'
    Find the folder the dashboard was created in, this will be either :
    \shared Folders\<folder name>\_portal\<dashboard name>
    or
    \users\<user name>\_portal\<dashboard name>
    In the dashboard folders in the locations above you will see the pages , use the copy icon to either copy or move these to another dashboard folder (using the same location path templates as above).
    Watch out for :
    Accessing user folders can only be done by that user, you may need to get the user to copy the dashboard page to a shared folder if you want to pick it up for them.
    leave the "dashboard layout" file where it is and dont touch it. I have been moving dashboard pages in a single sign on environment using this method for a while (Single Sign On = no on-line catalogue manager). The page is only a reference to other objects (prompts, reports etc) so you only need to move the page. Obviously make sure the dashboard content has the correct permissions for the target audience !
    Try that out and let us know how you get on.
    HTH
    Alastair

  • Sending Acknowledgement back to webservice SOAP to File Scenario

    I need to receive information from a webservice to a file for which I have configured Sender SOAP Adapter and file adapter to generate file.
    Now I need to send and acknowldegment to
    webservice back if File is generated successfully..How do I do it ?
    Points will be awarded

    thanks..
    but I am not getting error when I tru to send request thru altovaxml spy iget following error in response
    <?xml version="1.0"?>
    <!-- see the documentation -->
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP:Body>
              <SOAP:Fault>
                   <faultcode>SOAP:Server</faultcode>
                   <faultstring>Server Error</faultstring>
                   <detail>
                        <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                              <context>XIAdapter</context>
                             <code>ADAPTER.JAVA_EXCEPTION</code>
                             <text><![CDATA[
    com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: www.w3schools.com
         at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:455)
         at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:133)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:855)
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
              ]]></text>
                        </s:SystemError>
                   </detail>
              </SOAP:Fault>
         </SOAP:Body>
    </SOAP:Envelope>

Maybe you are looking for

  • Spry accordion open on mouseover with extra content if too fast

    So I already did this and got the spry to open with a hover, Go to line 213 (or thereabouts) to find Spry.Widget.Accordion.prototype.onPanelTabClick = function(e, panel) and change that to Spry.Widget.Accordion.prototype.onPanelTabMouseOver = functio

  • Flash Player 10.2 Bug Resolved by ChessCube

    Flash 10.2 is a key part of the Adobe move towards a faster lightweight flash that leverages hardware acceleration. Early indications are that performance is massively enhanced. Flash is also on a critical path to get onto Android and other devices.

  • Difference between Foreign Currency or Multi Currency

    Hello, can someone tell me  the difference between using a Foreign Currency in a BP, and using the Multi-Currency option?  Does this affect also de Copy Exchange Rate From Base Document option? Thank you.

  • Password recovery, Local Director 417

    Greetings. I am looking to remove the login password from a Local Director 417. I have found directions for "Local Director Password Recovery", but they require a floppy drive. The 417 does not have a floppy drive. What would be the proper procedure

  • ORA-20104: create_collection_from_query - WORKAROUND FOUND!

    I have found a workaround for this problem. Idea is to silent all exceptions and tried twice same operations-delete and create collection!! --"ORA-20104: create_collection_from_query" BEGIN   APEX_COLLECTION.DELETE_COLLECTION (p_collection_name=>'HIS