Refresh view forms after change records in db?

Hello,
I have problem with refresh view in master-detail form. If I press button with trigger which inserts records in master and detail table, I see change only in master table in forms. In trigger is clause execute_query; but it doesn't work. If I refresh internet search (internet explorer) then I see change in all tables, but I want see this changes after press button with trigger.
Any suggestion?
regards Psiezul

This is large trigger and I make simplest this code.
There are two tables: sprawy and watki. Table sparwy is master table and watki is detail table. And button with trigger is on master object in forms.
DECLARE
BEGIN
SELECT * INTO rekord_sprawa FROM sprawy WHERE .......;
--some changes on records rekord_sprawa, and save this records in DB.
INSERT INTO sprawy(........) VALUES(.......);
COMMIT;
In this palce is ok and I see changes on my form in IE.
Under are records which are inserted in database, but I can't see this changes in form.
If I take count_query, then I get message that there are new records, but if I press execute_query, forms told my that, there aren't any records ! In DB are all records which I inserted. But If I click refresh on Internet Explorer, that I see changes.
SELECT * INTO rekord_watek FROM watki WHERE .......;
INSERT INTO watki(......) VALUES(........);
COMMIT;      
END LOOP;     
END;
Execute_query;
It's not work(execute_query) for second table 'watki' which is visible in detail component.
Sorry for my terrible english
regards
I find solution but not very good
open_form('dokument');
close_form('dokument');
this clauses make refresh all table in master-detail model.
Edited by: user515960 on 2010-06-08 04:56

Similar Messages

  • Print Form after Defect Recording

    Hi,
    I have a requirement to print a so called Incoming Rejection Form. This form is printed after doing the defect recording.
    Is there a standard way to print a form after saving defect recording?
    Thanks,
    Raymond

    Hi
    check the FORM ....you have either made changes or create a new form
    check following
    A form definition contains the following elements:
    Header data:
    This is general information about the form, such as the user ID of the person who created it, a short text describing the form, and global control data, such as font used and page format.
    Paragraphs:
    Paragraphs are the real layout elements in SAPscript. Every text entered in the editor consists of various paragraphs. The beginning of a paragraph is indicated by a paragraph tag in the left column of the editor. Paragraph names and attributes are defined in the form.
    Characteristics or attributes which can be defined for paragraphs include text alignment, line spacing, font used etc.
    Character strings:
    Character strings are layout elements relevant for a section of text within a paragraph. They are inserted in the continuous text. The beginning of a section of text is marked with the character combination <XX> and the end with </>. Here XX is the name of the character string, which is defined in the form.
    Windows:
    Windows represent logical units. Although they do not have a physical position on the page, they have a name which reflects the purpose of the text to be displayed in the window. For example, an address window, a window for a letter header etc.
    A window type is assigned to every window. The most important type is the main window. "Continuous" text appears in the main window. The text can therefore extend over the main windows of several pages. The other window types, on the other hand, do not allow text which does not fit in the window to be continued in the window on a subsequent page.
    Pages:
    One or more pages which are to appear in the form are defined here. The attributes of a page include the name of the next page and the type of page numbering. The user determines the page sequence by specifying the next page and defining the first page of the form in the header data.
    Page windows:
    A page window is defined by specifying the position and size of a form window on a form page. The page window describes the position of a window on a specific page of the form and therefore the area in which text can be output in the form.

  • Refresh table automatically after adding record in dynpro

    I have a table element in my layout which is bind to a dictionary table and displaying the records correctly.I have input fields in the same view along with the add buttoon which inserts the entered record into the dictionary table successfully.
    Till now its fine but what I want is after adding the record, the displayed record in the table should be refreshed automatically.I guess one method would be that in action of button click  i  fetch the records using select query into an internal table and bind it again to the table.
    Is there any other method to do this. Also will supply function be helpful in this case???
    THanks

    @sarbjeet:
    Here is the code of supply method
    method SUPPLY_FILLNODE.
    DATA:
                  NODE_TABLE_EMP                      TYPE REF TO IF_WD_CONTEXT_NODE,
                  ELEM_TABLE_EMP                      TYPE REF TO IF_WD_CONTEXT_ELEMENT,
                  STRU_TABLE_EMP                      TYPE wd_this->ELEMENT_TABLE_EMP,
                  ITAB                                TYPE TABLE OF wd_this->ELEMENT_TABLE_EMP.
              navigate from <CONTEXT> to <TABLE_EMP> via lead selection
                NODE_TABLE_EMP = WD_CONTEXT->GET_CHILD_NODE( NAME = `TABLE_EMP` ).
               SELECT EEMP_NO ENAME ECITY DDEPT_NAME INTO CORRESPONDING FIELDS OF TABLE ITAB FROM ZEMPLOYEE_MASTER AS E  INNER JOIN ZEMPLOYEE_DEPT AS D ON EDEPT_NO = DDEPT_NO order by E~EMP_NO  .
             CALL METHOD NODE_TABLE_EMP->BIND_TABLE
               EXPORTING
                 NEW_ITEMS            = ITAB
                SET_INITIAL_ELEMENTS = ABAP_TRUE
                INDEX                =
    endmethod.

  • Clear form after CREATING record

    Right now when I fill out a form then click the CREATE button, the record shows up in the report but it also remains in the form in "edit"mode.
    What I want is after I click the CREATE button, the form clears and the CREATE button remains so I can add another record.

    I don't want to clear it for the whole page because I have 2 regions on this page. One region has a report, the other region is the form. So, when I create the record in the form I want the report to populate, but I want just the form region to clear cache. So, how do I clear the cache for just a region, not a page.

  • How to update a form after changing the underlying table

    Hi All,
    I have read a few posts on this, and I know that it would have been better to not do this, but I had to add a new column to a table in order to meet a new requirement.
    See this post:
    Design Question - Slowly Changing Dimensions (I think)
    I decided that I would store the 'price' with the 'mailed_item' - so I had the actual price at the time the item was mailed. And then the MST table could be updated as needed without impacting the historic records.
    Now my issue is: How do I add another field to the form (I was thinking hidden) that would reference the price from the Mail_Service_Type table?
    Mailed_Item
    ID
    MST_ID (Mail_Service_Type FK)
    Piece_Count
    Price (**New)
    Mail_Service_Type
    ID
    Name
    Weight
    Price
    Can this be done easily, or should I recreate the form? Is is just a simple PL/SQL or SQL statement? Or should I build another process (maybe a trigger) to get the value?
    Any thoughts would be appreciated...
    Corey

    Nahman,
    Typically it's enough to re-load data used: check binding of your UI controls on second tab to context attributes and depict what nodes are used. Then re-initialize these nodes: either just via invalidating them or via re-binding elements / re-executing queries + re-binding elements.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Hiding items in system form by changing record

    Hi,
    I have on system form textbox binded to UDF. If user change the record, the textbox is not showing. I know about possibility to catch events like form_load, resize and data_load where I can set visible to true to this textbox, but my question is, if exists some better method how to say to SBO that this field will be always visible.
    thx
    Petr

    I found the problem, in some forms in diferent modes is set diferent panelevel...

  • How to refresh the table after change value in the VO programatically?

    Hi,
    I like to update my table by using a popup. My problem is that the table does not refresh after I change the value in the table's VO by the popup.
    There is another table in the popup, and the popup is triggered by a command button. An af:showPopupBehavior is nested in the button. The method of the button in backing bean is as following,
    public void accountcodeButtonClicked(DialogEvent dialogEvnt) {
    ViewObject volisttable=am.getAcChartValidateView1();
    String nowcode=volisttable.getCurrentRow().getAttribute("Code").toString();
    ViewObject vobasetable=am.getGlDetailView1();
    vobasetable.getCurrentRow().setAttribute("AccountCode",nowcode);
    The partialTrigger of the base table's column AccountCode points to the triggering button.
    I do not know why the base does not refresh after the above method is executed.
    Please me.
    Stephen

    Hi,
    kind of a shame that after so many years of ADF the message that updates should be through the binding layer hasn't gone through ;-)
    You change the underlying business service, which doesn't impact the binding layer the way you do it. So here is what you can try in the same order
    - 1. RequestContext.getCurrentInstance().addPartialTarget(<table reference>)
    - 2. If 1. doesn't show the changed data, try and re-execute the iterator that is the base of the table. If this works then the effect you see is caused because you ignore using the binding layer
    Frank

  • Best way using ADDT? : No page refresh, but form fields change on selection.

    The top half of the form is a simple user registration. The bottom half is dependent on the user selecting an item from a dropdown menu which then changes the form accordingly.
    What is the best way to do this?

    -----
    How about an alternate solution, where each form is on an a spry widget accordion plane?
    When tyring to do that with ADDT or Dreamweaver forms, you would have to define multiple insert or update transactions as well -- that´s per se not possible, also because an insert/update transaction always comes with an "redirect after insert/update" trigger, means the user will be leaving that page.
    But is there a way to still have the simple registration form at the top of the page?
    see my "redirect after insert" comment above.
    Would each widget form have its own submit button?
    You might want to consider creating separate (non ADDT) forms for each SPRY accordion which submit their stuff to the database behind the scenes and without leaving the page. To my knowledge the SPRY documentation shows how this can be done -- but as this isn´t related to ADDT, I´m not going to comment on that :-)
    Then on submit it inserts the simple registration form along with its own form?
    the main form
    (regardless if it´s driven by ADDT´s or Dreamweaver´s insert/update behaviours) will be redirecting to another page
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Why can't i save my form after changes?

    After editing a form I can't save the form to the same filename. I receive the following message:
    Needless to say, the form is not shared or open anywhere else.
    I've set permissions on the file, folder and designer, I've set compatibility on the urls,  but nothing makes a difference. Imagine saving every few minutes and having to give a different file name every time. I have to keep on deleting previous versions.
    Any ideas? I'm quite desperate....

    Make sure the Preview pane in Windows Explorer is disabled.
    On Mon, Dec 1, 2014 at 6:00 PM, 123WorkingGuy <[email protected]>

  • Refreshing Word Reports after changes made in Publisher.

    I am runing the word to publisher to bi answers chain. I made a change to the reports in bi answers by adding a column. The new column does not show up as a selection in Word Insert>Field Menu.
    When I view the publisher Xml of the report the columns for the report are there. But the word add-on does not seem to find them.
    Also because the default columns names are conversions of the formulas from BI Answers just typing them out is not to convient. (I could still copy and paste from xml). Is there sometype of cache keeping old versions of the reports in the word add-on.

    It is a shame I can't get answers points for my own questions but here seems to be the problem.
    The word add-on is the problem and the inability to change the field/element names of the reports in publisher. The two go together because the word add on has a hick-up when handling long report element names. These names are long because publisher constructs it's dataxml from the formula field of BI Answers reports. Not the header field or some other alias. So if the formula field of a data metric, combines multiple pieces of data, then does some math, and divides itself by another hodge podge of fields you have a chance that the word add on will not find the field in its "insert>Field>Menu box". I have a feeling that it is there but not in the menu box I just haven't had a chance to check. I will update the post when I do.
    Short Answer the word add on is buggy.
    Side note to get the field list to reload you have log off and log on in the word add on. If not the field list will not reload.

  • Not able to open forms after changing domain in R12.

    Hi all,
    how are you
    I have modified the domain name for my erp, i was able to complete it successfully except for opening the forms. i am not able to open the forms, though i am able to login to applications.
    i have followed the following document
    Note: 759225.1 - How to change the domain name for Oracle Applications R12?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=759225.1
    Thanks

    Hi
    Thanks for the update.
    My OS is RHEL 4. Oracle applications R12.1. It doesnt show any error when i click on particular item for forms. it is not launching any forms.
    The document mention above, is it applicable for R12.1? it suggests a patch for 11i.
    Should i directly run the EXEC FND_CONC_CLONE.SETUP_CLEAN and autoconfig?
    The query in the document is returning the following
    SQL> select node_name "Node Name", node_mode "Mode", support_cp "C", support_web "W", support_admin "A", support_forms "F" from FND_NODES;
    Node Name M C W A F
    AUTHENTICATION O N N N N
    ERPAPPS O Y Y Y Y
    Thanks

  • External table fails to view data after changing file name

    Hello,
    I have previously imported 122 external tables and was able to view their data without any problems.
    The names of these files have since changed. The names have a date in them.
    So I dropped the external tables from that database and recreated them with the new file names.
    I then went into OWB and dropped them from OWB.
    I reimported all of the tables without errors.
    I go to view the data and get an error that the file does not exists.
    The problem is that the file it is telling me does not exists, is the file I had been using last week. Not the new file.
    However, when I go and right click the external table and do a configure, the correct name is showing up under datafiles.
    It's almost as though when I dropped the external tables, not everything was cleaned up. For whatever reason, OWB is still using the old names.
    Dan

    Hi there... Wich OWB version are you using?
    If you've created this external tables using any other tool (ie: SQLPLUS, SQLDeveloper, Toad, SQLNavigator, etc), are you able to query this objects from one of these tools?
    If you've created this ET's using OWB, are you creating it as external tables or are you mapping it as source flat files?
    If you are using OWB to create it, there are a few configurations/properties you should change to have them running well.
    Please, post some more info.
    Thanks

  • How to re-query changed record in multi-row block after update in a called form

    Hi,
    I have a form that I use to perform searches, which is a multi-record block.
    The user can navigate to a record, press a button on call another form which provides
    more detail, and allows update of the record.
    If the user changes it, and returns to the original search form, how can I re-query the
    changed record to update the fields on the search form.
    Is there a way other than to re-query the
    whole block - a built-in to just update on record if it's changed on the database.
    If not, can I use globals to pass back the data (since only a few fields are updatable),
    and change the record without effecting its forms status.
    Many thanks
    Bernie

    BD,
    I haven't managed to look at a solution yet, but the block is a large multi-row block,
    with an ORDER BY, and since it can return a large number of records, there is a short
    delay. I was hoping there was a way of just
    re-querying the one record, which was displayed
    in the second form for update.
    I'll give the query a go, or might try and pass back some globals with the update values.
    By the way, DML Return Value is an excellent feature, but only works against Oracle 8.
    It basiclly adds the RETURNING clause to any DML statement (see SQL manual), so that if
    a trigger changes/adds values you didn't provide, it will return them back to you
    so the values in your form are correct.
    I use a trigger on the DB to populate history fields (create/update,who/when) and
    the PK sequence. Using this feature, those values are returned to the block and displayed.
    Regards
    Bernie

  • Can't see wave form after recording...

    After I record audio, the wave form (view) goes flat line like I recorded silence. It still plays the audio, but I cant see it to edit it.
    How do I see it again?

    In all likelihood you have the recording delay setting,  set to something other than zero......
    no waveform

  • Warn by leaving a form view with unsaved changes

    Hello JSF / Richfaces users,
    maybe that's not the first time, that someone asks this question here, but unfortunately I couldn't found any concrete examples on the forum. So I'd like really to get your help:
    I'd like to put some "input listeners" on my form views, so that when the user makes changes (typing in inputText, selection another value in selectMenu or checking a Checkbox), then he clicks on another Button / Link without saving, he shoudl will be warned by a dialog box remebering him to save the changes or leaving the view without saving (changes will be lost).
    I tried at first to put a boolean "inputChanged" on my Bean, then setting it to true with an adapted event (onchange) by each component. And by the buttons/links which link to another page I tried to show a <rich:modalpanel> once the value of "inputChanged" is true but I couldn't realize this conditions.
    Thereafter I found a solution based on Javascript:
    <script language="javascript" type="text/javascript">
        // Keep flag when something had changed
        var changed = false;
        Save in "changed" flag, whether an input had been done by the user.
        after that the calling of this method will be removed
        from the corresponding attribute of the input elements,
        in order to avoid redundant method calls */
        function storeChange(aChanged, aElement) {
            changed = aChanged;
            aElement.setAttribute('onchange', '');
        Finally and when the "changed" flag is true, a confirmation message will be shown
        to confirm whether the page could be left.  
        window.onbeforeunload=function unloadAlert() {
            if(changed) {
                return 'You have unsaved changes on the page. If you click on OK, the changes will be lost';
            return null;
    </script>{code}
    And in the view:
    {code}<a4j:form>
            <h:outputLabel id="label_name" value="Name" for="in_name" />
            <h:inputText id="in_name" value="#{bean.name}"
                onchange="storeChange(true, this)" />
            <br />
            <h:outputLabel id="label_email" value="E-Mail" for="in_email" />
            <h:inputText id="in_email" value="#{bean.email}"
                onchange="storeChange(true, this)" />
            <br />
            <a4j:commandButton oncomplete="javascript:changed=false"
                value="Save" />
        </a4j:form>{code}
    And now I'd
    like rather than the JS terriying dialog box, a user-friendly rich:modalPanel which should do the same function.
    For any
    indication I will be very very thankful                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi David,
    Thank for the prompt answer. I've tried that before but I have put that in checkin action. So that didn't work before but now as per your suggestion it works nicely. The form isn't evaluated.
    However, this time my changes aren't reflected on the user.. Basically what I do is
    - checkout user view (with empty form) (in an activity)
    - update user view (in another activity)
    - check in user view (in another activity)
    however, changes are discarded. I used winmerge to compare and saw exactly the necessary fields are updated after update activity. but after checkin no changes are reflected. so what should I do now :(
    Relevant actions are:
    <Action id='0' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkoutView'/>
              <Argument name='viewId'>
                <concat>
                  <s>User:</s>
                  <ref>accountId</ref>
                </concat>
              </Argument>
              <Argument name='type' value='User'/>
              <Argument name='id' value='$(accountId)'/>
              <Argument name='Form' value='Empty Form' />
              <Return from='view' to='user'/>
              <Return from='WF_ACTION_ERROR' to='error'/>
            </Action>
            <Action id='0' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkinView'/>
              <Argument name='view' value='$(user)'/>
              <Return from='WF_ACTION_ERROR' to='error'/>
            </Action>

Maybe you are looking for

  • No video with Skype

    When using Skype on iPhone 4s with IOS 5.1, my counterpart can see me, but I only see a black box where my image should be. It works OK on my iPad2, also with IOS 5.1. Thank for any good advice, Jean

  • JMS messages stuck as Pending messages

              Hi.           I am trying to write an application to process huge amounts of data. I try to           process around 1,000, 000 messages [java objects] using a single queue and 8 MDB.           The strange thing is that in the end there are

  • Synchronous HTTP  connections

    Hi All, I have a http proxy service which calls a biz service to forward message to an external biz service. This proxy service should be designed to support high volume of messages. Couple of things that I would like to understand here. According to

  • Create a personnal number in PA40

    Hi all,, In PA40 tcode we have personnel number(RP50G-PERNR)..so that number is unique...and in LFB1 table we have LIFNR and PERNR(Personnel Number) how are they linked... my problem is whenever a user creates a personnel number in PA40..it should be

  • Output problem: printer commands are printed

    Hi , I have created a new page format ( 300 mm * 330 mm ) and i have assigned to a new format in the device type .But what command need to be changed in the printer initialization? At present when i print my sap script output it prints out the printe