How to trigger a popup in another .jsff?

I have multiple regions on a page. there are multiple task flows and multiple .jsff
Is it posible to trigger a popup from one of jsff on one taskflow, the popup is defined in another jsff in another task flow in another region?
If so, how can I get the popupId for the af:showPopupBehavior?
Thanks

Hi,
this kind of inter-region communication requires the use of contextual events in which the producer region sends a notification to the receiving region, which then uses a method to launch the popup. You don't use the showPopupBehavior for this but JavaScript from Java
See: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_adv.htm#CACJBFGI
http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_event.htm#BABHIBGF
Frank

Similar Messages

  • How to call one  JSFF into another JSFF

    Hi,
    I am very new to ADf. Could you please tell me how to call one JSFF inside another JSFF. We have a common pop-up written in one JSFF. Is there any best approach to get this pop-up into other JSFF.
    Thanks in Advance.
    Regards
    Narasimha

    If you want to resue the jsff code, make use of bounded task flow with page fragment and then use it as a region.
    For more details you can refer: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm
    One more:
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_57/jdtut_11r2_57.html

  • How to create a popup in an ADF train taskflow?

    I have a Train taskflow. Then i create a popup window in one of the buttons. When i run the JSF as an independent page, the popup works. But when i run the taskflow, the popup doesn't work.
    Is it a bug or is there some way to create a popup in a train.
    i have created the popup like this:
    1. i have created a control flow between the main JSF and popup page
    as dialog:Add.
    2. And in the button in the parent window, i have made the usewindow to true and action to dialog:Add.
    Any kind of helf would be very helpfull.

    Hey Pavle,
    You always ask the most interesting questions. ;) See my answers inline.
    <p>
    How to include another JSFF/JPSX in Rich dialog (beside inclusion of another region)?
    </p>
    <p>
    <b>Ric:</b> You can include a JSFF/JSPX using the jsp:include tag and a subview. Note that you will not be able to use ADFm within the fragments.
    </p>
    <p>
    If there is no other way than inclusion of region, how to make that new region "transaction-free" (as usually the pop-ups are for read-only operations and overhead of TaskFlow transaction is unnecessary). Generally, how to make Task Flow without transaction (if transaction imposes significant overhead – I'm not sure). (the documentation on Task Flows is unfinished in TP). And, finally, if there is no possibility of including JSFF without creating task-flow, is it possible to propose extension to ADFc allowing single JSFF to be included in region without explicitly defining task-flow for that single fragment.
    </p>
    <p>
    <b>Ric:</b> I think the above suggestion should work for static cases. However, if you
    are using bindings then the regions is the only approach available. This is not as heavy-wieght as it would appear. There is a way for regions or bounded taskflows to share datacontrols with with the parent page, which alleviates the concern of additional transactions. This feature can be found in the next preview. Note, this does not prevent you from defining a single page taskflow--in the one page case. I would like to see the feature extended so that if a region contains a single jsff reference there is no need to define an additional taskflow config file.
    </p>
    Thanks,
    Ric

  • How to trigger creation of collective orders

    Hi,
    How to trigger the creation of Collective orders.
    regards

    Hi,
    Collective Orders
    Use
    In a collective order, planned orders or production orders are linked to one another over several production levels. Each order in the collective order has its own order number. If subassemblies are produced directly for superior orders within a production process, without physically entering the warehouse, it is useful to have a representation via collective orders.
    The components for which separate production orders are created in the collective order are called directly produced components (see Creating Collective Orders)
    Prerequisites
    A collective order cannot be created for components that have one of the following indicators set:
    · Co-product
    · By-product
    · Alternative item with strategy 2
    · Alternative item with usage probability 0
    · Discontinued
    · Follow-up material
    · Intra material
    Features
    Collective orders offer the following advantages:
    · Integrated view of a production process
    Collective orders make it possible to represent different levels of the production process together in the system. The production process can be viewed as an integrated whole.
    · Separate order number for every order
    Every level in a collective order represents a separate production order/planned order. Every production order/planned order has its own order number. This enables you to process the entire collective order, a subtree in the collective order or an individual order.
    · No placements in storage or removals from storage between production levels
    Within a collective order stock movements only take place for the leading order (that is, the order that is at the highest production level) and not for directly produced components. This makes it easier to maintain the collective order in comparison with several individual orders. A further advantage is a more realistic representation of the costs of the production process, since subordinate orders can be directly assigned and settled to superior orders.
    · Business functions simultaneously for several orders
    Certain business transactions can be carried out simultaneously for several orders. Releasing an order that belongs to a collective order has the effect that all the hierarchically subordinate orders are released simultaneously.
    · Automatic change to dependent orders
    Changes to an order automatically affect dependent orders / components affecting orders. For example, if you change the order quantity in an order then
    ¡ the relevant quantity changes are automatically made to dependent orders
    ¡ the requirements quantity of the directly produced component is automatically changed.
    In the collective order, you also have the option of manufacturing directly produced material in a different plant to the planning plant.
    · Set status in leading order
    If you make changes in subordinate orders that have an affect on the status, then the system sets the corresponding status in the order header of the leading order in the collective order as follows:
    u2013 CFCO Confirmation in collective order
    u2013 GMCO Goods movements in collective order
    u2013 RLNE Release taken place in network
    In this way you are informed about changes in the whole collective order.
    · Reading master data
    You can copy the routing data and BOM data to the order again. You can find more information in Read master data.
    Example
    You want to produce a pump. The BOM for the pump contains a pressure regulating valve and a spiral casing. You want to enter these two components in separate production orders, but you do not want them to be posted to stock.
    You set the special procurement type to direct production in the material master record for the pressure regulating valve and the spiral casing, so that production occurs using a collective order.
    When you create a production order for the pump, a collective order is automatically created, which contains subordinate production orders for the pressure regulating valve and the spiral casing.
    Creation of Collective Orders
    Use
    Collective orders are only created if the special procurement type is set to direct production in the components for which the separate production orders are to be created (materials planning area in the material master).
    In the standard system, 52 is the special procurement type for direct production (that is, for components that are produced within a collective order).
    To create a collective order, you must use an order type with internal number assignment.
    Hope this helps.
    Regards,
    Tejas

  • How to close a popup window for system events?

    Hi,
    I have a screen 110 which shows several input field in popup mode.
    The Cancel button can close the screen.
    But my question is how to close the popup window for the following system events?
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close" or "Stop Session"
    The PAI subroutine of the screen has not been triggered for the above system events.
    Thanks for the coming help.
    Best Regards,
    David

    Hi Siddharth,
    I did check with another very experienced ABAP developer.
    The solution was the same as what Arunima Rudra provided.
    And I got a sample program which did work properly.
    The headache is that the system events in my program still cannot be triggered even after I have all the same changes.
    Anyway, I suggest you to try the solution as provided by Arunima Rudra.
    It should work for 2 system events:
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close"
    For "Stop Session", it should not be handled by popup.
    You can observe the same behavior in ALV sorting configuration popup.
    Good luck!
    Regards,
    David

  • How to Trigger process chains??

    hi all
    How to Trigger process chains??
    Can anybody step by steps??
    thanks
    Senthil

    The background control options are available to directly schedule the start process. You can start the start process immediately , that is when activating the process chain, for a specified time, or after a particular event. When you activate the process chain, the start process is scheduled in the background as defined in your selections.
    You can also trigger the start of a process chain via a meta chain. A meta chain is when a process chain, to which you set this start condition, is fixed to another process chain. The process chain is started directly by this meta chain.
    When you start the start process via a meta chain, it is not scheduled after you activated the related process chain. The process is only started when the meta chain, to which it is linked, is running.
    The remaining chain processes, that is the application processes and the collection processes, are scheduled to wait for an event.
    The start process has the following special features:
    Only the start process can be scheduled without a predecessor process.
    The start process can not be a successor to another process.
    Only one start process is allowed for each process chain.
    One start process can only be used in an individual process chain

  • How to define custom event and how to trigger the defined event

    hi,guys
    hurry issue....................hope get help.
    I am using oracle weblogic 10gr3 portal.and we choiced java portlet.as of now,we got some question about custom Event.hope you can give some idea....
    thank you so much.
    question detail:
    1.for java portlet ,how to define custom event.
    2.how to trigger this event.
    3 about the data,may be sometime need to transit Biz data.
    auctully,I just want to implements between two portlets communicate.
    for example:
    existing portletA,portletB.
    portletA is a list,like:
    A AA <button>
    after I click this buttom,then portletB will be effect,it means they are interact with each other.
    does anybody hit this issue before,if you solved pls share me .
    thank you for you help....

    Hello,
    Please note that everything below applies to JSR168 portlets ONLY- JSR286 portlets and other portlet types handle events a little differently.
    From inside your JSR168 portlet you can send an event during processAction or when receiving another event by using the PortletBackingContext object, such as:
    import javax.portlet.ActionResponse;
    import javax.portlet.ActionRequest;
    import javax.servlet.http.HttpServletRequest;
    import com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext;
    public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
    HttpServletRequest httpRequest = (HttpServletRequest) actionRequest.getAttribute("javax.servlet.request");
    PortletBackingContext portletBackingContext = PortletBackingContext.getPortletBackingContext(httpRequest);
    portletBackingContext.fireCustomEvent("customEvent", "This is a custom event");
    To receive an event, in your .portlet file you just need to put in a "handleCustomEvent" tag specifying which method to call when the event is received, such as:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:javaPortlet title="Listening Portlet" definitionLabel="yourPortletName">
    <netuix:handleCustomEvent event="customEvent" eventLabel="customEvent" filterable="true" description="custom event handler">
    <netuix:invokeJavaPortletMethod method="processCustomEvent"/>
    </netuix:handleCustomEvent>
    </netuix:javaPortlet>
    </portal:root>
    Then, in your receiving portlet the method "processCustomEvent" would receive the event, such as:
    public void processCustomEvent(ActionRequest actionRequest, ActionResponse actionResponse, Event event)
    The event payload can be any Serializable object you want, but for forward-compatibility with JSR286 it would be ideal if it had a valid JAXB binding.
    Kevin

  • How to add click popup menu to a row of a table.

    hi,
    I have a JTable with say 10 rows of data.
    On selecting a particular row and user right clicks then a popup menu should come.
    I dont want to attach popup to the JTable,instead i want it to be attached to the rows of the JTable.
    How to do it??
    Thanks & regards
    Neel

    You have no choice but to "attach" it to the JTable; it is the JTable which is
    receiving the events that you would use to trigger the popup.
    That said, there is nothing stopping you from displaying a different popup
    depending on which row was clicked on.
    : jay

  • How to do wth Popups

    Im working on Popups the dialog box, im not aware on , how to generate the POPUP instead of navigating from one window to another. i must use the thing within the same component, i need a detailed explaining in this and if you give me the step by step procedure it ill more usefull for me..
    Thanks In Advance.............!
    regards ,
    Madhu.

    1.     In view or component controller create a new attribute of type IF_WD_WINDOW.
    mr_popup    type IF_WD_WINDOW.
    2.     Please use always OTR texts for Title, Button names, etc. In Source code you can get the OTR-Text by usage of class cl_bsp_runtime, method get_otr_text. Sample code is
    DATA: lv_text TYPE string.
    lv_text = cl_bsp_runtime=>get_otr_text( alias = < alias of OTR-text > ).
    CONDENSE lv_text.
    3.     To raise the popup you can use the following source code:
    DATA:    lo_cmp_api        TYPE REF TO if_wd_component,
                  lo_window_manager TYPE REF TO if_wd_window_manager,   
                  lo_view   TYPE REF TO if_wd_view_controller,   
                  lv_title TYPE string.
                  lo_view = wd_this->wd_get_api( ).
           lo_cmp_api        = wd_comp_controller->wd_get_api( ).
           lo_window_manager = lo_cmp_api->get_window_manager( ).
    Determine here the OTR text for the title as mentioned in step 2      
    wd_comp_controller->mr_popup =
      lo_window_manager->create_window(
         window_name = <Name of the window >
         close_button = < close button>
         button_kind = <Button kind>
         title = <Name of the title>
         close_in_any_case = < close in any case > ).
      wd_comp_controller->mr_popup->open( ).
    4.      Often not the standard buttons like ok/cancel or yes/no/cancel shall be used in the lower right corner for the popup but other buttons. The technique to use other buttons is to replace the standard buttons by subscription. To achieve this please implement in the “WDDOINIT” method of the view which is displayed at the popup. The sample code for the subscription is:
      DATA:
        lr_action_view      TYPE REF TO if_wd_view_controller,
        l_action_text       TYPE string.
       lr_action_view = wd_this->wd_get_api( ).
      IF wd_comp_controller->mr_popup IS BOUND.
        wd_comp_controller->mr_popup->subscribe_to_button_event(
        button =      < button which shall be replaced >
        button_text = < button text >
        tooltip = < tooltip text >
        action_name = < name of action for button >
        action_view = lr_action_view
        is_default_button =  < is default button >
    < button which shall be replaced >
                     is the button which shall be replaced by the new one. Please
                     use the constants defined in interface if_wd_window to set the
                     button identifier. A sample is if_wd_window=>co_button_ok .
    < button text >  is the text which shall be displayed at the button instead of
                     the standard text. Please use here an OTR-text.
       < tooltip text > is the text of the tooltip of the button. Please use here
                     an OTR-text. The text should always be maintained if the
                     < button text > is not the text of the standard button.
                     In question use the same text as for < button text > .
                     If no text is maintained here the original text will be used
                     which might be wrong.
    < name of action for button >
    5.     If the action of the button fails the message needs to be displayed within the popup and the popup must not be closed. The next sample code shows how to raise a message:
    get message manager
    data lo_api_controller     type ref to if_wd_controller.
    data lo_message_manager    type ref to if_wd_message_manager.
    lo_api_controller ?= wd_This->Wd_Get_Api( ).
    CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
      RECEIVING
        MESSAGE_MANAGER = lo_message_manager
    report message
    CALL METHOD lo_message_manager->RAISE_T100_ERROR
      EXPORTING
        MSGID         =
        MSGNO         =
        MSGTY         =
       P1            =
       P2            =
       P3            =
       P4            =
       MSG_USER_DATA =
    6.     If there is no error message it is allowed to close the popup. This can be done with the following code:
    wd_comp_controller->mr_popup->close( ).
    (see step 1 how wd_comp_controller->mr_popup is defined)

  • How to trigger renumbering of rows in a group?

    Suppose we have a table ORDER_DETAILS with columns (ORDER_ID, LINE_NUMBER,DESCRIPTION).
    We have these rows:
    order_id, line_number, description
    17,1,'A'
    17,2,'G'
    17,3,'R'
    17,4,'Q'
    Next we insert a new row
    17,2,'K'
    How to trigger renumbering?
    This should be the result after renumbering.
    17,1,'A'
    17,2,'K'
    17,3,'G'
    17,4,'R'
    17,5,'Q'
    Next we move line 5 to line 2.
    How to trigger renumbering?
    This should be the result after renumbering.
    17,1,'A'
    17,2,'Q'
    17,3,'K'
    17,4,'G'
    17,5,'R'
    This question is related to another discussion:
    https://forums.oracle.com/thread/1088303

    create table order_details
    (order_id number,
    line_number number,
    description varchar2(30)
    rowdependencies;
    begin
    insert into order_details values (17,1,'A');
    insert into order_details values (17,2,'G');
    insert into order_details values (17,3,'R');
    insert into order_details values (17,4,'Q');
    end;
    select * from order_details order by line_number
    ORDER_ID
    LINE_NUMBER
    DESCRIPTION
    17
    1
    A
    17
    2
    G
    17
    3
    R
    17
    4
    Q
    create or replace procedure renumber(p_order_id number) as
    begin
      update order_details od
         set line_number = (select rn
                              from (select rowid rid,
    /* for autocommit active APEX etc. */  row_number() over (order by line_number,ora_rowscn desc) rn
    /* for autocommit = OFF  preferred     row_number() over (order by line_number,ora_rowscn nulls first) rn */
                                      from order_details
                                     where order_id = p_order_id
                             where rid = od.rowid
       where order_id = p_order_id;
    end;
    begin
    insert into order_details values (17,2,'K');
    renumber(17);
    end;
    select * from order_details order by line_number
    ORDER_ID
    LINE_NUMBER
    DESCRIPTION
    17
    1
    A
    17
    2
    K
    17
    3
    G
    17
    4
    R
    17
    5
    Q
    begin
    update order_details
        set line_number = 2
      where order_id = 17
        and line_number = 5;
    renumber(17);
    end;
    select * from order_details order by line_number
    ORDER_ID
    LINE_NUMBER
    DESCRIPTION
    17
    1
    A
    17
    2
    Q
    17
    3
    K
    17
    4
    G
    17
    5
    R
    Regards
    Etbin

  • How to trigger onerror of f:ajax inside a h:commandButton?

    hi, how to trigger onerror of f:ajax inside a h:commandButton from it's action method?
    <h:form>
       <h:inputText id="i1" value="#{bean.i1}"/>
       <h:commandButton id="go" action="#{bean.process}" value="go">
          <f:ajax render="o1" onerror="myfunction();"/>
       </h:commandButton>
       <h:outputText id="o1" value="#{bean.o1}"/>
    </h:form>then in the bean
        public String process() {
            if(isOK()) {
                calculate();
                return null;
            } else {
                //here I want to send an ajax error, to trigger the onerror function in the client
       }I don't know what I must do inside the action method to signalize an ajax error. Do I have to throw a specific Exception or any run time exception, or another approach?

    797701 wrote:
    Basic idea of commandbutton is to send form data to server, basic idea of ajax is to update part of page. Hopefully your example is very generic or just a test, otherwise using ajax in your example makes no sense.No. AJAX - Asynchonous Javascript and XML. Key word: asynchronous.
    The basic idea behind Ajax is to make a request to the server asynchronous. Its purpose, even in JSF, is not to update part of a page, that may be a result of doing the request asynchronous. It is perfectly valid to want to do an ajax call from a button, it depends on what requirements you have and nothing else.

  • How can i import contacts from another AIM account to this new one

    If you reference my last ichat question, you will see that I have had serious problems and had to create a new account.
    How can I import contacts from another AIM account to this new one??

    Hi,
    Use AIM for Mac and use the Export and Import features.
    Other than that it is a question on making sure every Single Buddy has more than just their Screen name in the IChat Address Card so it is added to the Address Book and dragging them back from there
    9:08 PM Thursday; February 7, 2008

  • BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?

    Hi All.
    I have this request.
    BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
    We have jobs scheduled on BODS running smoothly and absolutely fine.
    But to check, i am logging into the admin console and check for the jobs status.
    I would like to have an email to be received from BODS after each job is finished.
    It could succuessful. Or it could fail.
    Whatsoever, i wish to receive an email alert as soon as a job is finished.
    Can anyone advise me as to whether this could be made possible.
    And if yes, how this could be done.
    Thanks for your help in advance.
    In BOE CMC / for webi / schedule / we find an option to send email for a job success or a job failure.
    Is there any option similar to that in BODS ?
    Also would like to know :
    how to use the smtp_to or mail_to functions ?
    how to set up the smtp server for this ?
    thanks
    REgards
    indu
    Edited by: Indumathy Narayanan on May 31, 2011 3:47 PM

    Hi.
    Since am new to this BODS. I need some help.
    I already have many jobs which are running absolutely fine.
    And when a job runs, and finishes, am able to see the trace saying
    e.g. :
    Job_abc is completed successfully.
    We got the smtp service activated for our test server.
    and we hae a group email id.
    I have put the details of the smtp server / ip address / and said apply restarted.
    The i created a simple test script as below :
    print (' Before email ' );
    smtp_to('abc@company_name.com', 'Job ' || job_name() ||' on ' || host_name() || ' has FAILED',
    ' the job has failed', 0, 0);
    print('After Email ');
    It does send a email to as per smtp_to whatever email is specified.
    But how to differentiate between a job success
    And a job which has failed.
    I wish to have a mail which says on the subject :
    'Job ' || job_name() ||' on ' || host_name() || ' has completed successfully'
    ==> IF it is a success
    OR
    'Job ' || job_name() ||' on ' || host_name() || ' has failed'
    ==> if it has failed
    How to make the system identify, whether
    to send a success message or a error message whatever
    Could anyone advise.
    thanks
    indu

  • I HAVE AN OLD 3G IPHONE , HOW DO I USE IT IN ANOTHER COUNTRY WITH A NEW SIM CARD

    I  HAVE AN OLD 3G IPHONE , HOW DO I USE IT IN ANOTHER COUNTRY WITH A NEW SIM CARD ?

    it has to be unlocked by your carrier. give them a call

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

Maybe you are looking for

  • IPhone 5 power button doesn't work

    My power button doesn't work and I still have the warranty and I wanted to know that if apple replaces my iPhone will I have to renew my contract with Verizon

  • Limitation for volume of invoices to be paid via ACH

    Hi All, Users wants to know if the payment program will error out if the volume of invoices to be paid to one vendor via ACH increases to 300 or more invoices. The user suspects that the ACH file may limit the # of invoices payable on one file. any i

  • How can I send and receive a message from  a queue using standalone program

    Hi, I want to write a standalone Java program which has to post a message to a queue and receive a message from a queue thats specified as a replyto queue.I want to have my application to be completely standalone without the need of a Application ser

  • Stock transfer of Imported Material

    Dear Experts , I wanted to do stock transfer of import material from one plant to another under the same company code. I want to transfer the cenvat credit on taken on CVD & other cess to the receiving plant . How should I go about it. Kindly guide .

  • Delete a range of bom items

    Hi experts, I need guidances and solutions on my problem here. I retrieve bom level using function 'CS_BOM_EXPL_MAT_V2'. Then it returns all levels of bom components, but here i need to do a checking. Loop at table of bom return by function 'CS_BOM_E