Commit Operation in ReturnListener - From a dialog

Hi,
I'm using JSF JSP page in ADF framework.
Here is the page flow
1st page is selecting a row from emp table(Select and Edit).
2nd page is to change the attributes of the selected emp row(Save and cancel button are provided).
3rd page is a new dialog which popups in a new window asking for user confirmation of emp row changes(Yes and No buttons).
First approach:
On Clicking Yes in dialog window, it should commit the emp row, and return back to 1st page to see the changes made.
Not sure, if ADF supports navigation to a different page, rather than previous page.
Incase i try to redirect to 1st page in the listener, it will openup multiple windows.
Any ideas as to how to redirect to 1st page from dialog window, without having multiple windows opened up ?
Second approach:
I tried to have commit operation done in the return listener of the second page(returnlistener configured for save button)
Not sure how to make Commit operation available to a particular page.
Here is the code for the same:
public void returnFromDialog() {
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("Commit");
Commit operation is not available in the second page(Edit page).
Any ideas as to how to make/bind Commit to a particular page, so that it can accessed using operation binding.
Regards,
Arun

Hi,
for the commit operation: You can manually add the commit operation to the pageDef files. Just open the pageDef file in the Structure Window and choose Insert into binding --> Action from teh context menu. Then select the commit operation
Regarding the navigation: You have to first close the dialog before you perform navigation. n JSF navigation can be through the navigation handler
e.g.
FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation(FacesContext.getCurrentInstance(),null,"outcome_string");
(where the outcome string is the navigation case of where to go next)
external context (redirect) or via the ViewRoot that can be accessed from the FacesContext.
Frank

Similar Messages

  • How to execute commit operation from an ADF button?

    Hi,
    I am using Jdeveloper 11.1.1.3.0. I have an application and need to customize the application by adding a form. I added the Form and I need to do a commit when they press the SAVE button in that page. the action listener for that SAVE button invokes a method and I don't want to change that code because it handles lots of other stuffs. I need to add the commit to the SAVE button. Is it possible to call the ${bindings.commit.execute} in the javascript when they press the SAVE button or using any other listener to invoke a method in the backing bean.
    Thanks
    SR

    You can add the binding to the commit operation to your page and then call this from the backing bean where your current save logic exist.
    See: http://blogs.oracle.com/shay/2010/04/doing_two_declarative_operatio.html

  • Error on commit operation

    HI all,
    Getting error on table commit operations. 11.6
    PK1 PK2 PK3 ----composite primary key attributes in table
    10 10 1
    10 12 1
    10 10 2
    23 12 1
    23 12 2
    Based on the first and second attributes , pk3 will genrating dynamically and stetting to table attribute .
    If the previous two columns(pk1 and pk2) values are same then the (pk3) will increment by one , plase refer table for info
    Addition of all records will happen in popup-dialog window , upon insertion of new records on table, when user tries to commit the table getting all PK3 values are loosing bcoz iterator executing dynamically
    Please let me know if any ways to achieve above request
    Upon commit ,: eror "Too many object tht matches primary Key [12,10,1]'
    thanks

    I would suggest to use a technical value as key (use a sequence) your current key as alternate key.define a unique constraint in the db which guarantees that the alternate key is unique. Then you can do you calculations without getting the pk violation as three pk it's just a number generated from a sequence.
    This way you can handle your use case a lot easier.
    Timo

  • Error while invoking the commit operation in a data control

    JDeveloper 11.1.2
    When we invoke the commit operation exposed thru the data control, sometimes we get the following error:
    Caused by: java.lang.NullPointerException
    at oracle.jbo.server.DBTransactionImpl.addPendingEvent(DBTransactionImpl.java:5751)
    at oracle.jbo.server.DBTransactionImpl.sendOrQueueEventForSharedTrans(DBTransactionImpl.java:6659)
    at oracle.jbo.server.DBTransactionImpl.fireTransactionStateEvent(DBTransactionImpl.java:6693)
    at oracle.jbo.server.DBTransactionImpl.doAfterCommit(DBTransactionImpl.java:2301)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2159)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
    This issue is intermittent but occurs many times.
    I am NOT able to find any issues with the code.
    Any pointers on resolving the issue.
    Thanks,
    Navaneeth

    My problem is special, we change the AM configuration to EJB (2.1 stateful, let's put performance issue aside) and deploy remotely, however, there's a NullPointerException occurred at the same line number as your case when we change the task flow id of the dynamic region, because the ADF framework always calls Rollback during region refresh, this Rollback cause the NullPointerException. Even if I caught and ignore this error, there will be always a NullPointerException thrown the next time we do any VO attribute update (kind of same as the blog entry described below).
    http://adfbugs.blogspot.com/2011/08/rollback-is-executed-when-region-is.html
    I am not sure if we could benefit from fixing of your SR by Oracle. Please share if you have any hints, thank you!
    Edited by: codeplay on Mar 30, 2012 9:42 AM

  • Help required in commit operation

    hello ,
    i have written on procedure , in Which i am selecting the data from table1 and then insert the data into table 2 and then i am applying a commit.
    the table 1 contains more tha 4 laks(0.4 million) records.
    now i really need your suggection about the commit operation to be takes palce?
    can i perform commit after the insertion of 4 Lc record OR can i perform the commit after every 10,000 insertion of record?
    Thanks in advance for your suggestion. also let me know the reason also.
    thanks,
    prashant

    923315 wrote:
    hello ,
    i have written on procedure , in Which i am selecting the data from table1 and then insert the data into table 2 and then i am applying a commit.
    the table 1 contains more tha 4 laks(0.4 million) records.
    now i really need your suggection about the commit operation to be takes palce?
    can i perform commit after the insertion of 4 Lc record OR can i perform the commit after every 10,000 insertion of record?
    Thanks in advance for your suggestion. also let me know the reason also.
    thanks,
    prashantWhen you say you are doing it in a procedure, are you doing an insert .. select .. from ..
    or are you selecting from your source table in a loop and insert single rows at a time into the target table?

  • Commit operation not enabled after createinsert in detail table

    Hi Everybody,
    After clicking createinsert operation for detail table in master detail, i got unique contraint error from db.after rectifiying the data for newly created row..commit operation not enabled to save the data.
    Please find the code i used in my jsf.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelBox text="PanelBox2" id="pb2">
              <f:facet name="toolbar">
                <af:group id="g2">
                  <af:commandButton actionListener="#{bindings.Delete1.execute}"
                                    text="Delete1"
                                    disabled="#{!bindings.Delete1.enabled}"
                                    id="cb4"/>
                  <af:commandButton
                                    text="CreateInsert1"
                                    disabled="#{!bindings.CreateInsert1.enabled}"
                                    id="cb3"
                                    action="#{backingBeanScope.MyIndustryBean.cb3_action}"/>
                  <af:commandButton actionListener="#{bindings.Commit.execute}"
                                    text="Commit"
                                    disabled="#{!bindings.Commit.enabled}"
                                    id="cb5"/>
                  <af:commandButton actionListener="#{bindings.Rollback.execute}"
                                    text="Rollback"
                                    disabled="#{!bindings.Rollback.enabled}"
                                    immediate="true" id="cb6">
                    <af:resetActionListener/>
                  </af:commandButton>
                </af:group>
              </f:facet>
              <af:table value="#{bindings.IndustryEOView1.collectionModel}"
                        var="row" rows="#{bindings.IndustryEOView1.rangeSize}"
                        emptyText="#{bindings.IndustryEOView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                        fetchSize="#{bindings.IndustryEOView1.rangeSize}"
                        rowBandingInterval="0"
                        filterModel="#{bindings.IndustryEOView1Query.queryDescriptor}"
                        queryListener="#{bindings.IndustryEOView1Query.processQuery}"
                        filterVisible="true" varStatus="vs"
                        selectedRowKeys="#{bindings.IndustryEOView1.collectionModel.selectedRow}"
                        selectionListener="#{bindings.IndustryEOView1.collectionModel.makeCurrent}"
                        rowSelection="single" id="t1" width="448"
                        inlineStyle="height:193px;" partialTriggers="::cb3 ::cb4">
                <af:column sortProperty="IdDesc" filterable="true" sortable="true"
                           headerText="#{bindings.IndustryEOView1.hints.IdDesc.label}"
                           id="c2">
                  <af:inputText value="#{row.bindings.IdDesc.inputValue}"
                                label="#{bindings.IndustryEOView1.hints.IdDesc.label}"
                                required="#{bindings.IndustryEOView1.hints.IdDesc.mandatory}"
                                columns="#{bindings.IndustryEOView1.hints.IdDesc.displayWidth}"
                                maximumLength="#{bindings.IndustryEOView1.hints.IdDesc.precision}"
                                shortDesc="#{bindings.IndustryEOView1.hints.IdDesc.tooltip}"
                                id="it2">
                    <f:validator binding="#{row.bindings.IdDesc.validator}"/>
                  </af:inputText>
                </af:column>
                <af:column sortProperty="IdPlace" filterable="true" sortable="true"
                           headerText="#{bindings.IndustryEOView1.hints.IdPlace.label}"
                           id="c1">
                  <af:inputText value="#{row.bindings.IdPlace.inputValue}"
                                label="#{bindings.IndustryEOView1.hints.IdPlace.label}"
                                required="#{bindings.IndustryEOView1.hints.IdPlace.mandatory}"
                                columns="#{bindings.IndustryEOView1.hints.IdPlace.displayWidth}"
                                maximumLength="#{bindings.IndustryEOView1.hints.IdPlace.precision}"
                                shortDesc="#{bindings.IndustryEOView1.hints.IdPlace.tooltip}"
                                id="it1">
                    <f:validator binding="#{row.bindings.IdPlace.validator}"/>
                  </af:inputText>
                </af:column>
              </af:table>
            </af:panelBox>
            <af:panelBox text="PanelBox1" id="pb1">
              <f:facet name="toolbar">
                <af:group id="g1">
                  <af:commandButton actionListener="#{bindings.Delete.execute}"
                                    text="Delete"
                                    disabled="#{!bindings.Delete.enabled}"
                                    id="cb2"/>
                  <af:commandButton
                                    text="CreateInsert"
                                    disabled="#{!bindings.CreateInsert.enabled}"
                                    id="cb1"
                                    action="#{backingBeanScope.MyIndustryBean.cb1_action}"/>
                  <af:commandButton actionListener="#{bindings.Create.execute}"
                                    text="Create"
                                    disabled="#{!bindings.Create.enabled}"
                                    id="cb7"/>
                </af:group>
              </f:facet>
              <af:table value="#{bindings.IndustryRatinEOView1.collectionModel}"
                        var="row" rows="#{bindings.IndustryRatinEOView1.rangeSize}"
                        emptyText="#{bindings.IndustryRatinEOView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                        fetchSize="#{bindings.IndustryRatinEOView1.rangeSize}"
                        rowBandingInterval="0"
                        filterModel="#{bindings.IndustryRatinEOView1Query.queryDescriptor}"
                        queryListener="#{bindings.IndustryRatinEOView1Query.processQuery}"
                        filterVisible="true" varStatus="vs"
                        selectedRowKeys="#{bindings.IndustryRatinEOView1.collectionModel.selectedRow}"
                        selectionListener="#{bindings.IndustryRatinEOView1.collectionModel.makeCurrent}"
                        rowSelection="single" id="t2"
                        partialTriggers="::t1 ::cb1 ::cb2 ::cb7">
                <af:column sortProperty="RatingId" filterable="true" sortable="true"
                           headerText="#{bindings.IndustryRatinEOView1.hints.RatingId.label}"
                           id="c5">
                  <af:selectOneChoice value="#{row.bindings.RatingId.inputValue}"
                                      label="#{row.bindings.RatingId.label}"
                                      required="#{bindings.IndustryRatinEOView1.hints.RatingId.mandatory}"
                                      shortDesc="#{bindings.IndustryRatinEOView1.hints.RatingId.tooltip}"
                                      id="soc2" autoSubmit="true">
                    <f:selectItems value="#{row.bindings.RatingId.items}" id="si2"/>
                  </af:selectOneChoice>
                </af:column>
                <af:column sortProperty="RatingSubId" filterable="true"
                           sortable="true"
                           headerText="#{bindings.IndustryRatinEOView1.hints.RatingSubId.label}"
                           id="c6" partialTriggers="soc2">
                  <af:selectOneChoice value="#{row.bindings.RatingSubId.inputValue}"
                                      label="#{row.bindings.RatingSubId.label}"
                                      required="#{bindings.IndustryRatinEOView1.hints.RatingSubId.mandatory}"
                                      shortDesc="#{bindings.IndustryRatinEOView1.hints.RatingSubId.tooltip}"
                                      id="soc1" partialTriggers="soc2">
                    <f:selectItems value="#{row.bindings.RatingSubId.items}"
                                   id="si1"/>
                  </af:selectOneChoice>
                </af:column>
                <af:column sortProperty="Place" filterable="true" sortable="true"
                           headerText="#{bindings.IndustryRatinEOView1.hints.Place.label}"
                           id="c4">
                  <af:inputText value="#{row.bindings.Place.inputValue}"
                                label="#{bindings.IndustryRatinEOView1.hints.Place.label}"
                                required="#{bindings.IndustryRatinEOView1.hints.Place.mandatory}"
                                columns="#{bindings.IndustryRatinEOView1.hints.Place.displayWidth}"
                                maximumLength="#{bindings.IndustryRatinEOView1.hints.Place.precision}"
                                shortDesc="#{bindings.IndustryRatinEOView1.hints.Place.tooltip}"
                                id="it3">
                    <f:validator binding="#{row.bindings.Place.validator}"/>
                  </af:inputText>
                </af:column>
                <af:column sortProperty="RatingDesc" filterable="true"
                           sortable="true"
                           headerText="#{bindings.IndustryRatinEOView1.hints.RatingDesc.label}"
                           id="c3">
                  <af:inputText value="#{row.bindings.RatingDesc.inputValue}"
                                label="#{bindings.IndustryRatinEOView1.hints.RatingDesc.label}"
                                required="#{bindings.IndustryRatinEOView1.hints.RatingDesc.mandatory}"
                                columns="#{bindings.IndustryRatinEOView1.hints.RatingDesc.displayWidth}"
                                maximumLength="#{bindings.IndustryRatinEOView1.hints.RatingDesc.precision}"
                                shortDesc="#{bindings.IndustryRatinEOView1.hints.RatingDesc.tooltip}"
                                id="it4">
                    <f:validator binding="#{row.bindings.RatingDesc.validator}"/>
                  </af:inputText>
                </af:column>
              </af:table>
            </af:panelBox>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

    Hi,
    Need to set partialSubmit true for CreateInsert and partialTrigger attribute for Commit button(Select Createinsert button for partialTrigger )

  • ADF datacontrol Commit operation - commitng only few tables

    Hello Everyone,
    This is my requirement.
    The application has several View-objects each derived from a corresponding single EO/DB TABLE. I mean that there are no joins in the view object query and just one VO-EO/table relationship.In the transaction I'm just INSERTING rows into several view objects.
    All I need is that At the final commit operation, only the few tables should get committed at the DB level and not all the tables.Is there a way to do this and I know that I cannot use the generic COMMIT operation at the data control as it commits rows into all the tables.
    Any help is appreciated.
    Thankyou,
    Sri

    Having view objects that are to commited & not commited in separate AM as suggested by John is the solution.
    But how about this,
    in beforeCommit() method, get handle to the View objects that are not to be commited and get their associated entities and set the row state to "Initialized".
    Setting the row state to "Initialized" would
    You can use the setNewRowState() method to mark the entity as being Initialized, which removes it from the transaction's list of pending changesCheck for same documentation in ADF Developer's guide:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcvalidation.htm#sthref721
    Thanks,
    Navaneeth

  • Commit operations  in pipelined functions

    Hi forum,
    How to manage commit operations (eg: suppose I have 377 million records to load and I want to commit b/w any 1000 rows) fetched based on a pipelined function.How it is possible.?
    Thanks ,
    Aneesh A

    Everything you said is true, except possibly the bit about more undo being used via the
    loop, and from what I've seen of your other posts you may be right about that too.Well more undo is used.
    From the demonstration in the link I posted.
    The PL/SQL loop used 30 times more undo (rollback).
    So you would have to commit at least thirty times over a million rows just to stay at the amount of undo that would have been used overall if no attempt at periodic commits had been made. There is no avoiding using more undo overall.
    I'm all for the fewest commits possible - 1 is best. But its unpleasant to wait hours
    when rollback/undo fill up first for the process to proceed to the error point,
    then double the time for all the data to roll back.
    In situations like this - only - are the periodic commits useful.But without the code to allow intermediate commits the process was 20 times faster, and the rollback was 200 times faster.
    Not coincidentally, sites where periodic commits are needed are often the ones where the
    DBA group can't/won't increase the rollback segments/undo eliminating the best option.Agreed except that they are used as a result but rarely needed.

  • DataControl does not expose a Commit operation

    Hi all,
    I'm using ADF & JDeveloperStudio Edition Version 11.1.1.3.0 PS2.
    I'm trying to insert a new row in my database from an input screen, using a task flow.
    My task flow has:
    - Behaviour -> Transaction set to Always Begin New Transaction: to create a new transaction when the flow starts.
    - method activity to call the Create operation from my DataControl
    - view activity for data-entry screen.
    - view activity for read-only, confirm screen to display the entered data and provide a Confirm button to proceed with inserting the data to the database.
    - return activity: has Behaviour -> End Transaction set to Commit to complete the insertion to the database. NOTE: I did not drag the Commit operation from my DataControl to the command button that navigates to this return activity—I explain below.
    Problem:
    When I hit the Confirm button on the confirm screen I get an HTTP 404 Error (The server has not found anything matching the Request-URI.)
    Nothing displays on either the Messages or Running: IntegragedWebLogicServer; nothing appears in the DefaultServer.log.
    I'm following [this section|http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/web_form.htm#sthref1906] from the Fusion Developer's Guide. I have deviated from the instructions on point 6 ("Because you need to commit the new data, the application needs to execute the commit operation of the data control. To do this, you can add a button that navigates to a return activity that calls the commit operation.") because my DataControl does not have a Commit operation. I suspect this is the cause of my problem.
    My DataControl was generated from a Session Bean, which was created from an Entity EJB, which was in turn generated from my database table (I have SELECT and INSERT grants on the table. All this is correct, I believe.
    I've compared my DataControl to that from JDeveloper's Cue Cards tutorial "Build a Web Application with EJB, JPA and JSF"; that tutorial's DataControl does not have a Commit operation either, but the tutorial does not try to use task flows.
    Any ideas as to why
    - I'm getting the error when I try to navigate from the confirm page to the return activity responsible for committing the insertion to the database?
    - my DataControl does not exhibit a Commit operation?
    Thanks for your help.
    Regards,
    Ken.

    Hi Shay,
    Thanks for response.
    I've tried your suggestion to call the persist... transaction method.
    Here are my steps:
    - Started with a fresh, even simpler task flow with only two activities: a view activity to display an input form, and a method activity to call the persistMyEntity(...) transaction method.
    - Added method activity, and dropped persistMyEntity(...) from my data control onto it. (Data control created from Session Bean.)
    - persistMyEntity(...) takes one parameter, a MyEntity object: I need to identify this parameter object using EL. There is no such object existing in any binding context at this point.
    - Added managed bean, of type MyEntity to the task flow in page flow scope. Updated the EL for the persistMyEntity(...) parameter to refer to this managed bean in page flow scope - *#{pageFlowScope.myEntity}*.
    - Added a view activity to task flow, and created the *.jspx* for it.
    - Dropped input text components onto the page for each of the entity's attributes that I want to persist to the database.
    - Manually bound the value for each input text component to the corresponding attribute in the managed bean - *#{pageFlowScope.myEntity.myAttribute}*
    When I run my task flow, I get following exception: oracle.jbo.NoDefException: JBO-25058: Definition myAttribute of type Attribute is not found in myAttribute.
    I would have thought I could expand the persistMyEntity(...) node within the Data Control panel and drag its parameter onto the screen as an ADF Form, with ADF looking after binding; then drag the persistMyEntity(...) method onto the method activity. My gut tells me I shouldn't have to add a managed bean to the task flow, of type required by the persistMyEntity(...) method, then manually bind it to the input text fields of the screen. It just seems 'wrong'.
    Is my approach incorrect?
    Many thanks,
    Ken.

  • How place xmp metadata from a dialog box

    HiĀ  expert JS guys,
    I'd want add xmp custom metadata (f.e.: custom, subject, operator...) from a dialog box when I launch a js that save my id file. Someone can helps me?
    Thnx very much.

    I solve easly the question:
    app.menuActions.itemByID(75265).invoke();

  • Commit operation on Programmatic VO

    Hi,
    I am using a programmatic VO to fetch data from webservice.
    Now I need to update the data in the VO through a submit/save button.
    I am unable to do so.
    I have tried binding the commit operation of corresponsing AM onto the submit button.
    Also tried doing the commit operation programmatically using the code:
    OperationBinding action = bindingsImpl.getOperationBinding("Commit");
    action.execute();
    Can you please guide me on how we can update the VO.
    Thanks,
    Malathy.

    Hi,
    Yes, we need to commit the data through a call to the webservice method.
    But I need to hold the data entered in the form somewhere before I pass the request
    to the webservice.
    That cache I am trying to do through VO.
    But my VO is not based on any EO.Its a programmatic VO.So was wondering
    if by any chance we can update the VO.
    Thanks,
    Malathy.

  • How to call a Dialog Program from another Dialog Program

    Dear All,
    How can I call a dialog program with return value from another dialog program?
    Regards,
    Alok.

    Hi Alok,
    1. Insted of creating 2 different Dialog program. It's good to create as many screens as you want in same module pool program. Any way you can use the different TCODE for each screen.
    2. Another and The best way is to create a function group and then inside function group use the function 2 module... In the function group define a global variable which will be present for both the function group if they are getting executed in sequence. and inside the Function Module call the screens using command " call screen <screenno>".
    3. You can use set / get parameter to pass values of a field between two dynpro program.

  • Open and editor windown from a dialog screen.

    Hi,
    Does anybody know how to open an editor window to write large text notes (1,000 chars or more) from a dialog screen?
    Then how this data is stored on a table?
    I need to save large amounts of text and I have seen this on SAP transactions.
    Any help will be appreciated.
    Thanks,
    Orlando.

    Oh, I see.  I would not suggest using a sapscript editor. I would use the text editor that I mentioned early.  If you really want that functionality of the sapscript editor, you can do that.  Either way you will need to create a custom text object/id to save your text to the db.  Here is an example of using the sapscript editor.
    report zrich_0002.
    data: header type THEAD.
    data: txt_lines type table of tline with header line.
    header-TDOBJECT = 'AUFK'.
    header-TDNAME   = '001000000001'.
    header-TDID     = 'LTXT'.
    header-TDSPRAS  = sy-langu.
    header-TDLINESIZE = 70.
    * First read the text, if there is any.
    call function 'READ_TEXT'
      exporting
    *   CLIENT                        = SY-MANDT
        id                            = header-tdid
        language                      = sy-langu
        name                          = header-tdname
        object                        = header-TDOBJECT
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      tables
        lines                         = txt_lines
    * EXCEPTIONS
    *   ID                            = 1
    *   LANGUAGE                      = 2
    *   NAME                          = 3
    *   NOT_FOUND                     = 4
    *   OBJECT                        = 5
    *   REFERENCE_CHECK               = 6
    *   WRONG_ACCESS_TO_ARCHIVE       = 7
    *   OTHERS                        = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    * throw editor, allow user to change
    call function 'EDIT_TEXT'
      exporting
    *   DISPLAY             = ' '
    *   EDITOR_TITLE        = ' '
        header              = header
    *   PAGE                = ' '
    *   WINDOW              = ' '
        SAVE                = 'X'
    *   LINE_EDITOR         = ' '
    *   CONTROL             = ' '
    *   PROGRAM             = ' '
    *   LOCAL_CAT           = ' '
    * IMPORTING
    *   FUNCTION            =
    *   NEWHEADER           =
    *   RESULT              =
      tables
        lines               = txt_lines
    * EXCEPTIONS
    *   ID                  = 1
    *   LANGUAGE            = 2
    *   LINESIZE            = 3
    *   NAME                = 4
    *   OBJECT              = 5
    *   TEXTFORMAT          = 6
    *   COMMUNICATION       = 7
    *   OTHERS              = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    * When user comes back from editor, save the text
    call function 'SAVE_TEXT'
      exporting
        CLIENT                = SY-MANDT
        header                = header
    *   INSERT                = ' '
    *   SAVEMODE_DIRECT       = ' '
    *   OWNER_SPECIFIED       = ' '
    *   LOCAL_CAT             = ' '
    * IMPORTING
    *   FUNCTION              =
    *   NEWHEADER             =
      tables
        lines                 = txt_lines
    * EXCEPTIONS
    *   ID                    = 1
    *   LANGUAGE              = 2
    *   NAME                  = 3
    *   OBJECT                = 4
    *   OTHERS                = 5
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    So for your case, you must create a custom Text Object and ID via SE75.
    REgards,
    Rich Heilman

  • How can transfer data from a dialog to another panel?

    Will anyone help me?Thanks.
    In our project,When the user need to fill some data into the textfield in a panel,he can simplify this action by click a button,when the button is clicked,then a dialog which contains a table of all the imformation of all customers will show,then the user can select one customer's information from the table,after click a button such as "OK",the selected information will show in corresponding textfiled in another panel.Because the dialog and the panel are two
    different object,so how can I transfer the data selected from the dialog to the panel and show the updated information timely??

    try this program. it exchanges some data between s adialog and a frame.
    akz
    * @version 1.20 01 Sep 1998
    * @author Cay Horstmann
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DataExchangeTest extends JFrame
    implements ActionListener
    {  public DataExchangeTest()
    {  setTitle("DataExchangeTest");
    setSize(300, 300);
    JMenuBar mbar = new JMenuBar();
    setJMenuBar(mbar);
    JMenu fileMenu = new JMenu("File");
    mbar.add(fileMenu);
    connectItem = new JMenuItem("Connect");
    connectItem.addActionListener(this);
    fileMenu.add(connectItem);
    exitItem = new JMenuItem("Exit");
    exitItem.addActionListener(this);
    fileMenu.add(exitItem);
    public void actionPerformed(ActionEvent evt)
    {  Object source = evt.getSource();
    if (source == connectItem)
    {  ConnectInfo transfer= new ConnectInfo("yourname", "pw");
    if (dialog == null)
    dialog = new ConnectDialog(this);
    if (dialog.showDialog(transfer))
    {  String uname = transfer.username;
    String pwd = transfer.password;
    Container contentPane = getContentPane();
    contentPane.add(new JLabel("username=" + uname + ", password=" + pwd),"South");
    validate();
    else if(source == exitItem)
    System.exit(0);
    public static void main(String[] args)
    {  JFrame f = new DataExchangeTest();
    f.show();
    private ConnectDialog dialog = null;
    private JMenuItem connectItem;
    private JMenuItem exitItem;
    class ConnectInfo
    {  public String username;
    public String password;
    public ConnectInfo(String u, String p)
    { username = u; password = p; }
    class ConnectDialog extends JDialog implements ActionListener
    {  public ConnectDialog(JFrame parent)
    {  super(parent, "Connect", true);
    Container contentPane = getContentPane();
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(2, 2));
    p1.add(new JLabel("User name:"));
    p1.add(username = new JTextField(""));
    p1.add(new JLabel("Password:"));
    p1.add(password = new JPasswordField(""));
    contentPane.add("Center", p1);
    Panel p2 = new Panel();
    okButton = addButton(p2, "Ok");
    cancelButton = addButton(p2, "Cancel");
    contentPane.add("South", p2);
    setSize(240, 120);
         //custom method to create and buttons to a container
    JButton addButton(Container c, String name)
    {  JButton button = new JButton(name);
    button.addActionListener(this);
    c.add(button);
    return button;
    public void actionPerformed(ActionEvent evt)
    {  Object source = evt.getSource();
    if(source == okButton)
    {  ok = true;
    setVisible(false);
    else if (source == cancelButton)
    setVisible(false);
    public boolean showDialog(ConnectInfo transfer)
    {  username.setText(transfer.username);
    password.setText(transfer.password);
    ok = false;
    show();
    if (ok)
    {  transfer.username = username.getText();
    transfer.password = password.getText();
    return ok;
    private JTextField username;
    private JTextField password;
    private boolean ok;
    private JButton okButton;
    private JButton cancelButton;

  • Executing a Operating System command from Stored Procedure ??

    I want to execute a Operating System command from a PL/SQL Stored Procedure, can anyone suggest me how can I do this ??
    I am on Sun-Solaris with Oracle 8.1.7 database.
    Please do email me at [email protected]
    Thanks in Advance,
    Ramesh L.

    Are you using a webserver? If so, you could make your operating system script into a CGI program, then execute it from pl/sql using utl_http.request.

Maybe you are looking for

  • Unattended Windows 8.1 Pro installation and Firmware integrated license key

    I have a brand new Lenovo Thinkpad that comes with a Windows 8 Pro license. According to what I read, the product key for Windows 8 for this machine is integrated into its firmware so I should be able to install a Windows 8 or 8.1 on it without need

  • Class-Map and Policy-Map Configuration in CM Confusion

    Hi, I'm implementing a green field WAAS deployment for a customer. We currently have a Proof-of-Concept up and running. I've got some questions regarding custom class-map and policy-map configuration in the CM. I'd like to nail-down the custom class-

  • Add two new field in s_alr_87012936?

    Hi Experts, I want to add two new field in the report of T-code S_alr_87012936. I have copied that report into a Zreport. Can anyone reply how to add two new field in the selection screen. As the program uses logical database ADA. Have I to create a

  • EJBRemove on stateless session bean

    I would like to create a stateless session bean that loads data from the DB when it is created. Since the data being loaded is subject to change, I'd like to make sure that the stateless session bean is "destroyed" at least once every x seconds. Is i

  • Unable to see my elements in balance window

    Hi all I am unable to see my elements in balance window when i define balances(Clik on feeds Button ). what are the setup do i need to fallow .