Re-freshing the detail form --- not so straightforward is it?

hi there
this is my problem:
i have a master-detail form. Now this form basically provides the user the option to enter some parameters, which decides the number of rows to be entered in the detail.
master form: qty and starting serial number.
when he hits generate in master form, there are qty no. of records inserted in the detail table, but its not displayed in the detail form.
if i query the record, the updated detail form is shown.
so how can i make it so that when the user hits generate, the form detail part is automatically updated.
eg.
if the qty was 5 and thus there are 5 records(or serial nos.) in the detail, if he changes the qty to 8 and hits generate.. the detail block.. should update itself and show the 3 new records.
thanks

declare
     SERIAL_STRING VARCHAR2(50);
     trimmed_prefix varchar2(50);
     last_sr_no number(38);
     trav number(38);
     tab_ref number(10);
begin
     IF :mytable.TABLE_REFERENCE = -1 THEN
          select last_number into tab_ref from user_sequences where SEQUENCE_NAME = 'mytable_SEQ' ;
     ELSE
          tab_ref := :mytable.TABLE_REFERENCE;
          delete from mytable_updated GU where GU.table_reference = tab_ref;
     END IF;
     IF :mytable.VOUCHER_NO IS NULL OR
          :mytable.REF_NO IS NULL OR
               :mytable.USER_ID IS NULL OR
                    :mytable.QTY IS NULL OR
                         :mytable.PREFIX IS NULL OR
                              :mytable.START_# IS NULL
     THEN
          MESSAGE('ERROR:666746-ATOU : Please enter all the information');
     ELSE
               trimmed_prefix := RTRIM(LTRIM(:mytable.prefix));          
               last_sr_no := :mytable.start_# + :mytable.qty - 1;
               trav := :mytable.start_#;
               while trav <= last_sr_no loop
                    serial_string := trimmed_prefix || trav;
                    insert into mytable_updated values ( :mytable.voucher_no,:mytable.ref_no, :mytable.user_id, :mytable.item, 1, serial_string, tab_ref);
                    trav := trav + 1;
               end loop;
               :mytable.sr_updated := 'Y';                    
          :mytable.sr_no_start := trimmed_prefix || :mytable.start_#;
               :mytable.sr_no_end := trimmed_prefix || last_sr_no;
          do_key('commit_form');
          go_block('mytable_UPDATED');
          execute_query;
     END IF;          
end;
thanks for ur time in going throught this code..
do_key('commit_form');
          go_block('mytable_UPDATED');
          execute_query;
this bit... i save the changes and then go to the detail block as u suggested and execute query. it should update the records in the detail table... it works when i update the master record when i have do enter query . but when making new records... it does not work?
any idea why?

Similar Messages

  • Master details form: in the details form the List of values is not working

    The master details have an upper form and a lower form OK
    So, the List of values of values in the upper is working fine,
    the lower form or the details form the list of values not working on it and the code is right, and mean not working like when you press on it its not showing any thing
    also is work on a regular form like a tabular form .
    so please help !!!
    Edited by: user8925579 on May 12, 2011 2:28 PM
    Edited by: user8925579 on May 12, 2011 2:37 PM
    Edited by: user8925579 on May 12, 2011 2:37 PM

    SOLVED
         CMC -> Connections
    -     Right click connection name, Click u201CTools > Check Relationshipu201D
    -     In u201CQuery Resultsu201D, Right click Connections, Click u201CUser Securityu201D
    -     Assign Security for u201CEveryoneu201D
    -     UNTICK both Inherit from Parent Folder and Inherit from Parent Group
    -     Assign u201CView on Demandu201D
         CMC -> Universes
    -     Right click u201CUniversesu201D folder, click u201CPropertiesu201D
    -     Under u201CUser Securityu201D, click Everyone and assign security
    -     UNTICK both Inherit from Parent Folder and Inherit from Parent Group
    -     Assign u201CView on Demandu201D

  • Custom Master Detail form not working In EBS

    Custom Master Detail form not working In EBS
    Hi all,
    I have two custom tables -- 1) XXX_DIE_Headers
    2) XXX_DIE_LINES
    I developed a Master Detail form based on above tables. XXX_DIE_Headers is the Master Block (Single record) & XXX_DIE_LINES is the detail block ( Multi line block ).
    Yes, I used Appstand,Template.fmb for developing this form. The Master block has three fields out of which Two are required fields and i have given initial value for them.
    As i deployed it in APPS(EBS),everything about it is working fine (insert,delete,master-detail behaviour) except querying.
    When i press F-11 , It pops up a message "Do you want to save changes you have made" Choice - yes,no,cancel.
    I don't want this message to pop up.
    The scenario is :- I open the form.( without entering ) Press F11 . The message Pops up.
    Please give me suggession on how to work it around so as form directly goes to query mode ,without popping the message.
    regards
    ravi

    It seems that you are changing a database value in your form, do you have any changes in WHEN-NEW-FORM-INSTANCE???
    what the form is trying to tell you that you have changed something, do you want to save it?
    I suggest you debug your form and see what's happening step by step.
    Tony

  • Problems with Master-Detail Form not retrieving Detail Rows

    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.

    I experienced performance problems. The simpiest MD form takes about 10 secs. to requery. I's not answer to your question, but there is more problems with this concept.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Michael Finch ([email protected]):
    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.<HR></BLOCKQUOTE>
    null

  • Hi Can anyone tell me that where can I find the details of note 870314.1

    Hi All
    Can anyone tell me that where can I find the details of note 870314.1?
    Thanks!!!!

    Check this
    https://support.oracle.com/epmos/faces/KmHome?_adf.ctrl-state=13qp3oaqpp_14&_afrLoop=413661905932923
    Go to Knowledge Tab and there you can access these all stuff.
    Thanks,

  • Please send the details of Notes-note-184754,407485

    Hai
    Please send the details of Notes-note-184754,407485 to [email protected]
    I will assing the points
    kumar

    Hi check it here.
    <b>184754</b>
    Summary
    Symptom
    CAUTION: THIS NOTE WAS REPLACED. FOR MORE UP-TO-DATE, COMPREHENSIVE INFORMATION SEE NOTE 886102.
    You want to copy a single BW System of a system group using a database copy. After the copy, you want to have a functional BW source system connection.
    Refer to Note 325525. This helps you to select the correct procedure for your scenario. Also note that there are several ways to carry out the actual copy procedure. This is not covered in this note. Refer instead to the URL http://service.sap.com/solutionmanagerbp.
    Other terms
    Database copy, source system, BW, connection, refresh
    Reason and Prerequisites
    There are three scenarios:
    1. You want to install a new BW (referred to below as "target BW") by copying an existing BW (referred to below as "original BW"). That is, you import the copy onto an empty computer.
    2. You want to replace an existing BW (henceforth "old BW"), by copying a different BW (henceforth "original BW"). That is, a BW was already installed on the target host (the old BW). We will call the copy of the original BW "target BW". There are two different scenarios here:
    a) You are still in the planning phase of this step, that is, you have not yet made the copy.
    b) You have already overwritten the old BW with the copy of the other BW.
    Solution
    You must perform ONLY THE STEPS required for YOUR SCENARIO.
    Scenario 1): In 1.2B, create a transport request in the original BW that contains all source system-dependent objects for all R/3 and DataMart source systems. The object types are ISMT, ISTT and ISTS. Note that the ISTS object (the transfer structure) may contain routines that must be transported as separate objects (Object Type ROUT).
               As of BW 2. 0A, you are supported by the BW transport link, grouping "Backup for system copy". Select the R/3 and DataMart source systems in the source system filter and collect the source systems using the Drag and Drop function.
               If you use type PSADELETE processes, also add these to the transport request.
    Scenario 2)a): Create the described transport request in the old BW.
    Scenario 2)a): In the old BW, delete all R/3 and DataMart source systems in the Administrator Workbench source system tree.
    Scenario 1), 2)a) and 2)b): Import the copy.
    Scenario 1), 2)a) and 2)b): In the target BW, change the contents of the "target host" field in all RFC connections (destinations) for R/3 and DataMart source systems (Transaction SM59) to a nonsensical, nonexistent address (such as 'nowhere'). Then, delete ALL R/3 and DataMart source systems in the Administrator Workbench source system tree. Caution: This step deletes all PSA tables of these source systems - the data is lost. A message is generated stating that the source system cannot be accessed (since you deleted the host of the RFC connection). Select "Ignore".
    Scenario 2)b): Change to the source systems connected to the old BW and THERE delete the connection (in the source system) to BW. To do this, change to Transaction SE37 - RSAP_BIW_DISCONNECT function module  Sngl. test. Parameter I_BIW_LOGSYS = <name of BW>, I_OLTP_LOGSYS = <name of the source system>, I_FORCE_DELETE = 'X'.
    Scenario 1): If you want to connect the target BW to one or more source systems that are also connected to the original BW, assign a new logical system name (Table T000) to the target BW. However, we recommend that you follow Note 184447 when designing the system environment.
    Scenario 2)a) and 2)b): Assign the same name to the target BW system that was assigned to the old BW system (logical system name, Table T000).
    Scenario 1), 2)a) and 2)b): If you have just renamed the BW, execute Transaction BDLS to convert all relevant tables to the new logical system name. To do this, refer to Notes 121163 and 369758.
    Scenario 1): Connect the required source systems. (Administrator Workbench - Source systems)
    Scenario 2)a) and 2)b): Connect the source systems, that were connected to the old BW. (Administrator Workbench - Source systems)
    Scenario 1) and 2)a): Import the request created above. Bear in mind the special CTS features for the source system-dependent objects (system changeability in connected systems; View V_RSLOGSYSMAP).
    Scenario 2)b): Recreate the transfer structures/transfer rules and activate them.
    Header Data
    Release Status: Released for Customer
    Released on: 20.03.2007  15:58:10
    Priority: Correction with medium priority
    Category: Consulting
    Primary Component: BW-WHM-DST-SRC Source Systems
    Releases
    Release Independant
    Related Notes
    886102 - System Landscape Copy for SAP BW 2.X, 3.X and NW2004s BI
    733623 - Oracle export/import for BW system copies
    524554 - Storing destinations in the BW environment
    369758 - BDLS: New functions and better performance
    325525 - Copying and renaming systems in a BW environment
    127326 - CTS for InfoSources, update rules ...
    121163 - BDLS: Converting logical system names
    <b>
    40785</b>
    Summary
    Symptom
    You are transporting BW objects that are heavily linked with each other so that several requests are necessary.Objects of a request are using objects which are locked on other requests.
    In the target system, errors arise during the method execution of requests with BW objects (return code 8).The messages indicate that objects are required which do not exist in the target system and are also not contained on the request.
    For example, you transport an object with attributes, but the attributes are not transported nor are they available in the system.In the log, message R7322 appears: 'Attribute &1 from characteristic &2 not (actively) available'. As a result, an InfoCube cannot be activated if InfoObjects are missing and so forth.
    Additional key words
    CTS, transport link, AWB, object collector
    Cause and prerequisites
    You collect objects with the transport link of the Administrator Workbench and then write these to a transport request.In the process, all objects which have not yet been transported are marked (development class $TMP). Or you install Business Content and write the installed objects directly to a request.
    Objects with a different development class (not $TMP) are also gathered but they are not marked because the system assumes that these have already been transported and are then subject to automatic recording.If you are not sure whether these objects already exist in the target system, you can mark the objects.The system then writes them to the request and transports them (once again).
    It could happen that objects that are locked on another request have been collected.You can recognize this by the column "Transport request" in the window with the collected objects (you may have to expand the tree with the collected objects completely). You should always release the requests beforehand, that means prior to the request that is being compiled.
    This is because these objects are needed by objects that the system is now collecting, but do not yet reside in the target system or do not yet reside there in their most current version. If you import the request which the system is collecting prior to the other request, then the errors described in the symptom section of this note.
    Solution
    Proceed as follows if you are using the object collector:
    Collect the objects
    expand the tree with the collected objects completely
    Release all requests that are displayed in the 'transport request' column.
    Only then release the request with the objects that are being currently collected.
    As of Support Package 16 this approach is simplified even further.In this case, a log with the following messages is displayed after writing the collected objects:
    'Objects which are locked on a different transport request' (Message RS0305).If you expand this message, you receive a list of all objects which are locked on other requests.
    'Transport requests which must be released first' (Message RS0306).If you expand this message, you receive a clear summary of the requests which must be released before the request currently being compiled.Here the system simply summarizes the requests from the previous list that still contain dependent objects.
    Thus, as of Support Package 16 you no longer have to expand the tree completely and search for linked requests.
    Source code corrections
    Header Data
    Release Status: Released for Customer
    Released on: 05.09.2001  22:00:00
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: BW-SYS Basis System and Installation
    Secondary Components: BW-BEX Business Explorer
    BW-WHM Data Warehouse Management
    Releases
    Release Independant
    Highest Implemented Support Package
    Support
    Packages Release Package
    Name
    SAP_BW 20B SAPKW20B19
    SAP_BW 20B SAPKW20B20
    Related Notes
    125499 - Activation error after transport of BW objects
    <b></b>

  • Flashbuilder 4.5 datagrid Generate Details Form not working

    flashbuilder 4.5 in datagrid when you right click the Generate Details Form
    is not there. Where is it?

    I see what you're saying. Right-clicking on an mx.controls.DataGrid in design view has a Generate Details Form option. Right-clicking on a spark.components.DataGrid in design view does not have this option.
    Let me ask around and get someone to reply with more information.
    Regards,
    Randy Nielsen
    Senior Content and Community Manager
    Adobe Systems Incorporated

  • Master Detail Form - How 2 update a field in the Detail form using a query?

    Hello,
    I have a master detail form with, each master record having a fixed(6) number of detail records. One of the fields in the detail record is the PART_DESCRIPTION field. I am trying to update this field by querying Table_X. TABLE_X is in the format of (desciption id, description). Description id runs from 1 to 6.
    When the form displays, the PART_DESCRIPTION field for the 6 detail records needs to be automatically populated with the six values of description stored in Table_X. How can this be done?
    Tried using session storage objects, but made no headway.
    Would greatly appreciate pointers on how to go about doing this.
    Thanks.
    Dev

    If you are on a Portal Version lesser than 3.0.9.8.3, then please try the following to populate
    the PART_DESCRIPTION field.
    Steps:-
    1> Edit the form and go to the Additional PL/SQl section and put the following code in the
    "...after displaying the page area" :-
    declare
    type t_vc_arr is table of varchar2(4000) index by binary_integer;
    l_arr_desc t_vc_arr;
    l_form_name varchar2(200);
    l_form_state varchar2(500);
    begin
    l_form_name := p_session.get_module().get_name();
    l_form_state := p_session.get_value_as_varchar2(
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE'
    if l_form_state = 'QUERY_AND_SAVE' then
    select description
    bulk collect into l_arr_desc
    from <schema>.table_x;
    htp.p('
    <script>
    var descArr = new Array();
    var Fidx = 1;
    var formObj = document.WWVM'||p_session.get_id()||';
    var fieldName = "'||l_form_name||'.DETAIL_BLOCK.PART_DESCRIPTION.0";
    for i in 1..l_arr_desc.count loop
    htp.p('descArr['||to_char(i-1)||']="'||l_arr_desc(i)||'";');
    end loop;
    htp.p('
    for (var i=0; i < formObj.length; i++){
    if (formObj.elements.name == fieldName+Fidx){
    formObj.elements[i].value = descArr[Fidx-1];
    ++Fidx;
    htp.p('</script>');
    end if;
    end;

  • Apex 4.1. cannot see the details of not null validations generated by apex

    Hi there,
    I have worked with APEX 3 quite a while. Now I move to new place, and they use APEX 4.
    I am currently doing the Advanced Tutorials - Issues Tracker (written for 3.2 ) on an APEX 4.1.
    I am quite impressed with a lot of enhanced features of APEX 4.
    However, I think I got quite confused about the NOT NULL vaildations.
    In the tutorials, they said when creating a form based on a tablle of which the columns have NOT NULL constraint, it will automatically generate NOT NULL validation.
    But when I extend the validation section (in both Component View and Tree View), I cannot see any vaildation there.
    So I go a head and create some NOT NULL validations for all NOT NULL fields.
    Guess what, when I test the form, I got duplicate error messages.
    I get these
         6 errors have occurred
    Project Name must have some value. (Go to error)
    Start Date must have some value. (Go to error)
    Target End Date must have some value. (Go to error)
    Please provide project name. (Go to error)
    Please provide project start date. (Go to error)
    Please provide target end date. (Go to error)
    My validation has error message "Please provide project name" while the automatic one has "Project Name must have some value".
    The issue is I cannot find where the automatic validation is.
    What if I want to customise the error message rather than just "#Label# must have some value".
    Do any of you have any ideas why ?
    I guess I must have chosen something wrong during page generation.
    It could be quite simple but I don't know where to find the place that turn on/off the automatic not null validation, or at least customize these automatic error messages.
    I currenly develop the application using workspace admin account.
    Thanks a lot in advance.
    Ann

    I found it. Turn out to be the Settings, choose No for Required Value.

  • FDF Returns the entire form not just user input

    Using the properties dialog box on a submit button I set my form actions to return 'FDF Include' which according to the help menu will only return the results of the user input and not the entire filled out form. I only want user input because I plan to embed each results file in a website.Unless I am misunderstanding what should happen, it is not working. It is returning the entire form.  I would appreciate any help or tips anyone has to offer. If I'm doing it wrong and there is another way, please let me know. I just want to see the answers in the form fields, not the entire form.  Thanks!
    http://help.adobe.com/en_US/acrobat/X/pro/using/WSBB6EF75F-BC3D-4094-B787-FB76DAE1EBDC.w.h tml

    Thanks so much for your assistance. I made a form, and then set the distrubuted settings to email me the form when submitted. I posted it to our intranet and then tested it. The form I posted is the 'distributed' form that Acrobat made from my original form. I posted it on a public site so you can have a look. Here is a link.  This should allow you to download it instantly. If not, remove everything from the question mark to the end and then paste that link into a browser. I checked and double checked everything, but maybe I am missing something.
    https://sites.google.com/site/ccpsgadgets/xml-documents/pbl%20form_distributed.pdf?attredi rects=0&d=1

  • Fields on the Dunning form not printed/showed after Upgrade

    Dear All,
    my client has finished SAP Upgrade from 4.6c to ERP 6.0 version.
    We are using form u201CZ u201CCompanycodeu201D_Dunn_001u201D
    The problem is by dunning (exactly by showing the dunning correspondence) we don't see any Document Number, Doc Dates, Currency or amount. We do see the sum of the amounts to be dunned.
    The table "mhnd" is filled and I thought maybe it is the tabs between the lines. the tabs are the same in both versions of the forms.
    could someonbe help!! Thanks in advance..
    Bye
    Morteza

    Hi Spencerjw,
    I'm having a similar problem (not exactly the same --- but seems that maybe we're having symptoms of the same root problem):
    I use my iPhone to teach for the a University online. We facilitate courses partially through online message boards. As of about a week ago, when I click "Reply" to a message in a thread, the screen loads as normal, but when I tap in the message box, it just blinks --- like I was clicking on a dead hyperlink or something. It no longer gives me a cursor and keyboard.
    The phone has worked great up until about a week ago. I've used the same page/features several times without a problem.... until now.
    I tried Resetting my phone - twice (that's all the Tech Support lady could suggest) and no dice. Another of my colleagues is having the same problem too, so it's not just a bad phone. I have tried clearing the Cache, History, and Cookies, but no change.
    I turned the DeBugging Console on, and got this HTML Error record: "...<input> is not allowed inside <tbody>...".
    Frustrating
    (Note: I have installed 2.0; I have the Edge iPhone, not the new 3G one).

  • Master-detail form not populated

    Hello,
    i have created a data block on my ELEVI table, and then another data block on ELEVI_CLASA table, table which contains (id_elevi, id_clasa, start_date, end_date). at Master-Detail section i have specified the join condition,
    ELEVI_CLASA.ID_ELEVI=ELEVI.ID
    in the WHEN-NEW-FORM-INSTANCE trigger i have
    begin
    go_block('elevi');
    execute_query;
    end;but the block ELEVI is populated, without being populated ELEVI_CLASA too (that 4 fields).. when i run the form it points to the first item from ELEVI_CLASA and tells me that "Field must be entered". Why happens this?
    Thanks

    Sorry if i'm asking this, but how should i see that last query? when i created the second data block, ELEVI_CLASA, in master-detail section i joined these 2 tables, ELEVI and ELEVI_CLASA

  • When I try to print a picture from iPhoto, all of the detail is not shown...any ideas?

    So I design a nice card in iPhoto, and then I try to print it - all of the design disappears and only the text is visible.
    To view the full card design do I have to purchase the card and have it delivered?

    Tried. If I directly print, or save as a PDF, the design is either:
    a) lost
    b) replaced with the design of another card
    c) just goes blank
    I've had this problem ever since updating to the most amazing operating system in the world (Lion...) ahem...
    All of the Lion computers at my university also have this same issue...I have no idea how to remedy it.

  • How to configure details form in the Timekeeper Entry screen

    Hi All,
    I am using Payroll Timecard Layout. Currently I have a requirement to configure the details form in the timekeeper entry screen to accomodate the timekeepers to enter additional 2 fields of information along with the comments in the details form.
    Can anyone please help me how could we display additional 2 fields in the details form in the timekeeper entry screen.
    Navigation - Timekeeper Entry - Details (Button).
    Thanks,
    Ramprasad.

    Refer to Metalink Note 220583.1

  • XML-form shown in the Browser but not in iView

    Hi,
    I am exploring xml-builder, was able to create a project, save the form and can even use the form from the New 'New Project' in the browser, saved my news item. But the news item is not shown on the iView, though I can edit it (I only see the functions 'edit', 'sent to', etc. Can you please tell what I am missing to do properly? I am using JRE 1.4.
    thanks a lot
    Marcos

    Hi Marcos,
    is it possible that you only have created the edit form, not the corresponding Show/RenderListItem/ListShow form for showing up the content?!
    Hope it helps
    Detlev

Maybe you are looking for

  • How to use a stored procedure in oracle reports

    How to use a stored procedure in oracle reports

  • Changing names of songs

    I have a mac book and I put a CD in and all that came up was "Track 1, Track 2, etc." for the song title. I know the names of the songs and I know how to do it on a PC, but, I cannot figure out how to do it on a Mac book. Please respond.

  • Full Screen Mode Not Working In iTunes

    With the latest iTunes update, when I play anything in "Full Screen" mode, I get the black background with this tiny (smaller than a postcard) picture. Anyone else having the same problems? Any suggestions? This problem never happened before. Seems t

  • Send  to external web address

    Hi Experts,      How to send the information to external web address ? Is it need some settings? because i need to send some PO details . Thanks Kelvin

  • Can anyone help with a version of tp = 340 - the one on SMP not working

    Hello. we need a 640_EX2 (64bit UC) tp equal or higher then Version 340 to get the upgarde prpare moving again. Unfortunatly the Version 352 on SMP seems to be corrupt. Would anyone have one that could be emailed? Ta. Andi