reuse of filters with different values

We have a usage scenario where the same filters will have to be applied several times with different values. Looking the javadocs, it seems like there is no way to change the values of pre-packaged filters (EqualsFilter, GreaterFilter etc.). Is that correct or is there a way to do it? I see that if we use CohQL, we can use bind variables to do this. However, the use cases we should rather just more complex extractors ReflectionFilters.

In addition, there no performance impact by using CohQL against java constructs directly?

Thank you
Manju.

Hi Manju,

While it is true that you cannot change values in the built in filters, even if you could it wouldn't make you save a lot on the construction of a new filter every time. I guess that if you build a very large number of filters, then you're going to create more garbage, but that shouldn't be a problem either. Some of the more specialized filters also contain State so that you do not want to resuse them.

The main performance issue I know with CohQL which is only creates extractors of reflection so won't enjoy all serialized POF values you have. If you have indexed each value you want to query on using the same extractors relflection then it would help, but again, this means that everything you deserialization of the values for the query or insert to update the index.

Kind regards
JK

Tags: Fusion Middleware

Similar Questions

  • DAQmx create track (I-current-Basic) 8 channels with different values of Shunt resistance

    Hello

    I want to measure 8 current channels with different values of Shunt resistance.

    Problem: The channel create DAQmx (HAVE current Basic) specifies that a value of Shunt resistance.

    How can I set the value of Shunt resistance for each channel individually?

    Concerning

    Marcel

    Hi Marcel_C,

    Take a look to get attached.

    Best regards

    Mencef

  • two rows of delete with different values

    Hello

    I wouldn't lines with the same id and have values of E and F 10258932.

    I would like the following data:
    A        B  C      D     E N
    -------- -- ------ ----- - -
    10258927 1  103,35 0
    10258929 3  284,85 89,52 E N
    10258929 4  323,85 89,52 E N
    10258930 5  478,80 91,53 E N
    10258931 6  436,67 78,09 E N
    But I have the following lines:
    SQL> with my_table as
      2  (
      3  select '10258927' a, '1'  b, '103,35'  c, '0'      d,   NULL  e from dual union all    
      4  select '10258928' a, '2'  b, '0'       c, '15,19'  d,  'E'    e from dual union all
      5  select '10258929' a, '3'  b, '284,85'  c, '89,52'  d,  'E'    e from dual union all
      6  select '10258929' a, '4'  b, '323,85'  c, '89,52'  d,  'E'    e from dual union all
      7  select '10258930' a, '5'  b, '478,80'  c, '91,53'  d,  'E'    e from dual union all
      8  select '10258931' a, '6'  b, '436,67'  c, '78,09'  d,  'E'    e from dual union all
      9  select '10258932' a, '7'  b, '784,88'  c, '23,19'  d,  'E'    e from dual union all
     10  select '10258932' a, '8'  b, '100,88'  c, '11,11'  d,  'E'    e from dual union all
     11  select '10258932' a, '9'  b, '300,88'  c, '22,22'  d,  'F'    e from dual union all
     12  select '10258932' a, '10' b, '468,25'  c, '78,33'  d,  'F'    e from dual)
     13  select a, b, c, d, e, no_ds from
     14  (
     15    select a, b, c, d, e,
     16           case when c > 0 and e != 'F'
     17                then 'N'
     18           end no_ds
     19    from my_table)
     20  where no_ds = 'N' or e is null
     21  order by 1
     22  /
    
    A        B  C      D     E N
    -------- -- ------ ----- - -
    10258927 1  103,35 0
    10258929 3  284,85 89,52 E N
    10258929 4  323,85 89,52 E N
    10258930 5  478,80 91,53 E N
    10258931 6  436,67 78,09 E N
    10258932 7  784,88 23,19 E N
    10258932 8  100,88 11,11 E N
    
    7 Zeilen ausgewählt.
    
    SQL> 
    Does anyone have an idea?

    Oh, I read the title again once: 'remove double lines with different values.
    If it means that he is not specifically E and F values, but only if there is more than one distinct value, then you can do the following:

    with my_table as
    (
    select '10258927' a, '1'  b, '103,35'  c, '0'      d,   NULL  e from dual union all
    select '10258928' a, '2'  b, '0'       c, '15,19'  d,  'E'    e from dual union all
    select '10258929' a, '3'  b, '284,85'  c, '89,52'  d,  'E'    e from dual union all
    select '10258929' a, '4'  b, '323,85'  c, '89,52'  d,  'E'    e from dual union all
    select '10258930' a, '5'  b, '478,80'  c, '91,53'  d,  'E'    e from dual union all
    select '10258931' a, '6'  b, '436,67'  c, '78,09'  d,  'E'    e from dual union all
    select '10258932' a, '7'  b, '784,88'  c, '23,19'  d,  'E'    e from dual union all
    select '10258932' a, '8'  b, '100,88'  c, '11,11'  d,  'E'    e from dual union all
    select '10258932' a, '9'  b, '300,88'  c, '22,22'  d,  'F'    e from dual union all
    select '10258932' a, '10' b, '468,25'  c, '78,33'  d,  'F'    e from dual
    )
    --
    -- end-of-test-data
    --
    select a, b, c, d, e,
           num_distinct_values
    from
    (
      select a, b, c, d, e,
             count(distinct e) over (partition by a) num_distinct_values
      from my_table)
    where num_distinct_values <= 1
    order by 1
    / 
    

    The county notes how the distinct non-null values in column e for each one.
    Where clause then selects those with count = 0 (this is where e = null) and count = 1.
    If the number is greater than 1, different values exist for this id.

    Choose what fits your condition ;-)

  • Updated several lines with different values

    Hello!
    I have a problem. I need to update more than 1000 lines with different values. How can I do?
    For exsample I have table:
    ID; color, date,
    1 red
    2 green
    3 white

    I need to update the date field.

    Update table
    Set date = '01.02.03'
    where id = 1

    Update table
    Set date = '01.03.03'
    where id = 2


    Maybe it's how to update multiple rows in a single request?

    Sorry for my bad English.
    Thank you!

    Hello

    You can try this

    UPDATE TABLE SET DATE = CASE
                        WHEN ID = 1 THEN TO_DATE('01-02-03','DD-MM-RR')
                        WHEN ID = 2 THEN TO_DATE('01-03-03','DD-MM-RR')
                        END
    

    see you soon

    VT

  • Return only the columns with different values.

    Hi all

    I am trying to solve a seemingly trivial problem but can't seem to get any clear answer anywhere in any forum. Consider a single table with 5 columns and only two lines:
    row_id           first_name         last_name        age            gender
    1                    John                  doe               27             M
    1                    Jane                  doe               27              F  
    Assume that there is no primary key or any other constraint. Also assume that there are only and only two lines of this table. So I need basically a query that, overall above lines, would return first name and sex, because they are only different columns in two lines, as well as their values. Even if I can get sort of column names that are different and that would be enough that I can easily access the values later. It is also important to remember that I may not know the names of the columns in the columns, so basically, somehow, I use user_tab_columns in the process.

    Any help appreciated.

    Published by: 894302 on May 1, 2013 10:35

    Hello

    894302 wrote:
    The exact release could be just a varchar variable that lists all the columns that have different values with each column name separated by commas. We'll call the query you want as a QUERY. So, if I do something like

    Select the REQUEST of double; Output should be: 'first_name, equality of the sexes. Is this possible?

    In this case:

    SELECT     RTRIM ( DECODE (a.row_id,     b.row_id,     NULL, 'row_id,')     ||
                    DECODE (a.first_name, b.first_name, NULL, 'first_name,') ||
              DECODE (a.last_name,  b.last_name,  NULL, 'last_name,')  ||
              DECODE (a.age,        b.age,          NULL, 'age,')      ||
              DECODE (a.gender,     b.gender,     NULL, 'gender,')
               , ','
               )          AS different_columns
    FROM     rhit_table_x  a
    JOIN     rhit_table_x  b  ON  a.ROWID     < b.ROWID
    ;
    

    Output:

    DIFFERENT_COLUMNS
    ---------------------------------------
    first_name,gender
    

    This assumes that you have really a table, then you can use ROWID to distinguish the lines, since there is no primary key.
    If this isn't the case, you first assign ROW_NUMBER in a subquery.

  • Two tables with different values of basic on an analysis filter

    Hi guys,.

    Let assume that I have an analysis with columns: group_id and sales.
    On this basis I would like to create two tables: table1 where group_id = 1 and table2 where group_id = 2.

    OBIEE is able to do?

    Kind regards
    Slavi

    Hi Slavi,

    You can do it in a single analysis, but you have to have the column with group_id twice.

    Bring, group_id_1, group_id_2 (same column), sale

    Now in table 1.

    bring group_id_1, sales

    Then in the selection steps for group_id_1-> select members-> Action choose keep only-> choose the value of the filter 1

    This will filter the table 1 with group_id 1

    In table2 group_id_2 porter, sales

    Then do the same step for group_id_2 with the value 2.

    You now have two reports with different filter in the same report.

    If you want you can keep the same name column for the two columns group_id, I just kept group_id_1, group_id_2 for easy reference.

  • loop to generate variables with different values

    A quiz, I have answers user saved in a table. At the end of the quiz, I need to extract individual responses to the different variables q1, q2, q3, etc.. The questionnaire can be of different questions so I need to adjust based on total questions inside. How can I use loop to create variables and values to capture?

    So, I would change the following:

    var q1:int = userAnswersArray [0];

    var q2:int = userAnswersArray [1];

    var q3:int = userAnswersArray [2];

    var q4:int = userAnswersArray [3];

    ...

    to the loop like the one below:

    for (i = 0; i < totalQuestion-1; i ++)

    {

    This ["var var q" + i] + ": int" = "userAnswersArray []" + this [i] + "]";

    }

    He probably has syntax errors that it does not work.

    Thanks for your help.

    If evidence of userAnswersArray are always aligned with issue numbers (say, question 1 answer is saved in 0, 2 - position 1, position etc.) maybe work the following:

    var urlreq:URLRequest = new URLRequest("subresultpage.asp");
    urlreq.method = URLRequestMethod.POST;
    var urlvars:URLVariables = new URLVariables();
    for(var i:int = 0; i < userAnswersArray.length; i++) {
      urlvars["q" + (i + 1)] = userAnswersArray[i];
    }
    
  • Reuse of animation with different endings?

    I hope that the solution you are looking for is not too intensely complicated but the question is a bit hard to explain, so I apologize in advance for maybe more to explain.

    With the help of Fash CS5 with Actionscript 3.  I am putting together a timeline based Web site.  Upon entering the site, there is a group of buttons, arranged in sort of artistic way.  The idea is once you click on one of the buttons 3 or 4, they are displayed along the top of the screen a little more classically reorganize and the corresponding section of the Web site will appear in the new window of content that is displayed during the action.  From that moment the new, simpler configuration will be the navigation for the rest of the time to the user on the site.  The animation of this action is simple enough and already made.  Here's the trick but... as I said there are 3 or 4 different buttons to choose from, and we have no way of knowing which button the user clicks on the first.  The animation can be copy and pasted for each section of the site, although course, but we do not want to suddenly back at the beginning and replay transitional animation whenever someone navigate to another section... we only want the animation to play the first time that the user clicks on one of the buttons of first.

    So I wonder if there is a way with actionscript to program these buttons as they appear all first to read the same animation (it might be placed in a clip if necessary), but when the animation is made play it navigates to a different image on the timeline.  Who is?  Basically, I want to play forward on the timeline but then when it reaches a certain point it jumps to a designated place on the timeline according to the button you click to play the animation in the first place.

    I already have a few ideas on how to achieve this using several versions of buttons etc, but I think that if there is a way to put up with actionscript we can perhaps do not fall the timeline too conveluted.

    Thank you.

    of course, you can expect that your artsy animation completed before executing your gotoAndPlay.  just have your buttons assign a variable value (for example, nextframe_label).  at the end of your artsy animation run your gotoAndPlay (nextframe_label)

  • Update of digital control with different values with array function

    Hello

    I have attached my code base. I want to execute the code for 2 sets of digital control with a gap between the two values, then pass it. Something like that

    ABC

    Initialize the P1 = 10; P2 = 20; P3 = 30; P4 = 40

    Run the code

    delay = 10ms

    Update of P1 = 150; P2 = 200; P3 = 350; P4 = 500

    Run the code

    jump to abc

    I am stuck how can I update the values of P1, P2, P3, P4? I thought about using a function table but couldn't go further.

    Thanks for the help,

    Ana

    Hello Ana,

    One way you might achieve what you are looking for is using property nodes. These property nodes will allow you to change the values of the block diagram control. You can set up a structure of case inside your loop that will change control through nodes of property value after a certain number of iterations. Here is a community sample that shows how to use the nodes property to change the Boolean controls:

    https://decibel.NI.com/content/docs/doc-22669

    -Erik S

  • query users to mulitple update block with different values

    Hello

    I need to write a SQL script to update the information of multiple users (400) in the database.

    Here's the query I use to update a single user:

    setting a day of usr set usr_login = "ROBERTAA_OLDx", USR_EMAIL = 'robertaa@abadrer_dellllx.com' where usr_login = 'ROBERTA ';

    usr_login and usr_email must be different for each user.

    What is the best way to achieve this?

    Please suggest

    Thank you

    OK, I see.  Here is my version of update:

    DROP TABLE usr;
    
    CREATE TABLE usr
    (
     usr_login VARCHAR2(20)
    ,usr_email VARCHAR2(50)
    );
    
    INSERT INTO usr VALUES ('PENUMALH', '[email protected]');
    INSERT INTO usr VALUES ('IAMTEAM', '[email protected]');
    INSERT INTO usr VALUES ('TESTSOA2', '[email protected]');
    INSERT INTO usr VALUES ('TESTADF1', '[email protected]');
    INSERT INTO usr VALUES ('IAMTESTIR2', '[email protected]');
    INSERT INTO usr VALUES ('IAMPWDTT', '[email protected]');
    INSERT INTO usr VALUES ('IAMPWDTI', '[email protected]');
    
    COMMIT;
    
    SET LINESIZE 80 PAGESIZE 20
    
    COLUMN usr_login FORMAT A20
    COLUMN usr_email FORMAT A50
    
    SELECT *
      FROM usr;
    
    UPDATE usr t1
       SET (t1.usr_login, t1.usr_email)
           =
           (SELECT t2.usr_login || 'OLD' || TO_CHAR(ROWNUM) AS usr_login
                  ,SUBSTR(t2.usr_email, 1, INSTR(t2.usr_email, '.', -1, 1) - 1)
                   || '_delxxxxasdf' ||
                   SUBSTR(t2.usr_email, INSTR(t2.usr_email, '.', -1, 1)) AS usr_email
              FROM usr t2
             WHERE t2.usr_login = t1.usr_login);
    
    COMMIT;
    
    SELECT *
      FROM usr;
    

    And the output:

    Table dropped.
    Elapsed: 00:00:00.05
    Sequence dropped.
    Elapsed: 00:00:00.03
    Table created.
    Elapsed: 00:00:00.03
    Sequence created.
    Elapsed: 00:00:00.03
    1 row created.
    Elapsed: 00:00:00.13
    1 row created.
    Elapsed: 00:00:00.04
    1 row created.
    Elapsed: 00:00:00.03
    1 row created.
    Elapsed: 00:00:00.03
    1 row created.
    Elapsed: 00:00:00.03
    1 row created.
    Elapsed: 00:00:00.03
    1 row created.
    Elapsed: 00:00:00.03
    Commit complete.
    Elapsed: 00:00:00.02
    
    USR_LOGIN            USR_EMAIL
    -------------------- --------------------------------------------------
    PENUMALH             [email protected]
    IAMTEAM              [email protected]
    TESTSOA2             [email protected]
    TESTADF1             [email protected]
    IAMTESTIR2           [email protected]
    IAMPWDTT             [email protected]
    IAMPWDTI             [email protected]                                
    
    7 rows selected.
    Elapsed: 00:00:00.03
    7 rows updated.
    Elapsed: 00:00:00.04
    Commit complete.
    Elapsed: 00:00:00.02
    
    USR_LOGIN            USR_EMAIL
    -------------------- --------------------------------------------------
    PENUMALHOLD1         Hari.Penumalli@abc_delxxxxasdf.com
    IAMTEAMOLD1          iam.team@xyz_delxxxxasdf.com
    TESTSOA2OLD1         test.soa2@gio_delxxxxasdf.com
    TESTADF1OLD1         test.adf1@yu_delxxxxasdf.com
    IAMTESTIR2OLD1       iam.testir@ou_delxxxxasdf.net
    IAMPWDTTOLD1         iam.pwdtt@iuet_delxxxxasdf.in
    IAMPWDTIOLD1         iam.pwdt@oiyoi_delxxxxasdf.com                    
    
    7 rows selected.
    Elapsed: 00:00:00.03
    
  • 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?

  • Update a field with different values of several tables

    Hello

    I have a table named AAA with 2 fields id and structure.
    And then I have other 3 tables with 2 fields id1 and structure1 id2, table1 and table2, id3 and structure3 to table3 organized.2.

    The number of AAA id is equal to the sum of the IDS of table1, table2, table3: #id = #id1 + id2 # + #id3).

    I want to update the structure of AAA table with values as well as field:
    where AAA.id = table1.id1-> AAA.structure = table1.structure1
    where AAA.id = table2.id2-> AAA.structure = table2.structure2
    where AAA.id = table3.id3-> AAA.structure = table3.structure3

    Can someone help me?

    I have Oracle11gR2.

    Thank you in advance.

    Oops...

    update  AAA
    set structure = (select structure1 from table1 where aaa.id = table1.id1)
    where aaa.id in (select id1 from table1)
    
  • I need a text with different values in different pages (e.g. Original, copy, confidential,...)

    Hello world!

    I have an invoice form that must be printed in triplicate, the first one with the 'Original' text in the lower right corner, the second with 'Copy' and the third with «*»

    I didn't ' t know how to get this...

    Thanks in advance

    Hello

    You can do the following:

    1. Create a master page with the fields of invoice / content on this master page, then
    2. Create 3 form pages that reference the master page, finally
    3. An each page, you can position the text labels 'Original', 'Copy', and ' * ' as you wish.

    I hope that the foregoing would be healpful for you.

    ARO

    Yasser

  • LINES in COLUMNS with different values for each column (after division)

    Hello
    I have a table called summary where I produced, month, value,.

    When I used select * tab, I get months jan, Feb, mar, Apr. I wrote a query to get the months(jan,feb,...) columns

    SELECTmax (DECODE(ROWNUM,1,month)) Column1
    + Max (decode(rowNum,2,month)) table Column2 +.

    as this up to 12 months
    After that, I want to get the NEWVALUE for each month.
    I wrote a query to get the value, but I get the value only for the first month, and for the rest, I get NULL values.

    Select max (DECODE(ROWNUM,2,vallue)) Column1, Column2 of max table (DECODE(ROWNUM,3,vallue))



    Is it possible to get the newvalues for each month (in sql only) if so, please help me

    Thank you
    Chand
  • 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