using the same datamodel with SQL database QML in 2 listviews

I am using the code for the sample application quotes as starting point. I try to call the same SQL database with the quote template to build a list in the top level of my application and then create a list to the next heirachy.
For, for example, imagine a list of different types of quotes (funny, sad, happy, etc.) on the home page, then the list of people with their quotes on the 2nd level and their exact quote at the 3rd level. When I use the same quotesModel qml and asyncksource at the top of the list and yet once in 2nd list level I get disconnection issues connect to my SQL database. How would I fix this?

You only need a data source class, but you will need multiple instances of it.

The disconnect message means that the new connection is now that of the database of driving. Will there be other errors in the log?

Tags: BlackBerry Developers

Similar Questions

  • Win7 with FF 31, smart phone 4.2 with FF letest ver. using the same account with 1 email. But the phone is not getting any collar, Bokmr, etc.

    Brother.
    We use win7 with Mozila 31, 4.2 with Mozila Android smart phone latest google app store on 04/10/0214. Using the same account with the same email. But the phone does not get any new information of win7 with Mozila 31. PL z give useful information.

    Hi w3ur_team,
    Thank you for your question. I understand that there are two features that are documented in the sync account. However the Android is not synchronized.

    There are two places we can check:

    1. In the Android settings, under accounts is the Firefox Sync or Firefox Sync (discouraged) joint account?
    2. Credentials work on accounts.firefox.com on the mobile device and are there any error messages in the synchronization of the settings menu > sync?

    See also Firefox Sync troubleshooting and tips for more troubleshooting steps.

  • To connect to vCenter using the same Session with PowerCLI

    Hi all

    Is it possible that we can establish multiple connections to vCenter using the same session with Powercli.

    As connect-viserver-Server "vcenter1" - domain\domainacnt of the username-password "Password".

    is to establish several connections and we want to limit, because we are in the process of report generation based on the web developing using Powercli with IIS.

    Please suggest.

    You can use the Session parameter on the cmdlet Connect-VIServer .

    I use this for the PowerShell Workflows, see workflow of PowerShell and PowerCLI

  • Using the same application with filters prompted by guided Navigation

    Hi gurus,


    I have a requirement in which I need to show a report only when it returns results.

    To do this, I put the request in a section and applied a guided navigation using the same request as a source of demand.

    Can I use the same query in the navigation guided as request to the source?

    In the application there are filters which are invited

    My question - > in demand of guided Navigation Source, what I have to do the filters that you are prompted, or what I need to make it equal to the variables of presentation, which are populated by dashboard guests.

    I also have one of the guest as a guest of multiple selection...


    Thank you
    Ashish

    Ashish,

    Yes, you can use the same request here.

    For the application, you can use "IsPrompted" if same column is used in the guest of another use variable presentation here which is populated from the dash prompt. Just, 'specific' selected value based shud report results.

    Refer
    http://varanasisaichand.blogspot.com/2010/02/dashboards-as-prompts-in-OBIEE.html?m=1
    http://bischool.WordPress.com/category/guided-navigation/

    I hope that its useful...

  • ORA-00900 when you use the command COPY with dynamic SQL

    Helllo,
    I created the following procedure:

    create or replace procedure copyTable (pSourceTableOwner IN varchar2
    pSourceTableOwnerPasword IN varchar2
    pTargetTableOwner IN varchar2
    pTableName IN varchar2
    pDatabaseLink IN varchar2)
    as

    vStatement varchar2 (250): = null;

    Start

    vStatement: = "copy of". pSourceTableOwner | '/' || pSourceTableOwnerPasword | '@' || pDatabaseLink |
    "Insert" | pTargetTableOwner | '.' || pTableName | ' using select * from '. pTableName;

    immediately run vStatement;

    end;
    /

    The generated command (variable vStatement) looks like this:
    "Insert a copy of O_GLCEN/o_glcen@SELLENTW o_jh. "X_PLZ_CD_MERGED_CTIS using select * from X_PLZ_CD_MERGED_CTIS".

    When you call this procedure as "exec copyTable ('O_GLCEN', 'o_glcen', 'o_jh', 'X_PLZ_CD_MERGED_CTIS', 'SELLENTW');" the following lifts:

    FEHLER in line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at "SYSTEMTECHNIK". COPYTABLE", line 20
    ORA-06512: at line 1

    But when you call the command COPY directly from SQL prompt the statement runs without error.
    Is in general not possible to use the dynamic COPY with SQL command? If it is possible does anyone has an idea what I am doing wrong?

    Any help will be appreciated...

    Rgds
    JH

    I would like to use something like

    vStatement: = ' start in f (select * from ' | pSourceTableOwner |) '.' || pTableName | '@' || pDatabaseLink | Insert loop ') in ' | pTargetTableOwner | '.' || pTableName | "f-values; end loop; end; »
    immediately run vStatement;

  • Is it safe to use the same GUID to validate a global event?

    Hey everybody,

    I write a global event of a library project that I set up in my main application. Everything works fine. However, I'm wondering whether or not it is a good idea to always use the same GUID, or if I should generate a new to each one time? If I generate a new one every time, I don't know how I can have the control of the main application to see what GUID to search, as it would be generated in the library project...

    manager.postGlobalEvent(pid, 0xCAFEBABE, 0, 0, null, null);
    
    public void eventOccurred(long guid, int arg1, int arg2, Object arg3,
                Object arg4) {
            if (guid == 0xCAFEBABE) {
                authorize();
            }
    
        }
    

    Thank you!

    I think that if the events then report the amount of the fine to use the same GUID with different arguments.

    For example:

    public class Events {
        final public static int EVENT_AUTHORIZE = 1;
        final public static int EVENT_OTHER = 2;
    }
    
    manager.postGlobalEvent(pid, 0xCAFEBABE, Events.EVENT_AUTHORIZE, 0, null, null);
    
    public void eventOccurred(long guid, int event_type, int arg2, Object arg3,         Object arg4) {        if (guid == 0xCAFEBABE) {                    switch(event_type) {                     case Events.EVENT_AUTHORIZE:            authorize();                        break;                    case Events.EVENT_OTHER:                        doSomethingElse();                        break;                    }     }
    
       }
    
  • 12 c upgrade using the same database

    What is the process for the improvement of the 11.1.1.7 to the current version of 12 c? We will not do a full inplace upgrade. We have new hardware for the 12 c application layer, but will use the same database. Our database is multiple to and do not miss having to deal with all the data duplication and dealing with the deltas.


    Is it possible to install 12 c on the new hardware, and then point the current patterns of these two instances? The upgrade of the patterns would be the only thing that needs to be done to allow the new instance to work with the new application?

    This is described in detail in Note 2058358.1 support

  • Mr President, how can I enter two rows at the same time with different default values that only the first line to use see?

    Mr President.

    My worm jdev is 12.2.1

    How to enter two rows at the same time with different default values that only the first line to use see?

    Suppose I have a table with four fields as below

    "DEBIT" VARCHAR2(7) , 
      "DRNAME" VARCHAR2(50),
      "CREDIT" VARCHAR2(7) , 
      "CRNAME" VARCHAR2(50),
    

    Now I want that when I click on a button (create an insert) to create the first line with the default values below

    firstrow.png

    So if I click on the button and then validate the second row with different values is also inserted on commit.

    The value of the second row are like the picture below

    tworows.png

    But the second row should be invisible. It could be achieved by adding vc in the vo.

    The difficult part in my question is therefore, to add the second row with the new default values.

    Because I already added default values in the first row.

    Now how to add second time default values.

    Concerning

    Mr President

    I change the code given by expensive Sameh Nassar and get my results.

    Thanks once again dear Sameh Nassar .

    My code to get my goal is

    First line of code is

        protected void doDML(int operation, TransactionEvent e) {    
    
            if(operation != DML_DELETE)
                 {
                     setAmount(getPurqty().multiply(getUnitpurprice()));
                 } 
    
            if (operation == DML_INSERT )
                       {
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE",
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                           }
    
            if(operation == DML_UPDATE)
                              {                                                    
    
                                 System.out.println("I am in Update with vid= " + getVid());
                             updateSecondRowInDatabase(getVid(),
                                 (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                              }                      
    
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')";  
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }
                  }  
    
                  private void updateSecondRowInDatabase(Object value1, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "update vdet set  AMOUNT='"+ value5+"' where VID='" + value1 + "'";                     
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
    
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }                  
    
                  }
    

    Second line code is inside a bean method

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");
                   RowSetIterator rsi = dciter.getRowSetIterator();
                   Row lastRow = rsi.last();
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);
                   Row newRow = rsi.createRow();
                   newRow.setNewRowState(Row.STATUS_NEW);
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);
                   rsi.setCurrentRow(newRow);
    
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();
                   Row lastRow1 = rsi1.last();
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);
                   Row newRow1 = rsi1.createRow();
                   newRow1.setNewRowState(Row.STATUS_NEW);
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);
                   rsi1.setCurrentRow(newRow1);
        }
    

    And final saveUpdate method is

        public void saveUpdateButton(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry();      
    
                   OperationBinding commit = bindingsBC.getOperationBinding("Commit");
                   commit.execute(); 
    
            OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
            operationBinding.execute();
            DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef.
            iter.getViewObject().executeQuery();  
    
        }
    

    Thanks for all the cooperation to obtain the desired results.

    Concerning

  • Clonning an ASM database on the same server with different names of sid.

    Hello people!

    I tried to clone an existing database on the same host with a different name with no luck.

    I tried what 415579,1 reccomends, but, when I reached the RESTORE CONTROLFILE from clause that it fails since this process the old and the new database must be the same. I don't want that. I want a separate copy, not a database of pending. There are other people in the company who will use this database, and I just want to replicate it.

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure to modify the order db at 26/05/2009 14:51:15
    ORA-01103: the name "OLD_DB_NAME" in the control of the database file is not "NEW_DB_NAME".

    I want to just clone a database with a different name, in the same way we used to do with ALTER DATBASE BACKUP CONTROLFILE to TRACE-> COPY DB_FILES-> RECREATING CONTROLFILES WITH a DIFFERENT NAME DATABASE.

    Exp/imp it's a possible solution, but I wonder if it is just another way to clone an existing database in the same node with a different namedo with RMAN? Just as we used to with BACKUP CONTROLFILE to TRACE-> DBF_FILES-> RECREATING CONTROLFILES WITH DB NAME DIFFERENT COPY.

    It's the links I tried to follow without success.

    http://www.Oracle.com/technology/deploy/availability/PDF/asm_cloning.PDF
    Duplicate by RMAN 10 g

    and many others...

    Thanks for your help.
    Alex.

    You'll need an auxiliary copy if you restore the database to a different name.
    Take a look at the following note:
    http://jhdba.WordPress.com/2009/04/02/cloning-a-database-ASM-to-ASM/

  • my internet radio stops every 10 to 15 minutes and I have to update it again and again. The same thing with my action also voip internet phone while iam using it

    my internet radio stops every 10 to 15 minutes and I have to update it again and again. The same thing with my action also voip internet phone while iam using it

    Hello
     
    (1) what version of Windows are you using?
    (2) remember to make changes to the computer before the question?
    (3) what browser do you use for Internet Radio?
    (4) what do you exactly mean by the loss of the webradio?
    (5) on which site you want to play the radio?
    (6) using WIndows Media Player to listen to Radio Online?
     
    See also a few following articles dealing on VoIP.
    Troubleshooting VoIP
    How IP phones connect to the network
     
    Get back to us with more information on the issue so that we can better help you to provide the resolution.
  • How is it that a computer which works very well with a direct Ethernet connection won't work with a switch, however any other computer using the same port, cable, ect, and so on, can?

    Switch issues. Help, please.

    How is it that a computer which works very well with a direct Ethernet connection won't work with a switch, however any other computer using the same port, cable, ect, and so on, can? We already checked the firewall as a question, that it was not, and now, we are puzzled.

    Well, I know that the issue is long-term... believe me, it's a long, but as they say, the devil is in the details. Anywho, the question is, my grandfather has a HP laptop, which for two years has been able to run through a Linksys switch to his router and connect its printers to his laptop. About two months ago it suddenly doesn't work like that. Now, it works fine if it plugs directly into the router/Ethernet. My uncle suggested that the switch was bad, but after testing the same port, cable and all, the switch worked well for him. ' GRAMPS really needs this answered, but someone else, it is called can not understand and now I, in turn, ask you all for what you can offer. Here are the ideas that we have already discredited.

    -Switch bad: as above, is that this particular laptop, even under identical conditions, the works of my uncle very well.
    -Bad NIC: debunked through the fact we connected to the computer directly to the router and it worked fine.
    -Bad configuration of the firewall: we have disabled the firewall (please do not notice, he wasn't the smartest idea, we already know) and even if she recorded the switch exists, the internet is always triggered when you are connected with the switch.

    Thanks in advance for any assistance that you can provide and Merry Christmas to you all.

    It would be useful to consult the results of the ipconfig/all command both when it is connected to the switch and when it is connected directly to the router.  In addition, what is the model of the switch?

    To save the manual copy and the new hits of the ipconfig/all command output-

    First connect through switch.
    Open a command prompt window (start > run > cmd > OK)
    Type the following lines in the black command prompt window and press ENTER after each line

    echo "Connected via the button" > "% UserProfile%\Desktop\ipinfo.txt".
    ipconfig/all > "% UserProfile%\Desktop\ipinfo.txt".

    Now connect directly to the router, type the following lines in the command prompt window and press ENTER after each line

    echo "Connected to the router" > "% UserProfile%\Desktop\ipinfo.txt".
    ipconfig/all > "% UserProfile%\Desktop\ipinfo.txt".
    Notepad '% UserProfile%\Desktop\ipinfo.txt '.
    output

    Copy the contents of the Notepad window in your response (if you use the laptop when it is connected directly to the router) or close the Notepad window, and then copy ipinfo.txt of the laptop to the Gramps in a USB FlashDrive you can connect to any computer allows you to answer.

    You can delete ipinfo.txt on the desktop when you are finished.

  • Mac with bootcamp to format and reinstall windows, can I use the same cd key and product?

    I want to reformat my mac...

    I want to reformat my mac with bootcamp and I want to reinstall windows. can I use the same cd key and product? or do I have to do something with the current activation? Windows will recognize that it is the same computer after I repartition it?

    I want to reformat my mac with bootcamp and I want to reinstall windows. can I use the same cd key and product? or do I have to do something with the current activation? Windows will recognize that it is the same computer after I repartition it?

    If it worked the first time, there is no reason that it will not work the second time on the same computer, as long as the Windows 7 is a full version.

    If this is an upgrade version, you must have the qualifying OS installed and enabled before you upgrade and it will work.

  • When you use Excel or my Peachtree Accounting program, entered digital as "$152(32 in the accounting package or the same number with a square symbol as the decimal point in Excel.)". No idea what I should check first?

    When you use Excel or my Peachtree Accounting program, entered digital as "$152(32 in the accounting package or the same number with a square symbol as the decimal point in Excel.)".  No idea what I should check first?

    Thank you for visiting the website of Microsoft Windows Vista Community. The question you have posted is related to Office Excel and would be better suited to the office community. Please visit the link below to find a community that will support what ask you

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?d=1

    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Why am getting started on the internet with the message saying that more than one computer using the same ip address

    am is started from the internet for 3 days pass with the message saying that more than one computer using the same ip address

    am is started from the internet for 3 days pass with the message saying that more than one computer using the same ip address

    Thatmessage normally means a another computer on your local network has the same IP as the computer you are on.

    You control your Local network?

  • Can I use the same printer to print from a pc with windows 10 and a pc with windows 7

    * O.t. - printer using windows 7 and 10

    Can I use the same printer to print from a pc with windows 10 and a pc with windows 7?

    Yes, assuming that there is the compatible drivers for both versions of the OS.

Maybe you are looking for

  • I can FCPX on a MacBook Air?

    Hello In fact, not me, but a friend. An artist friend needs a computer for the usual things but I would also like to make small films as she wishes. She doesn't have much money, so, in research on Mac products, which is a stretch but perhaps at hand

  • Reset parts - how to in the latest version?

    The latest version said it solved this problem - can't find it?

  • 2 questions about Sony STR DN1030

    First of all, how can I activate AirPlay without turning on the TV at the same time? I have a Sony's Bravia TV. I tried to change the HDMI settings but did not understand right now. Secondly, one of the reasons why I bought this unit was because it s

  • No desktop icons.

    My computer had a serious event and crashed. I used the back up CD I made with my System Mechanic software and got booted computer. Now, I can't get sent on my desktop shortcut icons. I just have a folder called 'Office' and everything happens here.

  • Background screen images of Bing stopped appearing as my desktop wallpaper

    It started yesterday. My office was simply in black instead of display a new screen of Bing background image. So, I went up to the bar, found an old image clicked and he appeared again as my desktop wallpaper. The same problem happened today. No new