Multiple canvas overlapping other canvas

I have 3 canvases in one form. The first one will appear at the top and the other 2 will appear at the bottom. I have created a radio button in the first canvas to allow the user to have to option to choose. If the first option is choosed, the 2nd canvas will appear at the bottom of the screen(3rd canvas will be hidden) and if the 2nd option is selected, the 3rd canvas will appear same position as 2nd canvas and the 2nd canvas will be hidden.
The "VIEWPORT_Y_POS" and ""VIEWPORT_Y_POS_ON_CANVAS" for the 1st canvas is set to ZERO while the 2nd and 3rd is set to 200.
The "HEIGHT" property for the 1st canvas is 155 and the other 2 canvases is 480.
During the POST_NEW_FORM and after the user selected the second option, the 1st canvas and 3rd canvas display nicely(the 2nd canvas hidden). But after the data being displayed and some of the fields in the 3rd canvas has been enabled, the 3rd canvas being overlapped by the first canvas at the top portion.
I have double checked the coding and there is no run-time setting the canvas viewport Y position property. What was wrong with the setting? This program has been running in our production server(Application Server 9.0.2) quite some time without any problem. But, when copied to our development server(application server 9.0.4), it gave me this kind of problem.
Is this a bug for the newer version of application server? or it's the setting problem to the canvas?

I have tried to set the viewport of the canvas programatically during run-time, but seems like the same problem happened.
I tried to set the viewport Y position on canvas to Zero instead of 200 and then the viewport Y position to 200 at design-time. My problem solved!
But the question is why the 2nd canvas didn't give me this kind of problem even I have set the viewport Y position on canvas same as the 3rd canvas(the canvas will appear same position as the 3rd canvas) wherelse the 3rd canvas did?
Another question is why when I run this form on the Apps Server 9.0.2 no problem but Apps Server 9.0.4 did?
Thanks.
Cheong

Similar Messages

  • Multiple canvases overlapping other canvas

    I have 3 canvases in one form. The first one will appear at the top and the other 2 will appear at the bottom. I have created a radio button in the first canvas to allow the user to have to option to choose. If the first option is choosed, the 2nd canvas will appear at the bottom of the screen(3rd canvas will be hidden) and if the 2nd option is selected, the 3rd canvas will appear same position as 2nd canvas and the 2nd canvas will be hidden.
    The "VIEWPORT_Y_POS" and ""VIEWPORT_Y_POS_ON_CANVAS" for the 1st canvas is set to ZERO while the 2nd and 3rd is set to 200.
    The "HEIGHT" property for the 1st canvas is 155 and the other 2 canvases is 480.
    During the POST_NEW_FORM and after the user selected the second option, the 1st canvas and 3rd canvas display nicely(the 2nd canvas hidden). But after the data being displayed and some of the fields in the 3rd canvas has been enabled, the 3rd canvas being overlapped by the first canvas at the top portion.
    I have double checked the coding and there is no run-time setting the canvas viewport Y position property. What was wrong with the setting? This program has been running in our production server(Application Server 9.0.2) quite some time without any problem. But, when copied to our development server(application server 9.0.4), it gave me this kind of problem.
    Is this a bug for the newer version of application server? or it's the setting problem to the canvas?

    I have tried to set the viewport of the canvas programatically during run-time, but seems like the same problem happened.
    I tried to set the viewport Y position on canvas to Zero instead of 200 and then the viewport Y position to 200 at design-time. My problem solved!
    But the question is why the 2nd canvas didn't give me this kind of problem even I have set the viewport Y position on canvas same as the 3rd canvas(the canvas will appear same position as the 3rd canvas) wherelse the 3rd canvas did?
    Another question is why when I run this form on the Apps Server 9.0.2 no problem but Apps Server 9.0.4 did?
    Thanks.
    Cheong

  • Creating a panel with multiple canvasses on it, in complementary colors

        public Dancefloor(Dimension patches, int size, Color color)
            //create JPanel
            super();
            backgroundColor = color;
            numberOfPatches = patches;
            patchSize = size;
            //set Size of Dancefloor, make a conversion because the returned type isn't int but double and the setSize
            //function is only able to handle int
            setSize((new Double( numberOfPatches.getWidth() * patchSize) ).intValue(),
            (new Double( numberOfPatches.getHeight() * patchSize) ).intValue() );
            //set bacground color of the panel
            setBackground(backgroundColor);
            //create a number of patches, as submitted to the constructor(at the moment as Canvas)
            //Create a for loop which will be looped as much times as the number of patches
            for(int d = 0; d < new Double(numberOfPatches.getWidth() * numberOfPatches.getHeight()).intValue(); d++)
                //create a new canvas and set a background for it
                patch = new Canvas[new Double(numberOfPatches.getWidth() * numberOfPatches.getHeight()).intValue()];
                patch[d] = new Canvas();
                patch[d].setBackground(backgroundColor);
                //set another background for the patches that are not even, but have an odd number
                if(d % 2 != 0)
                    float[] colorHSB = color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), null);
                    colorHSB[0] += 0.5;
                    if(colorHSB[0] > 1) {
                        colorHSB[0] -= 1;
                    patch[d].setBackground(new Color(Color.HSBtoRGB(colorHSB[0], colorHSB[1], colorHSB[2])));
        }Above is the code of the constructor of my class called Dancefloor, it attempts to create a panel(the 'dancefloor') with multiple canvasses('patches') on it. The even patches should have the color specified in the constructor, the others should have a complementary color as background. this is done using the last if-statement.
    When executing however, all patches have the color specified in the constructur and so you all you can see is a panel with a background instead of a panel with a patchwork of 2 different color canvasses on it
    I hope this explanation was pretty clear, I hope someone is able to help me out
    thomas

    i would suggest if you are going to use a JPanel, simply create an array of Rectangles that represent all of your patches. Then override the paintComponent(Graphics g) method of the JPanel to and use the fillRect(int x, int y, int width, int height) method from the graphics class to draw all of your rectangles something like this
    JPanel floor = new JPanel() {
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              for (int j = 0; j < myRectangles.length; j++){
                    g.setColor(whateverColor)
                    g.fillRect(myRectangles[j].x, myRectangles[j].y,
                                     myRectangle[j].height, myRectangles[j].width);
    }btw, you can use the field values width and height from Dimension class to retrieve an int value, insted of using getWidth() and getHeight just call myDimension.height or myDimension.width

  • Create Multiple Canvas depend on user need

    Hello everybody.. can anybody tell me how to create automatic
    Multiple Canvas depending user need. For example user need to
    display 3 information and flex get the data from HTTP XML. After
    that flex system build automatic create 3 canvas that contain the
    information been given. How can we do that? It's using repearter
    the way to solve?

    "Wirawannaga" <[email protected]> wrote in
    message
    news:gkgspl$b8b$[email protected]..
    > Hello everybody.. can anybody tell me how to create
    automatic Multiple
    > Canvas
    > depending user need. For example user need to display 3
    information and
    > flex
    > get the data from HTTP XML. After that flex system build
    automatic create
    > 3
    > canvas that contain the information been given. How can
    we do that? It's
    > using
    > repearter the way to solve?
    So glad you asked. Check out:
    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
    Q1

  • I am using my Apple ID on multiple devices for other people. How can I make icloud work only for my devices?

    I am using my Apple ID on multiple devices for other people in my family and now I am getting a new iphone and want to take only the information on my old iphone to the new one without the information on the other devices using the same account. Is there a way to do that?
    Also, for the future can I use multiple addresses and apple IDs for the same credit card information?
    Thanks in advance,
    Marian

    Ok, so you want to remove data (contacts, bookmarks, calendar etc) from other users from your iCloud/Apple ID?
    If you want to use your ID for your family because it is the account everybody uses to buy stuff then you only need to ensure that your apple ID is set up in the store (settings-store) and then the users of each device and put their own apple ID in icloud/message/facetime/etc.
    To set up your device, in my opinion, it is best to back up to itunes, and then plug your new device into itunes and "set up as ..." and select the backup from your device.  This will import all your data/settings and your new device will be set up just like your old one.
    I am not certain about using the same payment method for more than one account. 

  • Why are some of my calendar appointments synching, some synch multiple times and others not at all?

    why are some of my calendar appointments synching, some synch multiple times and others not at all?

    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod - http://support.apple.com/kb/TS1497

  • Why are some inbox messages not appearing in Mail on multiple macs and other devices?

    My partner and I have an iMac at home and one at work.  We also have two iPhones and two iPads.  We only have a couple email accounts each and two for work set up on all six Mail applications.  For some reason inbox messages are not appearing consistantly on all six devices.  For example, I can have a new message from my Mom, see it at home and on my iPhone, but not on the iMac at work.
    Also, some messages I'd like deleted off my work iMac since they're personal, but I'd like them kept on my home iMac and iPhone.  Is this possible?  Is it possible to delete a message on one and have it deleted on all others?
    Message was edited by: witboy

    What type of email accounts are they? IMAP or POP.
    IMAP leaves messages on the server so you can get them from everywhere.
    With POP, messages are downloaded to your client and then removed from the server, depending on your settings.
    The iDevice setup for POP doesn't remove them from the server.
    I think Mail's default setup for POP is to remove immediately.
    If they are POP accounts, you can set Mail's preferences to leave messages on the server for a period of time so that you can retrieve them on multiple clients.

  • Element u201C*J_1BNFE_CUST3_4V-AUTOSERVER touches or overlaps other elementu201D

    During the implementation of the OSS note 1394582,  I was getting error message Element u201CJ_1BNFE_CUST3_4V-AUTOSERVER touches or overlaps other elementu201D* for the object u201CProgram SAPLJ_1BNFE_CUST02 Screen 0004u201D for the view J_1BNFE_CUST3_4Vu201D. I tried different options like adjusting the length of text element and table control,reimplementing the manual changes and the OSS Note etc....But the issue still persists. The error occurs only during the implementation of the OSS note 1394582 but not when generating objects and activating the screens for the view u201CJ_1BNFE_CUST3_4Vu201D .I dint get any error while view creation as per the OSS note 1153965.Any suggestion are most welcome.
    Thanks and Regards
    Amar

    as

  • (261718088) Q: Can you use xm:multiple with Objects other than String?

    Q: Can you use xm:multiple with Objects other than Strings?
    <br>
    A: You bet. Attached find a text file with some code from the example I showed
    today, a version of the multipleSayHiTo() method that has a parameter of an Array
    of Person objects rather than a parameter of an Array of Strings. The code within
    the text file comes from the Greeting.jws file (the Greeting Web Service).
    [multiple.txt]

    So you are saying that the recovery discs I made do include the copy of windows that was originally installed?
    Absolutely! They will restore the hard disk to its original out-of-the-box contents. Follow the instructions in the section Restoring from recovery DVDs/media, which begins on p. 73 of the User's Guide.
       Satellite A660 Series User’s Guide
    maybe i can make a deal with wd to have them swap this drive out for the BEKT instead...
    That would be a good idea in any case.
    As I said, the 10-fc12-045d error would not be due to the drive's being AFT, but more likely the discs are not being read properly. New discs can be obtained from Toshiba. Scroll down to Get Recovery Media here
    -Jerry

  • Move/Copy multiple Layers to other document  with Script

    Hello, I have one question to how move or copy multiple layers to other document?.
    With this script i can move one by one:
    var docRef = app.activeDocument;
    var moveLayer1 = docRef.artLayers.getByName('Title');
    var moveLayer2 = docRef.artLayers.getByName('Background');
    var moveTo = app.documents.getByName('Untitled-1');
    var layerRef = moveLayer1.duplicate( moveTo, ElementPlacement.PLACEATBEGINNING);
    var layerRef2 = moveLayer2.duplicate( moveTo, ElementPlacement.PLACEATBEGINNING);
    but i need move two layer in one step....

    var docRef = app.activeDocument;
    select_layer("Title");
    select_layer("Background", true);
    var moveTo = app.documents.getByName('Untitled-1');
    duplicate_active_layer(docRef, moveTo);
    function select_layer(name, add_to_sel)
        try {
            var desc = new ActionDescriptor();
            var ref  = new ActionReference();
            ref.putName( charIDToTypeID( "Lyr " ), name);
            desc.putReference( charIDToTypeID( "null" ), ref );
            desc.putBoolean( charIDToTypeID( "MkVs" ), false );
            if (add_to_sel) desc.putEnumerated( stringIDToTypeID( "selectionModifier" ), stringIDToTypeID( "selectionModifierType" ), stringIDToTypeID( "addToSelection" ) );
            var ok = true;
            try { executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO ); } catch(e) { ok = false; }
            ref  = null;
            desc = null;
            return ok;
        catch (e) { alert(e); throw(e); }
    function duplicate_active_layer(src_doc, dst_doc)
        try {
            app.activeDocument = src_doc;
            var d = new ActionDescriptor();
            var r1 = new ActionReference();
            r1.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
            d.putReference( charIDToTypeID( "null" ), r1 );
            var r2 = new ActionReference();
            r2.putName( charIDToTypeID( "Dcmn" ), dst_doc.name);
            d.putReference( charIDToTypeID( "T   " ), r2 );
            d.putInteger( charIDToTypeID( "Vrsn" ), 2 );
            executeAction( charIDToTypeID( "Dplc" ), d, DialogModes.NO );
            d = null;
            r1 = null;
            r2 = null;
        catch (e) { alert(e); throw (e); }

  • Multiple canvas navigation help

    Hi all
    I'm developing a form with multiple canvases like A,B,C and D
    I'm able to navigate to the canvases successfully during run time by having some go_item code
    B-->D-->C-->A
    i don't want to navigate like this
    my need is if I close any the canvas B,C and D during runtime the control should be navigate to canvas A and the form won't be closed
    my problem is
    If i close any canvas during runtime the entire form is closed
    Help me!!
    Note:Is there any possibility to have a separate window for each canvas? If it so then how to code in the when-window-closed trigger for navigating between those multiple windows

    Hi user2233
    Here is an example ...
    Pls create a button in ur tab or content canvas (A) in this button pls write the following as an example...
    SHOW_VIEW('STACKED_CANVAS');
    GO_ITEM ('SAL'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    HIDE_VIEW('TAB_CANVAS'); -- or canvas  (A)
    In order to return back to ur tab_canvas pls create a button in this button pls write the following...
    HIDE_VIEW('STACKED_CANVAS');
    SHOW_VIEW('TAB_CANVAS'); -- or canvas  (A)
    GO_BLOCK('EMP');
    GO_ITEM ('EMPNO'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    Hope this helps...
    Regards,
    Abdetu...

  • Is there a way to use multiple canvas tags with the ToolKit for CreateJS for Flash in one HTML5 doc?

    Hey everyone, I was wondering if someone could help point me in the right direction for solving this. I have created 5 short animations using Flash and when I published each ".fla " (with Toolkit for CreateJS extension) I get 5 different html5 files with their own respective javascripts. Is there a way to get all those canvas tags in one html5 file and still have it work. I'd love a hint on where to begin so I can begin researching the solution.
    Thanks!
    -DJ

    Why do you think that one will be over written?
    You can sync as many ipods/iphones/ipads as you like to one computer.  Each is different and will only sync what you select.

  • One ITEM in multiple canvas

    All,
    One simple question... I am new to forms and that is why asking this question..
    I have created a DATABASE... case these items be shared in 2 canvases ??
    Thanks,

    I have created a DATABASE... case these items be shared in 2 canvases ??Not directly, no. An Item can only be assigned to a single canvas (check the property pallet for the item), however, you can create a second (non-database item) that you would display on the second canvas and then set the item to copy the value from your database item. This can be done through the properties of the second item or you can use code. I prefer the properties approach.
    Craig...
    p.s. It is always helpful to include your Forms Version when asking a question! ;-)

  • Re size multiple  canvas to a fixed size

    Hi,
    I have Around 1000 picture to Resize them to a fized size of 900x1000 pixels.
    All images are of different sixes and proportions.
    Anyone who can suggest an action to do that.
    Thanks

    I think you could record a two step action then batch that action to do all the images.
    Step 1) Menu Automate>Fit Image.  In the fit image dialog enter 900 in the width and 1000 in the height.  There will be recorded into the action step and when the action is player no dialog will be displayed the image will just be re-sized to fit within a 900x1000px area.
    Step 2)Menu Image>Canvas Size.  In the canvas size dialog leave the anchor point in the center un-check relative and enter 900PX width and 1000 PX high.  Again these will be recorded into the action step no dialog will be displayed when the step is played.   If the canvas is not 900px x 1000px because of the images aspect ratio is not 9:10  Canvas will be added to the two sides or the top and bottom to make the canvas size 900px x 1000px.
    You can batch the action with menu File>Automate>Batch or meny File>Scripts>Images Processor.

  • Thread Problem during Multiple Canvas....

    Hi,
    I have designed two games for a suite while integrating these into a single MIDlet, the flow of the canvas are good but when i go to the secomd game the thread is not executing which cause paint also not executing.. so i don find any interaction with key events.Please help in this.
    1. From the main MIDlet i set the DISPLAY.SETCURRNT to the first canvas.
    2. From the First canvas i set the DISPLAY.SETCURRNT of the second canvas using the main MIDlet.
    3. The setCurrent method is working and as i started the Thread from here.
    4.But Run is executing only one which cause Paint also only once.
    Please Help me regarding...

    Dear Bhanu,
    Firstly FRC1 is quantity based condition now you want the quantity check in MIRO (FRB1 is absolute value based , FRA1 is Percentage based)
    Lets take 1 example
    PO quantity 100 Kg price 100 Rs/Kg. with 3 FRC1 conditions values are 5 Rs/kg ,6 Rs/kg,7Rs/kg (3 separate vendor A,B,C)
    so total PO with freight =100100 +51006*1007*100
                                          =10000 +  1800
                                          =11800 Rs
    Now say you have received 10 Kg of material
    And for freight vendor A you are performing MIRO ->Enter PO ->Select planned delivery cost-> Pop up will appear
    Select vendor A.
    Now it will propose 50 Rs and 10 KG
    If you enter qty as 11 kg it will show you warning ( that Qty exceed from GR) but
    TO achieve this you need to set tolerance key DQ (Qty check) for your company ->select check limit in OMR6
    and if want price check too set tolerance key KW this will check the amount of FRC1
    You can also make this warning as error in OMRM message no M8 081 as error
    Edited by: redriver on Dec 12, 2011 6:55 AM

Maybe you are looking for