Hashmap containsKey() method does not appear to work

Hashmap containsKey() method does not appear to work
I have an amazingly simple custom class called CalculationKey, with my own amazingly simple custom equals() method. For some reason when I call my containsKey() method on my HashMap it does not use my defined equals method in my defined key class. Do hashmaps have their own tricky way for establishing whether two keys are equal or not?
THIS IS MY AMAZINGLY SIMPLE CUSTOM KEY CLASS
private class CalculationKey
private LongIdentifier repID;
private LongIdentifier calcID;
public CalculationKey(LongIdentifier repID, LongIdentifier calcID)
this.repID = repID;
this.calcID = calcID;
public boolean equals(Object o)
CalculationKey key = (CalculationKey)o;
if (key.getCalcID().equals(calcID) &&
key.getRepID().equals(repID))
return true;
else
return false;
public LongIdentifier getCalcID()
return calcID;
public LongIdentifier getRepID()
return repID;
THIS IS MY AMAZINGLY SIMPLE CALLS TO MY HASHMAP WHICH ADDS, CHECKS, AND GETS FROM THE HASHMAP.
private Hashmap calculationResults = new Hashmap();
public boolean containsCalculationResult(LongIdentifier repID, LongIdentifier calcID)
if (calculationResults.containsKey(new CalculationKey(repID, calcID)))
return true;
else
return false;
public Double getCalculationResult(LongIdentifier repID, LongIdentifier calcID)
return (Double)calculationResults.get(new CalculationKey(repID, calcID));
public void addCalculationResult(LongIdentifier repID, LongIdentifier calcID, Double value)
calculationResults.put(new CalculationKey(repID, calcID), value);
}....cheers

You can make a trivial implementation to return a
constant (not recommended)What do you mean by that? Hmm.. I guess you mean that
you shouldn't use the same constant for all objects?
But don't see the int value of an (immutable) Integer
as constant?
/Kaj
You can write hashCode to just always return, say, 42. It will be correct because all objects that are equal will have equal hashcodes. Objects that are not equal will also have equal hashcodes, but that's legal--it just causes a performance hit.
The value is that it's really really simple to implement: public int hashCode() {
    return 42;
} So you can use it temporarily while you're concentrating on learning other stuff, or during debugging as a way to confirm that the hashCode is not the problem. (Returning a constant from hashcode(), rather than computing a value, is always legal and correct, so if something's behaving wrong, and you replace your hashCode method with the one above, and it still breaks, you know hashCode isn't the problem.)
The downside is that you're defeating the purpose of hashing, and any non-trival sized map or set is going to have lousy performance.
For a decent hashCode recipe, look here:
http://developer.java.sun.com/developer/Books/effectivejava/Chapter3.pdf

Similar Messages

  • HT201240 This process does not appear to work for me.  I'm running 10.8.3.  I created a new user for a guest staying with me.  They have gone now and I am attempting to either change the password or delete the user.  It won't allow me to choose the user I

    This process does not appear to work for me.  I'm running 10.8.3.  I created a new user for a guest staying with me.  They have gone now and I am attempting to either change the password or delete the user.  It won't allow me to choose the user I created.  I am logged in as myself and it states that I am an "Admin".  The user I'm attempting to change is listed as a "standard" user and there is a white checkmark inside an orange circular background on the user pic in the list of users. 
    Can someone help me?  I am having a hard time believing that OSx will allow me to create users and allow them use of my computer and it's drives, yet it will not allow me to change the password so I can monitor what they might have been doing while logged on?  What if this were my child?  This guest left under sketchy circumstances, and I'd really like to be able to ensure they were not using my computer to do illegal things or to have illegal communications.
    Any help would be appreciated.  (It's odd that it was so simple to "create" a user and set a password for them.......but it's complicated or a little known process to reverse.
    Thanks.

    Here are two screen shots to show you what I am seeing.  The first screen shot shows it allowing me to select (highlighted in blue) my admin user (which is what I am locced in as).  The second screen shot shows it allowing me to select the "Guest" user (highlighted in blue).  However when I click on the user "Orion" nothing happens.  It will not change to highlight that user.

  • exception-type in web.xml does not appear to work

    WLS 60 SP1 (#101616)
              <exception-type> in web.xml does not appear to work. WLS shows standard
              "Internal error 500" page instead of a custom error page. The custom error
              page is shown if <error-code> is used instead of <exception-type>.
              Any ideas? Thanks
              

    Can you show me some of your code? This works for me.
    Also, you say that you are working with 6.0sp3. Are you sure? sp3 hasn't been
    released yet, except in a very limited beta. (I believe only internally, but I
    could be wrong about that.)
    David
    [email protected] wrote:
    Hi all,
    I have created a very simple servlet and an index.html file with a link
    to it, then packaged it into a WAR file with the appropriate web.xml and
    ias-web.xml files. I then created an application.xml file referencing
    only this servlet and adding a context root. After deployment via
    "iasdeploy deployapp simple.ear" and cycling the web server, I can reach
    the welcome file (index.html) correctly
    -"http://localhost/NASApp/simple". When I attempt to follow the link to
    the servlet ("simple servlet") the URL ends
    up as "http://localhost/NASApp/SimpleServlet" whereas it should be
    http://localhost/NASApp/simple/SimpleServlet If I type that url in, the
    servlet executes fine.
    I've deployed this into Tomcat and get the behavior I expect. It appears
    that the element in the application.xml file is ignored by
    iAS.
    I'm using iAS SP3 on Win2k (same problem on NT).
    This is such a basic behavior that I can't believe this is an existing
    bug. I must be doing something wrong...
    Any ideas?
    Thanks in advance,
    -Glen
    Files are attached.
    Name: simple.ear
    simple.ear Type: application/x-unknown-content-type-ear_auto_file
    Encoding: base64
    Description: filename="simple.ear"

  • GetColumnAt(index) does not appear to work

    I am attempting to place a simple Icon in a dataGrid using
    cellRenderer. My problem is that
    'myDataGrid.getColumnAt(index).cellRenderer' does not appear
    to work. Most of the forum examples create arrays with AS and don't
    show this example. I already use XMLConnector (which works fine)
    the problem is referencing a column after the fact. I can do this
    when creating column smanually but not using getColumnAt(index).
    My code block:
    import mx.controls.gridclasses.DataGridColumn;
    import mx.controls.gridclasses.DataGridRow;
    import mx.core.UIComponent;
    playlist_dg.cellRenderer = "IconCellRenderer";
    playlist_dg.getColumnAt[3].cellRenderer = "IconCellRenderer"
    Any help is appreciated. cellrenderer is a bit hairy
    Mitch

    this is either a blindingly stupid question (for which I
    apologise) or a legit bug. Either response would put my mind at
    rest.
    Thanks
    Hillcreative

  • Msi gt70 2PE integrated HD 4600 graphics HDMI port does not appear to work.

    Hi guys,
    I have the GT70 2PE with integrated hd 4600 graphics and with a dedicated nvidia geforce gtx 880m card. The HDMI output does not appear to work.
    I'm tech savvy and cannot figure this out for the life of me. have tried nearly everything.
    lets start from the low level troubleshooting done:
    - plugged in the HDMI cable from a working computer that has HDMI hooked up to it. This did not make a difference from the new cable I bought for hooking up my TV to my laptop.
    - booted the laptop up and do not see a duplicate screen outputting via HDMI, all my video cards in my PC's I've built prior have always shown the HDMI output as a duplicate screen when I had a monitor hooked onto a PC. This makes me believe the HDMI port may be disabled/broken as there is no HDMI output at POST. Only the laptop monitor displays output.
    In Windows 8.1 I've installed the latest 4600 drivers and nvidia 880m beta drivers.(even though installing nvidia drivers shouldn't matter since I've read the HDMI output is tied to the 4600 integrated graphics chip, also if during POST the HDMI output never showed up on my TV, then installing the latest intel graphics drivers shouldn't have made a difference either, which it didnt make a difference).
    I've tried disabling the integrated graphics card then re-enabling it, as noted on the intel forums. - does nothing.
    what I've ruled out:
    -HDMI cable issues = no issues due to other PC's and devices working with the cables. All cable tests are direct connect to the TV, no intermediary devices such as hdmi splitters etc.
    -BIOS has zero options for graphics card options.
    Any ideas before i RMA this laptop? I'm at a loss. 

    OP's problem has been solved.  Also please don't resurrect and do not hijack other people's topics. Open your own one.
    >>Please read and comply with the Forum Rules.<<
    Topic Locked

  • Crystal 8.5 (Minimum function in the function tree does not appear to work)

    HI I would greatly appreciate some help with this problem I am having.
    I am creating a report in which there is a group of records printed . Within each record there could be any number of results related to that record of which I want to extract both the maximium and minimum value and print these. This bit is fine as I do this using the maximum and minimum function available within the summary function.
    However with each of these max and min values calculated and printed I then want to create a footer that adds all these max and min values up. (This is not immediately possible using the 'summary function' max and min values as they are not presented on the 'Field explorer' dialog box for selection.
    However I can individually using the maximum 'tree function' get the report to store these values so that I can do the calculations once I have got to the footer (as the  fields defined are accessible through the field explorer. But the same minimum function does not appear to extract a result (and no I do not have zeros in the data).
    Is there a known problem with the minimum function?
    Is there another way of getting this data?
    Thank you in advance
    seyviv

    Hi Debi, it would be easier for mean to demonstrate what I wnat/am doing in the report by use of data.
    I have a file with a list of sample results. There may be many results for one sample. ie
    Sample      Result Number      Result
    98-01          1                           3
    98-01          2                           5
    98-01          3                           6
    98-02          1                           3
    98-02          2                           7
    98-02          3                           9
    98-03          1                           4
    98-03          2                           5
    98-03          3                           11
    On the first page I want to see the max and min values across all samples listed for each result number. Then as a total value (once all the result numbers max and mins are displayed I want to perform a calculation on the max and min values displayed in the list (ie. max 4 + 7 -11  and for min 3 + 5 - 6)  
                          Result 
                          Number        Max           MIn 
                          1                    4                3
                          2                    7                5
                          3                    11              6
    Result of                             0                2
    Calculation
    I have been able to do this for the max values but the minimum function does not work.
    How I currently extract this data is that I use a 'Summary field ' to calculate the max and min values in the list. However to get the data for the calculation at the bottom I use the 'Formula fields' to extract the values listed for all the results for 'result number 1, 2 & 3' and then use the 'Function tree' to get the 'Maximum value for each individual result number and then finally do a calculation on the max values. However, the same minimum function does not appear to work.
    I hope this explains what my problem is.
    Thank you in advance of any suggestions you may have
    Regards
    Viv

  • 'Find' function does not appear to work in TextEdit on .txt documents

    Most of the time the 'Find' function on the TextEdit application does not appear to work on .txt documents.  I have verified this by using Find on words that I know are in a document, and it cannot find them.  I've tried different options on the 'Find' function without success.  This appears to have started with version 10.6.8.  Has anyone else had this problem since upgrading to 10.6.8?

    Thanks -- but I swear it worked fine prior to either the 10.6.7 or 10.6.8 updates and now it doesn't.  I'll just keep experimenting and playing around with it and see if I can get it to work.  Maybe the new Lion O.S. coming out will fix it, although I'm not going to rush -- I made the mistake of putting Snow Leopard on right after it came out and had problems with some programs not working properly anymore (like Pro Tools, for example).  Always a good idea to hold off until most of the bugs get fixed. 

  • Apple account none payment methode does not appear

    when i creat my apple id the none option in payment methode does not appear . please tell me what I do ?????

    Unless the instructions on this page are followed when creating an account : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Support…
    then credit card details will need to be entered before the account can be used to download any item from the store.
    If you are being prompted to review the account then you could see if this post by mountaingoatgirl lets you do so without needing to enter credit card details : https://discussions.apple.com/message/24303054#24303054
    If not then you will either need to enter your credit card details (you should be able to remove it after entering it), or create a new account (and use the instructions on the above link when creating it).

  • Clamshell mode does not appear to work with Mountain Lion installed

    Installed Mountain Lion on an 11" MacBook Air last Friday night.  Now the MBA does not work in clamshell mode at work with an external monitor.  It does not appear to wake or connect to the monitor.

    sjrlexlibris wrote:
    I was having the same problem.  Then I happened to plug in my external power supply and the problem went away.  In other words, I only have the problem if I am running my Macbook Pro on battery power.
    Mac notebooks: How to use your computer in closed clamshell (display closed) mode with an external display
    Requirements for closed display mode:
    Power adapter
    External keyboard, mouse, or trackpad
    External display
    Use these steps to enable closed clamshell (display closed) mode:
    Make sure the computer is plugged in to an outlet using the AC power adapter.

  • Use this mailbox for Junk does not appear to work in Mail 4.2.

    Hello, all:
    Have been using 10.6.x since it came out on my previous iMac [24" Early 2008 model]. Went with a fresh install of 10.6.3 on the new iMac [27" i7], and ported data over.
    The only problem that I've had is that setting the Use this mailbox for Junk command in setting up Mail 4.2 does not seem to work. I've closed Mail and looked at ~/Library/Preferences/com.apple.mail.plist, and the correct mailbox name is indicated for the two accounts [IMAP and GMail over IMAP] where I'd like to do Junk Mail filtering. However, there is no centralized Junk Mail filter, which is really annoying me.
    I didn't have this problem previously in Mail 4.x, and I'm expecting that it's a bug specific to 4.2, which I haven't seen in my previous incarnation because I did the import from 3.x->4.0, and the prefs carried forward correctly from 4.0->4.2.
    Anyone else running into this, and is there anything else I should be looking at? Am I explaining the problem such that it's clear what I'm asking?
    Thanks,
    Geof

    I figured out the problem (for me, anyways). In Preferences > Junk Mail, make sure Junk filtering is enabled and make sure the "move it to junk mailbox" radio button is selected.

  • HT4864 my email is not being downloaded to i cloud. I do get my g-mail why is this and what do I need to check to have it downloaded by icloud. icloud is my default mail but does not appear to work??

    my icloud mail does not appear to be down loading i get all my g-mail and i cloud is my default what can I do to make sure that my I cloud mail is coming to me
    ? like I said Im getting nothing what so ever in the i cloud portion of the mail section.

    Once I figured out what was kent by who manages what mail service (e-mail) went to what E-Mail my I cloud was back on line thanks.

  • /SAPAPO/SNPLLC - does not appear to work as expected

    Hi Experts,
    I was wondering if anyone can shed light on how this program works. We need a successfull run of the LLC calc prior to running heuristics on the supply chain. currently the heuristics run gives unpredictable results due to the LLC calc not working.
    This is the situation: -
    - We have a data model where the supply source for products can change dynamically from one production plant to another. In order to faciltate the quick switching of supply, we have defined Transportation Lanes from all the possible supplying production locations to all the possible receiving locations. These are "All Products" lanes.
    - Overlaid on the TLAnes, we have quota arrangements which control from day-to-day which locations do the supplying (we are running SNP with no production horizon, so it plans also the next few days as well as out to 2 years future buckets).
    When we come to run the LLC program above, it always gives the Information message "Low-level codes cannot be determined due to cycles in model "000". Despite only being an Info message, it also causes the background job to fail (seemingly). In any case the LLC is not calculated correctly as all Location/Products have LLC 0 after the run. The cycles also occur in locations in other parts of the business that we have no control over (it is not possible to limit the LLC calc by location selection).
    I have several questions about the way SNPLLC works: -
    1. The cycles that are displayed seem to be purely based on the TLanes - does it take into account Quota Arrangements when determining cycles? The cycles displayed do not seem to be recursive - does it just give up after a certain number of iterations?
    2. When I get the above info message, the detail says that I can set the "Save Low-Level Codes with Cycles" Indicator to force it to save LLC despite cycles - where is this indicator? I have looked in the SNP Global settings (profile) but can't see it. I have also implemented note 1548670 - "SNP LLC not saved for cycles" but it does not seem to have made any difference.
    3. Is there anything that I can do in order to get over this issue without changing all the master data?
    Any help much appreciated.
    Thanks,
    Chris Brookes.

    Hi Ada,
    BADI Code below: -
    method /SAPAPO/IF_EX_PWB_SOS~PWB_USEX_SOS.
    Revision History                                                             *
    Date       : 27/09/2011       Changed By : Mohammed Sajid                    *
    Revision ID: AO01             Helpdesk ID: Hovis ELS ASIN-8KRJ79             *
    Description: Filter the sources of supply so that only those with a valid    *
                 Quota Arrangement are considered by the SNP LLC calculation     *
    AO01 Begin of Insert
      TYPES : BEGIN OF ty_loc,
                LOCID TYPE /SAPAPO/LOCID,
                LOCNO TYPE /SAPAPO/LOCNO,
              END OF ty_loc.
      TYPES : BEGIN OF ty_mat,
                MATID TYPE /SAPAPO/MATID,
                MATNR TYPE /SAPAPO/MATNR,
              END OF ty_mat.
      DATA : lv_logsys          TYPE BAPIGENFIELDS-LOGSYSTEM,
             lv_quota_found     TYPE char01,
             lv_vrsioex         TYPE /SAPAPO/VRSIOEX,
             lv_model           TYPE /SAPAPO/C_MODELID,
             lv_date_from(14)   TYPE c,
             lv_date            TYPE char08,
             lv_no_quota        TYPE BAPI10009GENFIELDS-NO_OF_QUOTAS,
             lt_plngversion     TYPE TABLE OF bapiversrange,
             lt_model_sel       TYPE TABLE OF BAPIMODELRANGE,
             lt_loc_intsel      TYPE TABLE OF BAPILOCINTRANGE,
             lt_prod_intsel     TYPE TABLE OF BAPIPRODUCTINTRANGE,
             lt_quota_itm_lane  TYPE TABLE OF BAPI10009QTAITEMLANE2O,
             lt_quota_itm_erp   TYPE TABLE OF BAPI10009QTAITEMEXTPROC2O,
             lt_val_from        TYPE TABLE OF bapi10009qtavalfrrange,
             lt_val_to          TYPE TABLE OF bapi10009qtavaltorange,
             lt_return          TYPE TABLE OF bapiret2,
             lt_loc             TYPE TABLE OF ty_loc,
             lt_mat             TYPE TABLE OF ty_mat,
             ls_loc             TYPE ty_loc,
             ls_loc1            TYPE ty_loc,
             ls_mat             TYPE ty_mat,
             ls_plngversion     TYPE bapiversrange,
             ls_model_sel       TYPE BAPIMODELRANGE,
             ls_loc_intsel      TYPE BAPILOCINTRANGE,
             ls_prod_intsel     TYPE BAPIPRODUCTINTRANGE,
             ls_quota_itm_lane  TYPE BAPI10009QTAITEMLANE2O,
             ls_quota_itm_erp   TYPE BAPI10009QTAITEMEXTPROC2O,
             ls_val_from        TYPE bapi10009qtavalfrrange,
             ls_val_to          TYPE bapi10009qtavaltorange,
             ls_return          TYPE bapiret2.
    CONSTANTS : lc_i  TYPE char01 value 'I',
                lc_x  TYPE char01 value 'X',
                lc_s  TYPE char01 value 'S',
                lc_eq TYPE char2  value 'EQ',
                lc_le TYPE char2  value 'LE',
                lc_ge TYPE char2  value 'GE',
                lc_time TYPE char6 VALUE '000000'.
    AO01 End of Insert
    AO01 Begin of Insert
    If Badi is called within the determinition of low-level code
    ans Bapi is called for an SNP LLC calculation
      IF iv_low_level_code = lc_x AND iv_plan_usage = lc_s.
    Get location
      IF NOT ct_sources_extend[] IS INITIAL.
        SELECT LOCID LOCNO
          FROM /SAPAPO/LOC
          INTO TABLE lt_loc
           FOR ALL ENTRIES IN ct_sources_extend
         WHERE locid EQ ct_sources_extend-locfr.
         IF sy-subrc IS INITIAL.
           SORT lt_loc BY locid.
         ENDIF.
         SELECT MATID MATNR
          FROM /SAPAPO/MATKEY
          INTO TABLE lt_mat
           FOR ALL ENTRIES IN ct_sources_extend
         WHERE matid EQ ct_sources_extend-matid.
         IF sy-subrc IS INITIAL.
           SORT lt_loc BY locid.
         ENDIF.
    ENDIF.
    Get planning version
        GET PARAMETER ID '/SAPAPO/VRSIOEX' FIELD lv_vrsioex.
        CALL FUNCTION '/SAPAPO/DM_MODEL_GET_BY_VERS'
          EXPORTING
            IV_VRSIOEX        = lv_vrsioex
          IMPORTING
            ev_modelid        = lv_model
          EXCEPTIONS
            version_not_found = 1
            not_qualified     = 2
            OTHERS            = 3.
    Get Model
    Get logical system
        SELECT SINGLE logsys FROM t000
               INTO lv_logsys
               WHERE mandt EQ sy-mandt.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
    Set Planning Version
        REFRESH : lt_plngversion.
        ls_plngversion-sign   = lc_i.
        ls_plngversion-option = lc_eq.
        ls_plngversion-low    = lv_vrsioex.
        APPEND ls_plngversion TO lt_plngversion.
    Set Model selection
        REFRESH : lt_model_sel[].
        ls_model_sel-sign   = lc_i.
        ls_model_sel-option = lc_eq.
        ls_model_sel-low    = lv_model.
        APPEND ls_model_sel TO lt_model_sel.
    Set dates
        lv_date = sy-datum.
        CONCATENATE lv_date lc_time INTO lv_date_from.
        REFRESH : lt_val_from[].
        ls_val_from-sign   = lc_i.
        ls_val_from-option = lc_le.
        ls_val_from-low    = lv_date_from.
        ls_val_from-high   = lv_date_from.
        APPEND ls_val_from TO lt_val_from.
        REFRESH : lt_val_to[].
        ls_val_to-sign   = lc_i.
        ls_val_to-option = lc_ge.
        ls_val_to-low    = lv_date_from.
        ls_val_to-high   = lv_date_from.
        APPEND ls_val_to TO lt_val_to.
        LOOP AT ct_sources_extend
            INTO st_sources_extend.
          MOVE syst-tabix TO w_tabix.
          CLEAR : lv_quota_found.
          READ TABLE lt_loc INTO ls_loc WITH KEY
              locid = st_sources_extend-locfr.
          READ TABLE lt_loc INTO ls_loc1 WITH KEY
              locid = st_sources_extend-locto.
          READ TABLE lt_mat INTO ls_mat WITH KEY
            matid = st_sources_extend-matid.
          REFRESH : lt_loc_intsel[].
          ls_loc_intsel-sign   = lc_i.
          ls_loc_intsel-option = lc_eq.
          ls_loc_intsel-low    = ls_loc1-locno.    "st_sources_extend-locto.
          APPEND ls_loc_intsel to lt_loc_intsel.
          REFRESH : lt_prod_intsel[].
          ls_prod_intsel-sign   = lc_i.
          ls_prod_intsel-option = lc_eq.
          ls_prod_intsel-low    = ls_mat-matnr.    "st_sources_extend-matid.
          APPEND ls_prod_intsel TO lt_prod_intsel.
    Call BAPI to get quota arrangement
          REFRESH : lt_quota_itm_lane[], lt_quota_itm_erp[].
          CALL FUNCTION 'BAPI_QTASRVAPS_GETLIST2'
            EXPORTING
               LOGICAL_SYSTEM                   =  lv_logsys
               MAX_NUMBER_OF_QUOTA              =  '9999'
             IMPORTING
               NUMBER_OF_QUOTA                  =  lv_no_quota
             TABLES
               MODEL_SELECTION                  =  lt_model_sel
               PLANNING_VERSION_SELECTION       =  lt_plngversion
               LOCATION_INT_SELECTION           =  lt_loc_intsel
               PRODUCT_INT_SELECTION            =  lt_prod_intsel
               VAL_FROM_SELECTION               =  lt_val_from
               VAL_TO_SELECTION                 =  lt_val_to
               QUOTA_ITEM_LANE                  =  lt_quota_itm_lane
               QUOTA_ITEM_EPR                   =  lt_quota_itm_erp
               RETURN                           =  lt_return
    Look for valid quota arrangements
          LOOP AT lt_quota_itm_lane INTO ls_quota_itm_lane.
            IF ls_quota_itm_lane-location_int_from NE ls_loc-locno
               OR ls_quota_itm_lane-quota_arrangement = 0.
              CONTINUE.
            ELSE.
           Quota found exit from loop
              lv_quota_found = lc_x.
              EXIT.
            ENDIF.
          ENDLOOP.
          IF lv_quota_found IS INITIAL.
            LOOP AT lt_quota_itm_erp  INTO ls_quota_itm_erp.
              IF ls_quota_itm_erp-location_int_from NE ls_loc-locno
                 OR ls_quota_itm_erp-quota_arrangement = 0.
                CONTINUE.
              ELSE.
             Quota found exit from loop
                lv_quota_found = lc_x.
                EXIT.
              ENDIF.
            ENDLOOP.
          ENDIF.
    Exclude entry if no valid quota found
          IF lv_quota_found IS INITIAL.
            MOVE c_exclude TO st_sources_extend-sprkz.
            MODIFY ct_sources_extend
                   FROM st_sources_extend
                   INDEX w_tabix.
          ENDIF.
        ENDLOOP.
      Remove source of supply records which can be excluded
          DELETE ct_sources_extend WHERE sprkz = c_exclude.
      ENDIF.
    AO01 End of Insert
    endmethod.

  • Java script does not appear while working in calclulus on the web. It has to show few formulae to start solving the problem

    There is one sentence like "Need a formula to get started". When pointed to it some formula e will appear in same window while using other browser. But in Mozilla that i have , it does not happen

    There is one sentence like "Need a formula to get started". When pointed to it some formula e will appear in same window while using other browser. But in Mozilla that i have , it does not happen

  • GPS does not appear to work with data-roaming off and no wi-fi network

    I have been using an application called imarkmyspot to produce way-points for synchronising with my camera. When I am in my home country this works fine and a GPS location is found quickly.
    I've recently been abroad and had data-roaming turned off to avoid high expense. The point is that in this situation the GPS does not work (with imarkmyspot or Goggle Maps) unless I can access an open wi-fi network.
    So my question is, is this correct? Does GPS only work with either data access on or when within range of an open wi-fi network.
    If this is feature (bug) of the iPhone then this makes applications such as imarkmyspot rather useless when travelling. Alternatively it could be imarkmyspot that has this problem of course. But I'm quite sure Google Maps did not work either in this situation either.

    The iPhone's GPS does work without a data connection.
    Two weeks ago on a work-related trip I knew I'd be traveling a rural highway that would leave me without data/voice from any source for at least 45 minutes (no GSM service). Before leaving a city with data, I zoomed out using Google Maps far enough to show most of my route, then "nudged" the map so the application wouldn't try to get a data update for the map. I simply used the top power button to turn on and off the screen. The iPhone and GMaps tracked me through for the entire blacked-out section of my trip - I made sure the device had a decent view of the sky and it got a fix and nailed the location within a few seconds.
    Ironically, I'm returning that device in the next few hours for an exchange. The GPS hardware, it seems, has failed about a week ago - the device gets A-GPS fixes now (it shows the nearby 3G and EDGE towers), but won't lock in for more than a second or two. My iPhone's GPS worked, and now it doesn't - AppleCare told me my GPS hardware has failed - and you're may be exhibiting the same failure.
    Some A-GPS devices use their sources to get close by - like my TomTom GO and the ephemeris files it grabs from their servers to get updates on where satellite locations are - and then use the on-board chip to nail the device's position. From what I understand of the iPhone's assistance mechanism, the data tower's and Wi-Fi physical location needs to be correct and available in an accessible database somewhere - my iPhone was showing me near Houston TX (2200 mi/3500 km distant from my actual location) when using 3G data until the data source was updated.

  • Dreamweaver CC 2014 Sync Settings does not appear to work for me...

    I synced all of the settings from one computer to the cloud with all options checked.
    Then when I import those settings on another computer that I installed dreamweaver on, it appears as though nothing is coming down. Sites info does not come down, my application preferences (code coloring specifically) don't come down.
    I am at a total loss...

    Here are two screen shots to show you what I am seeing.  The first screen shot shows it allowing me to select (highlighted in blue) my admin user (which is what I am locced in as).  The second screen shot shows it allowing me to select the "Guest" user (highlighted in blue).  However when I click on the user "Orion" nothing happens.  It will not change to highlight that user.

Maybe you are looking for