Question of layout on VBox with different content (bug or not?)

I don't know if the following behavior is a bug, or scheduled. At least the behavior has changed since 2.2 to the last beta 8.

I have VBox container. Inside is a ListView and a BorderPane. The content in the center of the BorderPane can be changed between a text box and a WebView. When that happens, the height of the ListView changes. (No additional constraints have been put on one of the nodes).

I'm not enough of an expert layout of course what happens here. The desired behavior would be that ListView (or across the top of the VBox) has a constant size, does not matter what is in the rest of the VBox. If the observed behavior is intended, how can I get the desired behavior?

Complete code below.

package jbugs;

import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.layout.BorderPane;
import javafx.scene.control.Button;
import javafx.event.EventHandler;
import javafx.event.ActionEvent;
import javafx.scene.control.ToolBar;
import javafx.scene.layout.VBox;
import javafx.scene.control.ListView;
import javafx.scene.control.TextArea;
import javafx.scene.web.WebView;
import javafx.scene.Scene;

public class WebViewLayoutBug extends Application {

  public void start(Stage stage) {

    BorderPane root = new BorderPane();

    Button text = new Button("TextArea");

    Button web = new Button("WebView");
    ToolBar toolbar = new ToolBar(text, web);

    VBox vb = new VBox();

    ListView<String> lv = new ListView<String>();
   
    lv.getItems().addAll("foo", "bar");

    final BorderPane bp = new BorderPane();

    vb.getChildren().addAll(lv, bp);

    final TextArea textArea = new TextArea();
    final WebView webView = new WebView();

    text.setOnAction(new EventHandler<ActionEvent>() {
      public void handle(ActionEvent e) {
        bp.setCenter(textArea);
      }
    });

    web.setOnAction(new EventHandler<ActionEvent>() {
      public void handle(ActionEvent e) {
        bp.setCenter(webView);
      }
    });

    root.setTop(toolbar);

    root.setCenter(vb);
   
    stage.setScene(new Scene(root, 800, 600));
    stage.show();
  }

}

This has exactly the same for me in 1.7.0_40 JDK and JDK 1.8.0 b109.

The desired behavior would be that ListView (or across the top of the VBox) has a constant size, does not matter what is in the rest of the VBox. If the observed behavior is intended, how can I get the desired behavior?

    lv.setMinHeight(Control.USE_PREF_SIZE);
    lv.setMaxHeight(Control.USE_PREF_SIZE);

Tags: Java

Similar Questions

  • The ipad pro supports multiple monitors with different content on each screen?

    I want to replace my laptop with an ipad pro.  Currently I drive three screens with my laptop, all with different content (VGA, HDMI, laptop screen) with no additional adapters.  The Ipad pro has a video card that will allow me to run multiple monitors (3 including the pro) with different content on each monitor?

    Given that the pro iPad running iOS and iOS do not supports multiple monitors, I would say no. I may be wrong, so feel free to correct me.

  • question of xsd. several records with different values.

    I need help in the creation of xsd.

    My data from the file will be as Fallows.

    Sample data file

    AB xxxx yyyy zzz ttttt

    BBB hhh ddd ddd

    BBB hhh ddd ddd

    BBB hhh ddd ddd

    BC xxxx yyyy zzz ttttt

    CCC hhh ddd ddd

    CCC hhh ddd ddd

    CCC hhh ddd ddd

    CD xxxx yyyy zzz ttttt

    Hhh ddd ddd DDD

    Hhh ddd ddd DDD

    Hhh ddd ddd DDD

    My xsd is as Fallows:


    < xsd: element name = "Root Element" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "Element" type = "tns: mainelement" minOccurs = "0" maxOccurs = "unbounded" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: complexType name = "mainelement" >

    < xsd: SEQUENCE >

    < xsd: element name = "Header" type = "tns:HeaderType" maxOccurs = "1" / >

    < xsd: element name = "lineitem1" type = "tns:lineitemrecord1" minOccurs = "0" maxOccurs = "unbounded" nxsd:lookAhead = "0" nxsd:lookFor = "" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < xsd: complexType name = "HeaderTyep" >

    < xsd: SEQUENCE >

    < xsd: element name = "HeaderData" type = "xsd: String" nxsd:style = "fixedLength.

    nxsd:length = "2528" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < xsd: complexType name = "lineitemrecord1" >

    < xsd: SEQUENCE >

    < xsd: element name = "RecordData" type = "xsd: String" nxsd:style = "fixedLength" nxsd:length = "161" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    How can differentiate the values in the starting header field by [AB, BC, CD] and record data fields starting with [bbb, ccc, ddd]

    I can't use nxsd: lookahead and nxd:lookFor.

    Required inputs to process the file. What alteration is suitable for the xsd to run.

    Is there a parent - child relationship kind of thing in your file structure?

    Row containing sales, purchases etc. is the parent and the tracking records are the child records, until we meet any record type 'Bill of sales, purchases',? In addition, tried to use "conditionValue" and "startsWith" and it did not work... Is it?

  • How to remove the lines of code at the level of the site with different content?

    How can I remove the same lines of code at the level of the site?

    I want to delete all of the code line up to 4000 pages 50 - line 80, but the lines do not contain the same code can not use 'find and replace '.

    Any ideas would be appreciated - thanks.

    SED

    http://www.Panix.com/~ElfLord/UNIX/sed.html

    Can you show us 2 examples of code to remove?

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Why should Windows 8.1 I 2 different profiles with the same default folders, but each with completely different content?

    I want to save my e-mail and archives. I intend to put them in my folder "Documents" for backup of 'Cloud' and also in an external hard drive that I have always used in the past and, as a child of 76 with a new computer, 8.1 instead of XP and TB instead of Outlook Express, that I feel more confident on my external hard drive! I have 31 TB and Windows 8.1. I put my computer to show the "hidden files and folders". In user/AppData/Local name there is a record of TB with 'Profiles' and there my XXXX.default folder - but it has only a limited number of files and folders (Cache/cache2...). In user/AppData/Roaming name, there is also a TB with 'Profiles' folder and there my XXXX.default folder- but it contains a completely different and much larger files and Folders collection (4 different folders and multiple files MAB and SQLITE and others). Why have I not two files with different content identical default? Do I have to register each one? Can someone please explain/help, preferably in words this 76 year-old could understand.

    Windows 8 user accounts can be local or remote. It assumes that everyone has a roaming profile. Thunderbird uses mobile records as you can see, but there is only the rump in local that I don't really understand the existence of.

    Thunderbird does not use it, I guess that windows creates.

  • layout with different resolutions

    Hello and Hello!

    Once more I need some advice:

    I have a program that is running on different machines with different resolutions.

    Is it possible to avoid, that the provision is paning all around?

    Best regards

    Hilby

    Hi Hilby,

    No.... This is currently a limitation of the layout, where we try to adapt to each screen, but objects and the page layout is not appropriate in different proportions with a different number of pixels.

    The aspect ratio is the most important, followed by the total of the resolution of the screen.

    Additional information about elongation are below.

    In summary, DASYLab is unable to completely adapt the layout "Screen" for the size of each screen and resolution. If you want to have a fixed provision which is not completely in some monitors, then consider using a size fixed, such as A4 or A3.

    If you do something on a large monitor, 1600 x 1200, for example, and move it to a screen wide monitor, 1600 x 900.

    Of my friends on Wikipedia

    With computer screens, wider than 4:3 aspect ratios are also known as widescreen. Computer monitors widescreen previously generally 16:10 aspect ratio, now they are moving in 16:9.

    Until the about 2003, most computer monitors had a 4:3 aspect ratio and some had 5:4. Between 2003 and 2006, monitors with 16:9 and especially 16:10 aspect ratios (8:5) became commonly available

  • How to read the data with different XML schemas within the unique connection?

    • I have Oracle database 11g
    • I access it via JDBC: Slim, version 11.2.0.3, same as xdb.
    • I have several tables, each has an XMLType column, all based on patterns.
    • There are three XML schemas different registered in the DB
    • Maybe I need to read the XML data in multiple tables.
    • If all the XMLTypes have the same XML schema, there is no problem,
    • If patterns are different, the second reading will throw BindXMLException.
    • If I reset the connection between the readings of the XMLType column with different schemas, it works.

    The question is: How can I configure the driver, or the connection to be able to read the data with different XML schemas without resetting the connection (which is expensive).

    Code to get data from XMLType is the implementation of case study:

     1   ResultSet resultSet = statement.executeQuery( sql ) ; 
    2   String result = null ;
    3    while(resultSet.next()) {
    4   SQLXML sqlxml = resultSet.getSQLXML(1) ;
    5   result = sqlxml.getString() ;
    6   sqlxml.free();
    7   }
    8   resultSet.close();
    9    return result ;

    It turns out, that I needed to serialize the XML on the server and read it as BLOB. Like this:

     1    final Statement statement = connection.createStatement() ;  2    final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;  3   ResultSet resultSet = statement.executeQuery( sql ) ;  4   String result = null ;  5    while(resultSet.next()) {  6   Blob blob = resultSet.getBlob( 1 );  7   InputStream inputStream = blob.getBinaryStream();  8   result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();  9   inputStream.close(); 10   blob.free(); 11   } 12   resultSet.close(); 13   statement.close(); 14  15   System.out.println( result ); 16    return result ; 17
    

    Then it works. Still, can't get it work with XMLType in resultset. On the customer XML unwrapping explodes trying to pass to another XML schema. JDBC/XDB problem?

  • Combine data sources with different granularity in the same fact table?

    I have two operating tables 'Incident (157 columns)' and 'unit (70 Colums) '. For all the "incidents" happening there could be one or more records in the table of the 'unit '.

    As part of my design of data mart, I have merged the tables in one "makes the incident (227 columns)" and insert records from two tables with a join condition between them [incident. IN_NUM = Unit.IN_NUM].

    Is this correct, is my question? or am I mix data sources with different granularity in the same fact table. Appreciate your help.

    Best regards
    Bees

    Bees,
    Are the measures of the 'Incident', repeated during an incident given, in more than one record in the table of the unit? If so, then the sum (indicent.measure) will give an incorrect result?

    What is there to merge physically tables set outside OBIEE? With OBIEE you might have a table of 'facts' logic to present the user with report, which from tables separated units and Incidents and would stop the occurrence of incorrect aggregations. A common piece of modeling in the same way would be arrested in OBIEE headers and lines of command, quite common to have a logical fact 'orders' which contained the two header orders and order line, this translates into the Incidents-> relationship of units.

    To do what I mentioned, is relatively simple, you need a "Dim - Incident" at two levels, unit, mapp and Incident unique identifiers as keys to level and then use these levels to define the content of the levels correctly in your 2 tables logic sources logic "done", IE the LTS Incidents at incident level LTS units as level of units.

    Hope this helps, let us know if you get stuck.
    See you soon
    Alastair

  • I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious.

    Hello.
    I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious. I can't find the settings as it eliminated. Now, I don't have any plug-ins and Add-ons strange that were not initially in the Fox, but the problem is there.
    I use the Fox years. The problem, he had 1.5 months after Fox cleaning. If the problem can't win, I'll be forced to give up the browser, and I wouldn't.

    Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any improvement?

    If the problem persists in Mode without failure, could reinstall you Firefox in this way:

    Clean reinstall it

    We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (not incompatible, corrupt or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.

    (1) download a fresh Installer for Firefox 38.0.5 of https://www.mozilla.org/firefox/all/ in an ideal location. (Scroll down your preferred language).

    (2) close Firefox (if applicable).

    (3) to rename the program folder, either:

    (Windows 64-bit folder names)

    C:\Program Files (x86)\Mozilla Firefox
    

    TO

    C:\Program Files (x86)\OldFirefox
    

    (Windows 32-bit folder names)

    C:\Program Files\Mozilla Firefox
    

    TO

    C:\Program Files\OldFirefox
    

    (4) run the installer you downloaded in the #1. It should automatically connect to your existing settings.

    Any improvement?

    Note: Some plugins can only exist in this OldFirefox file. If it is missing something essential, present in these files:

    • \OldFirefox\Plugins
    • \OldFirefox\browser\plugins
  • Build &amp; write to text with different column formatting

    3 days, I just pass on what appears to be a simple problem:

    I have a VI that reads a significant length TDMS file containing data sampled at 1 MHz 2-channel (very large files of course). The VI only runs 1 second at a time and looking for threshold crossing points and calculates the energy at this time there. In any case, I'm writing a text file where a column contains the number of the sample and the second column contains energy, annexed whenever the VI iterates (the number of rows generated by iteration may vary). It's simple by using the function 'Write to Spreasheet', the problem is I want a different format on each column. The sample number must be set to zero decimal and energy must be set on, say, 3 significant digits.

    A typical few lines should look like (delimited by tab characters, commas are there to represent the tabs):

    Time (samples), energy

    267935, 0.0000346

    545227, 0.000298

    1298655, 0.0000000122

    1314522, 0.00854

    'Write to Spreasheet' allows only a single format, so I have either a large number of DPs on my number of sample or energy value is 0.

    If I use 'Table in chain worksheet', I can set the formatting, but I can't seem to be concatenated, to build or to transpose the outputs in the right direction, no matter what I try.

    In the attached image I use Ch1 as my experience; CH2 using the traditional but unsatisfactory method "to write to the spreadsheet. The current VI returns on Ch1:

    Time (samples), energy

    267935

    545227

    0.0000346

    0.000298

    1298655

    1314522

    0.0000000122

    0.00854

    I hope that the image of the relevant part of the VI just go. I can reach the VI if necessary, but it seems unnecessary that I won't be able to share the data files for the tests.

    You can use the 'number of fractional string' primitive to convert data DBL to the chain with the required precesion. Then when you use this string 2D array and write in the file using 'write to the worksheet VI' it should work fine.

    If you still face any question please include the code with the data in a constant and registered in the 2012 version.

  • acquisition of data with different sampling rates high

    I have a few questions on the use of the OMB-DAQ-3005 with different sampling rates high.

    For our application, we have 8 analog inputs. Which two are a quick response and should be sampled frequently.  We have an encoder quadrature (CPR 1000 running at 1800 rpm).  We plan to sample X 4 encoder.  For the analog inputs for the quick response, we want to trigger a sample of each pulse or each a few pulses, thus creating a timestamp with the position of the encoder with respect to position index as well as two fast analog inputs.  We have data correlating the analog inputs with the position of the encoder.   Other analog inputs, we want to measure relatively slowly (for example once every 5 dry or similar).

    How can I go on the configuration of the two (or more) sampling rates different wherein I can taste entered at different frequencies?  Also, is there a way to reset the encoder count after outbreak of the index as I have the position of the encoder with respect to the index?

    Maybe you'll find someone here who uses the OMB-DAQ-3005, but this forum is really more designed for LabVIEW programming issues.

    I've never used the OMB-DAQ-3005, but out of curiosity, I took a glance at the Manual of OMB-DAQ-3005.  The answer to both your questions are:

    1. you cannot run a hardware DQA Multiplex (like this one) at independent rates by channel.

    2. the OMB-DAQ-3005 supports an Index Z feature to reset the counter - look for documentation on how to configure any software interface you are using.  If you get stuck, you can try to discover media appropriate for instrument channel.

    Best regards

  • 'For' loop with a different number of iterations. Second, the auto-indexation of the tables with different sizes is done. It can affect the performance of the Vi?

    Hello

    I have a loop 'for' which can take different number of iterations according to the number of measures that the user wants to do.

    Inside this loop, I'm auto-indexation four different 1 d arrays. This means that the size of the tables will be different in the different phases of the execution of the program (the size will equal the number of measures).

    My question is: the auto-indexation of the tables with different sizes will affect the performance of the program? I think it slows down my Vi...

    Thank you very much.

    My first thought is that the compiler to the LabVIEW actually removes the Matlab node because the outputs are not used.  Once you son upward, LabVIEW must then call Matlab and wait for it to run.  I know from experience, the call of Matlab to run the script is SLOW.  I also recommend to do the math in native LabVIEW.

  • How to set up multiple LIVE IDS prod certificates on Sharepoint 2010 single server runs several Sharepoint Sites with different domain on port 443?

    Hello

    I integrated LIVE ID with Sharepoint 2010 and got the same compliance.

    In sharepoint server 2010, several sharepoint sites are run under port 443 with different domain names.

    I configured 1 LIVE ID certificate for one of our sharepoint sites would like to know can I use the same certificate for other sites too or I need to install other certificates LIVE ID to access other sites.

    How can I get prod LIVE ID certificates are available for free as nexus offers two certificates INT and PROD (x 509 certificate) or do I need to buy.

    If I need to buy where can I buy it go?

    Hi ppdremsadm,
     

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums as it is related to the configuration of Live ID in Sharepoint 2010. It should be better in the Forums of Windows Sharepoint.

    Please ask your question in products and technology SharePoint forums to improve assistance in this regard.

  • High CPU usage while browsing with flash content more

    I know that this can cause a several times but still problem persists even after the rest of most of the stages (analysis of malware, disabling content flash etc.). MY model is certainly an old one 910 series motherboard intel with onboard graphics card intel 128 MB running windows xp professional service pack 3. I have recent changes to the system, but that it faces from the 1 of the past month, I started. Flash games used to work properly without lag and without using a lot of CPU, but for a 1 month, he started late as * and CPU spikes almost at 100%, while the jumps game and even during web browsing with flash content and decreases rapidly after you load the page completely. I tried to disable hardware acceleration but still problem. Hope that I find the solution earlier. Thanks in advance.

    Hi Vijay,

    1. Exactly how you try to play the games? Games online or offline?
    2. If you are referring to online games so what web browser are you using to play the games?

    If you use internet Explorer, then, refer to the following.

    When you browse a Web page in Microsoft Internet Explorer, the CPU usage meter in Task Manager may indicate 100% CPU usage. Because of this behavior, other programs may slow down or crash. For example, if you read a video DVD, an audio DVD or audio CD while you scroll through a Web page, you may strain video or audio.

    This problem may occur on some computers if the option of scroll smooth use is enabled in Internet Options.

    Note By default, the use smooth scrolling option is enabled in Internet Explorer.

    To work around this problem, disable the option of scroll smooth use in Internet Explorer. To do this, follow these steps:

    (a) click the Start button and then click Control Panel.

    (b) in the Control Panel, make sure you are in Classic view, with all the control panel display icons. If this is not the case, click switch to Classic view in the left pane of the control panel.

    (c) click Internet Options to open the Internet Options dialog box. Click the Advanced tab and scroll down to the settings: navigation on topic. Select or clear the Use smooth scrolling check box.

    (d) click OKand then click the close button.

    http://Windows.Microsoft.com/en-in/Windows-XP/help/turn-off-smooth-scrolling

    Please post back with the State of the question.

  • 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

Maybe you are looking for

  • Installation of satellite L650-12 q value added package

    Toshiba Satellite L650-12 q I had to install a new Windows 7, as I could not restore the OEM Windows due to the Master Boot Record is damaged. Therefore, I have now no installed Toshiba Software, apart from the drivers necessary for the operation of

  • HP Jet 13: Virus

    I get a pop up that says my computer has been hacked or has a virus and call a toll-free number in order to solve the problem. Is it true, can I call or is it just spam or a virus trying to shoot my computer?

  • Access database connectivity

    I am trying to connect to a database access (office 365).  I downloaded the tool SQL (trial version) and want to connect to a simple database that I created on my C drive.  I have problems with the connection string.  Examples of the CVI are very poo

  • Performance of poor game after the last update of DirectX. Can't go back.

    SUP ppl,I did a clean install of Windows 7 on my laptop Dell D510 crap, then install the drivers for my on-board Intel 915GM video card. I then installed brothers in arms and hidden and dangerous 2. When I started up the two games, they ran very chop

  • Photosmart D5160: d5160

    3 days after printing on several CD via the box the printer stopped and upward came flashing light. HP Solution Center gave me 'Problem of cartridge' message on the left hand (Tri Color) cartridge. HP Print and Scan Doctor gave the same error. Uninst