JDev902: how open form with empty JTable?

Background: Using the wizard I have created a number of JClient forms pulling their data from a BC-layer. However, some forms fill only very slowly because of the large number of rows of the underlying tables. Sometimes it would be better to open a form with an empty JTable and let the user formulate a query and pull in the desired data.
Question: How do I open a form without automatically filling its JTable from the BC-layer? The old method of setting "...WHERE 1 = 0" seems rather - well - old! Is there a more elegant way?
Thanks for any help!
Sten Jones

You can bring up the panel that the JTable is contained in without executing the query on it (remove executeQuery()) call. See JClient component demo on the JDeveloper HowTo pages on how to detail data-binding and query execution. Basically what these panels do is not setup the UI till it's displayed and then perform the binding. You can take it a step further by also not executing the query and executing it only after the user says so.
Another way would be to "force" the startup to be in find mode. So, instead of executing query for the panels, you may want to set the table in find mode so that the user is able to enter query right up, when the UI comes up.

Similar Messages

  • When open forms with IE7,meet an error

    today when I opened forms with IE7, IE could not open forms again, but this time IE did not crash .
    MY IE version is 7.0.5730.13
    EBS version is 11.5.10.
    How to solve this?? it has bothered me for a day
    Thanks in advanced.

    Hi,
    Was this working before? If yes, any changes have been done recently?
    Can you reproduce the issue from other clients or it is just specific to your machine?
    What is the error you get when you try to open the forms?
    Please make sure you meet all the requirements as per (Note: 285218.1 - Recommended Browsers for Oracle E-Business Suite 11i).
    Thanks,
    Hussein

  • Open Form With Session Option

    Hi,
    I have problem when i try to open a form with No_Session the blocks didn't retrive any data.
    Regards,

    The "NO_SESSION" parameter to Open_Form built-in simply instructs the new form to use the same session as the Form that opened it. I don't believe this would prevent the new form from being able to retrieve data as this is the default SESSION_MODE parameter value. Could you please give us a code sample so we can see how you are opening your form?
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Open form with hidden table

    Hi All.
    I have simple form with CheckBox and Table. I show table when CheckBox is True. My code:
    form1.#subform[0].CheckBox1::change - (JavaScript, client)
    if (CheckBox1.rawValue == true)
        Table1.presence = "hidden";
    else
        Table1.presence = "visible";
    But I would like to hide Table in case when user open form and then when CheckBox is True show table. In case when CheckBox is False the Table is hidden. How it to do? I will appreaciate for sample.
    Thanks.

    Hi,
    this is not so difficult. You have to do the following steps:
    open a new form.
    insert a checkbox and a table into the form.
    mark the checkbox
    open the script editor (about window)
    select "click-event"
    write:
    if (CheckBox1.rawValue == 1)
        Table1.presence = "hidden";
    }else
        Table1.presence = "visible";
    And now you have to hide the table under "object" | "presence" | "hidden (exclude from layout)"
    Ready.
    Kind regards Mandy
    PS: Oh I haven't seen that the problem is solved.

  • Can't open forms with Adobe Reader X

    I'm running Windows Vista Business and after installing Adobe reader X. It will no longer opens forms.  The program simply quits responding.  Tried installing it on a Windows 7 computer and it works fine.  Any help besides reverting back to Reader 9.4.1 

    I found an issue with the new security features in this version of Reader. If you go to Edit>Preferences>General and uncheck "Enable procted mode at startup." You will get a pop-up warning that you will need to manually restart Adobe Reader.  Restart the reader and the problem seems to be resolved "for now"

  • Opening Forms With NO_ACTIVATE

    Hi
    I have a form which opens serveral forms based on a client. Each form has a datablock on it which I was fireing with When-New-Form-Instance.
    The problem I have is when I open the forms with NO_ACTIVATE (i am using no_activate so the code opening many forms continues to run) the when new form instance trigger doesnt actually fire untill I click on the form to make it active.
    Are there any triggers I can use to query the datablock when opening the form in NO_ACTIVE mode.
    Thanks

    Hi
    Thanks, pre form does fire but I am trying to get my data block to fire
    Go_Block('My_View');
    Execute_Query;
    trouble is if I put in pre form it doesnt know the block exists. In When-New-Form-Instance doesnt appear to fire unless the form is active.

  • How to deal with empty tags in a SAX Parser

    Hi,
    I hope someone can help me with the problem I am having!
    Basically, I have written an xml-editor application. When an XML file is selected, I parse the file with a SAX parser and save the start and end locations of all the tags and character data. This enables me to display the xml file with the tags all nicely formatted with pretty colours. Truly it is a Joy To Behold. However, I have a problem with tags in this form:
    <package name="boo"/>
    because the SAX parser treats them like this:
    <package name = boo>
    </package>
    for various complex reasons the latter is unaccetable so my question is: Is there some fiendishly clever method to detect tags of this type as they occur, so that I can treat them accordingly?
    Thanks,
    Chris

    I have spent some time on googling for code doing this, but found nothing better, than I had to write in by myself.
    So, it would be something like this. Enjoy :)
    package comd;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.SAXException;
    import org.xml.sax.Attributes;
    import java.util.Stack;
    import java.util.Enumeration;
    public class EmptyTagsHandler extends DefaultHandler {
         private StringBuilder xmlBuilder;
         private Stack<XmlElement> elementStack;
         private String processedXml;
         private class XmlElement{
              private String name;
              private boolean isEmpty = true;
              public XmlElement(String name) {
                   this.name = name;
              public void setNotEmpty(){
                   isEmpty = false;
         public EmptyTagsHandler(){
              xmlBuilder = new StringBuilder();
              elementStack = new Stack();
         private String getElementXPath(){
              StringBuilder builder = new StringBuilder();
              for (Enumeration en=elementStack.elements();en.hasMoreElements();){
                   builder.append(en.nextElement());
                   builder.append("/");
              return builder.toString();
         public String getXml(){
              return processedXml;
         public void startDocument() throws SAXException {
              xmlBuilder = new StringBuilder();
              elementStack.clear();
              processedXml = null;
         public void endDocument() throws SAXException {
              processedXml = xmlBuilder.toString();
         public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
              if (!elementStack.empty()) {
                   XmlElement elem = elementStack.peek();
                   elem.setNotEmpty();
              xmlBuilder.append("<");
              xmlBuilder.append(qName);
              for (int i=0; i<attributes.getLength();i++){
                   xmlBuilder.append(" ");
                   xmlBuilder.append(attributes.getQName(i));
                   xmlBuilder.append("=");
                   xmlBuilder.append(attributes.getValue(i));
              xmlBuilder.append(">");
              elementStack.push(new XmlElement(qName));
         public void endElement(String uri, String localName, String qName) throws SAXException {
              XmlElement elem = elementStack.peek();
              if (elem.isEmpty) {
                   xmlBuilder.insert(xmlBuilder.length()-1, "/");
              } else {
                   xmlBuilder.append("</");
                   xmlBuilder.append(qName);
                   xmlBuilder.append(">");
              elementStack.pop();
         public void characters(char ch[], int start, int length) throws SAXException {
              if (!elementStack.empty()) {
                   XmlElement elem = elementStack.peek();
                   elem.setNotEmpty();
              String str = new String(ch, start, length);
              xmlBuilder.append(str);
         public void ignorableWhitespace(char ch[], int start, int length) throws SAXException {
              String str = new String(ch, start, length);
              xmlBuilder.append(str);
    }

  • Cannot open form with a button

    Hi folks, I'm new to Developer, so apologies.
    I am opening a form xxx by attaching a smart trigger of WHEN-BUTTON-PRESSED to a button by
    call_form('xxx');
    It compiles fine, but when I evesute the form, it says errer 400010 cannot read form. Any ideas?
    Thx,
    Ken

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Carter:
    Put the called form's fmx file in a directory specified in the FORMS60_PATH key in the registry
    <HR></BLOCKQUOTE>
    More simply, you can pass the parameter with the path. ie call_form('c:\xxx.fmx') and so.
    If you want to pass any other parameters check it in the help for call_form. Tip. You also can use run_form/new_form to call a new form and go_form to navigate b/w forms.

  • How open Form2 with button in Form1 i always get error

    I am using visual c++ 2010 express and i want to make button in form1 and that button need to open form2
    private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
    Form2::Show();
    I do that and i get error this error: error C2653: 'Form2' : is not a class or namespace name 
    PLEASE HELP ME OR MAKE SAMPLE WITH THAT

    Can you make a sample with that
    You have asked this question twice in these forums. The answer in the other thread shows you what you need to do.
    People here will not write the whole code for you. They will just try to help you. What you are doing wrong here is trying to call a non-static member function as if it were a static member function. A non-static function requires an object in order to call
    it. If you do not understand what this means, then you need to do some studying about object-oriented programming.
    David Wilkinson | Visual C++ MVP

  • I can not open an IRS fill-in form with x-1

    I can not open an IRS fill=in form with x=1  I have no problem an another computer running an older version of reader.  I am running windows 7 on a relatively new computer, and it also opened forms with the older version.

    What exactly means "can not"?

  • How to open a pdf form with fdf data

    Hi all,
          I am working on a new project. In that, I have to load a PDF contract form with FDF data on Internet Explorer Window.
    I don't know how to do it. Actually I tried using this format on the URL (while loading the respective page)
    http://www.example.org/pdf_file_name.pdf#FDF=http://www.example.org/fdf_file_name.fdf
    But it opened as an empty pdf document. . Actually I need it with the fdf data.
    Can anyone know any other way to do this?
    Or is this not possible to open a pdf form with fdf data in a browser?
    Thanks in advance
    Annamalai

    @ Bernd. It still opens a text file
    Here's my FDF file sample
    %FDF-1.2
    %âãÏÓ
    1 0 obj
    <<
    /FDF << /Fields
    <</V (07/22/2009)/T (Loan_Note_Date)>><</V (22.29)/T (Loan_AnnualPercentage_Rate)>></V ()/T (Seller_ESignatureArea1_Date)>><</V (GA Dealer)/T (Seller_Signer_FullNameTitle)>><</V ()/T (ThirdParty_ESignatureArea1_Date)>>
    /F (MARSMFLZ.pdf)/ID [ <1f0b6b55f345db39e8246247138fe562><e960588530b0d06d35cd618b34d4c314>
    ]>>
    >> endobj
    trailer
    <<
    /Root 1 0 R
    >>
    %%EOF
    (I have uploaded the related pdf file before.)
    Just now I got an idea to use WScript (the code is written in javascript)
    ws = new ActiveXObject("WScript.shell");
    ws.Run('"AcroRd32.exe" "C:\\annukar\\Refi\\Refinance_Module\\Forms\\Contract.fdf"', 1, true);
    this opens my fdf document in Acrobat reader using command prompt.
    I have a doubt now, can i use some string in place of "C:\\annukar\\Refi\\Refinance_Module\\Forms\\Contract.fdf" in the above command?
    I mean something like fdf_file = "C:\\annukar\\Refi\\Refinance_Module\\Forms\\Contract.fdf"
    and replace ws.Run('"AcroRd32.exe" fdf_file,1,true). I tried it but it doesn't work Any idea's? Since the path will not remain the same always. So i need to change it

  • Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?

    Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?
    The add annotations field shows as not allowed in the security options. So how do I send this form back with the changes??

    I think you you need to click 'save' first, then it is saved to acrobat, where it will prompt to send.

  • How to Open multiple form with only one screen painter file

    Hi all ,
    I want to reopen the form without closing the active form ,i want to use same srf file ..
    I have already try it but form already exist error occur .
    pl help me , how to do it ?
    how to open multiple form with same srf file without closing active forms .
    thanks in advance,
    msw

    <?xml version="1.0" encoding="utf-16" ?>
    <Application>
      <forms>
        <action type="add">
          <form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
            <datasources>
              <dbdatasources>
                <action type="add">            
                </action>
              </dbdatasources>
              <userdatasources>
                <action type="add"/>
              </userdatasources>
            </datasources>
            <Menus>
              <action type="enable">
                <Menu uid="1282"/>
              </action>
              <action type="disable">
                <Menu uid="5890"/>
              </action>
            </Menus>
            <items>
            </items>
            <ChooseFromListCollection>
              <action type="add">
                <ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>          
              </action>
            </ChooseFromListCollection>
            <DataBrowser/>
            <Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
          </form>
          <form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE1" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
            <datasources>
              <dbdatasources>
                <action type="add">
                </action>
              </dbdatasources>
              <userdatasources>
                <action type="add"/>
              </userdatasources>
            </datasources>
            <Menus>
              <action type="enable">
                <Menu uid="1282"/>
              </action>
              <action type="disable">
                <Menu uid="5890"/>
              </action>
            </Menus>
            <items>
            </items>
            <ChooseFromListCollection>
              <action type="add">
                <ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>
              </action>
            </ChooseFromListCollection>
            <DataBrowser/>
            <Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
          </form>
        </action>
      </forms>
    </Application>

  • How do I create a JTable with some empty cells in it?

    I have a three column JTable. The first column is a String showing description. The second column contains numbers (double) and the third column also contains numbers. In some cases not all cells in a row should contain data. So for instance, I could have row one showing only description (a String in the first column), and then row two showing description (a String in the first column) and a number (a double in the second column) in columns one and two respectively. My problem is that, the data gets copied from the cells with data to the cells which are supposed to be empty. So, how do I create a JTable with some empty cells in it.

    I have tried empty strings for those values, but it did not work. My table puts objects in an arraylist called reconciliation. The arraylist takes different objects with the same super class. The code below explains. Are you suggesting I pass null to my constructor?
    JTable table = new JTable(new ReconTableModel());The method below is from the table model
    protected  List<Reconciliation> reconciliation = new ArrayList<Reconciliation>();
    protected void fillModel(){
          reconciliation.add(new CashBook("Cash Book Report"," "," "));
          reconciliation.add(new CheckingBankAccount("Checking Bank Account"," "," "));
          reconciliation.add(new BankBalance("Bank Balance As Per Bank Statement",500," "));
          reconciliation.add(new PaymentVouchers("Payment Voucher Receipt",300," "));
          reconciliation.add(new DepositVoucher("Deposit Voucher Receipt",1000," "));
          reconciliation.add(new ReconciledBalance("Reconcilied Bank Balance",1200," "));
          reconciliation.add(new BalanceAt("Bank Balance At",800," "));
          reconciliation.add(new Difference("Difference",400," "));
          Collections.sort( reconciliation, new Comparator<Reconciliation>(){
          public int compare( Reconciliation a, Reconciliation b) {
            return a.getTransactionName().compareTo( b.getTransactionName());
      }

  • How to open new form with set value

    I have two forms CLIENT and ORDERS who are connected by "client_id" in a one to many relationship [one client can have many orders]. What code to I put in the button so that that when I click on it from the CLIENT table, it goes to the ORDERS form with just the orders that match that "client_id"? The application is in oracle 9i developer using swing.
    Here's what I have so far, code to open the form without the binding
    //Open Order Form
    FormIcdClientApplicationView frameTarget = new FormOrderApplicationView(getPanelBinding());
    frameTarget.setVisible(true);
    // Close this window
    this.setVisible(false);

    Hello,
    This is the Forms forum. I am sure you will have more chance to get answer in the JDeveloper forum.
    FRancois

Maybe you are looking for

  • Upgrade from 10.1.5 to 10.2.7

    I have a G4 Quicksilver 733 running 10.1.5 and 9.1. I need to up grade and brought panther on ebay. I recived a Power Mac G5 install cd (disk one and two) and the update to 10.3.9 downloaded from apple.com. when I tried to install the new software th

  • Import multipage pdf in an Illustrator document

    Hello, Does a script exist to import multipages pdf document in an illustrator document ? I usually use InDesign to import multipage document with the script named "pdf import". The goal of the manipulation is to outline fonts, or resize the differen

  • In the name of science!

    Greetings, I haven't done much with video yet and I have a bit a problem that I hope someone can help me with. I was given a Panasonic SDR-H60 and a task. Record a cage with 8 rats in it for their entire nocturnal schedule. If that wasn't enough I ha

  • Deafult batch for component in process order

    Hi Experts , in one of the scenario the client requirement is the batch number for eg- "a" , should be automatically populated in the batch number column of the component in process order while saving or while release. this should be done only for co

  • Knowing and Manipulating Blinking Caret Position inside a cell in Datagrid in AS3?

    Hi, i've made a datagrid and wish to know position of blinking caret within a edited text cell in datagrid in AS3. I know there are some TextField properties available which allow manipulating/highlighting text based on user input. However, i'm unabl