Identical code but different in browser

Using the same code produces slight shifts when moving from page to page.  Any explanation?

If your web page does not have a linked css stylesheet or an embedded one then just copy the code below and paste it into the pages code directly before the closing </head> tag near the top of the page. Be sure to locate the tag with the leading /
<style type="text/css">
html {
overflow-y: scroll;
</style>
This should help with 'page deviation' where  long and short page content are encountered (the long content evokes a scroll bar and moves the page a bit}

Similar Messages

  • My ipod is disabled and say connect to iTunes when i connect to computer it say enter the pass cod but the ipod browser it's not showing ..any one can help me please, ty

    my ipod is disabled and say connect to iTunes when i connect to computer it say enter the pass cod but the ipod browser it's not showing ..any one can help me please, ty

    Place the iPod in Recovery mode and then restore

  • Same code but different output on different cpu

    Hi to all,
    I realized a simple class to receive data from a tcp server.
    In the code I allocate a bytebuffer with dimension of x byte. I receive this byte from a server.
    the problem is: if I use a x86 processor class run correctly. If I use x86_64 processor a receive from the server a great value and then when the application try tu run ByteBuffer.allocate I receive a memory excedeed error.
    Why is there a different running mode if I change cpu?
    I would to attach code but in wich way I can? this forum has a limited number of words.

    I have problem at the line where is
    dati = ByteBuffer.allocate(tot_byte);
    I post you the code: sorry but it isn't optimized ....
    int numero_canali = canals.size();
            ByteBuffer packet5 = ByteBuffer.allocate(12);
            ByteBuffer packet2 = ByteBuffer.allocate(24 + 4 * numero_canali);
            packet2.putInt(0x7ABCDE0F);
            packet2.putInt(124);
            packet2.putInt(12 + 4 * numero_canali);
            packet2.putInt(0);
            for(int i = 0; i < numero_canali; i++)
                ArrayList appoggio = (ArrayList)canals.get(i);
                String s = String.valueOf(appoggio.get(3));
                int s1 = Integer.valueOf(s).intValue();
                packet2.putInt(s1);
            packet2.putInt(0);
            packet2.putInt(0);
            packet2.rewind();
            packet2.rewind();
            while(packet2.hasRemaining())
                try
                     out.write(packet2);
                catch(IOException ex)
                    ex.printStackTrace();
            do
                ByteBuffer dati = null;
                //packet.rewind();
                int total_byte;
                try
                    total_byte = in.read(packet5);
                    System.out.println ("Numero Byte letti : " + total_byte );
                catch(IOException ex)
                    ex.printStackTrace();
                packet5.rewind();
               //packet.reset();
                System.out.println((new StringBuilder()).append("Signature messaggio : ").append(Integer.toHexString(packet5.getInt())).toString());
                System.out.println((new StringBuilder()).append("Tipo Messaggio : ").append(packet5.getInt()).toString());
                int tot_byte = 0;
                tot_byte = packet5.getInt();
                //tot_byte=0;
                System.out.println("Lung mess : " + tot_byte);
                System.out.println((new StringBuilder()).append("Lunghezza del messaggio : ").append(tot_byte).toString());
                dati = ByteBuffer.allocate(tot_byte);
                dati.rewind();
                while(dati.hasRemaining())
                    try
                        in.read(dati);
                    catch(IOException ex)
                        ex.printStackTrace();
                dati.rewind();
                dati.rewind();
                byte b4 = dati.get();
                byte b3 = dati.get();
                byte b2 = dati.get();
                byte b1 = dati.get();
                long older_sequence_number = ((long)b1 & 255L) << 24 | ((long)b2 & 255L) << 16 | ((long)b3 & 255L) << 8 | (long)b4 & 255L;
                System.out.println((new StringBuilder()).append("Older Sequencial Number : ").append(older_sequence_number).toString());
                System.out.println((new StringBuilder()).append("Tipo pacchetto : ").append(dati.get()).toString());
                b4 = dati.get();
                b3 = dati.get();
                b2 = dati.get();
                b1 = dati.get();
                long seconds = ((long)b1 & 255L) << 24 | ((long)b2 & 255L) << 16 | ((long)b3 & 255L) << 8 | (long)b4 & 255L;
                System.out.println((new StringBuilder()).append("Secondi : ").append(seconds * 1000L).toString());
                Date prova = new Date(seconds * 1000L);
                System.out.println((new StringBuilder()).append("Data : ").append(prova.toString()).toString());
                long sub_second = ((long)dati.get() & 255L) << 8 | (long)dati.get() & 255L;
                System.out.println((new StringBuilder()).append("Sub second : ").append(sub_second).toString());
                b2 = dati.get();
                b1 = dati.get();
                long instrument = ((long)b1 & 255L) << 8 | (long)b2 & 255L;
                System.out.println((new StringBuilder()).append("Instrument ID : ").append(instrument).toString());
                ArrayList array_temp = new ArrayList(numero_canali);
                for(int s = 0; s < numero_canali; s++)
                    ArrayList appoggio = (ArrayList)canals.get(s);
                    boolean add = array_temp.add(appoggio.get(0));
                b4 = dati.get();
                b3 = dati.get();
                b2 = dati.get();
                b1 = dati.get();
                long sequence_number = ((long)b1 & 255L) << 24 | ((long)b2 & 255L) << 16 | ((long)b3 & 255L) << 8 | (long)b4 & 255L;
                System.out.println((new StringBuilder()).append("Sequece Number : ").append(sequence_number).toString());
                b2 = dati.get();
                b1 = dati.get();
                long payload = ((long)b1 & 255L) << 8 | (long)b2 & 255L;
                System.out.println((new StringBuilder()).append("Byte Payload : ").append(payload).toString());
                int posizione_id = array_temp.indexOf(Long.valueOf(instrument));
                System.out.println((new StringBuilder()).append("instrument \350 alla posizione : ").append(posizione_id).toString());
                ArrayList appoggio = (ArrayList)canals.get(posizione_id);
                Object set6 = appoggio.set(5, Long.valueOf(older_sequence_number));
                Object set5 = appoggio.set(6, Long.valueOf(seconds));
                Object set4 = appoggio.set(7, Long.valueOf(sequence_number));
                Object set3 = appoggio.set(8, Long.valueOf(payload));
                Object set2 = appoggio.set(9, prova.toString());
                Object set = canals.set(posizione_id, appoggio);
            } while(true);

  • Identical view but different managed beans?

    Hi everyone,
    We have a situation where we have jsf code that is identical for 2 different pages, except that the managed bean(backing bean) is different. We are having to duplicate the jsf code just because of this. It would be much easier to maintain if we could share the jsf code between the two beans(and somehow have it use the backing bean that it needs to use at the right time). Is there a way to do this?
    Thanks in advance!
    -M

    This code is part of a component that allows users to input their address(add page). On another page(settings page), where the user sets defaults for the system, the exact same code is needed for them to set their default address.
    When the user goes to the add page, this default address is populated, the user can continue using the default or change it.
    Hope this makes sense. Thanks.

  • Same exact Code but different results

    I am trying to fill a Listbox in a single Dialog based program using names
    from a file. I started by using an example program from the MSDN - Modeless.
    A simple Dialog based program using a modeless dialog to add strings to a
    Listbox in the main dialog. I inserted into the sample program the following
    code, which works perfectly:
    #include <Fstream>
    BOOL CLeasesDlg:nInitDialog()
    char* names;
    CListBox* pList = (CListBox*) GetDlgItem(IDC_LIST);
    infile.open("Leases",ios::in, filebuf:penprot);
    while( (infile.getline(names,25,'\n')) != NULL)
    pList->AddString(names);
    infile.close();
    Sunce the sample program was just a stepping stone I created my own Dialog
    based program using the AppWizard. I inserted the above code. I now receive
    an "unhandled exception" error every time during the "getline" execution. I
    have been trying for the last several days to track down the problem but can
    not.
    Some of what I learned:
    First-chance exception in Leases.exe (MSVCIRTD.DLL): 0xC0000005: Access
    Violation.
    so I wrote code to establish access permissions:
    int test = 0;
    // Check for existence
    if( test = ((_access( "Leases", 0 )) != -1) )
    // Check for read permission
    if(test = ((_access( "Leases", 4 )) != -1) )
    I stepped thru both with no problem. The file exist and is readable but can
    not retreive the first name.
    In the disassembly window it stops on this line:
    strgetl.cpp --------------------------------------------------------------
    102A75CD 88 08 mov byte ptr [eax],cl
    I do not understand how the code can work in the sample program and not work
    in the one I created. I looked back at another program I wrote several years
    ago and I used the exact same code with no problem. I would think that my
    compiler was corrupted but it compiles the modeless sample program.
    I am totally baffled .... PLEASE ... PLEASE help!
    I would be greatly appreciative

    Hey Randy,
    This forum is reserved for Measurement Studio questions.  I recommend checking with Microsofts forums because the people there will have more experience doing what you are looking for. 
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Pls Help! Drag and Drop problem, identical symbols acting differently - same code! WHY?

    In the attached file, I have a series of symbols that have a drag and drop command to change colour at different sections of a bullseye, and that are also text editable (html).
    However, some of the symbols get stuck and will not be moved after moving once or at all, and some get stuck once their text has been edited.
    I have poured over the code and it appears to be the same for each symbol - can anyone explain as to why this is happening?
    I also cannot now edit the text properly on the ipad (it is really fiddly to change between different symbols to edit their text -- is there maybe a better way to do this? A button to change between symbols to then edit their text, can you help with this too?)
    THANK YOU SO MUCH!!!
    File here:
    https://www.dropbox.com/s/g71gnfichjgyehn/NEW%20RISK%20RADAR.zip

    Hi, I think I undertsand what you mean now, so the code is as below, btu I am not sure what a handler is? but some of my risks still get stuck once the text has been changed on them:
    // Use for loop for attr
    // deleted  yepnope since you load with scropt loading
    // added pos for each symbol so we can replace them there.
    document.ontouchmove = function(e) {
            e.preventDefault();
    var risk = ;
    var Pos = [
    {'x':-9,'y':806},
    {'x':27,'y':854},
    {'x':72,'y':894},
    {'x':71,'y':934},
    {'x':231,'y':811},
    {'x':231,'y':853},
    {'x':231,'y':894},
    {'x':231,'y':934},
    {'x':388,'y':811},
    {'x':388,'y':852},
    {'x':388,'y':893},
    {'x':388,'y':934},
    {'x':543,'y':811},
    {'x':543,'y':853},
    {'x':543,'y':893},
    {'x':543,'y':934}
    var myText = ; 
    for (i=0;i<risk.length;i++){
    sym.getSymbol(risk[i]).$(risk[i]).attr("contenteditable",true);
    sym.$('Quadrant_text').attr("contenteditable",true);
    sym.$('Quadrant1_text').attr("contenteditable",true);
    sym.$('Quadrant2_text').attr("contenteditable",true);
    sym.$('Quadrant3_text').attr("contenteditable",true);
    // apply the draggable JQuery UI plugin to the MyDraggableSymbol symbol on your stage
    sym.$('Risk1').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk1").stop("Initial");
      sym.setVariable("symName","Risk1");
    //adding for risk3_orange similarly add for other symbols
    sym.$('Risk1').draggable();
    sym.getSymbol('Risk1').$("Risk1").bind('click tap',function(ev) {
         sym.$('Risk1').draggable('disable');
    }).unbind('dblclick tap',function(ev) {
         sym.$('Risk1').draggable('enable');
    sym.$('Risk2').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk2").stop("Initial");
      sym.setVariable("symName","Risk2");
    //adding for Risk2 similarly add for other symbols
    sym.$('Risk2').draggable();
    sym.getSymbol('Risk2').$("Risk2").bind('click tap',function(ev) {
         sym.$('Risk2').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk2').draggable('enable');
    sym.$('Risk3').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk3").stop("Initial");
      sym.setVariable("symName","Risk3");
    //adding for Risk3 similarly add for other symbols
    sym.$('Risk3').draggable();
    sym.getSymbol('Risk3').$("Risk3").bind('click tap',function(ev) {
         sym.$('Risk3').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk3').draggable('enable');
    sym.$('Risk4').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk4").stop("Initial");
      sym.setVariable("symName","Risk4");
    //adding for Risk4 similarly add for other symbols
    sym.$('Risk4').draggable();
    sym.getSymbol('Risk4').$("Risk4").bind('click tap',function(ev) {
         sym.$('Risk4').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk4').draggable('enable');
    sym.$('Risk5').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk5").stop("Initial");
      sym.setVariable("symName","Risk5");
    //adding for Risk5 similarly add for other symbols
    sym.$('Risk5').draggable();
    sym.getSymbol('Risk5').$("Risk5").bind('click tap',function(ev) {
         sym.$('Risk5').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk5').draggable('enable');
    sym.$('Risk6').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk6").stop("Initial");
      sym.setVariable("symName","Risk6");
    //adding for Risk6 similarly add for other symbols
    sym.$('Risk6').draggable();
    sym.getSymbol('Risk6').$("Risk6").bind('click tap',function(ev) {
         sym.$('Risk6').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk6').draggable('enable');
    sym.$('Risk7').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk7").stop("Initial");
      sym.setVariable("symName","Risk7");
    //adding for Risk7 similarly add for other symbols
    sym.$('Risk7').draggable();
    sym.getSymbol('Risk7').$("Risk7").bind('click tap',function(ev) {
         sym.$('Risk7').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk7').draggable('enable');
    sym.$('Risk8').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk8").stop("Initial");
      sym.setVariable("symName","Risk8");
    //adding for Risk8 similarly add for other symbols
    sym.$('Risk8').draggable();
    sym.getSymbol('Risk8').$("Risk8").bind('click tap',function(ev) {
         sym.$('Risk8').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk8').draggable('enable');
    sym.$('Risk9').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk9").stop("Initial");
      sym.setVariable("symName","Risk9");
    //adding for Risk9 similarly add for other symbols
    sym.$('Risk9').draggable();
    sym.getSymbol('Risk9').$("Risk9").bind('click tap',function(ev) {
         sym.$('Risk9').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk9').draggable('enable');
    sym.$('Risk10').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk10").stop("Initial");
      sym.setVariable("symName","Risk10");
    //adding for Risk10 similarly add for other symbols
    sym.$('Risk10').draggable();
    sym.getSymbol('Risk10').$("Risk10").bind('click tap',function(ev) {
         sym.$('Risk10').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk10').draggable('enable');
    sym.$('Risk11').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk11").stop("Initial");
      sym.setVariable("symName","Risk11");
    //adding for Risk11 similarly add for other symbols
    sym.$('Risk11').draggable();
    sym.getSymbol('Risk11').$("Risk11").bind('click tap',function(ev) {
         sym.$('Risk11').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk11').draggable('enable');
    sym.$('Risk12').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk12").stop("Initial");
      sym.setVariable("symName","Risk12");
    //adding for Risk12 similarly add for other symbols
    sym.$('Risk12').draggable();
    sym.getSymbol('Risk12').$("Risk12").bind('click tap',function(ev) {
         sym.$('Risk12').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk12').draggable('enable');
    sym.$('Risk13').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk13").stop("Initial");
      sym.setVariable("symName","Risk13");
    //adding for Risk13 similarly add for other symbols
    sym.$('Risk13').draggable();
    sym.getSymbol('Risk13').$("Risk13").bind('click tap',function(ev) {
         sym.$('Risk13').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk13').draggable('enable');
    sym.$('Risk14').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk14").stop("Initial");
      sym.setVariable("symName","Risk14");
    //adding for Risk14 similarly add for other symbols
    sym.$('Risk14').draggable();
    sym.getSymbol('Risk14').$("Risk14").bind('click tap',function(ev) {
         sym.$('Risk14').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk14').draggable('enable');
    sym.$('Risk15').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk15").stop("Initial");
      sym.setVariable("symName","Risk15");
    //adding for Risk15 similarly add for other symbols
    sym.$('Risk15').draggable();
    sym.getSymbol('Risk15').$("Risk15").bind('click tap',function(ev) {
         sym.$('Risk15').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk15').draggable('enable');
    sym.$('Risk16').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk16").stop("Initial");
      sym.setVariable("symName","Risk16");
    //adding for Risk16 similarly add for other symbols
    sym.$('Risk16').draggable();
    sym.getSymbol('Risk16').$("Risk16").bind('click tap',function(ev) {
         sym.$('Risk16').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk16').draggable('enable');
    sym.getSymbol("Drop").$('Outer').droppable(
    sym.getSymbol("Drop").$('Middle').droppable(
    sym.getSymbol("Drop").$('Target').droppable(
    sym.$('resetBtn').click(function(){
      sym.$('Quadrant_text').html('Quadrant');
      sym.$('Quadrant1_text').html('Quadrant');
      sym.$('Quadrant2_text').html('Quadrant');
      sym.$('Quadrant3_text').html('Quadrant');
    for (i=0;i<risk.length;i++){
      sym.$(risk[i]).css({"left":Pos[i].x,"top":Pos[i].y,"position":"absolute"})
      sym.getSymbol(risk[i]).stop(0);
      sym.getSymbol(risk[i]).$(risk[i]).html("Challenge");
    But is still doesn't work,
    Subject: Re:  Pls Help! Drag and Drop problem, identical symbols acting differently - same code! WHY?

  • How to get the HTML Source code from the active browser ?

    Hi All,
    I need to get the HTML Source code from the active browser (IE). I tried with the below code, but I am not able to get the Source code all the time, with respect to the different applications (http or https) and the user authentication has to be changes in few applications (_I dont know or not able to given that in the below code_). More over there is also a dependence of the URL to get the HTML Source code.
    Therefore what I feel is getting the HTML Source code from the given or active browser will be consistent than the URL. Since the Source code is available in the browser (IE) . Please help me with a sample code to achieve this . . . !
    HTMLDocument doc=(HTMLDocument) kit.createDefaultDocument();
    doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
    URL url = new URL(strURL);
    Reader HTMLReader = new InputStreamReader(url.openConnection().getInputStream());
    kit.read(HTMLReader, doc, 0);Thanks in advance,
    Regards,
    Jothi Venkatachalam
    Edited by: j0o on May 7, 2009 3:11 AM

    The simple answer is: you don't.
    Not only is it simply not possible, but the entire concept of "the active browser" doesn't exist.
    You were on the right track with your code to retrieve the page directly from the server, but as you noticed that code will only work for regular http connections.
    For https and other protocols you will need to use appropriate libraries for each protocol. Something like Apache Commons can help you with that. There are networking libraries in there for a lot of commonly used protocols.

  • I have signed on the sync, I have code but don't seem to be able to enter it on my other devices

    Running W7 on PC and Laptop and have Android and all successfully signed on to sync. the PC has generated the 12digit code, but I just can't find how to pair the devices I have tried the Mozilla help, but my computers don't appear to have the same screen and can't get the option to pair devices

    Firefox 29.0 and later use the new Sync version that use a Firefox account and only use the name and password and no longer use a separate Sync (recovery) key (the sync key is automatically derived from the password).<br />
    This version is completely different from the version previously and you need to install Firefox 29.0 or later versions on all connected devices.<br />
    You can enter the name and password of the Mozilla account on other devices that have a Firefox 29.0 or later version to add extra devices.
    The new Sync version used in Firefox 29 and later will still use a recovery key to encrypt data locally before uploading, but this recovery key is generated internally from the password of the Firefox account, so you no longer need to worry about it.
    *https://support.mozilla.org/kb/how-to-update-to-the-new-firefox-sync
    *https://wiki.mozilla.org/Identity/Firefox-Accounts
    *https://blog.mozilla.org/services/2014/02/07/a-better-firefox-sync/

  • Works in Flash player but not from Browser

    I know this has shown up in the forum before but I must be using the wrong search terms because I can't find it.
    I've created a Flash file that reads from several different xml files and displays them when requested. When I run the Flash player, (by pressing Command-Space within Flash), it all works flawlessly. But when I open it within a browser, only one of the xml files loads, the other two just spin away on the preloader.
    I have another Flash file that is doing the same thing. A click on a scrolling new list should take you to another web page. In Flash Player it works fine, but from a Browser nothing happens.
    Anyone know why this is?
    thanks

    As odd as it may seem, the tip-off to the problem may be:
    " When I run the Flash player, (by pressing Command-Space within Flash), it all works flawlessly"
    If any of your Flash assets are in a different folder than the HTML Web page... then testing the .swf directly like that should NOT work!
    It's most likely a pathing issue:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best wishes,
    Adninjastrator

  • LinkedHashMap problem (Same key but different value)

    Dear Friends,
    There is problem in LinkedHashMap for same key but different values.
    I want both values of same key as Output.
    Plz help me from an example code & it's output
    LinkedHashMap<Object, LinkedList<Object>> linkhash = new LinkedHashMap<Object, LinkedList<Object>>();
    LinkedList<Object> ll6 = new LinkedList<Object>();
              LinkedList<Object> ll7 = new LinkedList<Object>();
              LinkedList<Object> ll9 = new LinkedList<Object>();
    objectName="Listitem";
              ll6.add("id\tlisti");
              ll6.add("tag\tlistcell");
              ll6.add("tag\tlistcell");
              linkhash.put(objectName, ll6);
              System.out.println("List is "+linkhash);
              objectName="Listcell";
              ll7.add("id\tlistc");
              ll7.add("label\tCEO");
              linkhash.put(objectName, ll7);
              System.out.println("List is "+linkhash);
              objectName="Listcell";
              ll9.add("id\tlistc1");
              ll9.add("label\tNKC");
              linkhash.put(objectName, ll9);
              System.out.println("List is "+linkhash);
    output is
    List is {Listitem=[id     listi, tag     listcell, tag     listcell]}
    List is {Listitem=[id     listi, tag     listcell, tag     listcell], Listcell=[id     listc, label     CEO]}
    List is {Listitem=[id     listi, tag     listcell, tag     listcell], Listcell=[id     listc1, label     NKC]}
    I want output as
    List is {Listitem=[id  listi, tag  listcell, tag  listcell],Listcell=[id   listc, label CEO], Listcell=[id     listc1, label  NKC]}
    Plz help me
    Thanks Friend
    Edited by: kkcnkc on Apr 1, 2009 6:47 AM

    Double post. Locking.

  • Payment through F-58, but different Account IDs need to assign how?

    Hi
    How to make vendor payment through different Account IDs of the same House Bank?
    When I am using F-58 T.code for making vendor payment. But only 2 Bank accounts only possible to take.
    Payment method, Currency, House Bank will be the same but 22 types of Account IDs are there.
    So, when I am assigning them in FBZP> Bank Account determination, the system is not accepting.
    What is the solution for this.
    Waiting for earliest solution
    Regards
    CHINNU

    Dear All
    Did you get any solution for this.
    Client wants to make payment daily from many bank accounts from same house bank. For this F-58 T.Code is using.
    But here, Same house bank, Same payment method, Same currency but, different account IDs.
    Waiting for earliest reply.
    Regards
    CHINNU

  • Two methods with same name but different return type?

    Can I have two methods with same name but different return type in Java? I used to do this in C++ (method overloading or function overloading)
    Here is my code:
    import java.io.*;
    public class Test{
    public static void main(String ar[]){
    try{          
    //I give an invalid file name to throw IO error.
    File file = new File("c:/invalid file name becasue of spaces");
    FileWriter writer = new FileWriter(file ,true);
    writer.write("Test");
    writer.close();     
    } catch (IOException IOe){
         System.out.println("Failure");
    //call first method - displays stack trace on screen
         showerr(NPe);
    //call second method - returns stack trace as string
            String msg = showerr(NPe);
            System.out.println(msg);
    } // end of main
    public static void showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         String stackTrace = sw.toString();
         System.out.println("Null Ptr\n" +  stackTrace );
    }//end of first showerr
    public static String showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         return sw.toString();
    }//end of second showerr
    } // end of class
    [\code]

    Overloading is when you have multiple methods that have the same name and the same return type but take different parameters. See example
    public class Overloader {
         public String buildError(Exception e){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( e.getClass().getName() )
                   .append( " : " )
                   .append( e.getMessage() ) ;
              return buffer.toString() ;
         public String buildError(String msg){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( msg ) ;
              return buffer.toString() ;
         public String buildErrors(int errCount){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( "There have been " )
                   .append( errCount )
                   .append( " errors encountered.")  ;
              return buffer.toString() ;
    }Make sense ???
    Regards,

  • Consolidated balance sheet for 3 company codes having different fiscal year

    Hi,
    In our current organisation, we have 3 company codes assigned to the company.
    All the three company codes use the same chart of accounts.
    Among the 3, 2 company code are having the same fiscal year variant, controlling area and tha same local currency.
    One company code has different fiscal year variant , controlling area and local currency.
    Now is it possible to see the balance sheet in f.01 for all the 3 company codes.
    If no, could  anyone let me  know if I have to use the multiple ledger concept to do thid.
    I am aware that multiple ledger concept appears when the same company code has different fiscal year variants , we can  see tha same posting in different fiscal year variants.
    I am not sure if I have to use the multiple ledgers to see the consolidate balance sheet for the three companies.
    Please provide me with a clarity on the same.
    Thanks,
    Shilpa.
    Edited by: ashilpa54 on Jan 12, 2011 5:24 AM

    Hi,
    Thanks for the extended help.
    But Group Chart of accouts should be maintained for all the comany codes if they have different Chart of accounts at the company code level.
    It is not mandatory have it when all the three company code have tha same COA.
    Thanks,
    Shilpa.

  • Company codes with different fiscal year variants in a controlling area

    Hi all,
    When I try to assign a company code with different fiscal year variant than controlling area I get error. It is ok so far.
    However, after assigning company with same fsv to controlling area the system lets me to change company code's fsv in company code global settings and I can even save it.
    So I wonder how it would be possible ? Why do I get just a warning instead of an error and save ?
    Thanks and regards.
    M.Yusuf Dogan

    Hi Bulut,
    There are 12 normal and 3 special periods in the fsv of the company code which i'm trying to assign. However, controlling area's fsv has 12 normal and 4 special periods.  I get an error message "KT297".
    Actually, my point is that if the company code's fsv is same with co's I can assign but the system lets me change cc's fsv after assignment.
    M. Yusuf Dogan

  • Bought PSE13, the box has activation code but it says enter a valid serial number

    I bought PSE 13 in box with a CD. It has an activation code but it says to get a serial number on www.adobe. When I open my account, it says add a new product then enter code, I enter the 24 digit code (alpha and numbers) i have on a card in the package but it says the number is not valid. What can I do to install my new software ? Pierre

    Thanks, unfortunately, I already followed that procedure as it was written on the box containing the disk.
    A card inside the box said : obtaining the serial number : 1) go to ... www.adobe.com/go/getserial (OK done) 2) use the code joined (a code included is written "ACTIVATION CODE") 3) note the serial number that will appear 4) use the serial number.
    The procedure shows : Register your product at Adobe (OK I clic) then it opens my account, it says (plus) + Register new product : (OK, I clic)   then appears : "Enter your product serial number,  since I dont have the SERIAL number, that I'm supposed to receive, I enter the Activation code : 55Y3- C4A2 etc   maybe the problem is this, but I doubt : there is a 4 digit like this : 78O(O with a cross bar)D and next - 6F80 (look like zero, without the cross bar)- then 4 other digits.  then it shows in blue color : Please enter a valid SERIAL number.  I have tried 0 (zero) and o (letter O) nothing works.  What I dont understand is that it is supposed to give me the serial number and why is it asking me ? I tried different manners
    . I tried to get support on the week end it said mondy to friday, OK I treid this afternoon it was written : no chat available)
    So I tried the forum expert.  I had already version 12 with my PC, but I wanted to avoid problem so I bought a new version 13 for my Mac. Pierre

Maybe you are looking for

  • Weird Problem in WebDynpro

    Hi gurus!! I created a WD project: - created a model with reference to a ZBAPI - created a Component - created a Custom Controller with 2 nodes: one to the INPUT class of the model, and the other to the OUTPUT class of the model - created a View Main

  • Runtime error LOAD_PROGRAM_NOT_FOUND for ARE document.

    Hi All, when I am creating or posting ARE document thru tcode J1IA101 & J1IA301 ,I am clicking on Printing check box & when I am going to save it .It is giving me error printing parameter is not set & after pressing enter it is giving runtime error,

  • HT4113 how to connect the itune when my phone is disable

    hi my it says iphone is disabale connect to iphone. what can i do to fix

  • How to change 'Wait for condition' period?

    Hi all     I am using a workflow with a 'wait for condition' step in it. It takes so long to wait, how I reduce the waiting time?     I think it should be a periodly job in background to check the condition, but I don't know which one it is~

  • Diff in invoice qty. in standard report and z report

    Dear All pl. tell me how to find out the difference in between standard report and zreport. In our sales report and in MCTA there is diff in invoice qty. I have updated the LIS still there is diff. pl. help me rewards nikhil deshpande