New stacked canvas and action items

I have a form with tree module components into the same window: one new content canvas and two new stacked canvas.
The window has an action item. When I execute this form the action item is'nt visible because is placed under the stacked canvas. Is possible display the action item at the bottom of the window?

hi
try to adjust the View port width & height of stacked canvas properties back and forth.
ram Not sure this addresses my problem. The stacked canvas properties are fine. However, I want to be able to execute a SHOW_VIEW on my stacked canvas after a FORM_TRIGGER_FAILURE has been raised. Obviously, I could place a button that did SHOW_VIEW when pressed but thats far from ideal. I want to be able to do it automatically without any need for the user to do anything.
Regards
Peter.

Similar Messages

  • Creating a new window from and action event

    Hey I have a problem i would like most of my menu items to create a new window containing a set text and i was thinking of creating a new container with a JTextArea but for some reason its not working. if someone could help me that be great... so my question is how do create another window (TextArea) with my tokenized array info in it open up when Print File or Print Total is the event??
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.util.StringTokenizer;
    import javax.swing.plaf.*;
    class PhoneProject extends JFrame implements ActionListener
         private static final int WIDTH = 260;
         private static final int HEIGHT = 160;
         private static final int X_ORIGIN = 402;
         private static final int Y_ORIGIN = 299;
         ArrayList internalCalls = new ArrayList();
         ArrayList externalCalls = new ArrayList();
         PhoneCall internal;
         PhoneCall external;
         JMenu query = new JMenu("Query");
         JMenu proccess = new JMenu("Proccess");
         String inRecord;
         int numExtension;
         int numCallType;
         int numSeconds;
         int totalIntTime;
         int totalExtTime;
    public static void main(String args[])
              PhoneProject frame = new PhoneProject();
              frame.setVisible(true);
    public  void LoadArray(File myFile) throws IOException
              FileReader fr = new FileReader(myFile);
              BufferedReader br = new BufferedReader(fr);
              while ((inRecord = br.readLine()) != null)
                   StringTokenizer tokenizer = new StringTokenizer(inRecord);
                   String extension = tokenizer.nextToken();
                   String callType = tokenizer.nextToken();
                   String seconds = tokenizer.nextToken();
                   numExtension = Integer.parseInt(extension);
                   numCallType = Integer.parseInt(callType);
                   numSeconds = Integer.parseInt(seconds);
                   if (numCallType == 0)
                        internal= new PhoneCall(numExtension, numCallType, numSeconds);
                        totalIntTime = (totalIntTime + numSeconds);
                        //System.out.println(totalIntTime + "int");
                        internalCalls.add(internal);
                   if (numCallType == 1)
                        external = new PhoneCall(numExtension, numCallType, numSeconds);
                        totalExtTime = (totalExtTime + numSeconds);
                        //System.out.println(totalExtTime + "EXT");
                        externalCalls.add(external);
                   System.out.println(internal.getSeconds());     
         public PhoneProject()
              Container contentPane;
              setBounds(X_ORIGIN, Y_ORIGIN, WIDTH, HEIGHT);
              setTitle("Phone Analyzer");
              setResizable(true);
              contentPane = getContentPane();
            contentPane.setLayout(new BorderLayout());
              JMenu file = new JMenu("File");
              JMenuItem  item;
              item = new JMenuItem("Open");
              item.addActionListener(this);
              file.add(item);
              item = new JMenuItem("Exit");
              item.addActionListener(this);
              file.add(item);
              proccess.setEnabled(false);
              item = new JMenuItem("Print File");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenuItem("Print Totals");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenu("Low and High");
              item.addActionListener(this);
              proccess.add(item);
              JMenuItem subItem = new JMenuItem("Compare");
              subItem.addActionListener(this);
              item.add(subItem);
              query.setEnabled(false);
              item = new JMenu("Average Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuItem itemInt = new JMenuItem("Internal");
              itemInt.addActionListener(this);
              item.add(itemInt);
              JMenuItem itemExt = new JMenuItem("External");
              itemExt.addActionListener(this);
              item.add(itemExt);
              item = new JMenuItem("Highest Internal Utilization");
              item.addActionListener(this);
              query.add(item);
              item = new JMenuItem("Highest Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuBar menuBar = new JMenuBar();
            setJMenuBar(menuBar);
            menuBar.add(file);
            menuBar.add(proccess);
            menuBar.add(query);
              contentPane.add(new JTextArea("Phone Report"));
      public void actionPerformed(ActionEvent event)
           String menuName;
           menuName = event.getActionCommand();
           if (menuName == "Open")
                JFileChooser chooser = new JFileChooser();
                int returnVal = chooser.showOpenDialog(this);
                if (returnVal == JFileChooser.APPROVE_OPTION)
                     try
                        File myFile = chooser.getSelectedFile();
                        this.LoadArray(myFile);
                        proccess.setEnabled(true);
                        query.setEnabled(true);
                     catch (Exception e)
         if (menuName == "Print File")
    JTextArea display = new JTextArea();
              display.setText("Hello");testing to see if it works
              display.setVisible(true);
         if (menuName == "Print Total")
                                               JTextArea display = new JTextArea();
              display.setText("Hello");//testing
              display.setVisible(true);
           if (menuName == "Exit")
                System.exit(0);
    }Phone.txt
    2000 0 300
    2000 0 538
    2000 1 305
    2000 1 729
    2005 0 205
    2005 0 305
    2005 1 592
    2005 1 594
    2010 0 364
    2010 0 464
    2010 1 904
    2010 1 100
    2020 0 234
    2020 0 839
    2020 1 999
    2020 1 210
    Assignment: Array Based GUI Assignment
    Telephone call data has been collected from a company's telephone switch. You have been asked to analyze it and produce various statistics.
    Input File
    The input file is a sequential file. It is in no specific order. The file contains an extension number, type of call, and the length of call in seconds. A record is produced each time a call is made from that extension. You should create your own test file.
    Field     Type     Description
    Extension     Integer     Extension number. This is a 4 digit number. Valid Extensions are 2000 to 2020.
    Type     Integer     Value of 1 means internal, any other value is an external call.
    Time     Long     Length of call in seconds
    Example:
    �     2000,1,60 : ----->>>> Extension 2000 had an internal call that lasted 60 seconds
    �     2000,1,356: ----->>>> Extension 2000 had an internal call that lasted 356 seconds
    �     2019,2,65: ------>>>> Extension 2019 had an external call that lasted 65 seconds
    �     2001,1,355: ----->>>> Extension 2001 had an internal call that lasted 355 seconds
    Process
    1.     Use 2 arrays to accumulate the time of calls for each extension, both internal and external.
    2.     The reports and queries are to be produced from the arrays.
    Hints:
    �     Create 2 arrays: one for internal calls and one for external calls.
    �     Load the arrays in Form Load: do not do any calculations here.
    �     The report and queries can totally be produced from the arrays.
    Output: Report
    Telephone Useage Report
    Extension Internal External
    2000 4500 3500
    2001 19350 22981
    2002 2333 900
    2003 3144 122
    Totals 99999 99999
    Output: Queries
    On the form add add query capability.
    1.     Average Total Utilization: Internal Calls: 9999 (total length of all internal calls / number extensions)
    2.     Average Total Utilization: External Calls: 9999
    3.     Extension with the highest internal call utilization: Ext xxxx; 9999 seconds.
    4.     Extension with the highest total utilization.
    Form Design
    The design of the form is up to you. However, use the following guidelines:
    �     use menus (preferred) or command buttons
    �     use a common dialog box to ask for the file name
    �     use a list box or text box to display the output
    the caption on the form should include your name

    hi
    u can try like following code
    if (menuName == "Print File")
              new mytextframe();
    class mytextframe extends JFrame{
         JTextArea display = new JTextArea();
         public mytextframe()
              setSize(300,300);
              setVisible(true);
              add(display);
              display.setText( "ello");
    }

  • Stacked Canvas and No. of records display on the block?

    Any coding to re-size the "Stacked" canvas and no.of records displays on the block?
    Please advice,
    Amy

    u can set the view port and Width and height of the Stack canvas at runtime but not No of Records display....
    set_view_property .....VIEW_SIZE or Width / Height
    for canvas size use SET_CANVAS_PROPERTY
    Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Since I upgraded to iOS 7.1.2, new Outlook calendar and contact items will not sync to/from my iOS devices - I am not using the iCloud, just sync'ing direct to/from laptop. Does anyone have a solution?

    Since I upgraded to iOS 7.1.2, new Outlook calendar and contact items will not sync to/from my iOS devices - I am not using the iCloud, just sync'ing direct to/from laptop. Neither direction seems to be working.
    Does anyone have a solution?

    Hello Happy-in-the-Mountains,
    Thanks for using Apple Support Communities.
    To troubleshoot this issue where you're unable to sync between your iPhone and Outlook, I'd like you to please follow the steps in the article linked to below.
    Troubleshooting Sync Services on Windows with Microsoft Outlook 2003, Outlook 2007, or Outlook 2010 - Apple Support
    Have a great weekend,
    Alex H.

  • Unbound and Action Items

    I have many forms modules defined in the repository with unbound items and action items. How can i implement this functionality in jdeveloper with jheadstart.

    Jorge,
    Alternatively, you can base the "transient" attribute on a SQL expression or SQL function.
    High level steps to implement an action item that calls a stored produce include:
    - Add the button to the generated page
    - Add a forward to the group router that picvks up the name of the button and forwards to a custom action
    - Write a custom Struts action that calls a custom method on your handler
    - This custom method can use the BC4J app module to obtain a DBTransaction, and then create and execute a CallableStatement that calls your stored procedure.
    Steven Davelaar,
    JHeadstart Team

  • Stacked Canvas and Raise FORM_TRIGGER_FAILURE

    My form consists of a content canvas and a scrollable Stacked canvas. If FORM_TRIGGER_FAILURE is raised from one of the items on the content canvas the stacked canvas gets hidden, as you would expect i.e. FORM_TRIGGER_FAILURE returns the focus back to the item and because this item is on the Content canvas, the stacked canvas get hidden.
    I need to be able to handle this i.e. when FORM_TRIGGER_FAILURE is raised for the items on the content canvas, I need to be able to issue a SHOW_VIEW for my stacked canvas. However, I cant work out how to do it. I've tried placing various triggers on the content canvas items, in the hope they'd fire when FORM_TRIGGER_FAILURE returns focus to the item but without success. Any ideas ?
    Regards
    Peter.

    hi
    try to adjust the View port width & height of stacked canvas properties back and forth.
    ram Not sure this addresses my problem. The stacked canvas properties are fine. However, I want to be able to execute a SHOW_VIEW on my stacked canvas after a FORM_TRIGGER_FAILURE has been raised. Obviously, I could place a button that did SHOW_VIEW when pressed but thats far from ideal. I want to be able to do it automatically without any need for the user to do anything.
    Regards
    Peter.

  • Stacked canvas and bean area

    Hi
    i have a bean area which display graph placed on a stacked canvas. i have set the stacked canvas to show the horizontal scrollbar. i want to allow user to scroll through the stacked canvas when the graph increase in width.
    in my program, the bean area width would be dynamically change - increase the width depending on the number of data using
    set_item_property('NAV.BA',WIDTH,690).
    but the bean area does not seem to increase in width even when i set the property. why is it so?
    appreciate any help. thx.
    Siti

    Hi,
    did you try to change the size of the bean display that runs in the BeanArea. The bean area should adjust to the size of the bean displayed. I didn't find a bug filed on the issue of not being able to set the width and height of a JavaBean container. But I could find one for Forms 6.0.5 that was fixed in 6i about not resizing the bean container according to the resize of the embedded bean area.
    If this doesn't solve the problem I recommend contacting customer support at metalink.oracle.com
    Frank

  • Using a PDF as a Document Template in SharePoint 2010: "New Document" icon and action

    Hi,
    I have to create a document template in SharePoint 2010 using a PDF. After much searching I have learned to install Reader on the SharePoint server to bring in AcroPDF.dll
    and set the OpenControl for PDFs in DOCICON.xml to be "AdobeAcrobat.OpenDocuments".
    After taking these steps I can check PDFs in and out of SharePoint, and edit PDFs as I would edit an MS Office document.
    However two problems remain with creating new documents based upon a PDF document template.
    1) The PDF icon does not appear in the New Document dropdown. This makes sense since I never referenced a 32x32 icon in the SharePoint config files. Where would I place the icon image file and which configuration file would I edit to use that image file, and how?
    The last three document templates are PDFs.
    The second problem I face is that when I click one of the document templates above that is a PDF, nothing happens. I have tried this with Acrobat installed on both the client and the server. It would be preferable to insert a copy of the PDF document used as a template without having to use Acrobat at all.
    Is there any resolution to either of these problems?

    According to what i found the image needs to be 16x16.
    See if this works.
    Edit the DOCICON.XML file to include the PDF icon
    In Windows Explorer, navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML
    Edit the DOCICON.XML file (I open it in NotePad, you can also use the built-in XML Editor)
    Ignore the section <ByProgID> and scroll down to the <ByExtension> section of the file
    Within the <ByExtension> section, insert a <Mapping Key=”pdf” Value=”pdficon_small.gif” /> attribute. The easiest way is to copy an existing one – I usually just copy the line that starts <Mapping Key=”png”… and replace the parameters for Key and Value (see image below for example).
    Note: Do not take shortcuts and copy/paste from here. 99% of problems with PDF icons not being displayed are due to errors made in the DOCICON.XML file
    Save and close the file
    Source:
    http://www.sharepointsharon.com/2010/03/sharepoint-2010-and-adobe-pdf/

  • Use a pdf as a document template, New Document icon and action

    I am looking to use an editable pdf as a new document template for a content type.  I uploaded the pdf successfully, but when I select the new document from the template options, it attempts to open the pdf, and then provides the error message:
    Message from webpage
    The document could not be created. 
    The required application may not be installed properly, or the template for this document library cannot be opened.
    Please try the following:
    1. Check the General Settings for this document library for the name of the template, and install the application necessary for opening the template. If the application was set to install on first use, run the application and then try creating a new document
    again.
    2.  If you have permission to modify this document library, go to General Settings for the library and configure a new template.
    OK   
    I have already setup the docicon.xml with the following entry for pdf's:
    <Mapping Key="pdf" Value="pdficon_small.gif"/>
    PDF's are behaving appropriately throughout the environment, but I am unable to get the 'New Document' from a pdf template functioning.  Does this capability exist?
    Thanks!
    Jesse
    Jesse A. Brandenburg

    For Content Types, it only recognizes Office document types. In order to add PDFs, you would need to build a custom solution or purchase a 3rd party product (such as http://www.pdfshareforms.com/pdf-share-forms-enterprise/).
    See also:
    http://sharepoint20.blogspot.com/2012/08/how-to-use-pdf-as-sharepoint-content.html
    http://social.technet.microsoft.com/Forums/en-US/985bf92c-a718-4a90-ae95-b22600a75227/pdf-form-as-content-type-for-sharepoint-document-library?forum=sharepointgenerallegacy
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Vertical Scroll in stacked canvas

    Dear all,
    I got the following challange:
    On my form I have 1 content and 1 stacked canvas. Items are from 1 datablock. 1 item is displayed on content canvas, the other items from the datablock are on the stacked canvas. Items are displayed in multirow mode, stacked canvas has a horizontal scrollbar, item labels are dispayed (on content and stacked canvas).
    Vertical scrolling works fine in the Forms Builder test environment (C/S), but when the form runs on the web in the applet, vertical scrolling performs as follows:
    If the input focus is in the column on the content canvas, it works fine. But if the input focus is in a column on the stacked canvas and an item in the last row (during scrolling down) gets the input focus, the content of the stacked canvas is shifted up to the upper border, so that the column headers and the first line of the viewport isn't displayed and there is an offset of the records displayed on the canvases.
    Has anyone experience with this behaviour, any ideas or a workaround?
    Many thanks in advance
    Stefan

    I have seen that too, with tab canvas, which is like a stacked canvas.
    On mine, it occurs after a clear_form and synchronize, but before I execute any queries (there are multiple blocks and queries).
    So what I added was this, following the Synchronize:
    Declare
      Tab_View_id      Viewport     := Find_View('TAB');
    Begin
      if get_view_property(Tab_View_id,Visible) = 'FALSE' then
        show_view(Tab_View_id);
      end if;
    End;I actually put the Tab_View_ID variable into a package spec, so Forms only needs to set it once.
    If you can't find the right place to add the code, a form-level when-new-item-instance trigger will work.

  • Show Content and Stacked canvas?

    Hello to all,
    I have a very simple form:
    - 1 datablock
    - 1 window
    - 2 canvas: the main (content) and a stacked one with all the items.
    - I want to have a multirecord view.
    As I have lots of items... and I need to show all of them in a specific format (all in the same line), I need to add an horizontal bar. That's why I added the stacked canvas to my form.
    In my block properties I've added a vertical scrollbar (it's the only item in the main canvas)...
    The idea is to show in the same window the horizontal and vertical scrollbars...
    but.. I don't know why.. when I run the form I only see the stacked canvas with the items...
    Any idea?
    I'm sure it's an easy question.. but.. :-P
    Thanks.

    hi
    try something like this.
    GO_BOCK('BLOCK.ITEM_NAME');
    HIDE_CANVAS('CANVAS_NAME');
    SHOW_CANVAS('CANVAS_NAME');sarah

  • Content canvas and  a stacked canvas moving when scroll through the details

    Dear Friends
    I have Mater and Details Block , and I have two canvas content canvas and a stacked canvas, and the a stacked canvas on top of content canvas , and I have set the horizontal and vertical scroll bar for the stacked canvas , my problem is that when I inquire and click on the details block which is on stacked canvas the header content canvas is moved up
    and what I want the header to be stable and not moving when scroll through the details .
    Best regards
    Jamil Alshaibani

    if the canvas is moved during runtime in general the problem is that is does not fit completly in the window. Try to adjust your window-size so that the whole layout fits into it.

  • Simple Problem with Stacked Canvas, I hope

    Hello all,
    I am become a bit frustrated with what I thought would be a simple form development solution. I am trying to create a form with a stacked canvas that will display about 20 fields that can be scrolled through. This is the detail
    Total of 25 fields
    5 Fields on the content canvas
    20 Fields on the stacked canvas
    I created the first canvas that originally contained all 25 fields. Then I created the stacked canvas and moved the appropriate fields to the stacked canvas. Using the forms builder editor, I positioned my stacked canvas as such so that it would not overlap the last field on the content canvas or visa versa. This is a form being developed for Oracle EBus. Whenever I run the form in the apps, the stacked canvas is not visible. It only becomes visible when the 1st field on the canvas has focus. When the stacked canvas becomes visible, it shows all of the items of the stacked canvas and not just the ones that I included in the viewpoint. Once I tab through the last field of the stacked canvas, it goes back to the first field on the content canvas and the stacked canvas disappears. At this point I am not doing anything complicated, but for whatever reason this just is NOT working. Any advice anyone can provide, I would very much appreciate it. This is VERY frustrating.
    Thank you in advance.

    Step No. 1
    Set the STACKED CANVAS's property VIEWPORT WIDTH AND VIEWPORT HEIGHT
    This property determines what viewable width and height of the stacked canvas at runtime.
    Set SHOW HORIZONTAL SCROLL BAR or SHOW VERTICAL SCROLL BAR or BOTH as YES so that you can scroll down to view all the items in the CANVAS.
    Step NO.2
    In your WHEN-NEW-FORM-INSTANCE trigger, write the code to make the canvas visible
    SHOW_VIEW('stack_canvas_name');

  • Problem with generating stacked canvas in Designer 6i

    When I try to generate a master detail form, in which the detail block is placed on a 'new stacked canvas' the form is generated as expected: master- and detailblock are both created, but when running the form
    the detail block is somehow made invisible. I don't understand!!!
    Does anyone recognize this problem????
    Hope to hear from you!
    Alex

    Hello,
    When you put a block on a "new stacked canvas" that canvas is generated as a popup canvas. If that popup overlaps with some other generated items (for instance: items in master block) Forms will not show it.
    You can try showing that popup canvas programatically with Show_View('canvas_name') in When-New-Form-Instance and see what happens.
    Dalibor
    P.S. Why do you have to put detail block on a popup canvas? Why don't you simply put it on a "same content canvas"?

  • Stack canvas is hiding...

    Hi guys.
    I have around 20 + items in a block and am showing few items in the content canvas and the remaining items in a scrollable stack canvas. Iam having show_view code in When-New-block-instance of that block.
    My problem is, when i navigate from stack canvas to the content canvas, the stack canvas is hiding.
    i.e. say my content canas has 4 items and stack has 5 to 20 items, then when i navigate from 5th to 4th or from 20th to 1st item, my stack canvas is hiding.
    Please help me in this.
    Thnx and Regards
    Sriram

    What about if you navigate from the 3rd to 4th item or from 19th to 20th? Does it happen the same? If yes, it means that the stack canvas and the 4th item(and 20th) are one below/behind each other (at least for a very small area).
    Usually this is happening when an item(from the content canvas), which is below the stacked canvas, is "navigated". Because of this, the whole stacked canvas is hidden.
    Another posibility is that some "additional" navigation happens because of some programmatic defined navigation...

Maybe you are looking for

  • Why can't I see the Radio option in iTunes

    I used to listen to internet radio in iTunes but I just noticed that it does not appear in my Library anymore. When I try to add Radio to my Library list, it is greyed out. Why?

  • Pricing procedure determination in contract.

    Hi, I have assigned Pricung Procedure ZRM000 to scema grp of vendor and scema grp of purchasing organization. I can see the pricing procedure in PO and can maintain the pricing conditions. But when I am creating a Contract against same vendor and usi

  • Need some help with Substring

    hi all i am writing a simple program and got stuck at one point this is how it goes: public static static main(String[] a) { for (int i=1; i<a.length; i++){ System.out.print(a[i]+","); so if i entered "a ab abc" this becomes "a,ab,abc," the problem i

  • Iphoto Difficulties

    When I click on iphoto it says "The Library is not compatible with iphoto" and it gives me an option to Quit. How do I make my iphoto work? Maybe a new download?

  • Blurry image in Android front camera

    Hey All, I've been beating myself with this for a while, I need some help. I am using the device's front camera. In iOS it's working great. In Android - I get this fuzzy image that shows me the front camera 3 times with black and white stripes (See i