Create new sheets in report with script?

Is it possible to create new sheets in the report using VBscripts?
I am writing a script that will create a report with different sheets. The number of sheets in the report will change in each report depending on the number of groups added in the data portal. For example: If there are 3 channel groups in the data portal I will need 3 sheets in the report.
I searched for the instructions but I could not find how to do it.
And another question: how can I insert the name of a channel group in the report?
I am using DIAdem 9.0.
Thank you very much!

For all with the same problem: You can copy the Picture an paste it automaticaly in ms word.
Here my code:
Call PicPrint("WinClip") ' Copy picture to clipboard
'open Word document
' Start Word via OLE.
  ' Always a new instance of Word will be created.
  Set Word = CreateObject("Word.Application")
  ' Make Word visible. Until now Word was not visible.
  Word.Visible = True
  ' Maximize Word-window.
  Word.WindowState = wdWindowStateMaximize
' Create new Word-document based on prepared template.
   AutoDrvLibr="C:\......"    'direction of the Word ducument
   Const DiademWordTemplate = ".....doc"                                'ducument name
   Word.Documents.Add AutoDrvLibr & DiademWordTemplate, false
    ' Maximize document-window.
call copy_to_Word
Private Sub copy_to_Word
  Word.ActiveWindow.WindowState = wdWindowStateMaximize
  ' Activate fullpage mode in Word.
  Word.ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitFullPage
  ' Set reference to Word-document.
  ' With the help of this reference you can easily acess the Word-document.
  Set WordDoc = Word.ActiveDocument
Const wdPasteMetafilePicture = &H3
'Paste picture
  Word.Selection.Range.PasteSpecial , , , , wdPasteMetafilePicture
  Word.Selection.EndKey 5                 'Set Courser to end of page
  Word.Selection.Range.InsertBreak(&H1)   'paste new sheet
  Word.Selection.MoveDown 5,1             'move ohne row down to set the courser to the next page
end sub

Similar Messages

  • Create multiple sheets in report based on distinct column values

    Hello all,
    We are using BOXI 3.1. I have a request from my users for which i cannot find a solution. The problem is i have a query and in a a column i have lets say 10 distinct values. For each of those values i need to generate a report within a report (a new sheet in report) that has data for only this value and schedule this to the users so they get excel file with many sheets.
    Is that even possible with BO? How can i approach this problem?
    My current solution is I generate 1 report and schedule it to excel file which gets delivered to users. Then i have a macro in excel that is on a network. The user then runs this VBA macro and it generates new sheets in excel. They are not satisfied with this solution :S .
    I know webi doesnt use VBA and deski is EOL. Is there any other solution?
    Regards, Martin

    Hi,
    From the first view this is not what i had in mind. But i will take a look at this too.
    Any other suggestions?
    tnx. M.

  • Create a Procedural ALV Report with editable fields and save the changes

    Hi,
    I am new to ABAP. I have created a Procedural ALV Report with 3 fields. I want to make 2 fields editable. When executed, if the fields are modified, I want to save the changes. All this I want to do without using OO concepts. Please help . Also, I checked out the forum and also the examples
    BCALV_TEST_GRID_EDIT_01
    BCALV_TEST_GRID_EDIT_02
    BCALV_TEST_GRID_EDIT_04_FORMS
    BCALV_TEST_GRID_EDITABLE
    BCALV_EDIT_01
    BCALV_EDIT_02
    BCALV_EDIT_03
    BCALV_EDIT_04
    BCALV_EDIT_05
    BCALV_EDIT_06
    BCALV_EDIT_07
    BCALV_EDIT_08
    BCALV_FULLSCREEN_GRID_EDIT
    But all these are using OO Concepts.
    Please help.
    Regards,
    Smruthi

    TABLES:     ekko.
    TYPE-POOLS: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
      line_color(4) TYPE c,     "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          gd_tab_group TYPE slis_t_sp_group_alv,
          gd_layout    TYPE slis_layout_alv,
          gd_repid     LIKE sy-repid.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM build_fieldcatalog.
      PERFORM build_layout.
      PERFORM display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
    fieldcatalog-edit             = 'X'
      fieldcatalog-col_pos     = 5.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-datatype     = 'CURR'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    ENDFORM.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    FORM build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
      gd_layout-info_fieldname =      'LINE_COLOR'.
    ENDFORM.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    FORM display_alv_report.
      gd_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = gd_repid
                i_callback_pf_status_set = 'STATUS'
                i_callback_top_of_page   = 'TOP-OF-PAGE'
               i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
               IT_EVENTS                = GT_XEVENTS
                i_save                  = 'X'
               is_variant              = z_template
           TABLES
                t_outtab                = it_ekko
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2.
    ENDFORM.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      DATA: ld_color(1) TYPE c.
      SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
       UP TO 10 ROWS
        FROM ekpo
        INTO TABLE it_ekko.
      LOOP AT it_ekko INTO wa_ekko.
        ld_color = ld_color + 1.
        IF ld_color = 8.
          ld_color = 1.
        ENDIF.
        CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
        MODIFY it_ekko FROM wa_ekko.
      ENDLOOP.
    ENDFORM.                    " DATA_RETRIEVAL
          FORM top-of-page                                              *
    FORM top-of-page.
      WRITE:/ 'This is First Line of the Page'.
    ENDFORM.
          FORM status                                                   *
    FORM status USING rt_extab TYPE slis_t_extab.  .
      SET PF-STATUS 'ALV'.
    ENDFORM.
          FORM USER_COMMAND                                          *
    -->  RF_UCOMM                                                      *
    -->  RS                                                            *
    FORM user_command USING rf_ucomm LIKE sy-ucomm
                             rs TYPE slis_selfield.            
      DATA ref1 TYPE REF TO cl_gui_alv_grid.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ref1.
      CALL METHOD ref1->check_changed_data.
      CASE rf_ucomm.
    when 'SAVE'.
    get all the modified entries and store them in an internal table and udpate them in to the required transaction or your custom table.
    endcase.
    endform.
    ENDFORM.
    here u need to 2 performs for PF status and USER_COMMAND in the ALV parameters.
    create a custom PF status and create push buttons and assign your ok codes in your PF status.
    if the field has to be edited in the ALV then pass EDIT = 'X' for that field in the fieldcatlog preparation.
    Hope this will help you.
    Regards,
    phani.

  • How to create user editable Crystal Report with dynamic dataset

    What I would like to achieve:
    A program loads a report in runtime updates list of database fields (possibly includes sample data), open report in "Crystal Reports 2011" (or 2008) where user customizes report and saves it. Later on the program loads the report, fills actualized data and displays it in .net report viewer.
    What I do:
    CrReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument
    CrReport.Load(TemplateFilename)
    Dim Results As DataTable
    DataTable is filled from a database
    CrReport.SetDataSource(mResults)
    CrReport.SaveAs(NewReportPath, True)
    The NewReportPath is opened in the default program.
    What are the problems
    The report is open in preview mode (not in design).
    When the field is added to the report the designer asks for XML datasource on preview.

    The short answer is that it is not possible. I broke the question to other two: How to save a report that it opens without preview? and How to create user editable Crystal Report with dynamic dataset, where it is possible to find details. Key answer is Re: How to create an editable previewable report?

  • Create a listing of reports with last run date and # of times run

    Hi All,
    I want to create a listing of reports with last run date and number of times report is run in the past 18 months.
    If anybody can please help me with the query for the same.
    Regards,
    Sk
    Edited by: user10989244 on Aug 18, 2009 7:12 AM

    Hi Sk
    Assuming you have the collection of statistics enabled, which it is out of the box, you can get the information you need from the EUL5_QPP_STATS table. This script will help:
    SELECT
    QPP.QS_DOC_OWNER WORKBOOK_OWNER,
    QPP.QS_DOC_NAME WORKBOOK_NAME,
    QPP.QS_DOC_DETAILS WORKSHEET_NAME,
    QPP.QS_CREATED_BY RUN_BY,
    TRUNC(MAX(QPP.QS_CREATED_DATE)) LAST_USED_DATE,
    COUNT(QPP.QS_ID) TIMES_USED
    FROM
    EUL5_QPP_STATS QPP
    WHERE
    QPP.QS_CREATED_DATE >= ADD_MONTHS(SYSDATE, -18)
    GROUP BY
    QPP.QS_DOC_OWNER,
    QPP.QS_DOC_NAME,
    QPP.QS_CREATED_BY,
    QPP.QS_DOC_DETAILS
    ORDER BY 1,2,3;
    Best wishes
    Michael

  • How to create new Custom XML Report without using Form Builder

    Hi,
    What are the steps to create new Custom XML Report without using Report Builder ?
    Thanks and Regards,
    Abhi

    Hi,
    Steps we now follow
    1)Create Data Model in Reports Builder
    2)Create xml
    3)Insert xml in Publisher to build Fomat
    4)FTp rdf
    5)Create Data Definition and Template
    6)Create executable and Concurrent Program
    Is there any way we can build reports without use of Report Builder ? By writing PL SQL Package for Before Report and After Report etc ...
    Thanks and Regards,
    Abhijit Rode

  • How to creat a summary of report with .txt

    Hi All,
         I want to creat a summary of report with .txt,and i have disabled the function about report generation in teststand.
         i created a complex sequence,it include some sub-sequences,example:the uut is tested on three different temperatures and four different voltages conditon.So i have creat three sub-sequences (diffrent temperatures) include four steps (different voltages),then mainsequence invoke three sub-sequences to excute test.
        i only want get the fail-step's summary with,include: fail-step's name,status 
        how to do?thanks a lot
    Solved!
    Go to Solution.

    You can use Parameters.Step.Name to get the failed step name. You can also use something like Parameters.Step.StepType.Name == "NI_MultipleNumericLimitTest" to filter different types of steps.
    As far as finding the entire failure chain...
    You can check RunState.CallStackDepth to see how many callers deep you are. Based on that information you can use RunState.Caller.Caller.(continued for however many callers deep you are).RunState.Step.Name or .Sequence.Name
    So if the CallStackDepth is 1, you would only need to use one Caller. If it was 2, you would need to recursively use 1 Caller and then 2 Callers and so on.
    CTA, CLA, MTFBWY

  • How to create new view without interlinking with gantt chart or resource views

    ok clear
    one another question
       In msp how to create new view without interlinking with gantt chart or resource views

    Hi Shiv PMC--
    I splitted your question above in another thread in order not to have  a huge thread with many topics in it.
    That being said, I'm not sure to understand. A view is just a manner to display MS Project data with columns. A view can have a table with column (left part) associated with a Gantt chart. It can also just contain a table with no Gantt chart (like the task
    table) or a table with a timephased grid (resource and task usage).
    Please give us more information, maybe with a concrete example so we can help you.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How Create New Folder in KM with Name having Special Character

    Hi,
    How to create new Folder in KM with name having special character in it.
    Right now its not allowing me to create folder when i have Colon( as one of the character in name of the folder.
    Is there a way to change this validate?
    Any help is appriciated.
    Thanks

    Hi DK,
    I'm not sure about special chars such as ":" but ifyou need to have your folders displaying special language chars (like german chars), have a look into the below link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30deb229-d570-2910-4aaf-8858e0660f05
    Hope that helps.
    Ray

  • Deploying/creating linked reports with script or command line

    Hi,
    Working with SSRS 2012.
    I have a couple of report folders with reports in it. Now I want to create linked reports of some of them in an existing reportfolder. I know how to do that manually, but it there a way to do that with for example
    RS.exe
    (or an other script solution).

    I'm not sure what the cause of the problem is, in my environment we don't utilize rs.exe. I can, however, provide example code in PowerShell that i got to work.  It's very basic, but works.
    [string]$webServiceUrl = "https://myreportserver.com/ReportServer/ReportService2010.asmx"
    $ssrsProxy = New-WebServiceProxy -Uri $webServiceUrl -UseDefaultCredential
    #File name of new linked item
    $itemPath = "LinkedReportTest_JJ"
    #Path of where the linked report should be created in
    $parent = "/Test"
    #Report we are basing our linked report on
    $link = "/Test/My_Test_SSRS_Report"
    #Create property object
    $type = $ssrsProxy.GetType().Namespace
    $linkPropertyType = ($type + '.Property')
    $linkProperty = New-Object ($linkPropertyType)
    $linkProperty.Name = "Description"
    $linkProperty.Value = "Test Linked Report"
    $ssrsProxy.CreateLinkedItem($itemPath,$parent,$link,$linkProperty)

  • How to create new Sheet in Excel file and write into it

    Hi to all, my requirement is this:
    I have an excel file (.xls) with multiple sheets (three sheets for precision: sheet1, sheet2 and sheet3).
    I must create in the same excel file new sheet, say sheet4, read data from sheet1, sheet2 and sheet3 and write them into sheet4.
    How to realize this in SSIS?
    Expecially, Is it possible to realize this in SSIS?
    thanks in advance.

    You need to create the sheet with the required metadata. There's no use creating blank sheet.
    Also metadata has to be fixed using a sample sheet prior to start of the package for setting the mapping. You may create a excel template for this purpose to just set the mapping at design time.
    At runtime pass actual excel sheet path for ExcelFilePath property of the source to point to correct file.
    Also the create table statement should include the same metadata info (columns)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    Hi, well it works fine! I have used a sample sheet prior to start of the package for setting the mapping.
    Next at run time  pass actual excel sheet path for ExcelFilePath property of the source to point to correct file.
    However I have set also ValidateExternalMetadata properties of the Excel Destination to false and DelayValidation properties of the package to true.
    Now my problem is the following:
    I stored the three sheets name (sheet1, sheet2, sheet3) in the Object type user variable through a script task and the foreach loop loops through the three sheets stored in the variable.
    Now, I want that at each iteration the CURRENT VALUE of the Object type user variable is mapped into another user variable wich in turn is given in input to the Excel Source.
    Resuming:
    -) I have to copy the content of three sheets (sheet1, sheet2, sheet3) of excel file into another new sheet,   sheet4.
    -) I stored the three sheets name (sheet1, sheet2, sheet3) in the Object type user variable.
    -) With a  foreach loop container I loops the three sheets stored in the Object type user variable.
    -) Within a foreach loop container I have a Data Flow Task that transfer data from source sheet (sheet1, sheet2, sheet3) into destination sheet, sheet4.
    -) PROBLEM: how to change dinamically at each iteration of the foreach loop the name of source sheet? In the destination excel Task the sheet is always the same at each iteration, sheet4. But in the source excel task the name of sheet musts change at each
    iteration. In particular at the first iteration the name of the source sheet must be "sheet1$", at the second iteration "sheet2$", in the last iteration "sheet3$".
    How to change sheet name dinamically at each iteration?
    thanks.

  • Create New NON SA user with Priviledges

    Hi all,
    I want to create new non sa user login with openrowset function privileges for read/write operation on excel sheet file.
    So please can nay one give me example or script to create non sa user login with above privileges.
    Thanks in advanced.

    Thanks to all for reply.
    I give ADMINISTER BULK OPERATIONS permission to user I also create linked server with required credentials but does not work. With sa
    credentials it work.
    I execute following statement
    select * from openrowset('Microsoft.ACE.OLEDB.12.0',
    Excel 12.0;HDR=Yes;Database ='C:SAMPLES\Northwind.xls';select * from [sheet1$])
    when I execute above statement it gives me error.
    please reply.
    Hi AK9841,
    Please review the detailed answer in your another thread,
    https://social.technet.microsoft.com/Forums/en-US/59710c1d-6bfe-42dc-ac80-643b9ae7f8f0/create-new-non-sa-user?forum=transactsql
    Thanks,
    Lydia Zhang

  • Creating new file using report generation express vi

    Hello,
    In my application, I need to write certain data in excel sheet. For that I created an excel template and I used the express vi in report generation toolkit to save the appropriate data in appropritate columns. I need a new file created everyday by that day's name and write the data to it rest of the day. I am having problems creating new file using this express vi. I tried using the low level vi's but not been able to it properly.
    Attaching my code and excel template.
    Please help.
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    excel write2.vi ‏119 KB
    Book2111.xltx ‏8 KB

    r_te wrote:
    The thing is everyday there cannot be a file provided.
    Sure there can.  Don't you see the input on the Express VI for a file? "Path To Save Report" is the name of the input you want.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Create new IMAP & SMTP account with AppleScript

    After reading a thread over here where some of you mentioned the problem creating a new mail account using AppleScript in fact there really seems to be a bug that doesn't allow to change authentication of a SMTP server to Password.
    So I ended up going this way using PListbuddy. Of course this is no complete script and you have to adapt it to your needs. But in general "automatic" creation of new accounts works fine. We're using it to provide this to our customers as Apple Mail does not support automatic creation of mail accounts using autoconfig or autoresponder.xml.
    set command1 to "/usr/libexec/PlistBuddy -c 'Add :DeliveryAccounts:0 dict' ~/Library/Preferences/com.apple.mail.plist"
    set command9 to "/usr/libexec/PlistBuddy -c 'Add :DeliveryAccounts:0:AccountName string " & theMail & "' ~/Library/Preferences/com.apple.mail.plist"
    set command2 to "/usr/libexec/PlistBuddy -c 'Add :DeliveryAccounts:0:AccountType string SMTPAccount' ~/Library/Preferences/com.apple.mail.plist"
    set command3 to "/usr/libexec/PlistBuddy -c 'Add :DeliveryAccounts:0:Hostname string " & servername & "' ~/Library/Preferences/com.apple.mail.plist"
    set command4 to "/usr/libexec/PlistBuddy -c 'Add :DeliveryAccounts:0:SSLEnabled string YES' ~/Library/Preferences/com.apple.mail.plist"
    set command5 to "/usr/libexec/PlistBuddy -c 'Add :DeliveryAccounts:0:ShouldUseAuthentication string YES' ~/Library/Preferences/com.apple.mail.plist"
    set command6 to "/usr/libexec/PlistBuddy -c 'Add :DeliveryAccounts:0:Username string " & username & "' ~/Library/Preferences/com.apple.mail.plist"
    set command7 to "/usr/libexec/PlistBuddy -c 'Add :DeliveryAccounts:0:uniqueId string " & myid & "' ~/Library/Preferences/com.apple.mail.plist"
    set command8 to "/usr/libexec/PlistBuddy -c 'Add :DeliveryAccounts:0:AuthenticationScheme string PASSWORD' ~/Library/Preferences/com.apple.mail.plist"
    do shell script command1
    do shell script command2
    do shell script command3
    do shell script command4
    do shell script command5
    do shell script command6
    do shell script command7
    do shell script command8
    do shell script command9
    tell application "Mail"
              set newimapac to make new imap account with properties {name:theDescription, user name:theUsername, uses ssl:true, server name:servername, port:"993", full name:theName, email addresses:{theMail}}
              tell newimapac
                        set authentication to password
                        set user name to username
                        set password to thePassword
              end tell
              set mysmtp to smtp server (theDescription)
              tell mysmtp
                        set password to mypass
              end tell
              set smtp server of newimapac to mysmtp
    end tell

    The following works exactly right, so far as I can tell (note that I made a copy of the Mail.app plist and renamed it
    com.apple.mail_copy.plist). what are you doing differently?
    set theMail to ""
    set servername to ""
    set myid to ""
    set username to ""
    set accountRecord to {AccountName:theMail, AccountType:"SMTPAccount", Hostname:servername, SSLEnabled:"YES", ShouldUseAuthentication:"YES", uniqueId:myid, |Username|:username, AuthenticationScheme:"PASSWORD"}
    tell application "System Events"
              set theMailPlist to property list file "~/Library/Preferences/com.apple.mail_copy.plist"
              tell theMailPlist
                        tell property list item "DeliveryAccounts"
                                  set newAccountItem to make new property list item at beginning with properties {kind:record, value:accountRecord}
                                  tell newAccountItem
                                              make new property list item with properties {kind:string, name:"Username", value:username}
                                  end tell
                        end tell
              end tell
    end tell
    to find a particular item in a list or directory, you use code like the following:
    tell application "System Events"
              set theMailPlist to property list file "~/Library/Preferences/com.apple.mail_copy.plist"
              tell theMailPlist
                        tell property list item "DeliveryAccounts"
                                  get every property list item whose (value of property list item "Username") contains "chump"
                        end tell
              end tell
    end tell

  • How to create a matrix like report with description column

    Hi,
    currently i have two tables - one describing a job and another describing the stock. it is a simple relation where a job uses stock.
    i join job and stock using stock_code. there are three categories of stock - namely envelope, insert, stationary.
    i wish to create a cross tab report - basically i would like it to look like
    jobname, envelope, stationary, insert
    abc, e1, s1, i1
    , ,s2,i2
    def, e2,s3,i4
    , e3, , i5
    basically for each job i would like to place the stock code under envelope, stationary, or insert based on what type of stock it is. i can do this in sql, however, i get left with blank spaces.
    i do this by
    select     
    "FILE_PARAMETER"."FILE_NAME" as "FILE_NAME",
    "CATEGORY",
    "STOCK"."STOCK_CODE" as "STOCK_CODE",
    decode(upper("CATEGORY"), 'LASER', "STOCK_CODE", '') "LASER",
    decode(upper("CATEGORY"), 'ENVELOPE', "STOCK_CODE", '') "ENVELOPE",
    decode(upper("CATEGORY"), 'INSERT', "STOCK_CODE", '') "INSERT",
    decode(upper("CATEGORY"), 'INSERT',"STOCK"."DESCRIPTION",'') "DESCRIPTION"
    from
    "FILE_PARAMETER" "FILE_PARAMETER",
    "JOB_OVERVIEW" "JOB_OVERVIEW",
    "STOCK" "STOCK"
    where
    "FILE_PARAMETER"."FILE_NAME"="JOB_OVERVIEW"."AP_JOB_CODE"
    and "FILE_PARAMETER"."SCODE"="STOCK"."STOCK_CODE"
    ORDER BY "FILE_PARAMETER"."FILE_NAME", "CATEGORY"
    unfortunately this doesn't give me exactly the output i want. i would like it to show the first piece of stock in each category on the first line, and each subsequent stock on the line after that for each job group. my solution at the moment will put the stock in the corresponding stock category column but i have been unable to find a solution to removing the blank space.
    i have created the matrix report in developer and it can do what i want, however, it will not show the description for insert only. the way i have grouped it, it wants to show it all, and being a reports newbie i have no idea how to fix that
    any solutions would be very much appreciated!

    This feature is supported in MS Access and known as CROSSTAB through TRANSFORM function.
    In Oracle this exists but not in a elegant way as in MS.
    You have addition function GROUP BY ROLLUP and CUBE and GROUP BY GROUPING SETS, available in 10g, which can help you.
    Look in manuals and play with it!

Maybe you are looking for

  • Problem in nokia lumia 620

    Facing while downloading in store in my nokia lumia 620. Getting error code c00cee22.

  • Acrobat Pro XI V11.0.2 - Word 2010 to PDF conversion fails to generate header text

    Hello, Following the recent update to V11.0.2, the Acrobat PDF converter for Word 2010 fails to generate the output document correctly. It misses out the text box part of the Word header. However, using Acrobat XI via the "Print to PDF printer" appea

  • I don't see the backup files option for my library

    I am currently using iTunes release 10.5.1.42 and I no longer see the option for backing up my files to CD.  It used to be under File>Library but again, the option is missing.  Can someone please advise me on a fix/work around for this issue? I have

  • Has anyone found a real solution to low call volume on the 4s?

    Has anyone actually solved this issue? I'm really not sure if it's a hardware issue or a software issue, and I'm nowhere near an apple store. It started out of the blue about a month ago. Speaker phone works fine, but the earpiece is pretty much usel

  • CD not playing from both speakers

    iTunes - when I burn a CD I can play it on my computer, however, when I play it in a boombox cd player, I only hear one speaker. Other CD's are fine. It is not the boombox. I think I may be saving file or converting improperly. Any thoughts?