A funny problem ..?

hi every1,
I am trying to create a ADT binary tree. The insert method works in funny way. If i try to add new items by let is say: bst.inesert("a"); .... ("x"); it works fine. Even if i keep a for and next loop and populate it it is okay and searches the item fine too. But the problem is that i have to read data from a file and pupulate the tree. it populates the tree also but when i try to search for the item. it returns null. Where can something go wrong? i search for an item as follow:
     String temp1=new String("as"); //THIS IS IN MY FILE AND READS IT FINE TOO
          if (bst.findNode(temp1)!= null)
               System.out.println("Found " +bst.findNode(temp1).getItem().toString());
          else
               System.out.println("Item " + temp1 + " is not found.");
          System.out.println("Size " + bst.size(bst.root)); //THIS ONE WORKS FINE
my insert method is:
     public void treeInsert(Object newItem) {
TreeNode thisNode = root;
     boolean exitWhile = false;
if ( thisNode == null )
// The tree is empty. Set root to point to a new node
// containing the new item.
root = new TreeNode( newItem);
else
               while (!exitWhile){
                    if (comparator.compare(thisNode.getItem(), newItem) < 0)
                         if (thisNode.getLeft() != null)
                              thisNode = thisNode.getLeft();
                         else{
                              exitWhile = true;
                              thisNode.setLeft(new TreeNode(newItem));
                    else
                         if (thisNode.getRight() != null)
                              thisNode = thisNode.getRight();
                         else{
                              exitWhile = true;
                              thisNode.setRight(new TreeNode(newItem));
}

You had a problem with your search method but you seem to have accidentally posted the code of your insert method instead.

Similar Messages

  • N97 Charging Funny Problem + Headset Issues

    I have been experiencing a funny problem when charging my N97. I bought my phone in August last year. It had been working fine till now and still is. I really have no complaints when it is concerned to performance and usablity. Initial issues were promptly solved with the firmware updates.
    Yesterday night, I found out that I had this problem. When I hooked up my phone with my charger, it did not show any light. I tried to use the charger on another mobile(SAMSUNG) which sports the same USB port as my N97 and it worked ! I also used the samsung charger (though its only 700mA) on my N97 and the charging indicator glowed ! To my surprise, the charger adapter pin that ships with the N97 allowing us to charge the phone with older chargers also allowed me to charge my phone. In short, everything charged my phone(including USB) except the provided charger. Any help regarding this matter will be deeply appreciated.
    Secondly, of lately the headset has become dogdy. Earlier, even if I ran while having hooked up, the connection was good. Now, even if I move the slightest, the phone looses the connection with the headset and the headset icon disappears. Then I need to plug it out and the plug it in again for about 2-3 times to get the icon to reappear. Now if anyone can explain to me why this is happening and the solution to it, I would be really happy.
    Thanks !

    3 days but still no response. Anyways, I had my device taken to the local Nokia Care Outlet. It appears as though it was some hardware issue and I shall have my handset repaired in about a week. Since the warranty is still active, no problems what-so-ever.
    Thanks for OR whatever ! Expected better from this forum....

  • Funny Problem with method GET_GROUPED_COLUMNS

    Hi All,
    I am encountering a funny problem. I need to provide all Grouped Columns of my Web Dynpro Table. I used the following coding to do this:
    lt_col_grp = lo_table->get_grouped_columns( ).
    Now, for one table this methode return all Grouped Columns and for another table it returns not only the Grouped Columns, but also the NON Grouped Columns!!!
    In the debugger this looks as follows:
    1     *->{O:1752*\CLASS=CL_WD_TABLE_COLUMN}*
    2     ->{O:1755*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
    3     ->{O:1757*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
    4     ->{O:1759*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
    5     ->{O:1761*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
    6     ->{O:1763*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
    7     ->{O:1765*\CLASS=CL_WD_TABLE_COLUMN_GROUP}
    Why is that??
    Does anybody know how to delete the lines that are not of type CL_WD_TABLE_COLUMN_GROUP?
    Thanks,
    Johannes

    Hi Maik
    It seems you have solved your problem. There are some actions clearing all selection and scrolling info. And since you every time create a new instance or call some method which clears your selections your selections table is lost.
    For a screen session, you should use "set_table_for_first_display" for just once and for next PBO triggers you should execute the method "refresh_table_display".
    *--Serdar

  • Funny problem with the mapping

    Dear All,
    I am facing with a funny problem with the mapping.
    I am working on a scenario in which Invoice IDOC created in R/3 will be posted to XI and then in XI, mapping are done to create an XML file out of that IDOC.
    In the Idoc, there is a segment E1EDKA1 which is getting created multiple times for different partners alongwith their details. The fields in E1EDKA1 segment are: PARVW,PARTN LIFNR etc.
    In the output I just want LIFNR number where PARVW = RE or RS.
    I have done the required mapping and when I am testing the mapping its giving me the required results correctly but when I make this scenario live then in real-time, the output XML file has no value for LIFNR.
    Can anybody guide me out why is it happening tht during mapping testing its giving the correct result but at real time the mapping is returing no value.
    Warm Regards,
    N.Jain

    Hi Nishant,
    Are you sure the test data which you are using while testing the mapping in IR and the one which comes when you test real time is the same?
    The data which comes real time. Copy the source payload and then test in mapping. See if you get the right data which you expect. If you do then theres some problem.
    Now also go to the same message and in trace you can find out the GUID of the mapping program which is used.
    Go to RWB - Last button..not sure what the name is .. something similar to Cache.. Find your mapping program and see if the GUID Matches. If the GUID matches then it is okay.
    Also try to do the following..
    Reactive the MM/IM.
    Go to ID. Make some dummy change in Interface determination and then activate it.
    Check the cache notification to make sure if the cache is updated.
    If the above doesnt help you let us know.
    Regards,
    Sumit

  • Funny problem - any ideas ?

    Hi Folks,
    I'm seeing a funny issue and running out of ideas, any help would be appreciated.
    Here is a pl/sql block :
    declare
    ctr  number := 0;
    ctr1  number := 0;
    begin
    insert into TableT ( x, y, z)
      select <3 columns> from table1, table2, table3, table4, table5
      where <join conditions for tables 1 thru 5> ;
    -- this inserts 67xxx records. This number varies randomly during runs, no two runs return the same number e.g 67258, 67120, 67118 etc
    for rec in (
    select <3 columns> from table1, table2, table3, table4, table5
    where <join conditions for tables 1 thru 5> ) loop
       ctr := ctr+1;
    end loop;
    dbms_output.put_line(ctr); -- shows the right number that should be returned by the select query i.e. 67105 EVERY time its run
    select count(*)  into ctr1 from table1, table2, table3, table4, table5
    where <join conditions for tables 1 thru 5> 
    dbms_output.put_line(ctr1); -- shows the right number that should be returned by the select query i.e. 67105 EVERY time its run
    end;
    /The query in the for loop is an exact cut-paste job from the query in the insert.
    Theres nothing special about tableT its just a straight create table with NO clauses other than column definitions all of which are number,varchar2(20) and date specified at creation time, no constraints, no triggers. DB is 11.1.0.7 if thats relevant.
    I've racked my brains, cant think of a reason for this. Any ideas ?
    TIA !!!!
    Edited by: 980084 on Jan 5, 2013 8:20 AM
    Edited by: 980084 on Jan 5, 2013 8:32 A

    980084 wrote:
    Hi Hoek,
    Thanks for your reply, I cant really demonstrate the problem with test data since if I create new test tables and sample data, the problem does not show up.
    I'm really looking for suggestions of areas to look into, I understand you can't point out the actual problem with what I've posted.
    NormHi Norm,
    Too bad you cannot reproduce the problem. It raises more questions and guesses/speculations which is the opposite of what you're looking for.
    Are you getting the problem in an 'isolated environment' (are you the only one doing DML, is this a test database or...)?
    How did you determine the number of rows inserted through your SQL approach (INSERT...SELECT)? SQL%ROWCOUNT?
    Any triggers on table1..5?
    Your example seems to be narrowed down a bit too much, expecially since you cannot reproduce when you try to recreate the problem.

  • Funny problem with schema pattern regular expression

    I have following element in my schema:
    <xsd:element name="lD">
         <xsd:simpleType>
              <xsd:restriction base="xsd:string">
                   <xsd:pattern value="\d{5,8}" />
              </xsd:restriction>
         </xsd:simpleType>
    </xsd:element>then in the XML, I have:
    <ID>
    123456789
    </ID>funny thing is the schema validates the value successfully. seems the upper bound of 8 the in the regular expression does not have any effect. however, 1234 would fail.
    i looked up the schema prime on W3C, it specifies that {n,m} means at least n and at most m.
    any idea anyone?
    I have using Xerces 1.4.4.
    Thanks

    I tried the example you mentioned and it seemed to
    work for me. It validated both the upper bound and
    the lower bound. Looking at the Manifest file in
    xerces jar, it looks like I have version 2.5.0yes, I know. Xerces 2 works, but Xerces 1 has the above problem. If you get Xerces 1.4.4 from xml.apache.org, you will see the problem.
    I can not use Xerces 2 in our production environment yet.

  • Smartform-Funny Problem

    Dear all,
    In an existing smartform I had to make the following changes:-
    1:-Include the Sec Education Cess @ 1 %   and display its value
    2:-For multiple line items the sales tax (@ some %)  value must be addition of both the line items sales tax value.
    3:-Finally in the grand total Sec Education Cess value will have to be included.
    Points 1 and 3 are fine.
    But in point 2,while in debugging altough i can see the addition of both the line items sales tax value (which I have taken in the v_sstax),in the output,i can see only the sales tax value of 1st line item.
    eg:-
    Sales Tax @ 4% for 1st line item is 152.59
    Sales Tax @ 4% for 2nd line item is 174.31.
    Desired output should be 152.59 + 174.31 = 326.9 (which I can see while debugging).This 326.9 is taken into consideration for the grand total and hence grand total is correctly displayed
    But i am getting only 152.59 in the output of salestax
    There is no other code involved in between 152.59 + 174.31 = 326.9 and its printing.
    Where might be the problem?Plz give me some suggestions.
    I have been at it since yesterday but have not yet found out a solution

    Hi,
       Have you written the sales tax text in loop. check it once if yes, then write the text separatly.
    Rgds,
    Bujji

  • Funny problem

    Hey everyone
    I had a few problems with my computer a while back. I took it to the shop and they did a complete rebuild. In doing this they somehow got rid of Photobooth. I was wondering if there was anyway I can get it back? I've lost my instill disk, which makes this harder.
    See ya
    Bevan

    Not without the installer discs.

  • Funny problem loading images

    Hi all,
    I'm currently on Safari ver 4.1.3.
    Previously an auction website I'm often surfing works fine, but now it has problems loading specific images. Or rather it just doesn't load the product images at all. Seems stuck as there are no indication that there are images there.
    Tried the following:
    • using another set of dns
    • reset safari, cleared caches, delete plist, etc
    • double check to see if I had installed anything or tampered the prev settings to no avail
    • tried using firefox, same problem occurs
    website in question:
    http://goods.gmarket.com.sg/gmkt.inc/Goods/goods.aspx?goodscode=401065648
    interestingly, I can surf the korean version without any problem.
    www.gmarket.co.kr
    so what's the problem? totally confused.

    Hi,
    tried using firefox, same problem occurs
    Since this is happening in more then one browser the startup disk may need repairing.
    Launch Disk Utility (Applications/Utilities). Select MacintoshHD in the Sidebar on the left then select the FirstAid tab.
    Click: Verify Disk (not Verify Disk Permissions)
    If the startup disk needs repairing, follow the instructions here.
    Using Disk Utility to verify or repair disks
    Carolyn

  • Funny problem with Netscape

    I am having an applet. When I removed all class files and place JAR file, Netscape started giving problem.
    Please note following
    1)On local intranet both IE / Netscape applet is running properly. (With Jar and with classfiles.)
    For LIVE :
    2)If I try to connect through direct dial-up connection to Live server, again both IE / Netscape are ok (With Jar and with classfiles.)
    3)If I connect through local intranet to LIVE server (my computer is behind the firewall) and put the class files then also for both IE / Netscape it is ok
    4)If I connect through local intranet to LIVE server (my computer is behind the firewall) AND WHEN I REMOVE ALL CLASS FILES AND REPLACE WITH JAR FILE, IE is still ok, Netscape is giving following error :
    java.lang.NullPointerException
    at java.lang.StringBuffer.append(Compiled Code)
    * at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    It is very obvious, problem is because of Firewall and Netscape security, but how to get around this problem ?
    manisha

    Hi,
    I don't know whether it is exactly a same problem or not, but, my applet had received the same error message at start time . What I did in previous revision is System.getProperty("user.dir") as applet's instance variable.
    class myApplet extends JApplet {
    private String currDir = System.getProperty("user.dir");
    //Other code goes here......
    Since my applet does some local file access, security code is already there in init(), so I moved getProperty() to the inside of the init(), like:
    class myApplet extends JApplet {
    private String currDir = null;
    public void init() {
    //Security permissions are here
    currDir = System.getProperty("user.dir");
    //Other codes goed here...
    Then problem gone.
    Because Netscape message does not indicate that this is a security related problem nor, problem is related to applet initialization, so I really think finding resolution is very much difficult.
    I believe other people who have this problem may have some security-related code in their applet...
    Worse, this problem does not happen in Internet Explorer (MSVM).
    If getting "user.dir" at initialization of the applet is a security violation, those VMs should report it so, I think...
    Anyway, this is my case. I hope this information will make any sense in your case as well.
    Regards,
    M.H.

  • Very funny problem, with Swing, please tell me WHY

    Hi, guys ,
    It seems very funny to me when developog a chat application.
    when every time, user enter the text and hit the Enter (through a listener), the text shows up at the screen, and if more texts than the screen, the screen will always focus at the bottom line.
    Hwoever, if you do the same but not via a actionPerformed method,(i.e. a for loop in the main metho) the screen will always focus on the first line of the jTextPane.
    have a try:
    this code will make the focus on the first line, but if you uncomment the thing in the actionPerformed method, and comment one in the main method, if will be totally different
    Please tell me WHY
    import javax.swing.event.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.text.*;
    public class Pane extends JFrame {
    JTextPane txtOutput ;
    StyledDocument document;
    Style normalStyle;
    JTextField jf;
    public Pane()
    Container cont = getContentPane();
    cont.setLayout(new BorderLayout());
    txtOutput = new JTextPane();
    jf = new JTextField(80);
    document = txtOutput.getStyledDocument();
    // Define style for outputStyle
    normalStyle = document.addStyle("Normal", null);
    StyleConstants.setItalic(normalStyle, false);
    StyleConstants.setFontFamily(normalStyle, "Courier");
    StyleConstants.setFontSize(normalStyle, 14);
    StyleConstants.setForeground(normalStyle, Color.red);
    // Now to insert string at end
    txtOutput.setEditable(false);
    cont.add(new JScrollPane(txtOutput),BorderLayout.CENTER);
    cont.add(jf,BorderLayout.SOUTH);
    cont.setVisible(true);
    cont.setBounds(100,300,400,500);
    jf.addActionListener(
    new ActionListener() {
    public void actionPerformed (ActionEvent event)
    //int i = 50;
    //while(i>0){
    //setText1("gegegeg");
    //i--;
    public void setText1(String event) {
    String s= event;
    //s = jf.getText();
    try{
    document.insertString(document.getLength(), s+"\n\n" , normalStyle );
    catch (Exception e) {
    System.out.println("askdf "+e);
    public static void main(String args[])
    Pane p = new Pane();
    p.show();
    System.out.println("I am finish");
    int i = 50;
    while(i>0){
    setText1("gegegeg");
    i--;
    }

    I dunno why, why is it important? if you want it to focus on the last line, just always put a code that makes it focus on the last line, and that's it

  • Funny problem with getting Priner code

    Hello, I got the Deskjet 1510 as a gift, I want to add my printer to ePrinter account, but I don't know where to find the priner code. In support is written that I must press a "ePrint button" or go to the control panel and press Configuration, then Network Services, but this printer doesn't have a "ePrint button" and control panel. How can I print sheet of network services with printer code?

    Hello szkielol07,
    Welcome to the HP Support Forums!
    Have some good news bad news for you regarding your Deskjet 1510 and ePrint. Good news, you can stop looking for a code. Bad news, this printer is not ePrint enabled, nor is it wireless.
    For more specifications on the printer, click here: Printer Specifications for the HP Deskjet 1510 and Deskjet Ink Advantage 1510 All-in-One Printer Ser...
    Regards,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • N82 funny problem (not for me)

    Hi! I has broth a N82 last wensday and has been very happy with it, but yesterday when i downloaded nokia sports tracker from mobil.nokia and tried the program it worked for about 5 minutes then the phone lockt up and when I restarted the phone my 4 gb memorycard disappear, the memorycard is from nokia and I has tried to remove and put it back with out any luck.. Somebody has some ide what I should do? (my computer dosent find my phone by the usb)

    I assume you know how to have the two buttons displayed in the same panel but are not sure how to deal with two actionlisteners.
    There are two options, one is to have your GUI implement actionlistener, as your did, and then diferentiate which object caused the call by looking at the event object.
    The other, and more common, method is to add a seperate listener to each button and do the action in each listener.
    button1.addActionListener(new java.awt.event.ActionListener() {
         public void actionPerformed(java.awt.event.ActionEvent e) {
         // do stuff here
    button2.addActionListener(new java.awt.event.ActionListener() {
         public void actionPerformed(java.awt.event.ActionEvent e) {
         // do stuff here
    });

  • Funny align problem....

    Link to online page : http://www.episodesoft.com/demo/index_fr.html
    Hello.
    I have a funny probleme dealing with alignment when you must have a webpage that can resize itself depending of the screen resolution. i know i am not a pro, but this is kindra funny...
    The basic setting is 1024x768, up to 1920x1080. my probleme is that i want the content (text) to always fit with the logo "logiciel episode" and currently it is working only with the 1024x768. The arm of the lady is cut on purpose in this format.
    I've try to put a margin-left in the CSS here, but when you do that, it fix the log/content fitting, but the text itself go over the lady ( yes the lady and the content are separate file for futur edition purpose). Now because the arm of the lady appear only when you are in a higher resolution that 1024x768, the table itself is larger than what is require by the 1024x768 size, thus messing thing.
    I cannot modifie the header either because the header as you see is not a single color that you can put in backgroup in the CSS. i had to make a file of 2000 pixelx95 for that.
    Does anyone know a way to fix or force the content and the lady something about 30-40 px from the left border of the cell in the table ?... when i try to type that directly in the code, nothing happen at all.
    Also please take note that the actual content will be in html, and not a Jpg ( however the background of the table will be a png ). this is still a demo.
    i am a little puzzled here.
    Since you cannot open the file, i copy here the whole code ( there is some part that are desactivated, dont mind it )
    Any help will be welcome.
    Thanks
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Logiciel Épisode</title>
    <style type="text/css">
    <!--
    #bottom {
    background-color: #FFFFFF;
    background-repeat:no-repeat;
    background-position: bottom;
    background-image: url(images/barre_bottom.png);
    height: 5px;
    #headinner  {
    background-position: center top;
    margin-top: 0px;
    margin-bottom: 0px;
    background-color: #F5F6F7;
    background-repeat: no-repeat;
    height: 95px;
    background-image: url(images/HeaderFR.png);
    body {
    background-color: #ffffff;
    margin-top: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-left: auto;
    background-image: url(images/fond.png);
    text-align: center;
    background-position: center;
    #Copyright {
    text-align: center;
    margin-bottom: 1px;
    margin-top: 1px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    #layer2 #Layer2 tr td p {
    text-align: center;
    font-size: 36px;
    <!-- margin-left: 30px;
    -->}
    -->
    </style>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body>
    <div id="headinner">
    </div>
    <!--<div id="layer1" style="position:absolute; left:50%; margin-left:-475px; top:70px; width:950px; height:580px; z-index:2">
    <table width="950" border="0" align="center" >
      <tr>
        <td align="center" valign="middle">
        <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="950" height="580">
          <param name="movie" value="Video/Menu.swf" />
          <param name="wmode" value="transparent">
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="swfversion" value="6.0.65.0" />
          <param name="expressinstall" value="Scripts/expressInstall.swf" />
          <param name="embed" value="wmode=&quot;transparent&quot;" />
          <param name="selectable" value="false" />
          <param name="border" value="0" />
          <param name="embed" value="border=&quot;0&quot;" />
         <object type="application/x-shockwave-flash" data="Video/Menu.swf" width="950" height="580">
            <param name="quality" value="high" />
            <param name="wmode" value="transparent" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <param name="embed" value="wmode=&quot;transparent&quot;" />
            <param name="selectable" value="false" />
            <param name="border" value="0" />
            <param name="embed" value="border=&quot;0&quot;" />
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
          </object>
          </object>
        </td>
      </tr>
    </table>
    </div> -->
    <div id="layer2">
    <table border="0" align="center" id="Layer2" name="Layer2">
      <tr>
        <td background="images/accueil_fond.png" width="1035" height="485" aling="right" ><img src="images/accueil2_3.png" width="950" height="485" align="left" valign="middle"/></a></td>
      </tr>
    </table>
    </div>
    <div id="bottom">
    </div>
    <p id="Copyright">© 2010 - Logiciel Episode Inc.</p>
    <table width="10" border="0" align="center">
      <tr>
        <td align="center" valign="middle"><a href="index_us.html" target="_self">English</a></td>
        <td align="center" valign="middle"><a href="index_fr.html" target="_self">Francais</a></td>
    <!--
        <td align="center" valign="middle"><p><a href="index_us.html" target="_self"><img src="images/Drapeau_US.png" width="25" height="15" border="0" align="absmiddle" /></a></p></td>
        <td align="center" valign="middle"><a href="index_fr.html" target="_self"><img src="images/Drapeau_fr.png" width="25" height="15" border="0" align="absmiddle" /></a></td>
    -->  </tr>
    </table>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    //-->
    </script>
    </body>
    </html>

    Building a "liquid" page layout for sizes rranging from 1024 to 1920 is going to give you problems if you expect your container's text content to remain fixed as the page (and the container) expands to fit the screen, in order to match a background picture.
    It's a little like building a house with movable walls but expecting the flooring and furniture and plumbing and wiring and windows to change sizes and location exaclty right every time you decide to slide a wall in or out.
    It can theoretically be done, but it's waaaaaaaaaayyyyyyyyyy more work than anyone would reasonably want to do.
    Better off to build a fixed container with a background image that fits.
    If you really want a fluid container, stick to adding text directly to a header image and leave that in a fixed position at the top of the page so no matter how big a visitor's screen is it will always look right, even if the page expands to 2048 X 1536 or larger.

  • How do I fix this 'funny' JavaScript/Ajax behavior?

    Hello all!
    I have this kind of funny problem, or, well, a funny result...
    The problem is almost solved tho, but it's just this strange behavior that I can't solve.
    You can see what I mean here:
    http://apex.oracle.com/pls/apex/f?p=9949:101:1370355978553401
    Username: visitor
    Password: visitor
    Login first, then edit the URL to go to page 24 (or just click on "Web Platform", then in the submenu click on "Meals and templates", and then in the custom menu on the left click on "Show templates".
    If you have done that, click on any of the two links in the report.
    You'll see that suddenly, the whole page seems to be shown inside another region (the region named "Menu2", underneath the normal menu region).
    It's like... A page within a page. Pageception (Inception... Pageception... Get it?).
    Now, all this happens WITHOUT refreshing. Yes, I want this to be dynamic. My question is:
    How do I change my code in such a way, that it does NOT display the whole page 24 inside that menu2 region? Because I want to display a popup, not a page within a page...
    My code for doing so is in my Page Attributes. In the JavaScript tab, I have the following code for the popup, and in it you will find the code to get these values in the page items as well:
    $( function(){
      $('#ModalForm').dialog(
         modal: true,
         autoOpen: false,
         width: 500,
         height: 350,
         buttons:{ Calculate: function(){calculateTotal();},
                   Close: function(){closeForm();}        
    function openForm(pFoodTemplateId, pMealTypeId)
    var getone = new htmldb_Get('shiny',&APP_ID., null, 24); // initialize get
    getone.add('P24_TEMPLATEID', pFoodTemplateId);
    getone.add('P24_MEALID', pMealTypeId);
    gReturn = getone.get();
    getone = null;
    $('#ModalForm').dialog('open');
    function closeForm()
    { $('#ModalForm').dialog('close');}
    $(document).ready(function()
        {$('a.temppop').click(function() {openForm();});
    });"Shiny" is the name of the ID of my "menu2" region.
    In case I'm not clear (which I probably am, since I'm in a rush):
    I have 2 page items that get the value of the selected row's foodtemplateid and mealtypeid. The column link URL from my report is:
    javascript: openForm(#FOODTEMPLATEID#, #MEALTYPEID#); So, in a nutshell, item :P24_TEMPLATEID gets the value of the foodtemplateid that corresponds to the row you selected, and item :P24_MEALID gets the value of the mealtypeid that corresponds to the row you selected.
    Thank you for your time. I really appreciate it.
    Apex version: 4.1.1.00.23

    Hi,
    Maybe JavaScript should be something like this
    function openForm(pFoodTemplateId, pMealTypeId){
    $("#P24_TEMPLATEID").text(pFoodTemplateId);
    $("#P24_MEALID").text(pMealTypeId);
    var getone = new htmldb_Get(null, &APP_ID., "APPLICATION_PROCESS=DUMMY", &APP_PAGE_ID.);
    getone.add("P24_TEMPLATEID", pFoodTemplateId);
    getone.add("P24_MEALID", pMealTypeId);
    gReturn = getone.get();
    getone = null;
    $("#ModalForm").dialog("open");
    }Or
    function openForm(pFoodTemplateId, pMealTypeId){
    $s("P24_TEMPLATEID", pFoodTemplateId);
    $s("P24_MEALID", pMealTypeId);
    var getone = new htmldb_Get(null,&APP_ID.,"APPLICATION_PROCESS=DUMMY",&APP_PAGE_ID.);
    getone.add("P24_TEMPLATEID", pFoodTemplateId);
    getone.add("P24_MEALID", pMealTypeId);
    gReturn = getone.get();
    getone = null;
    $("#ModalForm").dialog("open");
    }Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai
    Edited by: jarola on Apr 19, 2012 3:56 PM

Maybe you are looking for

  • How to repair a void character?

    my macbook air 13" I am using for aImost two years but how sad I discovered this month, I found out one character is void. I don't know how it happenned. I have two kids , 13 and 7 years old, who are using the laptop as well, but of course, they don'

  • NWDI Server Setup in Landscape

    Hi, In My  Landscape SAP EP Portal [DEV,QUA,PROD] And BI Portal [DEV,QUA,PROD ]Systems.Currently NO NWDI Componets Setup in existing Portal Installations in Both EP Portals and BI Portals. I Am using SAP Netweaver 2004s SP16 Vesrion in Both EP PORTAL

  • ManagedConnectionFactory not found for jndiName SquareConnector

    Im trying to access a Connector I wrote and im getting the error:           <190004> ManagedConnectionFactory not found for jndiName SquareConnector           The rar package is exactly the same as one in an ear package that works.           I have t

  • Officejet 6000

    I now only want to use this printer for black and white text. That 920 cartridge needs to be replaced, and all the color cartridges show empty as well.  I have only been printing in gray scale, and not using colors for some time. Can I only replace t

  • Info re cutout tool

    I want to make a cutout and too much is being outlined with the selection tool.  How do I control what is being outlined?