When records are added to childEO, getRowCount do not get refresh properly

Hi,
I have an AO between parent EO and child EO - OVRBrowseType . I wrote a business rule on parent EO at entity level. my validation is based on no of records in child EO. After creating the parent record and save, when I try to add 2 child records and save , the bellow validation is fired but, acctIter.getRowCount() returns 0 instead of 2. so it does not enter into the if condition. However if I open an existing parent record with 2 child records, update child record and save, the validation fires and the getRowCount() returns 2.
        public boolean validateBrowseTypeIssueDate() {
      RowIterator acctIter = this.getOvrBrowseType();
        Row bt = null;   
      System.out.println("debug0 in rowcount: "+acctIter.getRowCount()); 
      if (acctIter.getRowCount() == 2)
        bt = acctIter.first();
        System.out.println("debug1"+bt.getAttribute("BrowseType"));
        if (! "IssueDateBrowse".equals(bt.getAttribute("BrowseType")) )
          bt = acctIter.next();
          System.out.println("debug2"+bt.getAttribute("BrowseType"));
            if (! "IssueDateBrowse".equals(bt.getAttribute("BrowseType")) )
            return false;
        return true;
    }Please advise if there is an alternative way to access childEO from parentEOImpl.
Thanks, Pradeep

I have not tried the above suggestions but the problem is solved. The issue was - I had the requirement of creating a a default child record when the parent record is created. I was creating the child record using insert statement in Prepared Statement in the doDML of parent EOImpl. So it is not creating a row in the EO and when I add the second record through the application and save, the getRowCount returns 1 which is new record that created through application. Sorry for not providing this info earlier and Thank You all.
Regards, Pradeep

Similar Messages

  • Sp L records are coming to the PSA and not updating in the data target

    Special Ledger records are coming to the PSA and not updating in the data target in the month end and the info package is failing - because of that we are doing manual updating from PSA to the data target -
    Can so one can tell the reasons why this is happening? And give the solutions to it?

    Hi Sankar,
    If your Infopackage uses Only PSA and Update subsequently in Data Target on the Processing tab, then you will need to add a process for Read PSA and Update Data Target in your process chain, after the Infopackage load process. Then it will take data from the PSA and load to the data target.
    Hope this helps...

  • When I send a text message I do not get any confirmathat it has been delivered.  Is there a way of getting an automated confiramtion of deleivery as I'm used to having this on a previous phone, and need to know that my texts have been delivered.

    When I send a text message I do not get any confirmation that it has been delivered.  Is there any way of getting an automated message confirmation delivery and time?  I was used to this with my old phone and need to know that my text message has been delivered to the recipient's phone, and when.

    Thanks.  So there's no means of knowing whether a text message has been delivered, not to mention time of delivery.  Perhaps I've gone for the wrong phone.  It might do a lot but seems to miss out on some basics.

  • CRM Header data not getting refreshed in BADI when clicked in New order

    We have used a ORDERADM_H BADI, header badi to populate some custom field values.
    Step 1) While creating sales order in CRM(CRMD_ORDER), we are giving inputs such as sold to party , material etc.
    Step 2) Before actually saving the order, we found that we dont need this order to be created and again click on create new button in the transaction. In order header BADI, order data for the previous order is not getting refreshed. The previous GUID is still there and function module CRM_ORDER_READ still retrieves the old order values which was cancelled in the previous step. It is causing lot of issues and finally giving dump.
    basically the previous GUID is not getting refreshed. Please suggest

    Pls send the code that you have in the Badi. Did you actually compare the GUIDs manually ? Instead of CRM_ORDER_READ have you tried using CRM_ORDER_READ_OW ?

  • HT3606 how do i get a recovery disk or download for os 10.5.8?  my system was installed by an apple store when replacing my hard drive.  i did not get a backup disk.

    how do i get a recovery disk or download for os 10.5.8?  my system was installed by an apple store when replacing my hard drive.  i did not get a backup disk.  macbook is a 1.1 from mid 2006 and 10.5.8 is as far as i can go..  use this as a utility backup when my new macbook pro with mt lion screws something up---which seems like a daily event. do i have to install a lesser version of leopard then install the update.  does software update even work anymore for leopard?  im so in the dark and when i look at the console i just freak.

    Hello, your best bet would be to clone your drive to an external drive, which will be bootable.
    Get carbon copy cloner to make an exact copy of your old HD to the New one...
    http://www.bombich.com/software/ccc.html
    Or SuperDuper...
    http://www.shirt-pocket.com/SuperDuper/
    You're not likely to see any updates show up for 10.5.x
    The very first MacBook 1,1s can actually run 10.6, which is updatable to 10.6.8, but will only run in 32 bit mode on yours.
    http://www.everymac.com/systems/apple/macbook/specs/macbook_1.83.html
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    Buy Snow Leopard > http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    Call Apple Sales...in the US: 1-800-MY-APPLE. Or Support... 1-800-275-2273
    Other countries...
    http://support.apple.com/kb/HE57

  • While recording videos in iPhone 5, I am not getting sound playback.

    While recording videos in iPhone 5, I am not getting sound while playing it. How to resolve this issue? Please help. Thank you.

    Hi manu1982,
    Welcome to Apple Support Communities.
    It sounds like your iPhone has a no sound from the speaker issue. The article linked below provides a lot of great troubleshooting tips that may be able to resolve the issue.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    I hope this helps.
    -Jason

  • Exchange Mails are not getting updated properly without refreshing

    From couple of days, exchange mails are not getting updated properly without refreshing.
    Kindly suggest.

    Kindly suggest a solution

  • When you turn on the ipad2 it does not start up properly.  The rotating disk that happens when you turn off the ipad appears after the apple logo comes up

    When you turn on the ipad2 it does not start up properly.  The rotating disk that happens when you turn off the ipad appears after the apple logo comes up during start-up and stays there for ten minutes.  Then, the ipad will start up properly.

    Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • HT1296 I am trying to sync contacts from my iPhone to Mac.  When I plug in my iPhone, I do not get the Info tab in iTunes (as mentioned in how to sync on this website).  How can I get the info tab to appear?

    I am trying to sync contacts from my iPhone to Mac.  When I plug in my iPhone, I do not get the Info tab in iTunes (as mentioned in how to sync on this website).  How can I get the info tab to appear?

    Since the release of Mavericks (OS X 10.9) syncing contacts and calendars with a Mac via iTunes is no longer supported. The currently supported method is via iCloud. Setup instructions: http://www.apple.com/icloud/setup/

  • No records retrieved error when records are there?

    Hi
    This is frm-40350 No records retrieved and it is happening on the detail block even though records are retrieved.
    I am currently testing an enhancement to an existing form that can be called by other forms. I noticed that when calling this form from another, when it is populated with global values the cursor then goes to the detail block and I get the error message at usual place at bottom of screen. There is a new form instance procedure that puts cursor in details block as below. I think this is because the detail block records are only meant to be changed so if a user goes in to that form it puts cursor in the details block.
    BEGIN
    go_block('master');
    IF :CG$CTRL.form_called_from IN ('FORM_X', 'FORM_Y') THEN
    execute_query;
    go_block('detail');
    ELSE
    enter_query;
    END IF;
    END;
    The code above is existing and I have not changed it. I was making a small enhancement to my form in another area that will not have created any such problems as this. it operates ok apart from this error message. Why is it producing this error message?
    Thanks
    user605593

    Hi,
    Basically its not an error message....Its just informative message....according to this your trying to fetch some data from the table that is not there or your search query retrives no rows from the table.....
    If this message is not causing any problem to your operation then you can supress this message by writing the following code in pre-form,
    :SYSTEM.MESSAGE_LEVEL := 5;
    :SYSTEM.SUPPRESS_WORKING := 'TRUE';
    and write the following code in post-form
    :SYSTEM.MESSAGE_LEVEL := 0;
    :SYSTEM.SUPPRESS_WORKING := 'FALSE';
    Thanks,
    Pavan.

  • IMovie moving audio clips when transitions are added

    iMovie moving audio clips when transitions are addedI have some video clips that need simple fades to black added at the end. However, whenever I add the fade out transition, iMovie does something insane. Instead of the last two seconds of video fading to black and the last two seconds of audio fading out, it seems that a random two seconds of audio from elsewhere in the clip is tacked onto the end and faded. This problem is nuts and I am having no luck finding a solution. Does anyone have one? This has happened with other transitions, but I’d settle for just getting a fade to black to work properly. Is this only a problem with Intel machines?

    The problem that you describe has come up frequently on this forum. There are lots of things people have tried, but no solution has been found, other than the workaround of extracting the audio, as Klaus 1 mentions, and manually adjusting the fade out. Some feel that it is an intel machine problem, but that is not clear.
    For more information on this issue, try using the search function of this forum, typing in "audio echo with transitions", or some other appropriate search words. You might find of interest the information contained in the following post:
    http://discussions.apple.com/message.jspa?messageID=5681815

  • Dynamically populated dropdown values are missing when instances are added

    HI Team
    I have a subform which is repeatable have  a drop down  as one of the field which is dynamically populated from the web service call(short lived process) from the DB.On initialize event of the subform the data connection is executed .Dropown is populated with the values but when an instance of subform is added the dropdown values are missing.
    Only in the first instance of a subform  dropdown values are showing up , when instances of subform is added the drop down values are missing.
    Please let me how can i solve this issue,
    Thanks in Advance
    Bharathi

    I've tried this option by adding some value (hard-coded) during initialize event of the subform and all values are populated in the newly added instances as well.
    Not sure why it's not working for you.. Can you try adding some sample values without calling web service and confirm if it's working?

  • Syndication only when records are updated, but ONLY for selected fields

    again with one of my : it's that even possible at all ?
    the case, we have a customer repository where, among other things we add some extra info (classification ABC and similar mainly) to a small percentage of them (around 5 - 10 %)
    and we would like to distribute only those changes, changes in few fields
    of course we load plenty of fields from R3 and other systems, and also we modify records to assign the customers to different business organization that have to look after, this assignments change also very often (it can affect to 30 to 40 % of the customers). All this data does not need to be distributed.
    so in figures (as example to easier understand), weekly base :
    _ 250.000 _ aprox records in MDM
    _ __ 1.000 _ new records every week from source systems
    _ __ 8.000 _ updated records every week from source systems
    _ ______________(yes, big number, some marketing attributes and soft stuff they like to see in MDM)
    _ ____ 100 _ aprox are "enhanced" with data we need to distribute
    _ __ 50.000 _ aprox records are re-assigned or reclassify with data we do NOT need to distribute
    _ ______________(mostly done with assignments and so on that keep changing every week)
    so, even selecting "suppress unchanged records", MDM keeps distributing like 60.000 records, when we only need those 100.
    is any direct way to make this ??
    as a work-around, I have think into a workflow that in a way flags a new field (to_be_distributed) always and only when a user change one of this specific fields. And then filter the distribution for only this field = True. And another workflow that set the mention field to False, just after the distribution is done.
    Crazy idea ??, anything better ??
    (we are in MDM 5.5, if the solution require 7.0, migration plans are in the horizon)
    thanks in advance, everybody

    Hi,
           We had the same scenario where in we have to Syndicate only certain Fields to Legacy...As per your scenario add classification data to your Existing Customer repository. Next steps is to create a map for the classifications data...You write your own conditions in FreeForm search of MDM Syndication. Whenever certain conditions are satisfied, MDM system will syndicate. 
    Next - Option - If you are implementing work flow then create a extra field called Syndicate_Legacy. Syndicate_Legacy should be Flat LookUps .Values should be Syndicate,No Syndicate.  Before end of the WF, you should have  a assignment step. By using assignment change the value to Syndicate or Not syndicate. For this , along with map you should also write a condition in Free form search in syndicator stating that only if Field(Syndicate_Legacy) = Value(Syndicate). I believe these should solve your issue...If not please let me know...
    Thanks
    Ganesh Kotti

  • User pictures are not shown when users are added to person field in custom list

    Hi,
    Recently we have migrated our intranet from SP2010 to SP2013. We upgraded User profile service application, My sites and Intranet site to new environment. We haven't upgraded sites to use SP 2013 templates due to some business decisions. Everything
    is working fine and as expected.
    There are few lists in our environment where we have added users in a persons fields and allowed to show their pictures with details along with name. these user pictures are not being shown on to the page. After looking in picture property I found that "white
    Space" in a picture library name is replace by %2520 instead of %20 (/user%2520photos/profile%2520pictures).
    I tried reproducing problem on a new team site with SP 2010 template and it is reproduced however it is not occurring for a team site with SP 2013 template.
    Any suggestions would be very helpful for resolving this issue. Thanks in advance.
    -Amol Meshe

    We are experiencing the same issue. We get a /User%2520Photos/Profile%2520Pictures/ path anytime we use the people picker field with the option to display picture or the picture and details option.
    EDIT: This is only a problem on the list view. If you open the display form the image shows just fine. I can't see any setting view Edit Page and updating the web part that contains the list data to correct this.
    Michael Allen (.NET and SharePoint 2010 Developer)

  • If Records of different list items are entered, then the data is not getting inserted in the table.

    Hi Everyone,
    A Very Very Happy, Fun-filled, Awesome New Year to You All.
    Now coming to the discussion of my problem in Oracle Forms 6i:
    I have created a form in which the data is entered & saved in the database.
    CREATE TABLE MATURED_FD_DTL
      ACCT_FD_NO    VARCHAR2(17 BYTE)               NOT NULL,
      CUST_CODE     NUMBER(9),
      FD_AMT        NUMBER(15),
      FD_INT_BAL    NUMBER(15),
      TDS           NUMBER(15),
      CHQ_NO        NUMBER(10),
      CREATED_DATE  DATE,
      CREATED_BY    VARCHAR2(15 BYTE),
      PREV_YR_TDS   NUMBER(15),
      ADD_FD_AMT    NUMBER(15),
      DESCRIPTION   VARCHAR2(100 BYTE),
      P_SAP_CODE    NUMBER(10),
      P_TYPE        VARCHAR2(1 BYTE)
    The form looks like below:
    ENTER_QUERY     EXECUTE_QUERY     SAVE     CLEAR     EXIT
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    PREV_YR_TDS
    TDS
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CHQ_NO
    DESCRIPTION
    R
    W
    P
    List Item
    There are 5 push buttons namely ENTER_QUERY, EXECUTE_QUERY, SAVE, CLEAR, EXIT.
    The table above is same as in the form. All the fields are text_item, except the P_TYPE which is a List_Item ( Elements in List Item are R, W & P).
    The user will enter the data & save it.
    So all this will get updated in the table MATURED_FD_DTL .
    I am updating one column in another table named as KEC_FDACCT_MSTR.
    and
    I want this details to get updated in another table named as KEC_FDACCT_DTL only if the P_TYPE='P'
    CREATE TABLE KEC_FDACCT_DTL
      FD_SR_NO                NUMBER(8)             NOT NULL,
      FD_DTL_SL_NO            NUMBER(5),
      ACCT_FD_NO              VARCHAR2(17 BYTE)     NOT NULL,
      FD_AMT                  NUMBER(15,2),
      INT_RATE                NUMBER(15,2),
      SAP_GLCODE              NUMBER(10),
      CATOGY_NAME             VARCHAR2(30 BYTE),
      PROCESS_YR_MON          NUMBER(6),
      INT_AMT                 NUMBER(16,2),
      QUTERLY_FD_AMT          NUMBER(16,2),
      ITAX                    NUMBER(9,2),
      MATURITY_DT             DATE,
      FDR_STAUS               VARCHAR2(2 BYTE),
      PAY_ACC_CODE            VARCHAR2(85 BYTE),
      BANK_CODE               VARCHAR2(150 BYTE),
      NET_AMOUNT_PAYABLE      NUMBER,
      QUATERLY_PAY_DT         DATE,
      CHEQUE_ON               VARCHAR2(150 BYTE),
      CHEQUE_NUMBER           VARCHAR2(10 BYTE),
      CHEQUE_DATE             DATE,
      MICR_NUMBER             VARCHAR2(10 BYTE),
      PAY_TYPE                VARCHAR2(3 BYTE),
      ADD_INT_AMT             NUMBER(16,2),
      ADD_QUTERLY_FD_AMT      NUMBER(16,2),
      ADD_ITAX                NUMBER(16,2),
      ECS_ADD_INT_AMT         NUMBER(16),
      ECS_ADD_QUTERLY_FD_AMT  NUMBER(16),
      ECS_ADD_ITAX            NUMBER(16)
    So for the push button 'Save' , i have put in the following code in the Trigger : WHEN BUTTON PRESSED,
    BEGIN
         Commit_form;
              UPDATE KEC_FDACCT_MSTR SET PAY_STATUS='P' WHERE ACCT_FD_NO IN (SELECT ACCT_FD_NO FROM MATURED_FD_DTL);
              UPDATE MATURED_FD_DTL SET CREATED_DATE=sysdate, CREATED_BY = :GLOBAL.USER_ID WHERE ACCT_FD_NO = :acct_fd_NO;
    IF :P_TYPE='P' THEN
         INSERT INTO KEC_FDACCT_DTL
              SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
                   GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
                   FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
                   MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
                   NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
              FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
         WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
    END IF;
    COMMIT;
         MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
         MESSAGE(' ',no_acknowledge);
    END;
    If P_TYPE='P' , then the data must get saved in KEC_FDACCT_DTL table.
    The problem what is happening is,
    If i enter the details with all the records as 'P' , the record gets inserted into the table KEC_FDACCT_DTL
    If i enter the details with records of 'P' and 'R' , then nothing gets inserted into the table KEC_FDACCT_DTL.
    Even the records with 'P' is not getting updated.
    I want the records of 'P' , to be inserted into table KEC_FDACCT_DTL, even when multiple records of all types of 'P_Type' (R, w & P) are entered.
    So, can you please help me with this.
    Thank You.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    Oracle Forms Builder 6i.

    Its not working properly.
    At Form_level_Trigger: POST_INSERT, I have put in the following code.
    IF :P_TYPE='P'THEN
      INSERT INTO KEC_FDACCT_DTL
      SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
      GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
      FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
      MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
      NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
      FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
      WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
      END IF;
    MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
    MESSAGE(' ',no_acknowledge);
    It worked properly when i executed first time, but second time , in database duplicate values were stored.
    Example: First I entered the following in the form & saved it.
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    PREV_YR_TDS
    TDS
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CHQ_NO
    DESCRIPTION
    250398
    52
    50000
    6000
    0
    600
    0
    45415
    P
    5678
    int1
    320107
    56
    100000
    22478
    3456
    2247
    0
    45215
    R
    456
    320108
    87
    50000
    6500
    0
    650
    0
    21545
    W
    0
    In the database, in table KEC_FDACCT_DTL, the ACCT_FD_NO:250398 with P_TYPE='P' record was inserted.
    ACCT_FD_NO
    P_TYPE
    250398
    P
    But second time, when i entered the following in the form & saved.
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    PREV_YR_TDS
    TDS
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CHQ_NO
    DESCRIPTION
    260189
    82
    50000
    6000
    0
    600
    0
    45415
    P
    5678
    interest567
    120011
    46
    200000
    44478
    0
    4447
    0
    45215
    R
    456
    30191
    86
    50000
    6500
    0
    650
    0
    21545
    W
    56
    In the database, in the table KEC_FDACCT_DTL, the following rows were inserted.
    ACCT_FD_NO
    P_TYPE
    250398
    P
    250398
    P
    260189
    P
    320107
    R
    320108
    W
    There was duplicate of 250398 which i dint enter in the form second time,
    All the other P_TYPE was also inserted , but i want only the P_TYPE='P' to be inserted into the database.
    I want only those records to be inserted into the form where P_TYPE='P' and duplicate rows must not be entered.
    How do i do this???

Maybe you are looking for

  • Info on JVC KD-HDR50 & Pioneer DEH-P3100U​B

    :smileyhappy:Hello I need help.  I'm buying a radio for my car and I'm torned between JVC KD-HDR50 & Pioneer DEH-P3100UB.  Does either of these scroll the artist name and song name at the same time when using the Satellite mode (I have XM that I will

  • I can't synchronize my iPhone 4 with the IOS 5 using the WIFI.

    When I try to synchronize my iPhone with iTunes using the WIFI, I read a message in the iPhone related the OEM-98B80279E76. And the button is not available.

  • HTML br tag modifications

    Hi all, I'm working on an editor that allows users to enter some notes. I use a JEditorPane with a HTML document and editor kit. The problem is that the data is saved in an XML file so the Document needs to be well formed. Now my question. How can I

  • How to execute dynamically created procedure with out parameter

    hi guys , friend i have to execute a procedure whose name is going to change dynamically and this procedure is have 2 out parameter . I need to capture value of these 2 output parameter, here i m giving my code also .. declare v_emp_id int :=100013 ;

  • Probleme mit CS5 auf MacOS: Illustrator, InDesign, Photoshop

    Hallo zusammen, da es für CS5 wohl keinen telefonischen Support mehr gibt suche ich hier um Hilfe. Wir kämpfen seit geraumer Zeit mit diversen Problemen. Wir setzen bei uns in der Grafikabteilung iMacs (27") mit OSX 10.8 (neuster Patchstand) und Adob