Is this correct way of coding report

*& Report  ZPP_MELTSHOP
this report is :
based on the date it should pick all production orders & for each po it should display the quantity by material.
I am displaying the material of movement type '101' beside that in the same line I am displaying the quantities of material of movement type '261' ie. mscrap, pig iron etc.
just check the logic is correct in the code
pls reply
REPORT  zpp_meltshop NO STANDARD PAGE HEADING LINE-SIZE 150.
TYPE-POOLS: slis.
TABLES : afko,
         mkpf,
         mseg.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
*SELECT-OPTIONS : s_aufnr like afko-aufnr.
SELECT-OPTIONS: s_date FOR afko-gltrp.  "finish date
SELECTION-SCREEN END OF BLOCK b1.
DATA : BEGIN OF i_prod OCCURS 0,
          aufnr LIKE afko-aufnr,
          gstrp LIKE afko-gstrp,
          gltrp LIKE afko-gltrp,
       END OF i_prod.
DATA : BEGIN OF i_mseg OCCURS 0,
          mblnr LIKE mseg-mblnr,        "mat doc.no
          mjahr LIKE mseg-mjahr,
          zeile LIKE mseg-zeile,
          bwart LIKE mseg-bwart,        "movement type
          matnr LIKE mseg-matnr,
          werks LIKE mseg-werks,
          lgort LIKE mseg-lgort,
          charg LIKE mseg-charg,
          menge LIKE mseg-menge,
          meins LIKE mseg-meins,
          aufnr LIKE mseg-aufnr,
        END OF i_mseg.
DATA : BEGIN OF i_qals OCCURS 0,
          prueflos LIKE qals-prueflos,
          aufnr LIKE qals-aufnr,
       END OF i_qals.
DATA : BEGIN OF i_results OCCURS 0,
           prueflos LIKE qamv-prueflos,            "inspection lot number
           kurztext LIKE qamv-kurztext,            "short text of characteristic
           merknr LIKE qamr-merknr,                "inspection characteristic no.
           original_input LIKE qamr-original_input, "Original Value
       END OF i_results.
DATA : BEGIN OF i_short_text OCCURS 0,
           prueflos LIKE qamv-prueflos,            "inspection lot number
           merknr LIKE qamr-merknr,                "inspection characteristic no.
           kurztext LIKE qamv-kurztext,            "short text of characteristic
       END OF i_short_text.
DATA : BEGIN OF i_original_value OCCURS 0,
           prueflos LIKE qals-prueflos,            "inspection lot number
           merknr LIKE qamr-merknr,                "inspection characteristic no.
           original_input LIKE qamr-original_input, "Original Value
       END OF i_original_value.
DATA : BEGIN OF  i_final OCCURS 0,
          aufnr LIKE afko-aufnr,
          gstrp LIKE afko-gstrp,
          gltrp LIKE afko-gltrp,
          mblnr LIKE mseg-mblnr,        "mat doc.no
          bwart LIKE mseg-bwart,        "movement type
          matnr LIKE mseg-matnr,
          werks LIKE mseg-werks,
          lgort LIKE mseg-lgort,
          charg LIKE mseg-charg,
          menge LIKE mseg-menge,
          meins LIKE mseg-meins,
       END OF i_final.
DATA : BEGIN OF i_final2 OCCURS 0,
          aufnr LIKE afko-aufnr,
          gstrp LIKE afko-gstrp,
          gltrp LIKE afko-gltrp,
          mblnr LIKE mseg-mblnr,        "mat doc.no
          bwart LIKE mseg-bwart,        "movement type
          matnr LIKE mseg-matnr,
          werks LIKE mseg-werks,
          lgort LIKE mseg-lgort,
          charg LIKE mseg-charg,
          menge LIKE mseg-menge,
          meins LIKE mseg-meins,
          mqty1 LIKE mseg-menge,        "MILD STEEL SCRAP
          mqty2 LIKE mseg-menge,        "PIG IRON
          mqty3 LIKE mseg-menge,        "FOUNDRY RETURN NORMAL
          mqty4 LIKE mseg-menge,        "CALCINED PETROLEUM COK
          mqty5 LIKE mseg-menge,        "FERRO SILICON
          mqty6 LIKE mseg-menge,        "FERRO MANGANESE
          mqty7 LIKE mseg-menge,        "COPPER SCRAP
          prueflos LIKE qals-prueflos,            "inspection lot number
          merknr LIKE qamr-merknr,                "inspection characteristic no
          kurztext LIKE qamv-kurztext,            "short text of characteristic
          qc_c  LIKE qamr-original_input,
          qc_mn LIKE qamr-original_input,
          qc_ni LIKE qamr-original_input,
       END OF i_final2.
DATA : BEGIN OF i_final3 OCCURS 0,
           aufnr LIKE afko-aufnr,
           gstrp LIKE afko-gstrp,
           gltrp LIKE afko-gltrp,
           mblnr LIKE mseg-mblnr,        "mat doc.no
           bwart LIKE mseg-bwart,        "movement type
           matnr LIKE mseg-matnr,
           werks LIKE mseg-werks,
           lgort LIKE mseg-lgort,
           charg LIKE mseg-charg,
           menge LIKE mseg-menge,
           meins LIKE mseg-meins,
           mqty1 LIKE mseg-menge,        "MILD STEEL SCRAP
           mqty2 LIKE mseg-menge,        "PIG IRON
           mqty3 LIKE mseg-menge,        "FOUNDRY RETURN NORMAL
           mqty4 LIKE mseg-menge,        "CALCINED PETROLEUM COK
           mqty5 LIKE mseg-menge,        "FERRO SILICON
           mqty6 LIKE mseg-menge,        "FERRO MANGANESE
           mqty7 LIKE mseg-menge,        "COPPER SCRAP
           prueflos LIKE qals-prueflos,            "inspection lot number
           merknr LIKE qamr-merknr,                "inspection characteristic no
           kurztext LIKE qamv-kurztext,            "short text of characteristic
           qc_c  LIKE qamr-original_input,
           qc_mn LIKE qamr-original_input,
           qc_ni LIKE qamr-original_input,
        END OF i_final3.
DATA : indx TYPE i,
       indx2 TYPE i.
DATA : i_fieldcat TYPE slis_fieldcat_alv OCCURS 0,
       w_fieldcat TYPE slis_fieldcat_alv.
START-OF-SELECTION.
  SELECT aufnr gstrp gltrp FROM afko INTO TABLE i_prod WHERE gltrp IN s_date.
  IF sy-subrc EQ 0.
    SELECT  mblnr
            mjahr
            zeile
            bwart
            matnr
            werks
            lgort
            charg
            menge
            meins
            aufnr FROM mseg INTO TABLE i_mseg
                  FOR ALL ENTRIES IN i_prod WHERE aufnr = i_prod-aufnr
                  %_HINTS ORACLE 'INDEX("MSEG" "MSEG~ZPD")'.
    IF sy-subrc NE 0.
      MESSAGE e001(zmsg1).
    ENDIF.
  ELSE.
    WRITE : / 'No production orders found within the date'.
  ENDIF.
*qals
  IF NOT i_mseg[] IS INITIAL.
    SELECT prueflos
           aufnr
           INTO TABLE i_qals FROM qals FOR ALL ENTRIES IN i_mseg
           WHERE aufnr = i_mseg-aufnr.
  ENDIF.
*short text
  IF NOT i_qals[] IS INITIAL.
    SELECT prueflos
           merknr
           kurztext FROM qamv
                   INTO TABLE i_short_text
                   FOR ALL ENTRIES IN i_qals
                   WHERE prueflos = i_qals-prueflos.
  ENDIF.
*original value
  IF NOT i_short_text[] IS INITIAL.
    SELECT prueflos
           merknr
           original_input FROM qamr
                   INTO TABLE i_original_value
                   FOR ALL ENTRIES IN i_short_text
                   WHERE prueflos = i_short_text-prueflos.
  ENDIF.
  LOOP AT i_short_text.
    LOOP AT i_original_value WHERE prueflos = i_short_text-prueflos AND
                                    merknr = i_short_text-merknr.
      i_results-prueflos = i_short_text-prueflos.
      i_results-merknr = i_short_text-merknr.
      i_results-kurztext = i_short_text-kurztext.
      i_results-original_input = i_original_value-original_input.
      APPEND i_results.
    ENDLOOP.
  ENDLOOP.
*data : indx1 type i.
LOOP AT i_results.
indx1 = sy-tabix.
   LOOP AT i_original_value WHERE prueflos = i_results-prueflos AND
                                  merknr = i_results-merknr.
     i_results-original_input = i_original_value-original_input.
     modify i_results index indx1.
   ENDLOOP.
ENDLOOP.
*move data to i_final internal table
  LOOP AT i_prod.
    LOOP AT i_mseg WHERE aufnr = i_prod-aufnr.
   IF sy-subrc EQ 0.
      i_final-aufnr = i_mseg-aufnr.
      i_final-gstrp = i_prod-gstrp.
      i_final-gltrp = i_prod-gltrp.
      i_final-mblnr = i_mseg-mblnr.
      i_final-bwart = i_mseg-bwart.
      i_final-matnr = i_mseg-matnr.
      i_final-werks = i_mseg-werks.
      i_final-lgort = i_mseg-lgort.
      i_final-charg = i_mseg-charg.
      i_final-menge = i_mseg-menge.
      i_final-meins = i_mseg-meins.
   ENDIF.
      APPEND i_final.
      CLEAR i_final.
    ENDLOOP.
  ENDLOOP.
  LOOP AT i_final.
    i_final2-aufnr = i_final-aufnr.
    i_final2-gstrp = i_final-gstrp.
    i_final2-gltrp = i_final-gltrp.
    i_final2-mblnr = i_final-mblnr.
    i_final2-bwart = i_final-bwart.
    i_final2-matnr = i_final-matnr.
    i_final2-werks = i_final-werks.
    i_final2-lgort = i_final-lgort.
    i_final2-charg = i_final-charg.
    i_final2-menge = i_final-menge.
    i_final2-meins = i_final-meins.
    APPEND i_final2.
    CLEAR i_final2.
  ENDLOOP.
  LOOP AT i_final2.
    indx = sy-tabix.
    IF i_final2-bwart = '261'.
      READ TABLE i_final WITH KEY aufnr = i_final2-aufnr.
      IF sy-subrc EQ 0.
        IF i_final2-matnr = 'MSCRAP'.
          i_final2-mqty1 = i_final2-mqty1 + i_final-menge.
        ELSEIF i_final2-matnr = '100072'.    "PIG IRON
          i_final2-mqty2 = i_final2-mqty2 + i_final-menge.
        ELSEIF i_final2-matnr = 'RETFDYNORM'.  "FOUNDRY RETURN NORMAL
          i_final2-mqty3 = i_final2-mqty3 + i_final-menge.
        ELSEIF i_final2-matnr = '100062'.      "CALCINED PETROLEUM COK
          i_final2-mqty4 = i_final2-mqty4 + i_final-menge.
        ELSEIF i_final2-matnr = '100063'.      "FERRO SILICON
          i_final2-mqty5 =  i_final2-mqty5 + i_final-menge.
        ELSEIF i_final2-matnr = '100065'.      "FERRO MANGANESE
          i_final2-mqty6 = i_final2-mqty6 + i_final-menge.
        ELSEIF i_final2-matnr = '100070'.
          i_final2-mqty7 = i_final2-mqty7 + i_final-menge.
        ENDIF.
      ENDIF.
endif.
      READ TABLE i_qals WITH KEY aufnr = i_final2-aufnr.
      IF sy-subrc EQ 0.
        i_final2-prueflos = i_qals-prueflos.
      ENDIF.
if i_final2-bwart = '101'.
      LOOP AT i_results WHERE prueflos = i_final2-prueflos.
     IF sy-subrc EQ 0.
        i_final2-merknr = i_results-merknr.
        i_final2-kurztext = i_results-kurztext.
        IF i_final2-kurztext = 'C'.
          i_final2-qc_c = i_results-original_input.
        ELSEIF i_final2-kurztext = 'Mn'.
          i_final2-qc_mn = i_results-original_input.
        ELSEIF  i_final2-kurztext = 'Ni'.
          i_final2-qc_ni = i_results-original_input.
        ENDIF.
      ENDLOOP.
      ENDIF.
      MODIFY i_final2 INDEX indx.
   ENDIF.
ENDIF.
  ENDLOOP..
  LOOP AT i_final2.
    i_final3-aufnr = i_final2-aufnr.
    i_final3-gstrp = i_final2-gstrp.
    i_final3-gltrp = i_final2-gltrp.
    i_final3-mblnr = i_final2-mblnr.
    i_final3-bwart = i_final2-bwart.
    i_final3-matnr = i_final2-matnr.
    i_final3-werks = i_final2-werks.
    i_final3-lgort = i_final2-lgort.
    i_final3-charg = i_final2-charg.
    i_final3-menge = i_final2-menge.
    i_final3-meins = i_final2-meins.
         mqty1 LIKE mseg-menge,        "MILD STEEL SCRAP
         mqty2 LIKE mseg-menge,        "PIG IRON
         mqty3 LIKE mseg-menge,        "FOUNDRY RETURN NORMAL
         mqty4 LIKE mseg-menge,        "CALCINED PETROLEUM COK
         mqty5 LIKE mseg-menge,        "FERRO SILICON
         mqty6 LIKE mseg-menge,        "FERRO MANGANESE
         mqty7 LIKE mseg-menge,        "COPPER SCRAP
    i_final3-prueflos = i_final2-prueflos.            "inspection lot number
    i_final3-merknr = i_final2-merknr.                "inspection characteristic no
    i_final3-kurztext = i_final2-kurztext.            "short text of characteristic
    i_final3-qc_c = i_final2-qc_c.
    i_final3-qc_mn = i_final2-qc_mn.
    i_final3-qc_ni = i_final2-qc_ni.
    APPEND i_final3.
    CLEAR i_final3.
  ENDLOOP.
  LOOP AT i_final3.
    indx2 = sy-tabix.
loop at i_final2 where aufnr = i_final3-aufnr and
                       bwart = '261'.
if i_final3-bwart = '101'.
i_final3-mqty1 = i_final2-mqty1.
i_final3-mqty2 = i_final2-mqty2.
i_final3-mqty3 = i_final2-mqty3.
i_final3-mqty4 = i_final2-mqty4.
i_final3-mqty5 = i_final2-mqty5.
i_final3-mqty6 = i_final2-mqty6.
i_final3-mqty7 = i_final2-mqty7.
endif.
endloop.
modify i_final3 index indx2.
endloop.
PERFORM build_fieldcat.
END-OF-SELECTION.
  DATA : v_repid LIKE sy-repid.
  v_repid = sy-repid.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
  I_INTERFACE_CHECK                 = ' '
  I_BYPASSING_BUFFER                = ' '
  I_BUFFER_ACTIVE                   = ' '
     i_callback_program                = v_repid
  I_CALLBACK_PF_STATUS_SET          = ' '
  I_CALLBACK_USER_COMMAND           = ' '
  I_CALLBACK_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                         =
     it_fieldcat                       = i_fieldcat
  IT_EXCLUDING                      =
  IT_SPECIAL_GROUPS                 =
  IT_SORT                           =
  IT_FILTER                         =
  IS_SEL_HIDE                       =
  I_DEFAULT                         = 'X'
  I_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                          = i_final3.
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.
*&      Form  BUILD_FIELDCAT
      text
-->  p1        text
<--  p2        text
FORM build_fieldcat .
  PERFORM field_create USING 'AUFNR' 'Production Order' 'Prod.Ord' 1 15.
  PERFORM field_create USING 'GSTRP' 'Basic Start date' 'St. Date' 2 10.
  PERFORM field_create USING 'GLTRP' 'Basic End date' 'End. Date' 3 10.
  PERFORM field_create USING 'MBLNR' 'Material Documnet' 'Mat.Doc' 4 10.
PERFORM field_create USING 'BWART' 'Movement type' 'Mvmt. type' 5 3.
  PERFORM field_create USING 'MATNR' 'Material' 'Material' 6 10.
  PERFORM field_create USING 'WERKS' 'Plant' 'Plant' 7 4.
PERFORM field_create USING 'LGORT' 'Storage Location' 'St. Loc' 8 5.
  PERFORM field_create USING 'CHARG' 'Batch number' 'Batch. No' 9 5.
  PERFORM field_create USING 'MENGE' 'Quantity' 'Qty.' 10 13.
PERFORM field_create USING 'MEINS' 'Base unit of measure' 'Unit of measure' 11 3.
  PERFORM field_create USING 'MQTY1' 'MILD STEEL SCRAP' 'MS SCRAP' 12 13.
  PERFORM field_create USING 'MQTY2' 'PIG IRON' 'PIG IRON' 13 13.
  PERFORM field_create USING 'MQTY3' 'FOUNDRY RETURN NORMAL' 'FOUNDRY RET' 14 13.
  PERFORM field_create USING 'MQTY4' 'CALCINED PETROLEUM COK' 'CAL PETROLEUM' 15 13.
  PERFORM field_create USING 'MQTY5' 'FERRO SILICON' 'FERRO SIL' 16 13.
  PERFORM field_create USING 'MQTY6' 'FERRO MANGANESE' 'FERRO MANG' 17 13.
  PERFORM field_create USING 'MQTY7' 'COPPER SCRAP' 'COPPER SCRAP' 18 13.
  PERFORM field_create USING 'QC_C' 'QC_C' 'QC_C' 19 25.
  PERFORM field_create USING 'QC_MN' 'QC_MN' 'QC_MN' 20 25.
  PERFORM field_create USING 'QC_NI' 'QC_NI' 'QC_NI' 21 25.
ENDFORM.                    " BUILD_FIELDCAT
*&      Form  FIELD_CREATE
      text
     -->P1   text
     -->P2   text
     -->P3      text
     -->P4     text
FORM field_create  USING    value(p1)
                            value(p2)
                            value(p3)
                            value(p4)
                            value(p5).
  w_fieldcat-fieldname   = p1.
  w_fieldcat-seltext_l   = p2.
  w_fieldcat-seltext_m   = p3.
  w_fieldcat-col_pos     =  p4.
  w_fieldcat-outputlen = p5.
*w_fieldcat-no_zero = 'X'.
  APPEND w_fieldcat TO i_fieldcat.
  CLEAR  w_fieldcat.
  CLEAR : p1, p2, p3, p4, p5.
ENDFORM.                    " FIELD_CREATE
Edited by: uday madhav chebrolu on May 20, 2008 2:02 PM

There are so many mistakes in the code:
1) Don't declare data using TABLE statement, it brings the table into buffer, is not good performance wise.
2)Don't use LIKE statements, use TYPE declarations.LIKE statement is obsolete.
3)Modularize the code using SUBROUTINES.
4)Use PARALLEL SURSOR when there are nested loops.
5)Use read statement with addition of BINARY SEARCH

Similar Messages

  • I would like to read a text file in which the decimal numbers are using dots instead of commas. Is there a way of converting this in labVIEW, or how can I get the program to enterpret the figures in the correct way?

    The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!

    You must go in the labview option menu, you can select 'use the local
    separator' in the front side submenu (LV6i).
    If you use the "From Exponential/Fract/Eng" vi, you are able to select this
    opton (with a boolean) without changing the labview parameters.
    (sorry for my english)
    Lange Jerome
    FRANCE
    "Nina" a ecrit dans le message news:
    [email protected]..
    > I would like to read a text file in which the decimal numbers are
    > using dots instead of commas. Is there a way of converting this in
    > labVIEW, or how can I get the program to enterpret the figures in the
    > correct way?
    >
    > The program doest enterpret my figures from the text file in the
    > correct way since the numbers contain dots instea
    d of commas. Is there
    > a way to fix this in labVIEW, or do I have to change the files before
    > reading them in the program? Thanks beforehend!

  • Ok, does anyone know the correct way to do this

    Hi all
    would someone beable to explain the correct way of attaching dynamic text to a rotaing menu so that the text moves with the image as it rotates,
    I am now being told that in order to have dynamic text rotate/move I have to embed the font, by placing a text field on the stage outside my flash area and then set embedFonts property to true, and then apply a textformat.
    first, is this the correct way of doing it?
    second, can someone please explain(by breaking down into steps, as I am a newbie) how I go about setting embedFonts property to true and applying a textformat.
    what I have created;
    1.)I created a movieclip called 'textHolder' inside this has two dynamic text fields called 'headerText'  & 'bodyText'  <<<<< IS THIS CORRECT?
    2.)I have an xml file which will load the text in as well as the images with the rotating menu, see below;  <<<IS THIS CORRECT????
    <?xml version="1.0" encoding="utf-8"?>
    <data>
      <image name="image 1" path="img/img1.jpg"
        textHolder.headerText="Sunset"
        textHolder.bodyText="The hour of night is near, as the skies get blood-filled" />
    <data>
    3.What I am missing is what script I need for the main.as file, can anyone help here?
    so to break down.
    I have a rotating menu that is driven by xml, that loads images on the menu. I would also like to load text to the left of each image, and have the text be fixed with the image as it rotates.
    I can post the as, but I would like to know if the above is correct first, if you would like to see the main script please say.
    I have attached a jpg layout to give you an idea as to what I am trying to explain. can someone please help!!!!!!!!!
    (this is my previous post: http://forums.adobe.com/thread/463213?tstart=0  but I feel its got lost a little along the way)

    MY CURRENT SCRIPT, CAN YOU SEE HOW TO ATTACH THE TEXT WITH THE IMAGE?
    package 
    import flash.display.DisplayObject;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.net.URLLoaderDataFormat;
    import soulwire.ui.CircleMenu;
    public class Main extends Sprite
      //————————————————————————————————————————————— CLASS MEMBERS  VALUE
      public var circleMenu:      CircleMenu;
      public var xmlLoader:      URLLoader;
      //——————————————————————————————————————————————— CONSTRUCTOR
      public function Main()
      circleMenu = new CircleMenu( 300, 32, 14 );
      circleMenu.x = 150;
      circleMenu.y = 300;
      addChildAt( circleMenu, 0 );
      // Use URLLoader to load XML
      xmlLoader = new URLLoader();
      xmlLoader.dataFormat = URLLoaderDataFormat.TEXT;
      // Listen for the complete event
      xmlLoader.addEventListener(Event.COMPLETE, onXMLComplete);
      xmlLoader.load(new URLRequest("data.xml"));
      /*for (var i:int = 0; i < 20; i++)
        // MyMenuItem can be a symbol from your library
        // or any class which extends DisplayObject!
        var item:MyMenuItem = new MyMenuItem();
        item.txt.text = 'Menu Item ' + (i + 1);
        item.txt.mouseEnabled = false;
        item.buttonMode = true;
        item.addEventListener( MouseEvent.CLICK, onMenuItemClick );
        circleMenu.addChild( item );
      circleMenu.currentIndex = 4;*/
      // Enable the mouse wheel
      stage.addEventListener( MouseEvent.MOUSE_WHEEL, onMouseWheel );
      // Set up the UI
      ui.spacingSlider.addEventListener( Event.CHANGE, onSliderChange );
      ui.radiusSlider.addEventListener( Event.CHANGE, onSliderChange );
      ui.minAlphaSlider.addEventListener( Event.CHANGE, onSliderChange );
      ui.minScaleSlider.addEventListener( Event.CHANGE, onSliderChange );
      ui.scaleSlider.addEventListener( Event.CHANGE, onSliderChange );
      ui.itemsSlider.addEventListener( Event.CHANGE, onSliderChange );
      ui.spacingSlider.dispatchEvent( new Event( Event.CHANGE) );
      ui.radiusSlider.dispatchEvent( new Event( Event.CHANGE) );
      ui.minAlphaSlider.dispatchEvent( new Event( Event.CHANGE) );
      ui.minScaleSlider.dispatchEvent( new Event( Event.CHANGE) );
      ui.scaleSlider.dispatchEvent( new Event( Event.CHANGE) );
      ui.itemsSlider.dispatchEvent( new Event( Event.CHANGE) );
      //———————————————————————————————————————————— EVENT HANDLERS
      private function onXMLComplete(event:Event):void
      // Create an XML Object from loaded data
      var data:XML = new XML(xmlLoader.data);
      // Now we can parse it
      var images:XMLList = data.image;
      for(var i:int = 0; i < images.length(); i++)
        // Get info from XML node
        var imageName:String = images[i].@name;
        var imagePath:String = images[i].@path;
      //  var textInfo:TextInfo = new TextInfo(); 
    //      textInfo.headerText.text = images[i].@headerText; <<<<THIS IS WHAT i HAVE TRIED, GET ERRORS SO COMMENTED OUT
    //    textInfo.bodyText.text = images[i].@bodyText;
    //    addChild(textinfo);
                  //textInfo.x=120;
        //textInfo.y=300;
        var sp:Sprite=new Sprite();    <<<<<<<< THIS IS SCRIPT JUST ADDED
        var tf:TextField=new TextField();
        tf.wordWrap=true;
        tf.width=200;
        var ldr:Loader=new Loader();
        addChild(sp);
        sp.addChild(tf);
        sp.addChild(ldr);
        ldr.x=tf.width+10;
        // Load images using standard Loader
        var loader:Loader = new Loader();
        // Listen for complete so we can center the image
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImageComplete);
        loader.load(new URLRequest(imagePath));
        // Create a container for the loader (image)
        var holder:Sprite = new Sprite();
        holder.addChild(loader);
        // Same proceedure as before
        holder.buttonMode = true;
        holder.addEventListener( MouseEvent.CLICK, onMenuItemClick );
        // Add it to the menu
        circleMenu.addChild(holder);
      private function onImageComplete(event:Event):void
      var img:Loader = event.currentTarget.loader;
      img.content["smoothing"] = true;
      img.x = -(img.width/2);
      img.y = -(img.height/2);
      private function onMouseWheel( event:MouseEvent ):void
      event.delta < 0 ? circleMenu.next() : circleMenu.prev();
      private function onMenuItemClick( event:MouseEvent ):void
      circleMenu.scrollToItem( event.currentTarget as DisplayObject );
      private function onSliderChange( event:Event ):void
      switch( event.currentTarget )
        case ui.spacingSlider:
        circleMenu.angleSpacing = event.currentTarget.value;
        break;
        case ui.radiusSlider:
        circleMenu.innerRadius = event.currentTarget.value;
        break;
        case ui.minAlphaSlider:
        circleMenu.minVisibleAlpha = event.currentTarget.value;
        break;
        case ui.minScaleSlider:
        circleMenu.minVisibleScale = event.currentTarget.value;
        break;
        case ui.scaleSlider:
        circleMenu.activeItemScale = event.currentTarget.value;
        break;
        case ui.itemsSlider:
        circleMenu.visibleItems = event.currentTarget.value;
        break;

  • I am trying to open an interactive chart but I am getting a message saying i need flash and it is not compatible with the iPad, is this correct or is there some way around it. Thank you.

    I am trying to open an interactive chart but I am getting a message saying I need to install flash but it is not compatible with iPad, is this correct or is there some way around it. Thank you.

    Flash is not supported on the iPad - and as Adobe have never managed to make a version of their flash player that works on iOS devices, and they have recently announced that they are stopping development on all mobile versions of it, it probably never will be
    Browser apps such as Skyfire, iSwifter, Puffin and Photon 'work' on some sites, but judging by their reviews not all sites. Also some websites, especially news sites, have their own apps in the App Store.

  • Wondering if this was the correct way to patch my kernel for CFLAGS?

    Hello. I use to build the zen-sources kernel but stopped many months ago. I didn't really need all of those patches but I did miss the Custom CFLAGS/MAKEFLAGS option that the zen kernel had. I also missed the 432HZ Timer frequency setting available in the zen patch.
    So I researched a bit and grabbed these parts from the zen patch to add to the Arch kernel:
    For the CFLAGS/MAKEFLAGS
    diff --git a/Makefile b/Makefile
    index 1ab3ebf..472fe73 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -328,13 +328,12 @@ CHECK = sparse
    CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
    -Wbitwise -Wno-return-void $(CF)
    MODFLAGS = -DMODULE
    -CFLAGS_MODULE = $(MODFLAGS)
    -AFLAGS_MODULE = $(MODFLAGS)
    -LDFLAGS_MODULE =
    -CFLAGS_KERNEL =
    +CFLAGS_MODULE = $(MODFLAGS) $(CUSTOM_CFLAGS)
    +AFLAGS_MODULE = $(MODFLAGS)
    +LDFLAGS_MODULE =
    +CFLAGS_KERNEL = $(CUSTOM_CFLAGS)
    AFLAGS_KERNEL =
    # Use LINUXINCLUDE when you must reference the include/ directory.
    # Needed to be compatible with the O= option
    LINUXINCLUDE := -Iinclude \
    @@ -344,6 +343,9 @@ LINUXINCLUDE := -Iinclude \
    KBUILD_CPPFLAGS := -D__KERNEL__
    +# Apply custom flags
    +KBUILD_CFLAGS += $(CUSTOM_CFLAGS)
    +
    KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
    -fno-strict-aliasing -fno-common \
    -Werror-implicit-function-declaration
    diff --git a/init/Kconfig b/init/Kconfig
    index 6a5c5fe..7b2f4b5 100644
    --- a/init/Kconfig
    +++ b/init/Kconfig
    @@ -672,6 +734,32 @@ config CC_OPTIMIZE_FOR_SIZE
    If unsure, say Y.
    +menu "Custom Build Flags"
    +
    +config CUSTOM_CFLAGS
    + string "Custom CFLAGS for kernel"
    + default ""
    + help
    + You can use this to easily set custom gcc CFLAGS to be used for the
    + entire kernel (including modules).
    +
    + No warning for you, i can't fix stupidity.
    +
    + If unsure, leave blank.
    +
    +config CUSTOM_MAKEFLAGS
    + string "Custom MAKEFLAGS for kernel"
    + default ""
    + help
    + You can use this to easily set custom MAKEFLAGS to be used for building
    + the entire kernel.
    +
    + (Or just use the options when you run make?)
    +
    + If unsure, leave blank.
    +
    +endmenu
    +
    config SYSCTL
    bool
    and for the Timer frequency:
    diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
    index 94fabd5..7a830d4 100644
    --- a/kernel/Kconfig.hz
    +++ b/kernel/Kconfig.hz
    @@ -4,7 +4,7 @@
    choice
    prompt "Timer frequency"
    - default HZ_250
    + default HZ_1000
    help
    Allows the configuration of the timer frequency. It is customary
    to have the timer interrupt run at 1000 Hz but 100 Hz may be more
    @@ -23,6 +23,30 @@ choice
    with lots of processors that may show reduced performance if
    too many timer interrupts are occurring.
    + config HZ_108
    + bool "108 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. This is for Eight core/Processor systems only
    + as timer frequencies * NR_CPUS = actual frequency.
    + Try this if you have a Eight Core/Processor processor system and a desktop environment.
    +
    + config HZ_144
    + bool "144 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. This is for Six Core/Processor systems only
    + as timer frequencies * NR_CPUS = actual frequency.
    + Try this if you have a Six core/processor system and a desktop environment.
    +
    + config HZ_216
    + bool "216 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. This is for Quad-core/Processor systems only
    + as timer frequencies * number of processors = actual frequency.
    + Try this if you have a quad-core/dual processor system and a desktop environment.
    +
    config HZ_250
    bool "250 HZ"
    help
    @@ -39,6 +63,22 @@ choice
    on SMP and NUMA systems and exactly dividing by both PAL and
    NTSC frame rates for video and multimedia work.
    + config HZ_432
    + bool "432 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. This is for Dual Core/Processor systems only
    + as timer frequencies * number of processors = actual frequency.
    + Try this if you have a dual-core/dual processor system and a desktop environment.
    +
    + config HZ_864
    + bool "864 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. The only reason it is not default is
    + because it may break few drivers. Give it a try if you have
    + a desktop :).
    +
    config HZ_1000
    bool "1000 HZ"
    help
    @@ -50,8 +90,13 @@ endchoice
    config HZ
    int
    default 100 if HZ_100
    + default 108 if HZ_108
    + default 144 if HZ_144
    + default 216 if HZ_216
    default 250 if HZ_250
    default 300 if HZ_300
    + default 432 if HZ_432
    + default 864 if HZ_864
    default 1000 if HZ_1000
    config SCHED_HRTICK
    Well the code was added to my make menuconfig kernel settings, and is in the .config of my newly compiled kernel..... I'm just wondering if I did this correctly. (I'm pretty sure that I did a crappy job of patching since I just grabbed the pieces of the zen patch that I thought were the correct one)..... This is the message from the patch:
    patching file Makefile
    patching file init/Kconfig
    patch unexpectedly ends in middle of line
    Hunk #1 succeeded at 734 with fuzz 2.
    patching file kernel/Kconfig.hz
    patch unexpectedly ends in middle of line
    Hunk #4 succeeded at 90 with fuzz 1.
    So if someone can tell me a better way to patch the kernel26 for custom CFLAGS and 432HZ Timer frequency (for dual core) I would appreciate it. Thanks.

    I'm still trying to find out if I needed to patch any other parts of the kernel source when I added CFLAGS to the kernel modules? I also would like to know if I did the Timing part correctly (so I could use the 432HZ setting for a dual core).
    ..... so far this kernel has worked ok for the last 4 days. Does anybody know how I can benchmark it and compare it to other kernels that I have built with different settings?
    Any info is appreciated.
    Last edited by methuselah (2009-05-19 15:20:55)

  • Which of of these two choices is the correct way to call a report ?

    Environment is 9iAS.
    Which of of these two choices is the correct way to call a report from the menu?
    Choice 1) CGNV$INVOKE_REPORT('W02226.adinfra.net:8888,reports9i', 'rv043knd.rdf', CACHE, '', 'HTML',NULL );
    Coice 2) qms$menu.set_current_action('LAUNCH_REPORT','rv043knd.rdf'); execute_trigger('QMS$MENU_ITEM');

    although the menu-preference MNUDRC has the value qms$menu.set_current_action('LAUNCH_REPORT','<MODULE>'); execute_trigger('QMS$MENU_ITEM');
    the generated code for calling the report in the menu is like the code under option 1).
    What else do we need to set (in the preferences or elsewhere) to use the Headstart Report Launch Form ???
    thanks! Bart

  • Is this correctly reported?

    this is a snapshot of how Chase mortgage is reporting on my TU credit report.  On Experian and Equifax they say paid in the pay status and they suppressed the lates.  But I have disputed with TU about it saying current status as late when it was paid off in 8/10.  Experian and Equifax both say 90 days late but TU won't budge.  Any advice?  Is this correct?  I contacted Chase and they told me that TU won't let them update this account.  I don't know if I buy that one.  Should I print my credit report out and highlight this to them and see if that works.  I have only disputed via their website.I do have the hud1 statement I could sent with it but I am just stuck and if this does not get corrected from a m5 to an m4 our interest rate for a house is going to be so high!  CHASE HOME FINANCE LLC 
    PO BOX 24696
    COLUMBUS, OH 43224
    (800) 848-9136
    Date Opened: 04/29/2003
    Responsibility: Joint Account
    Account Type: Mortgage Account
    Loan Type: CONVENTIONAL REAL ESTATE MTG
    Balance: $0
    Date Updated: 08/10/2010
    Payment Received: $144,707
    Last Payment Made: 05/07/2010
    High Balance: $168,000
    Pay Status: >Account 120 Days Past Due Date<
    Terms: $1,227 per month, paid Monthly for 360 months
    Date Closed: 08/10/2010
    >Maximum Delinquency of 120 days in 08/2010<
    Mortgage Info: Fannie Mae Acct #1688204148
    Remarks: CLOSED
    Estimated month and year that this item will be removed: 02/2017
    07/2010
    06/2010
    05/2010
    04/2010
    03/2010
    02/2010
    01/2010
    12/2009
    11/2009
    10/2009
    Rating
    90
    60
    30
    30
    OK
    OK
    OK
    OK
    OK
    OK
    09/2009
    08/2009
    07/2009
    06/2009
    05/2009
    04/2009
    03/2009
    02/2009
    01/2009
    12/2008
    Rating
    OK
    OK
    OK
    OK
    OK
    OK
    OK
    OK
    OK
    OK
    11/2008
    10/2008
    09/2008
    08/2008
    07/2008
    Rating
    OK
    OK
    OK
    OK
    OK

    Floridafun wrote:
    this is a snapshot of how Chase mortgage is reporting on my TU credit report.  On Experian and Equifax they say paid in the pay status and they suppressed the lates.  But I have disputed with TU about it saying current status as late when it was paid off in 8/10.  Experian and Equifax both say 90 days late but TU won't budge.  Any advice?  Is this correct?  I contacted Chase and they told me that TU won't let them update this account.  I don't know if I buy that one.  That is a whopper, the reporting entity is the one who dictates to the CRA what is to be done with the TL. Should I print my credit report out and highlight this to them and see if that works.  I have only disputed via their website.I do have the hud1 statement I could sent with it but I am just stuck and if this does not get corrected from a m5 to an m4 our interest rate for a house is going to be so high!  CHASE HOME FINANCE LLC 
    PO BOX 24696
    COLUMBUS, OH 43224
    (800) 848-9136
    Date Opened: 04/29/2003
    Responsibility: Joint Account
    Account Type: Mortgage Account
    Loan Type: CONVENTIONAL REAL ESTATE MTG
    Balance: $0
    Date Updated: 08/10/2010
    Payment Received: $144,707
    Last Payment Made: 05/07/2010
    High Balance: $168,000
    Pay Status: >Account 120 Days Past Due Date<  IMO this should be blank, it cant be currently late if there is a 0 balance
    Terms: $1,227 per month, paid Monthly for 360 months
    Date Closed: 08/10/2010
    >Maximum Delinquency of 120 days in 08/2010<
    Mortgage Info: Fannie Mae Acct #1688204148
    Remarks: CLOSED
    Estimated month and year that this item will be removed: 02/2017
    07/2010
    06/2010
    05/2010
    04/2010
    03/2010
    02/2010
    01/2010
    12/2009
    11/2009
    10/2009
    Rating
    90
    60
    30
    30
    OK
    OK
    OK
    OK
    OK
    OK
    09/2009
    08/2009
    07/2009
    06/2009
    05/2009
    04/2009
    03/2009
    02/2009
    01/2009
    12/2008
    Rating
    OK
    OK
    OK
    OK
    OK
    OK
    OK
    OK
    OK
    OK
    11/2008
    10/2008
    09/2008
    08/2008
    07/2008
    Rating
    OK
    OK
    OK
    OK
    OKIf you have info from Chase that says they are suppressing the lates for you then you should file a complaint with the CFPB on the offending CRA and upload your evidence to them   http://www.consumerfinance.gov/complaint/

  • Itunes is saying my Irish Mastercard is not Irish. Other Irish users report same. Is this correct?

    itunes is saying my Irish Mastercard is not Irish. Other Irish users report same. Is this correct?

    Sorry, I was only able to get back to this issue today, but it worked.
    Thank you again Michael for your help. It was as simple as just buyng a free book from the iTunes store to create a Books area, then I was able to drag and drop my 3rd party book there.
    Still, I feel that there should already be a Books area in iTunes, but perhaps I am the only one who has updated iTunes on a computer without any previously purchased books on it from the iTunes store.

  • OBIEE 11G Calculation the Correct Way

    Hi All,
    My requirement is like this that I want to calculate value Gross Profit which is simple Total Revenue - Total Expense. Now I want this to act as a Hierarchy i.e Gross Profit should be drill able to Total Revenue followed by Total Expenses. For this I created a Accounts Dimension table since no Drill Down facility is available on Fact Table(Therefore I had to move my Accounts to Dimension table rather than Fact Table). Now the problem is that there is no minus based aggregation present in OBIEE BMM layer because of which my all other sum based aggregation work correctly except where there is a negative based aggregation required like in the case of Gross Profit. Kindly Suggest what is the correct way to approach this problem. I am working on OBIEE 11g in this case.
    Warm Regards
    Abhishek Kapoor

    Financial reporting is difficult in BI because of the user preference of how to see signs on different accounts and requirements for adding/subtracting depending on the type of account.
    A few ways to approach:
    a. Use case statement to make total rev and total expense columns. Subtract to build a gross profit column. You can do this in the presentation services front end or the BMM.
    b. If you have opposite natural signs for rev and exp, you can create an account hierarchy in the account table which will net out to gross profit. Ex:
    Column 1 – account number
    Column 2 – hierarchy level 1, ex Gross Profit
    Column 3 – hierarchy level 2, ex Rev or exp
    Column 4 – account name
    Etc…
    c. Remember you can always build your own drilldown using navigation links to a report instead of the built-in drilldown.
    Good luck!

  • Which is the correct way to program a Desktop Application???

    Hello all,
    I haven't programmed in a while and I just got the free Netbeans 6.1 CD just for kicks and to try it out. I'm making a basic application for a store that one of my family members has. I was programming away as I could and right now I came to a conclusion... I think I maybe doing this wrong.
    I have done all the GUI using the Netbeans IDE plugin visual designer and I just click on the button and add the event and then I program away. But just right now I noticed another file that is called NameOfProgramApp.java. Then I look to the right and I have NameOfProgramView.java where I have been placing most of my code. Is this the right place to put the code???
    I think I maybe missing something or maybe doing some lousy code writing. Any help would be awsome. Is this where I put my Object Oriented think hat on to accomplish the correct way??
    Thanks in advance and it feels good to be back :D

    A general rule of thumb that I use it to think in layers...
    --GUI {What you show the use}
    --GUI code logic {local rules and edits}
    --WEB/Network {interface for multiuser}
    --BUSINESS RULES {rules and coding to make your business work}
    --DATABASE {where do you store your durable data}
    Granted, this is a very simplistic look, but it will get you a start a thinking process for your app.

  • Correct way to communicate with server

    Ok,
    I have a server program that is written in C++. The protocol for communicating is:
    Command (8 bytes)| Data length or 0 (8 bytes) | Data (if any)
    The command is in character form. A command would be OPEN.
    This is the simplified code of what I am doing:
    BufferedOutputStream bos = new BufferedOutputStream(socket.getOutputStream, 12800);
    byte[] ba= new byte[16];
    byte[0] = 'O';
    byte[1] = 'P';
    byte[2] = 'E';
    byte[3] =' N';
    byte[8] = '0';
    bos.write(ba,0,16);
    This does not seem to work as the server reports data amount is incorrect. My question: What is the correct way to do what I trying to do?
    Thanks for any help,
    cmp2

    Thanks for the reply,
    I have no idea what you think you are doing with the next line...
    byte[8] = '0'In my attemp to get this to work, I decided maybe it's looking for a zero. Anyway, I moved the server to another computer and it is no longer having problems receiving my data. However, it isn't sending back a correct response, at least I don't think so. So this is my simplified reading code:
    BufferedInputStream bis = new BufferedInputStream(socket.getInputStream(),128000);
    byte[] bi = new byte[16];
    int size = bis.read(bi)
    The size is 8 and the charater converted output is : O0020000. The first character matches the first one I sent.
    I am expecting a command like CNAK or SNAK being sent.
    Any ideas?

  • Threading Swing, is this correct?

    Hey guys
    Ive just done a little swing window, that is thread safe... well i think it is, im asking you guys if this is the correct way to create a swing app (composition rather than inheritance) and if i add more comonents will they each (e.g JButton) need to be implemented as threads?
    any help and your experience would be great
    cheers
    This is the code for a simple window, Is it how you pros would do it?:
    import javax.swing.JFrame;
    import java.lang.*;
    public class UI implements Runnable
    private JFrame wnd = new JFrame("CLIENT");
    public void createWnd()
    wnd.setSize(400, 400);
    wnd.setDefaultCloseOperation(wnd.EXIT_ON_CLOSE);
    wnd.setVisible(true);
    public void run()
    createWnd();
    System.out.println("Thread started");
    public boolean closed()
    if((wnd.getDefaultCloseOperation()) == wnd.EXIT_ON_CLOSE)
    return true;
    return false;
    //System.out.println("pressed closed");
    public static void main(String[] args)
    UI appWindow = new UI();
    Thread t = new Thread(appWindow);
    t.start();
    if(appWindow.closed())
    t = null;
    System.out.println("Thread stopped");
    } Message was edited by:
    FatClient

    So the reason that a swing application needs to be on
    the EDT of each swing UI (and not on a user thread)
    is because thats the queue that holds keystrokes,
    mouse clicks, etc that may need the UI to be redrawn
    after an event.
    And if you had other code going on, this would not be
    interrupted/paused whilst the EDT/GUI were working to
    redraw a bit of the app - Bcause it is in a THREAD.Swing sets up the EDT (Event Dispatch Thread), and what it does is
    pretty simple: it dequeues swing events like mouse events and
    keyboard events, etc... and causes the appropriate listener methods
    to be called. So for example, ActionListener's actionPerformed methods
    are going to be called on the EDT (if you coded correctly).
    In Java you are free to create other threads, but you always have to
    be careful when multiple threads access common data. In the case
    of Swing, to keep its implementation as simple as possible, most
    Swing methods are meant to only be called from the EDT.
    Please let me know if thats why i should blindly
    listen to the JDK tutorials as if it were some sort
    of bible/Torah/Quran The Java Language Specification (JLS) is the Koran. The tutorials are the Hadith :-)

  • What is the correct way to set up a new Mac

    A friend of mine recently migrated from Windows and bought himself an iMac. He got the local Apple store to set up his iMac and migrate his data from his Windows to his iMac. I was  recently helping him set up a few a additional things on his iMac and was supprised to see how the Apple store had set up the machine.
    There was only one account set up on the iMac and all of the user data had been loaded into this admin account. Now I've only been a Mac user for about 5 years, but I was always taught create an admin account with no data on it and then set up a separate user account(s) which contain all the user data and these are used by the users to log in.
    Now my question is who is right the Apple shop or me? I would e intertested to hear any experts views on the correct way to set up an OSX machine. 

    Both of you. Either way is acceptable. However, for a single user machine there's really no need to have more than the admin account.

  • I have a macbook air late 2010 and keep getting a warning that my hard drive is full and to delete things so I purchased a external hard drive (1TB) but I'm just not sure what the correct way to transfer and store files to the external drive is. First MAC

    I purchased a macbook air about 5 months ago and lately i keep recieving a warning that the hard drive or disk is full and that I will need to move items to trash in order to free up space on it. I purchased a external hard drive 1 TB but I'm very new to mac and ios and unsure as to how I'm suppose to transfer my files (video, pics, music etc.) from my mac over to the external hard drive in the correct way so I won't end up deleting them permenately or screwing anything up with my mac as far as the applications and programs being able to run. Am I supposed to just copy to the external hard drive and then move to and empty the trash? That's pretty much all I could come up with, but then what if i need or want to access that file again at a later time. Also, I have an i Phone and i pad so with i cloud it automatically syncs all my purcheses and if i delete something from itunes on my mac it deletes from my ipad.
    I'd appreciate any kind of input i think im just a little lost here. I have to say i love my Mac and wouldn't trade it for anything (except maybe a macbook pro w/more memory)... Is there something I'm missing???

    To free up hard drive space the best bet is to move data files that you don't need access to all the time. Likely candidates are music, video, and photos. Things like word processing and spreadsheet files can also be moved but they tend not to be very large and so don't free up much space. The problem with moving the above mentioned files is that iTunes and iPhoto need to know where the files are stored.
    Here's an article explaining how to move the iTunes folder. You can move the iPhoto library using the Finder but there is a slight complication. Start iPhoto, open the Preferences and click on the Advanced tab. The first option is "Copy items to the iPhoto Library". If this option is checked, copy the iPhoto library to your external folder (drag it from the Pictures folder to your external drive) and then delete it from your Picture folder. If this option is not checked, it is a bit more complicated and we'll need to talk a bit.

  • What is the correct way to add styling to drag-and-drop created calendars?

    I have a working instance of a rich client calendar. I generated the view with the required fields (start, stop, provider, ...), put it into the App Module, and dragged it onto a JSF page to create a calendar.
    Next I created an activityScope object in a class called CalendarBean (no inheritance)
    Class CalendarBean()
    private HashMap<Set<String>, InstanceStyles> activityColorMap;
    +..+
    +public CalendarBean() {+
    super();
    activityColorMap = new HashMap<Set<String>, InstanceStyles>();
    HashSet setEd = new HashSet<String>();
    HashSet setLen = new HashSet<String>();
    setEd.add("Work");
    setLen.add("Home");
    activityColorMap.put(setEd, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.ORANGE));
    activityColorMap.put(setLen, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.RED));
    +}+
    +}+
    Next, I linked this up as a backing bean and associated the ActivityStyles of CalendarBean to it:
    +#{backingBeanScope.calendarBean.activityColorMap}+
    I populated some records in the database with properties "Work" and "Ed', but they show default blue.
    As I understand it, I need to do something with the getTags() method of the underlying CalendarActivity class, but I'm not quite sure how to do that.
    Took a stab at creating a class, CalendarActivityBean, that extended CalendarActivity, and pointed all the CalendarActivity references I had to the new class, but it didn't seem to fire (in debug), and I got into trouble, when inserting records, with
    public void calendarActivityListener(CalendarActivityEvent calendarActivityEvent) {
    currActivity = (CalendarActivityBean) calendarActivityEvent.getCalendarActivity();
    being an illegal cast
    What is the correct way to add provider-based styling to drag-and-drop create calendars?
    Ed Schechter

    A colleague of mine was kind enough to solve this:
    The calendar has ActivityStyles property = #{calendarBean.activityStyles}
    CalendarBean looks something like this:
    package com.hub.appointmentscheduler.ui.schedule;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Set;
    import oracle.adf.view.rich.util.CalendarActivityRamp;
    import oracle.adf.view.rich.util.InstanceStyles;
    +public class CalendarBean {+
    private HashMap activityStyles;
    private String dummy;
    +public CalendarBean() {+
    +// Define colors+
    activityStyles = new HashMap<Set<String>, InstanceStyles>();
    HashSet setPending = new HashSet<String>();
    HashSet setArrived = new HashSet<String>();
    HashSet setApproved = new HashSet<String>();
    HashSet setCompleted = new HashSet<String>();
    setApproved.add("APPROVED");
    setPending.add("PENDING");
    setArrived.add("ARRIVED");
    setCompleted.add("COMPLETED");
    activityStyles.put(setApproved, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.GREEN));
    activityStyles.put(setPending, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.ORANGE));
    activityStyles.put(setArrived, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.PLUM));
    activityStyles.put(setCompleted, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.LAVENDAR));
    +}+
    +public void setactivityStyles(HashMap activityStyles) {+
    this.activityStyles = activityStyles;
    +}+
    +public HashMap getactivityStyles() {+
    return activityStyles;
    +}+
    +}+
    Now, go into the Bindings tab on the calendar page, double click the calendar binding, and specify the column you've defined as the calendar's Provider in the Tags dropdown.
    Should show colors.

Maybe you are looking for

  • Help my apple id has been disabled

    help me my spple id has been disabled what do i do

  • Choosing columns to be displayed in a report

    Hi! I need to develop a report wherein the columns displayed are dynamic. The columns for display will depend on the needs of our user. Right now I created separate queries for each set. I am hoping there will be a better option for a more efficient

  • Trying to invoke Apache SOAP 2.3.1 RPC services

    I have several legacy apache SOAP 2.3.1 RPC services I am trying to invoke using a synchronous BPEL process. The services are invoked (confirmed by tailing the log on the machine hosting the service) , however, the return value is null in all cases.

  • WMP within webistes

    When I attempt to open wmp within a website called MySpace to watch music videos I and others have placed on our "space" I get this message... and I cant view the video. "Cannot open the file. Verify that the path and filename are correct and try aga

  • Upgraded:now colours are all faded out

    Just upgraded,went pretty quickly. However,now the colours are washed out and lacking punch. Brightness isn't the issue. Any ideas people? Thanks in advance