How to 'inject' new functionality to a page?

I need to create a button and then upon click invoke a flow. All this I need to do programmatically at runtime as the page I need to 'enrich' cannot be changed at design time.
Any pointers are appreciated.
Thanks,
MV

I need to create a button and then upon click invoke a flow. By invoking a flow do you mean navigating to a control flow case ?
Anyways you can dynamically create a button (based on some trigger/event like click of another button etc) and attach an ActionListener to it. Something like this -
UIComponent parent = actionEvent.getComponent().getParent(); // this method is invoked within an ActionListener in my case which triggers the creation of a new button etc.
RichCommandButton button=new RichCommandButton();
button.setId("cmdBtn1");
button.setText("Ok");
button.addActionListener(new MyActionListener()); // attaching an ActionListener Class dynamically to the newly created button
parent.getChildren().add(button); // basically add the Button to an already existing container within the page
private class MyActionListener extends InvokeActionBean implements ActionListener{ // a class within the same Bean which holds the above method
public void processAction(ActionEvent actionEvent) {
//your Action Listener code to navigate to the flow here

Similar Messages

  • How to print new line in jsp page

    hi
    how to print new line in jsp page
    thanks

    \n - new line character is in java specific not HTML
    specific.Well, if the correct line separator sequence (by far not always \n) would be used, it does add a new line to the HTML output. Too bad that you don't want to see HTML but formatted text. The BR tag is a formatting element for the displayed text, not a line break in HTML. ;)

  • How to publish news on a portal page of Oracle CS

    Hi everybody!
    Please help, how to publish news on a portal page of Oracle Collaboration Suite
    Thanks a lot for your helps.

    I have the resolution but don't have time right now to put it.
    Refer/search in
    metalink.oracle.com
    How To Edit The News Portlet     332930.1

  • How to set  newer version of stored pages option as never using  httpd.conf

    How to set check for newer version of stored pages option(Tem Internet file-> Setting ) as never using httpd.conf file?

    See:
    *http://kb.mozillazine.org/browser.cache.check_doc_frequency
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • How to include new functionality into WAS

    Hi,
    how can I include new functionality from external C sources into WAS.
    I mean a my own functions callable from ABAP by statement "CALL cfunc" (call system function) ?
    Thanks.
    Marian

    Hi,
    You may want to use RFC for the same.
    Check this link:
    http://help.sap.com/saphelp_nw70/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm
    Regards,
    Siddhesh

  • How to add new button in Customized page....

    Dear All,
    I need to add new button to the page button bar in the UI page.I tried like this in the controller but still i can not get output:
    OAPageButtonBarBean oapbb = (OAPageButtonBarBean)oawebbean.findIndexedChildRecursive("OrderPageButtons");
    OAButtonBean cancelButton = (OAButtonBean)createWebBean(oapagecontext, OAWebBeanConstants.BUTTON_BEAN,
    null, "cancelButton");
    cancelButton.setText("Cancel");
    oapbb.addIndexedChild(cancelButton);
    Is there anything i missedout?
    TIA

    what you are doing incorrectly is
    trying to get the handle to the OAPageButtonBarBean.
    This is a named child of the parent bean(OAPageLayoutBean), and what you are trying to do is find it as a indexed child, this should give you a nullpointer excp in this line oapbb.addIndexedChild(cancelButton);
    since the handle should be null.
    to get the handle to OAPageButtonBarBean, use some like this
    pageContext.getPageLayoutBean().getPageButtons();
    and then add buttons to it.
    Thanks
    Tapash.

  • How to add new function in B1

    Can i add new function in B1.Example exist function in 2005 version is Concat(,) if i want to add new function can i do.I want function to convert number to text for decribe total price, example total price = 3250 the text must show as 'three thousand and two hundred fifty'.Can i do.Please reply.
                                            thank you

    Hi Virasak
    Where are you trying to do this??? In your program or the pld. If in the pld it can be done, works great.
    In the sdk itself i do not think there is any functions for this, but you should check in your programming enviroment to see if it has such a function.
    Hope this helps

  • How to set new tabs to home page when opened

    I have no problem setting up my home page, but new tabs open as blank pages. How do I set up Firefox to open new tabs to my home page, when I manually open a new tab?

    "Donations" to add-on developers are not required. Add-on developers do appreciate donations from users since they devote their time and efforts '''''free of charge''''' to develop the add-on(s). Donations also help pay for costs incurred in operating a website and some have online help forums to help their users with support questions.
    Tab Mix Plus is a great add-on, I use it and like it, but it is a bit "heavy"/large to install for just that one function. Tab Mix Plus performs many functions related to tabs and has many, many options that you can set related to tabs, including the one that your requested.
    <u>An add-on that is much smaller and is designed to perform that one function</u>, opening a tab with the page you specify, is New TabURL:
    *New TabURL: https://addons.mozilla.org/en-US/firefox/addon/newtaburl/
    *After installation and restarting Firefox
    *#Open the options (Add-ons > Extensions, click Options next to New TabURL)
    *#Set your options and/or enter the URL you want to open in new tabs
    *#Click "Save"
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How To Create New Region in standerd Page?

    Hi Friends,
    i got the requirement in OAF. i am in new oaf pl z any one help to me..
    My requirement is in SSH R Responsibility add the new custom region how to add the custom Region in Standered Page.
    Thanks.
    Srini

    Hi,
    Thank full for replaying...And i have one more doubt in SSHR Page having Table RN in Competences Region my requirement is here Table get the 1.FUNC Values and 2 BEHV Values so we split the both things how?
    i am approaching in this way first i create the 2 view objects through vo extension because it will came the same vo so i create the 2 vo's now how to add the competences RN.
    plz help me this is urgent......

  • How to create NEW Pdf from SELECTED pages?! thought this would be so easy!

    I am finding it hard to believe how much time I've sunk into trying to figure this out. I thought it would be as simple as me selecting different pages, right clicking, and then finding "new document from selection," or something like that.
    I have a PDF with about 300 pages. I have a list of page numbers that I need in a NEW PDF. What is the easiest way to do this? Thanks so much.
    -Eric

    I created a tool that does just that (only you will need to enter the page numbers as text, it does not work by selecting them):
    Acrobat -- Extract Non-Sequential Pages: http://try67.blogspot.com/2011/04/acrobat-extract-non-sequential-pages.html

  • How to add new links to a page

    Hello Community
    In Sharepoint 2013 Server can you create:
    A Link in the left navigtion bar  or Quick Launch
     when clicked it can open a new page  and on that page there is an “Add New” type of 
    button. 
    Then on that page you can add as many links as the page will allow, each 
    of those links can contain a url
        Thank you
        Shabeaut

    Hi,
    To add a new link on the left nav:
    You can go to site settings> navigation> add a link under "current navigation".
    For the second requirement:
    You can create a "links" list and add it to that second page. This way you can have that "Add Links" option and add links.
    Thanks,
    norasampang

  • How to print new order in odd page or new page

    Hi Experts,
    I want to print my order layout in oddpage. If any new order comes it should print inthe odd page. Currently its printing Back to back.
    But I want to print my order layout in oddpage or new page.
    Any one guide this??
    Offering points is against the terms of engagement.  Text changed by moderator.  Also, do not post the same question in more than one forum.
    Mohana
    Edited by: Mohana Vijayan on Oct 31, 2008 8:35 AM

    Hi mohana,
    For script or smartform?
    In case smartform
    Create  pages as per your requirement.
    In the global defintion --> initialization tab -->
    if w_page = 1.
    control_parameters-startpage = '%PAGE1'.
    else.
    control_parameters-startpage = '%PAGE2'.
    ENDIF.
    Regards,
    Sravanthi

  • How to run new function from IW32, IW31 (button?)

    Hi,
    I need to run raport in new screen from IW31, IW32 on user's action.
    I don't know how to call it from those transactions. I thought about an action on button but is it possible to add it? Or is it possible to run it on double click on order numer?
    Thanks for any ideas.
    Regards,
    Kaz

    Hi
    It is easy to call that transaction when you click on a button.
    Only thing is that you need to change the Std code of that IW32 program
    and to pass the selection screen fields of that Transaction to be called and use the statement SUBMIT <program> with SELECTION-SCREEN fields and return.
    Reward points for useful Answers
    Regards
    Anji

  • How to open new window in UIX page

    I'm using UIX for view layer. I have text input in the UIX form. When I click on a button, I want to open a new window with the URL built using the value from the input. I want to do it using javascript. Is it possible with UIX?

    Hi Krishnamoorthy,
    Look out the LovXXXX components demo in uix.
    See <script> demo of component guide. This should help you clearly understand the functionalities.
    See documentation of above UIX components
    Like providing handlers to HTML elements, you can attach event handlers to UIX components too. You can attach event handlers on onClick, onMouseOver,... on UIX components just as you would do in HTML.
    http://www.oracle.com/technology/sample_code/products/jdev/index.html
    This link could be of some help to you.
    Thanks,
    Vijay Venkataraman

  • How to defined new function keys

    Hi,
    Can anyone tell me if it is possible to define functions keys ?
    eg F10 for save or F11 - create record.
    thanks
    regards
    jerry

    Hi,
    You can use Apex Builder Plugin for hot keys.
    http://builderplugin.oracleapex.info/
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

Maybe you are looking for

  • Profit Center Wise and Currency Wise balances in same report?

    Experts, Is there any report where we can see Profit Center and Currency Wise balances in the same report? How can we get such report? - Nilesh

  • Recording Smart Phone - full motion not capturing stylus movements

    I am trying to create a recording that shows the movements of a stylus on a smart phone. I have the smart phone connected using active sync and am using pocket controller to project onto my computer. All of the captures work fine if i use the mouse t

  • ATP based on material and capacity availability

    Hi Experts, Is there a way to implement ATP with finite capacity availability and material availability in a Make to stock (MTS) environment in R/3? In other words, when a sales order is created for a material, the confirmation date that is recd. sho

  • Outbound Interface of Consignment Orders

    hi I Need to do 'Outbound Interface of Consignment Orders sent to various distribution Channels by Salesperson and by Territory'. what exactly the "consignment order" ? plz give me the nevigations for forms related to 'Outbound Interface of Consignme

  • How do i update to safari?

    I was setting up my new MacBook Air and an option to update safari to 6.0.2 came up but I skipped over it thinking I could go back later to update it. Now my macbook is setup but I see no place to update safari. I have version 6.0.1. When I click saf