Displaying different sheets at run time based on value of the parameter

Hi,
I've a query regarding displaying two different sheets at run time in Oracle discoverer based on the value of the parameter that i give.
I've a parameter Summary_flag.
If the value of the parameter is 'Y',then it should display a sheet,say for example it should display Sheet1.
If the value is 'N',then it should display another sheet, say for example it should display Sheet2.
Is there any way in which i can accomplish this?
I went through the Format and Tools menus but couldnt find anything regarding this aspect.
Can you help me out?
Thanks,

Having a Disco parameter dictate which worksheet is displayed is not an option that is available. There are a few workarounds, though:
1. Have a portlet (or some other web interface) accept your parameters, and then call the appropriate worksheet.
2. Have 2 worksheets, and have it devolve into a training issue (for a summary run this, for all the details run this).
3. Create calculations that will show or hide column data depending on the parameter selected - the columns will still be there, and you can fill them in with blanks, or a message like "N/A for Summary".
4. Create a report that will allow the users to drill between the summary and detail data - I'm not sure whether you could use a parameter to then say whether the report should open up summarized or expanded.

Similar Messages

  • My phone displays "Network search". Current time and date. When the SIM is inserted and when there is no sim

    My phone displays "Network search". Current time and date. When the SIM is inserted and when there is no sim.

    Hi, AlexKot.  
    Thank you for visiting Apple Support Communities.
    It sounds like you are experiencing an issue with your iPhone searching for service.  If you have not resolved this issue, I would recommend trying the troubleshooting steps in the article below.
    If you see No Service or Searching in the status bar of your iPhone or iPad
    http://support.apple.com/kb/ts4429
    Cheers,
    Jason H.

  • Is there a report I can run off that gives me all the Parameter ID's

    Hi there
    Is there a report in SAP that I can run that will give me all the parameter ID's that can be used in SU3 > parameters?
    Thanks
    Lou

    Hi Louise,
    I cant find a report for ur requirement but this can help u.
    Go to the filed for which you want parameter id e.g. at PO level you want to defualt the purchase group for particular user
    in this case hit F1 on the Purchase group field and click the technical button then you will see the parameter id for this field. it is not always the case for all the fields.
    kindly rreward if found helpful.
    cheers,
    Hema.

  • Loading style sheets at run time

    I have created few fonts css and compiled them into swf to
    load them at run time.
    There is one custom component Card, is placed into a Module
    and this Module is loaded by main application.
    The Card component contains TextArea, MyTextArea(custom
    component) and ComboBox (which display font list).
    Now when user select any font from ComboBox, Card component
    load css and when it get loaded, it updates fontFamily of TextArea
    and MyTextArea. But only TextArea updated with new fonts while
    MyTextArea is not getting update anytime.
    Can anyone help me to figure out this.
    I am using following code to load css run time.
    var myEvent:IEventDispatcher =
    StyleManager.loadStyleDeclarations(fontSource[0].src,true,false,ApplicationDomain.current Domain);
    myEvent.addEventListener(StyleEvent.COMPLETE,fontComplete);
    myEvent.addEventListener(StyleEvent.ERROR,fontError);
    Any help will be appreciated, Thanks

    Could you save the CSS files as SWCs instead of SWFs and compile them in to the IPA?
    Just a thought; I've never done this myself.
    -Randy Nielsen
    Senior Content and Community Manager
    Adobe Systems Incorporated

  • ALV GRID Display function module giving Run time error

    Hello Experts,
    I have ALV report, In which I am using ALV grid dispaly FM to display the report.
    But when my out table which I am passing to FM is empty that time ALV grid display shows blank ALV report. but when out table is not empty that time  I am getting the Run time error, which shows message "Field symbol has not yet been assigned".
    Can any one please help me out in this.
    Thanks

    TYPES: BEGIN OF type_out,
            col00    TYPE   ytlet-rzzyyproduct,
            col01    TYPE   ytlet-kslvt,
            col02    TYPE   ytlet-kslvt,
            col03    TYPE   ytlet-kslvt,
            col04    TYPE   ytlet-kslvt,
            col05    TYPE   ytlet-kslvt,
            col06    TYPE   ytlet-kslvt,
            col07    TYPE   ytlet-kslvt,
            col08    TYPE   ytlet-kslvt,
            col09    TYPE   ytlet-kslvt,
            col10    TYPE   ytlet-kslvt,
            col11    TYPE   ytlet-kslvt,
            col12    TYPE   ytlet-kslvt,
            col13    TYPE   ytlet-kslvt,
            col14    TYPE   ytlet-kslvt,
            col15    TYPE   ytlet-kslvt,
            col16    TYPE   ytlet-kslvt,
            col17    TYPE   ytlet-kslvt,
            col18    TYPE   ytlet-kslvt,
            col19    TYPE   ytlet-kslvt,
            col20    TYPE   ytlet-kslvt,
            col21    TYPE   ytlet-kslvt,
            col22    TYPE   ytlet-kslvt,
            col23    TYPE   ytlet-kslvt,
            col24    TYPE   ytlet-kslvt,
            col25    TYPE   ytlet-kslvt,
            col26    TYPE   ytlet-kslvt,
            col27    TYPE   ytlet-kslvt,
            col28    TYPE   ytlet-kslvt,
            col29    TYPE   ytlet-kslvt,
            col30    TYPE   ytlet-kslvt,
            col31    TYPE   ytlet-kslvt,
            col32    TYPE   ytlet-kslvt,
            col33    TYPE   ytlet-kslvt,
            col34    TYPE   ytlet-kslvt,
            col35    TYPE   ytlet-kslvt,
            col36    TYPE   ytlet-kslvt,
            col37    TYPE   ytlet-kslvt,
            col38    TYPE   ytlet-kslvt,
            col39    TYPE   ytlet-kslvt,
            col40    TYPE   ytlet-kslvt,
            col41    TYPE   ytlet-kslvt,
            col42    TYPE   ytlet-kslvt,
            col43    TYPE   ytlet-kslvt,
            col44    TYPE   ytlet-kslvt,
          END OF type_out.
    DATA: t_fieldcat   TYPE slis_t_fieldcat_alv,   "Field catelog table
          w_fieldcat   TYPE slis_fieldcat_alv,     "Field catelog Work area
          w_layout     TYPE slis_layout_alv,       "Layout structure
          w_event      TYPE slis_alv_event,        "Event structure
          t_event      TYPE slis_t_event,          "Event structure
          t_sort       TYPE STANDARD TABLE OF slis_sortinfo_alv,
          t_callback_main_user_command  TYPE  slis_formname,
          v_selfield TYPE slis_selfield.
    FIELD-SYMBOLS: <ksl>.
    FORM DISPLAY_REPORT .
    *Prepare Field Catlog
      PERFORM  creat_field_catlog.
    *Set layout
      PERFORM  set_layout.
    *Get Event
      PERFORM get_event.
    *Display Report
      PERFORM display_alv_report.
    ENDFORM.                    " DISPLAY_REPORT
    FORM creat_field_catlog .
      PERFORM add_fields_catlog USING:
           '01'    'RZZYYPRODUCT'     'IT_OUT'    'MPMs' ' ',
           '02'    'KSLVT'     'IT_OUT'    'License Fee' ' ',
           '03'    'KSLVT'     'IT_OUT'    'Ad Sales' ' ',
           '04'    'KSLVT'     'IT_OUT'    'Promo Fees' ' ',
           '05'    'KSLVT'     'IT_OUT'    'Total Ad Sales/Promo' ' ',
           '06'    'KSLVT'     'IT_OUT'    'Other' ' ',
           '07'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '08'    'KSLVT'     'IT_OUT'    'Dom Station' ' ',
           '09'    'KSLVT'     'IT_OUT'    'Basic Cable/Free VOD' ' ',
           '10'    'KSLVT'     'IT_OUT'    'License Fee' ' ',
           '11'    'KSLVT'     'IT_OUT'    'Ad Sales (incl Internet)' ' ',
           '12'    'KSLVT'     'IT_OUT'    'Promo Fees' ' ',
           '13'    'KSLVT'     'IT_OUT'    'Ad Sales & Promo Fees' ' ',
           '14'    'KSLVT'     'IT_OUT'    'Foreign' ' ',
           '15'    'KSLVT'     'IT_OUT'    'Pay TV' ' ',
           '16'    'KSLVT'     'IT_OUT'    'Other' ' ',
           '17'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '18'    'KSLVT'     'IT_OUT'    'Home Entertainment' ' ',
           '19'    'KSLVT'     'IT_OUT'    'SPTI' ' ',
           '20'    'KSLVT'     'IT_OUT'    'All Other Divisions' ' ',
           '21'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '22'    'KSLVT'     'IT_OUT'    'Total Revenue' ' ',
           '23'    'KSLVT'     'IT_OUT'  'PV Net Down & Producers Share' '',
           '24'    'KSLVT'     'IT_OUT'    'Total Net Revenue' ' ',
           '25'    'KSLVT'     'IT_OUT'    'Development Expense' ' ',
           '26'    'KSLVT'     'IT_OUT'    'SOP Deficits' ' ',
           '27'    'KSLVT'     'IT_OUT'    'Amortization' ' ',
           '28'    'KSLVT'     'IT_OUT'    'Other COS ' ' ',
           '29'    'KSLVT'     'IT_OUT'    'Total COS' ' ',
           '30'    'KSLVT'     'IT_OUT'    'Profit Before Releasing' ' ',
           '31'    'KSLVT'     'IT_OUT'    'Gross Profit %' ' ',
           '32'    'KSLVT'     'IT_OUT'    'SPT' ' ',
           '33'    'KSLVT'     'IT_OUT'    'Home Entertainment' ' ',
           '34'    'KSLVT'     'IT_OUT'    'SPTI' ' ',
           '35'    'KSLVT'     'IT_OUT'    'All Other Divisions' ' ',
           '36'    'KSLVT'     'IT_OUT'    'Other' ' ',
           '37'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '38'    'KSLVT'     'IT_OUT'    'Gross Profit' ' ',
           '39'    'KSLVT'     'IT_OUT'    'SPT' ' ',
           '40'    'KSLVT'     'IT_OUT'    'Home Entertainment' ' ',
           '41'    'KSLVT'     'IT_OUT'    'SPTI' ' ',
           '42'    'KSLVT'     'IT_OUT'    'All Other Divisions' ' ',
           '43'    'KSLVT'     'IT_OUT'    'Other' ' ',
           '44'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '45'    'KSLVT'     'IT_OUT'    'Net Margin' ' '.
    ENDFORM.                    " CREAT_FIELD_CATLOG
    *&      Form  ADD_FIELDS_CATLOG
          Filling of field Catlog
    FORM add_fields_catlog  USING    p_colpos
                                     p_fildname
                                     p_tabname
                                     p_fildtext
                                     p_ndisplay.
      w_fieldcat-row_pos       = '1'.
      w_fieldcat-col_pos       = p_colpos.
      w_fieldcat-fieldname     = p_fildname.
      w_fieldcat-tabname       = p_tabname.
      w_fieldcat-reptext_ddic  = p_fildtext.
      w_fieldcat-no_out        = p_ndisplay.
      APPEND w_fieldcat TO t_fieldcat.
      CLEAR: w_fieldcat.
    ENDFORM.                    " ADD_FIELDS_CATLOG
    *&      Form  SET_LAYOUT
          Set Layout
    FORM set_layout .
      w_layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    FORM get_event .
      w_event-name = 'TOP-OF-PAGE'.
      w_event-form = 'F_TOP-OF_PAGE'.
      APPEND w_event TO t_event.
    ENDFORM.                    " GET_EVENT
    *&      Form  TOP-OF-PAGE
          Top of Page
    FORM top-of-page.
      DATA : t_list_commentry   TYPE slis_t_listheader,
               w_header           TYPE slis_listheader,
               lv_text(90)        TYPE c,
               l_text(90)         TYPE c,
               lv_rundate(10)     TYPE c,
               lv_runtime(10)     TYPE c.
      CONSTANTS: c_space(2) TYPE c VALUE '  ',
                 c_space2(6) TYPE c VALUE '      '.
      w_header-typ  = 'S'.
      w_header-key  = 'Program:'.
      w_header-info = sy-repid.
      APPEND w_header TO t_list_commentry.
      WRITE: sy-datum TO lv_rundate MM/DD/YYYY.
      WRITE: sy-uzeit TO lv_runtime USING EDIT MASK '__:__:__'.
    CLEAR w_header.
    w_header-typ  = 'S'.
    w_header-key  = text-021.
    w_header-info = lv_rundate.
    APPEND w_header TO t_list_commentry.
      CLEAR: w_header.
      w_header-typ  = 'S'.
      w_header-key  = 'User Id'.
      w_header-info = sy-uname.
      APPEND w_header TO t_list_commentry.
      CLEAR: w_header.
      w_header-typ  = 'S'.
      w_header-key  = 'Run Date'.
      w_header-info = lv_rundate.
      APPEND w_header TO t_list_commentry.
      CLEAR: w_header.
      w_header-typ  = 'S'.
      w_header-key  = 'Run Time'.
      w_header-info = lv_runtime.
      APPEND w_header TO t_list_commentry.
      CLEAR: w_header.
      w_header-typ  = 'H'.
      w_header-key  = 'order'.
      w_header-info = 'MCR Report'.
      APPEND w_header TO t_list_commentry.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = t_list_commentry.
    ENDFORM.                    "TOP-OF-PAGE
    FORM display_alv_report .
      CONSTANTS : gc_save TYPE c VALUE 'A'. "Save Layout
    t_callback_main_user_command  = c_user_command.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
         i_callback_program                = sy-repid
      I_CALLBACK_PF_STATUS_SET          = ' '
        i_callback_user_command           = t_callback_main_user_command
         i_callback_top_of_page            = 'TOP-OF-PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
         is_layout                         = w_layout
         it_fieldcat                       = t_fieldcat
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
         i_save                            = gc_save
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = it_out
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
       ENDIF.

  • Calculation of KFs at query run-time based on Characteritics Drill-down

    Hello All,
    I have an Important Issue which I need to solve but got stuck.
    The report requirement is that we need calculate the KF values based on the drill-down selection in the report at run-time.
    Say for eg: if the user is drilling-down the report by customer, plant or company code or any thing else other than material group...we need to calculate / Include KF values for only Materail Group  = "A" and if we are at the materail group level we need to calculate all the material groups which includes A, B, T and so on.
    Please suggest what are the avialable options for me like using virtual key figures. please provide me with some sample codes.
    your help will be highly appricated.
    thanks,
    Pra

    any toughts....Pra

  • How to get value in data control at run time based on bind variable in VO

    Hi,
    we are capturing the value of customer id at run time. we are associating the captured value of customer id to bind variable of the view object.
    View object is returning the data of that customer id, this view object is part of the application module ,this application module is exposed as data control,so than we have drag and drop this view object response on the
    page from data control.
    How ever after assigning the customer id to bind variable but still it is not showing on jsf page,even we refreshed the data control manually with the help of java code so kindly provide some solution for it.

    Hi,
    If i got your post correctly,you can filter your VO using defining view criteria see following samples
    Oracle ADF - Create View Criteria and Execute using Bean.
    http://adf-lk.blogspot.com/2011/05/oracle-adf-create-view-criteria-and_4727.html

  • Display specified record in run time

    I am using report wizard in report builder to develop a report and display it through the web browser.
    The Query that I entered is :
    Select * from empMaster
    Question: If I want to display some specified record in RUNTIME(like, Select * from empMaster where Name='Peter'), what should I need to do? I am using web report tester to generate the web report. Do I need to add something in HTML in order to display specified record.
    I have tried to use xml file which customize the report to control the output.
    xml show as following:
    <report name="testrpt" author="Generated" DTDVersion="2.0">
    <data>
    <dataSource name="testrpt">
    <select>
    Select * from empMaster where empMaster.email='Peter'
    </select>
    </dataSource>
    </data>
    </report>
    I have checked the trace file. it contain no error but it still display all the record in the table.
    null

    hello,
    the easiest way is to
    1) create a parameter e.g. called my_where
    2) rephrase the query to
    select * from empMaster &my_where
    if you then run the report you can pass the where-clause to your report as a parameter. you can also enforce the parameter-form by passing the additional parameter PARAMFORM=HTML
    regards,
    the oracle reports team

  • Sales orders in TDMS company/time based reduction  are outside the scope

    Guys,
    I have had some issues with TDMS wheras it didn't handle company codes without plants very well. That was fixed by SAP. But I have another problem now. If I do a company code and time based reduction, It doesn't seem to affect my sales orders in VBAK/VBUK as I would have expected. I was hoping it would only copy sales orders across that have a plant which is assigned to a company code that was specified in the company code based reduction scenario. That doesn't seem to be the case.
    VBAK is now about one third of the size of the original table (number of records). But I see no logic behind the reduction. I can clearly see plenty of sales documents that have a time stamp way back from what I specified in my copy procedure and I can see others that have plant entries that should have been excluded from the copy as they do belong to different company codes than the ones I specified.
    I was under the impression that TDMS would sort out the correct sales orders for me but somehow that doesn't seem to be happening. I have to investigate further as to what exactly it did bring across but just by looking at what's in the target system I can see plenty of "wrong" entries in there either with a date outside the scope or with a plant outside the scope.
    I can also see that at least the first 10'000 entries in VBAK in the target system have a valid from and to date of 00.00.0000 which could explain why the time based reduction didn't work?
    Did you have similar experiences with your copies? Do I have to do a more detailed reduction such as specifying tables/fields and values?
    Thanks for any suggestions
    Stefan
    Edited by: Stefan Sinzig on Oct 3, 2011 4:57 AM

    The reduction itself is not based on the date when the order was created but the logic enhances it to invoices and offers, basically the complete update process.
    If you see data that definitely shouldn't be there I'd open an OSS call and let the support check what's wrong.
    Markus

  • Run time binding of textfields and the like

    Hi,
    I am working on a dynamic form,which will instantiate questions based on some instructions specified in XML when the form loads up, much like John Brinkman's example
    http://blogs.adobe.com/formfeed/2009/03/a_form_to_design_a_form.html
    At design time, it is not know which node in the data dom the field should be bound to, so I would like to be able to simulate a match="dataRef" ref="$.myNode" statement at run-time.
    However, my recollection is that the binding reference can't be changed at run time. Does anyone know if it can be done, and how to do it?
    John

    Hi Jason,
    Good to hear from you. In our case : "Validate Product data from SAP Enterprise Buyer " has been selected , but Cross -catalog Search is not selected. Though in our case we are dealing with Description Based Item (text item not product item)
    We are communicating to catalog company  about the validity method to support run time validation of price and items from catalog during creation of SC from template.
    So correct my understanding if catalog support validity
    1. Existing item new price in catalog:it will bring new price from catalog while creation of SC from template
    2. Item has blcked for new purchase in catalog: it will shows error in SC like "incomplete items in catalog   or   item doesnt valid"
    3.My default region is X but template for SC region is Y: While creation of SC from template with region Y it will show error that your default region is X  or    create SC w.r.t region Y with validation of Y region based catalogs item and price.
    Regards
    Dayal

  • Duplicate Cell Contents n-times based on value in neighboring cell?

    I have a sheet/table that contains ~150 rows of 2 columns:
    A B
    COUNT CONTENT
    I am looking for a way to duplicate each CONTENT in a new sheet/table COUNT times, and do this for each row.
    For example
    A B
    2 RED
    1 BLUE
    3 GREEN
    Would give me a sheet/table that contains one column that reads:
    RED
    RED
    BLUE
    GREEN
    GREEN
    GREEN
    Any ideas? Thanks in advance.

    Here is a modified version .
    (1) I added comments helping you to understand its behaviour.
    (2) added a property (use_GUIscripting) allowing you to choose the script's behaviour.
    - if you use GUI scripting, the set of datas is inserted in the table as a whole.
    - if you doesn't use it, the values are inserted one by one which is a bit slower.
    So I decided to give you freedom. You may make your own choice.
    --[SCRIPT buildand_fill_newtable]
    Enregistrer le script en tant que Script : buildand_fill_newtable.scpt
    déplacer le fichier créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Merci à Scott Lindsey & Ed.Stockly du forum [email protected]
    qui m'ont aidé à construire le code récupérant le bloc sélectionné.
    Sélectionner le bloc de cellules contenant les paramètres à utiliser.
    aller au menu Scripts , choisir Numbers puis choisir buildand_fill_newtable
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as a Script buildand_fill_newtable.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    une_valeur you would have to create the folder Numbers and even the folder Applications by yourself.
    Thanks to Scott Lindsey & Ed.Stockly from [email protected]
    which helped me to build the code grabbing the selected range.
    Select the range of cells containing parameters to use.
    go to the Scripts Menu, choose Numbers, then choose buildand_fill_newtable
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/09/02
    -- added comments and ability to choose between use GUIscripting and doesn’t use it
    --=====
    property use_GUIscripting : false
    true = use GUIscripting and paste values
    false = doesn't use GUIscripting
    property theApp : "Numbers"
    property les_valeurs : {}
    property nouvelles_valeurs : {}
    --=====
    on run
    local dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2, le_nombre, la_valeur
    if use_GUIscripting then my activateGUIscripting()
    my nettoie()
    try
    Extract infos about the source range *)
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    tell application "Numbers" to tell document dName to tell sheet sName
    tell table tName
    Extract the values of selected cells *)
    set my les_valeurs to value of cells colNum1 thru colNum2 of rows rowNum1 thru rowNum2
    --> {{2.0, "bleu"}, {3.0, "blanc"}, {5.0, "rouge"}, {1.0, "vert"}, {4.0, "noir"}, {6.0, "violet"}}
    end tell -- table
    repeat with une_reference in my les_valeurs
    set {le_nombre, la_valeur} to contents of une_reference
    repeat le_nombre times
    copy la_valeur to end of my nouvelles_valeurs
    end repeat
    end repeat
    --> {bleu, bleu, blanc, blanc, blanc, rouge, rouge, rouge, rouge, rouge, vert, noir, noir, noir, noir, violet, violet, violet, violet, violet, violet]
    Build an unique name for the new table *)
    set nouveau_nom to (do shell script "date +table%Y%m%d%H%M%S")
    if use_GUIscripting then (*
    Create a small new table *)
    make new table with properties {name:nouveau_nom, row count:3, column count:3}
    else (*
    Create a new table with the needed rows *)
    set rows_needed to count of nouvelles_valeurs
    make new table with properties {name:nouveau_nom, row count:rows_needed + 1, column count:3}
    end if
    As the default table has header row an header column, remove such items *)
    tell table nouveau_nom
    remove row 1
    remove column 1
    set selection range to cell "A1"
    end tell
    end tell
    if use_GUIscripting then
    --> the handler 'recolle' concatenate the values of the list nouvelles_valeurs in a text with values separated by return character.
    bleu
    bleu
    blanc
    blanc
    blanc
    rouge
    rouge
    rouge
    rouge
    rouge
    vert
    noir
    noir
    noir
    noir
    violet
    violet
    violet
    violet
    violet
    violet
    set the clipboard to my recolle(my nouvelles_valeurs, return)
    Triggering the menu item paste the entire set of values in a single task *)
    my selectMenu("Numbers", 4, 7) (* Paste Applying Style *)
    else
    Here we aren’t using GUI scripting so we must fill cells one by one. *)
    tell application "Numbers" to tell document dName to tell sheet sName to tell table nouveau_nom to tell column 1
    repeat with r from 1 to rows_needed
    The coercion as text is required to get rid of a Numbers bug. If the system doesn’t use decimal comma,
    inserting AppleScript decimal numbers (which use the decimal period) inserts a value like 12.34 which is treated as a string.
    If we coerce as string, the cell receive 12,34 which is correctly treated as a number *)
    set value of cell r to item r of nouvelles_valeurs as text
    end repeat
    end tell -- Numbers…
    end if
    end try
    Clear properties so that their contents will not be stored in the script. *)
    my nettoie()
    end run
    --=====
    on nettoie()
    set my les_valeurs to {}
    set my nouvelles_valeurs to {}
    end nettoie
    --=====
    set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
    on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
    tell application "Numbers"
    set d_Name to name of document d_Name (* useful if we passed a number *)
    tell document d_Name
    set s_Name to name of sheet s_Name (* useful if we passed a number *)
    tell sheet s_Name
    set t_Name to name of table t_Name (* useful if we passed a number *)
    end tell -- sheet
    end tell -- document
    end tell -- Numbers
    if r_Name contains ":" then
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
    end if
    else
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    end if -- r_Name contains…
    return {row_Num1, col_Num1, row_Num2, col_Num2}
    end getCellsAddresses
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
    apply to named row or named column !
    on decipher(d, s, t, n)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
    return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    on decoupe(t, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to oTIDs
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local oTIDs, t
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to oTIDs
    return t
    end recolle
    --=====
    on activateGUIscripting()
    (* to be sure than GUI scripting will be active *)
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true
    end tell
    end activateGUIscripting
    --=====
    my selectMenu("Pages",5, 12)
    ==== Uses GUIscripting ====
    on selectMenu(theApp, mt, mi)
    tell application theApp
    activate
    tell application "System Events" to tell process theApp to tell menu bar 1 to ¬
    tell menu bar item mt to tell menu 1 to click menu item mi
    end tell -- application theApp
    end selectMenu
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) 2 septembre 2010 15:53:49

  • Run time error occured while clicking the Log off

    Hello Experts,
    I have customized masthead file. In the masthead, when i click the log off link, the pop-up window will showing the Runtime error message. Its not working properly. I didnt make any changes in log off method. I traced the error,
    <%if (!isPreview){%>
              if (EPCM.getUAType() == EPCM.MSIE)
                   if(EPCM.getGlobalDirty())
                         // unsaved data on the page, display modified dialog
                        var val = window.showModalDialog('<%=GetLogoffConfirmUnsavedMsgURL(componentRequest)%>', '', '<%=LOGOFF_CONFIRM_MSG_ARGS_IE%>');
                        if (val == 'logoff')
                             disableWorkProtectCheck = true;
                             logoff();
                   else //no unsaved data
                        // data saved, nothing get lost on the page, display normal dialog
                      var val = window.showModalDialog('<%=GetLogoffConfirmMsgURL(componentRequest)%>', '', '<%=LOGOFF_CONFIRM_MSG_ARGS_IE%>');
                      if (val == 'logoff')
                          logoff();
              else
                   if(EPCM.getGlobalDirty())
                      window.open('<%=GetLogoffConfirmUnsavedMsgURL(componentRequest)%>', '<%=LOGOFF_CONFIRM_WINDOW_NAME%>', '<%=LOGOFF_CONFIRM_MSG_ARGS_NS%>');
                   else
                      window.open('<%=GetLogoffConfirmMsgURL(componentRequest)%>', '<%=LOGOFF_CONFIRM_WINDOW_NAME%>', '<%=LOGOFF_CONFIRM_MSG_ARGS_NS%>');
         <%}%>
    In this code having if condition if(EPCM.getGlobalDirty()) is set as true means, then only properly executed and it shows the Log off message. In my part it goes to the else part. Then it shows run time error message.
    I cannt able to find out the solution.Pls help me in this regarding.
    Regards
    Prakash T

    Hi,
    see if running SFC /Scannow helps. This basically restores missing/corrupt system files.
    Click Start/Run and type CMD
    Type SFC /Scannow
    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe):
    http://support.microsoft.com/kb/310747/EN-US/
    Please Reward Points if Helpful.
    Kind Regards,
    Vamsi.

  • Please help! when i try to open itunes get this"an app has mad an atempt to load the c run time library incorectly please contact the app support team for more info"

    Hi everyone I was wondering if someone can help with this issue please. When i tried to open itunes in my laptop that is running on windows xp i get this error message " program c:/program files/itunes/itunes.exe
                     RC034
                     an application has made an attempt to run the c runtime time library incorrectly
                     please contact the aplication support team for more information."

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99199)

  • I just moved iPhoto (9.6) library to EHD from my MBP. I had been running time machine backups. With the library now on an EHD, will time machine run a seamless backup next time i connect  (if i allow TM to see other drives)?

    I have MBP 2012 running Yosemite and iPhoto 9.6. I run Time machine backups daily.
    I just moved iPhoto library to EHD and removed the iPhoto library on MBP. I have enabled external drives to be accessed on TM. The next time i run a TM backup with the EHD  connected, will TM run a seamless backup or will it not like the fact that a backup is now spread across two devices where it used to be on only one?

    By default EHDs are excluded for TM backups - you have to go to the TM preferences ==> options and remove them from the excluded list
    And you need two disks connected -one for your iPhoto library and one for the TM backup - TM will backup all hard drives that ar not excluded - you do not need  multiple TM backup disks
    LN

  • How to display f4 help for a field based on value of another field

    Hello All,
    I have 4 fields : Sales Org : VBAK-VKORG, Distrib Channel : RV50A-VTWEG, Div : RV50A-SPART, Sold-to-party : KUAGV-KUNNR.
    The second field depends on the first one, the third on the second one and the fourth on the first field.
    However, when each of the second third and fourth fields' f4 help is displayed, the values are independent of the previous fields. How do I set the f4 help to display values based on the respective fields?
    Regards,
    Mithun

    Please be sure that you are searching the forums before posting. This exact same question was asked just yesterday:
    F4 help to input field
    In particular study the section and the linked help document for ddic search helps export/importing parameters and the requirements for DDic Structure/table usage for the parameter mapping.

Maybe you are looking for

  • Issue in Dynamic routing (OSB)

    Hi, I implemented dynamic routing in OSB,using xQuery:- +<tradingPartnerList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\bea910\user_projects\eclipse\TradingPartners.xsd">+ +     <tp>+ +          <Name>Plat

  • Cannot open Illustrator File

    I cannot open the recently saved Illustrator CS2 File. I get the "Text Import Options" box when trying to opening the file. The file do show up in Adobe Bridge. (CS2, Windows XP, file size: ~43M) Any idea what it can be? Thanks

  • Recording videos while recording sound?

    Hey everyone. Well I just got a new MacBook and I wanted to make some YouTube videos of me playing my guitar. How exactly would I record this? I have tried on iMovie, but I couldn't find a way to record audio and video at the same time. If anyone can

  • Beginner trying to get my beans to work with jsp on tomcat

    Please help me open my eyes! I know this is a stupid oversight on my part, but I've been working for days on getting other things to work on my tomcat server, so I'm out of ideas on this one. I've followed all the tomcat docs instructions on where to

  • Music issues

    Ever since I updated to IOS 8.0.2 on my 3rd gen Ipad my music is messed up. When I go to artist in music and I pick one and play a song every artist now I pick has the songs of the first artist I picked and no other songs form the artist I pick now.