Create submit button through extension

hi guys i have a requirement to create a new button on oaf page.i am extending controller and writing below code.but there is no button displaying on page.plz help me.am using jdev 9i and oracle ebs 11i.
   OASubmitButtonBean oasb= (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,"BUTTON_SUBMIT");
    oasb.setID("AssetDetails");
    oasb.setUINodeName("AssetDetails");
    oasb.setEvent("AssetDetails");
    oasb.setText("AssetDetails");
    webBean.addIndexedChild(oasb);
Note:region type is defaultDobuleColumn where i am trying to add button.
Please Please help me

1)
first of all you need to find the parent bean (defaultDobuleColumn)
something like this :
  parentWebBean =  webBean.findChildRecursive("Name of the Parent Object");
and then parentWebBean.addIndexedChild(oasb);
2) At the same time you can add the submit button using personalization.

Similar Messages

  • Create Submit button programatically

    Hi,
    Can some body help me with creation of submit button programatically.under page button bar region(Existing region on page)
    Thanks

    Hi,
    Please refer http://apps2fusion.com/apps/oa-framework/214-sample-code-add-submit-button-using-oa-framework-extension
    before adding button to pagebutton bar first get handle to page button bar region, then create submit button through code and then add it to page button bar.
    Regards,
    Reetesh Sharma

  • Created "submit" button not working with Reader

    I have created a submit button that will submit an email based off dropdown menu selection.  While it works great on my computer (Pro).  A user with Reader (9.0) can fill out everything until the (java created) submit button.  The user computer hangs...  Any ideas of what the issue could be?
    Thanks,
    Jo

    Thanks for the feedback, I figured it out.  Silly me, didn't have the form user-enabled.
    Jo

  • Need to create a button through personalization

    Hi
    I have an oracle seeded page where in one region i need to add a button thru personalization.I followed this steps:
    1. I went that region and personalized that region.
    2. Clicked on the Crete Item and selected item type as button.
    3. Here what all fields need to filled in order to properly work.
    I have an extended controller for aoracller seeded controller.When i press on this button the logic written in the extended controller should work.Can you please provide any solution for the same?
    Thanks
    Preeti

    Hi Preeti,
    Instead of creating button using personalization, crearte the button programatically in extended controller, and attach an event to this if it is not submit button.
    In PFR you can handle this button easily, using personalization if you will create button then you have to attach an event to this extended controller and then you need to handle the event for this So I think creating button programatically is simple than attaching an event to it.
    Regards,
    Reetesh Sharma

  • Manually created submit buttons & mandatory fields

    Hi,
    I included a Submit & an Email button in some of my forms.  I've set them up as Regular buttons and coded them myself to do what I want eg:
    if(xfa.host.messageBox("Please save this form before emailing or data will be lost","Save Form",1,1))
        app.execMenuItem("SaveAs");
    var sEmail = form1.Pg2.PtESF.Mgremail.rawValue;
    var sSubject = ("Permit to Train Request by " + form1.Pg1.PtASF.FirstNameFld.rawValue + " " + form1.Pg1.PtASF.LastNameFld.rawValue);
    var sBody = "Please approve the Permit to Train Request as attached.";
    event.target.submitForm({cURL:"mailto: "+ sEmail +"?subject=" + sSubject +"&body=" + sBody,cSubmitAs:"PDF",cCharset:"utf-8"});
    If I set them up as Submit buttons, they don't try to run the script more than once.  I assumed this was because I had the code built in with the Submit option and it ran that as well as my own code.
    So I changed the button to be a Regular button and then it worked perfectly - except for one thing.
    It no longer validated the mandatory fields.
    Can anyone tell me what's built into the Submit button (that I can't see), that I need to reproduce in my script for my regular button?
    Thanks,
    Peta

    Hi,
    The Submit buttons validate the from behind the scenes.
    You can use execValidate() in an if statement, and if passes then execute script.
    See an example here for execValidate():
    http://assure.ly/hM2A5y (see last button)
    http://assure.ly/flbjXB
    Both of the above examples use validationState and cancelAction so are targeted to Acrobat/Reader version 9.1. Please note that execValidate() can be used in earlier versions:
    http://assure.ly/lZhrSS
    http://assure.ly/dYQFb4
    Hope that helps,
    Niall

  • Creating a button through a class... H E L P

    Can any on ehelp me...
    I need to make a class, so that i in my JSP-file can create multiple buttons with different names..
    Something like this:
    package form;
    import java.awt.*;
    import java.applet.*;
    public class knap1 extends Applet
         public knap1()
              Button Knap = new Button("Knap");
              add(Knap);
    I'm pretty new at this, so can any one help me...
    Martin

    You'r right...
    The only thing i want is to have a set of different classes, that makes different form tag's by sending information to them..
    fx. TextField("the_name", "size","max_length")
    NumField("the_name", "size","max_length")
    and so on....
    Can you help from here....

  • How to disable programmatically created Submit Button in ProcessFormRequest

    Hi All,
    I'm working on an issue where i have created an Upload button Programmatically. The upload button should get disabled after it is clicked. The code for the upload button creation is as below. This has been added in the processRequest of CO.
    OASubmitButtonBean oasb;
    oasb =
    (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,
    OAWebBeanConstants.BUTTON_SUBMIT_BEAN,
    null,
    "BUTTON_SUBMIT");
    oasb.setID("Upload");
    oasb.setUINodeName("Upload");
    oasb.setEvent("Upload");
    oasb.setText("Upload");
    Now, when i handle the upload button click in the processFormRequest, i should also disable the button at the end. I followed the below method in the processFormRequest but it threw a null pointer exception at the point where i have disabled the button.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String strEvent = pageContext.getParameter(EVENT_PARAM);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (strEvent.equals("Upload"))
    OASubmitButtonBean oasb2 = (OASubmitButtonBean)webBean.findIndexedChildRecursive("Upload");
    oasb2.setDisabled(true); --- this is where the null pointer exception gets thrown
    I'm not sure if this is the way to go about it. Could you please let me know how to handle the above request?
    Regards,
    Shreyas
    Edited by: user11258661 on Mar 28, 2012 7:15 AM

    Hi Ram,
    Thank you for the response. I have created the button programmatically. So I'm not sure how to add the newly created button to the webBean as child. I'm new to OAF. So could you please elaborate. A code snippet might help.
    Thanks in advance.
    Regards,
    Shreyas

  • Error after creating submit button - WebDynpro Exception

    Hi,
    I have created a form from ABAP Webdynpro and in the adobe designer I have created a submit(both native and activex) button.
    If the form is in display mode I am able to see the button , but if it is enabled I get the following dump.
    WebDynpro Exception: The ADS call has failed.
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: CREATE_PDF_XSD of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Regards,
    Narayani

    Recently I cam upon a blog regarding this.

  • Creat New Button through Web Pl/Sql

    Hi,
    I have 2 Queries:
    First:How i can remove the default buttons which appear on the
    Form after i complete the Successful Generation of Web Pl/Sql?
    Second:How i can create my own Button object and place it on
    screen,bcz by default this buttons dosn't appear at all on
    screen.
    Thanx.
    Pritam

    New to Oracle and your nick says OCP? High hopes perhaps? ;-)
    The answer here is pretty complex (dealing with mod_plsql document table, processing CLOBs, using options such as external tables, writing your own tokeniser and CSV parser, etc).
    I'll be happy to touch on these.. but maybe you will find a lot more joy, a lot less frustration, in using APEX instead. See http://apex.oracle.com for details.

  • Controlling submit button manually

    Hi
    I have a button which is made as submit type and submit it as PDF and a url was given which is working as per the requirement.
    Now the new requirement is the Submit URL should get dynamically change based on the some value in the pdf, so can i control the url manually and also it should act like a submit button(like firing of validations etc).
    I tried xfa.event.target="url"; but that button doesn't act like submit button then after.
    Pls help.
    Thanks
    Abhiram

    You can modify the URL of the submit button through code. Of course you woudl do this before pressing it.
    The command woudl be
    submitButtonName.event_click.submit.target = "new URL "
    Paul

  • Can Designer create a submit button that works in Acrobat Reader

    Just got Adobe Professional 7.0 for Windows XP. Was able to design a form in Professional that works in Acrobat Reader (the majority of my users do not have the full product). To do this I set the email button to export the data in a .fdf format. I received the full form as an attachment in my email.
    I then brought up the form in Designer 7.0 to use its expanded design capability. The button choices for the email submit button did not allow me to select a format and the saved file would not work in Adobe Reader. I then changed the button to a plain button using the submit control type. I found several submit format choices (XML, PDF, etc.). I saved the file in a variety of the choices but could not get Adobe Reader to send the format versions. FDF was not a choice. XML works but I would rather see the full form directly as an email attachment instead of taking the extra step of importing the XML data into the form
    Anybody have a work around?

    Andrej -
    Can you be more specific about what is needed and how to do it? I just downloaded the trial version of Designer and Document Server 6. I've created the form with a submit button but it ain't working.
    I want the "Submit by email" button to do just that - send the viewable .pdf (not just the data).
    To take a step back - I can't even get the darn button to send anything. I have the info entered correctly in Designer but when the buttons clicked, an error msg. reads: "An error occured while sending mail". That tells me a whole lot of nothing. Is it because it's the trial version, or is there something else going on?
    Anyway can you explain how to use Reader Extension Server in conjunction with Designer?
    Thanks -
    Dewey

  • Dm cs3: How to create a proper layout for the E-mail sent to me by the submit-button

    Hi everyone,
    I created a form by dreamweavercs3. By the submit-button an
    e-mail is sent to the right E-Mail-Address. Everything ok.
    But the result looks very poor. Like :
    "name=xyc,adress=xtown".... and so one. Difficult to read and
    uncomfortable for further use.
    How I can get a better lay-out of this e-mail. Is it possible
    to create with that data f.e an excel-file. Or an jpg-sheet.
    Any ideas?
    And PLEASE! I am a greenhorm in the dreamweaver-world. If you
    like me to answer, do it in a way I can understand. (;-))
    Klaus

    Please find the form tag on the page, copy it to the
    clipboard, and paste it
    into a reply....
    <form name="..." method="..."....
    (that's an example of the tag - please copy everything from
    "<" through to
    ">")
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dr.Scholl" <[email protected]> wrote in
    message
    news:faeecd$dav$[email protected]..
    > Hi everyone,
    > I created a form by dreamweavercs3. By the submit-button
    an e-mail is sent
    > to
    > the right E-Mail-Address. Everything ok.
    > But the result looks very poor. Like :
    "name=xyc,adress=xtown".... and so
    > one.
    > Difficult to read and uncomfortable for further use.
    > How I can get a better lay-out of this e-mail. Is it
    possible to create
    > with
    > that data f.e an excel-file. Or an jpg-sheet.
    > Any ideas?
    > And PLEASE! I am a greenhorm in the dreamweaver-world.
    If you like me to
    > answer, do it in a way I can understand. (;-))
    > Klaus
    >

  • UPDATE button in the Data Control Palette and CREATE,SUBMIT,COMMIT

    JDeveloper 10.1.3
    I created a simple JSP page. It is based on a ViewObject that ties directly to a Person Table.
    two questions:
    1) I noticed in the "Data Control Palette" doesn't have the UPDATE operation... How do I do an UPDATE?
    2) to Create a Person through my new form I had to do the following steps in the Web Page: HIT CREATE BUTTON, ENTER DATA, HIT SUBMIT BUTTON, HIT COMMIT BUTTON.
    Seems like a lot of steps to simply create a record - is there a simpler way (using the JSP page, not JHS or JSF..etc).
    Thanks!

    1) my edit form is pre loaded with a record, since it is based on a parameterized view and I had to modify the pagedefs for that edit page to have the proper binding and action. It is setup to receive the PID in the request and set the value to the bind variable. This works fine to pull up the record. I then have the buttons that I dragged and dropped onto the screen: Submit (came with the drag-drop of the parameterized view), Create, Execute, Commit, Rollback. When I preload the right person into the form (by calling edit_person.jsp?pid=1), and then change the name (for example), I would have suspected that if I hit Submit that the Commit button would be enabled.. but it isn't. if I remove the part that disables the Commit button, then the Commit button doesn't work...
    2) I am in 10.1.3, and if I drag the commit over to the "Submit" button it doesn't take...it wants to add the new button to the right or left of the "Submit" button....

  • How do I create multiple TEBs with one submit button on one page in Captivate 7

    I've read other posts on this topic (which refer primarily to earlier versions of Captivate) and am still at a loss as to how to put multiple text entry boxes on a page with one submit button. Here's my scenario:
    I am creating test questions.
    Each test question has multiple text entry boxes (for numbers only).
    Student should be able to enter numbers into the textboxes in any order.
    Then there is one Submit button that should initiate validating all the text entries, and move to a scoring page (so I can test it). (What would be best is if this button not only did the above, but also submitted scores to the LMS.  But that is not my question at this time.)
    I'd like this question to be set up as a template so that I can duplicate it, be able to add or delete text boxes and change the values required in the text boxes.  
    Here is an image of a sample question page with multiple TEBs. The yellow boxes tell the student where they need to enter text:
    Any help or direction to help is appreciated!!

    I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz.  Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
    If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it.  But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
    You can learn more about the Master widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
    http://www.infosemantics.com.au/interactivemaster/help
    You can download a free trial version of the widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    One caveat you should be aware of is that this widget is not HTML5 compatible.

  • How do I create a submit button for my form? I would like it to send the completed PDF to an email address

    Hi everyone,
    I recently upgraded to Adobe XI and I can't find a "submit by email" button for my form. I created a button and tried to set up some actions but, I can only get the button to direct the user to a URL. How do I make it send the completed PDF to our designated company email address? I'm not too familiar with JAVASCRIPTS so I haven't tried that plus I heard it may not work with users with adobe reader.
    Any help would be appreciated.
    Thanks,
    Matt

    Thanks for the input. I think you might have a different version of LiveCycle than the copy I have since it looks a little different. However, I found the answer in Adobe help. I had to type "mailto:" before the email address to indicate it's an email and not a URL. See below.
    To collect form data as attachments to email, type mailto: followed by the email address. For example, mailto:[email protected]

Maybe you are looking for

  • Auto Page Number Change Font or Delete?

    After translation from Word to Pages, the auto page number font causes the third digit of the page number to appear outside margin of header.  How can I change font or delete and put in new page number?

  • Macros definition in SOP

    Hi, I have got some doubts about macro definitions in SOP. First, I would like to know how to use the ">" and "<" operators. Sometimes in the sequence of instructions they seem to behave as IF sentences. Example Operand 1           Operator          

  • Player size question for player developers

    Question for all player developers: For media players that you've built or that you've seen out on the web today, how big are they in k?  And of that total size, how much code does it take to support each of the service integrations with CDNs, ad ser

  • External graphic card for mac pro (early 2008)

    I have a Mac Pro (early 2008) where the graphics card seems to be dead. I have no replacement and a new one is a little too expensive for what I'm gonna use it for. (400$). Also the harddrive died. So now I have an unconfigured Mac Pro with no displa

  • HT4897 How do I move my Mobile Me Account into my iCloud account?

    How do I move my Mobile Me account into my iCloud account? Do I turn my Mobile Me address into an alias so I can incorporate it into my iCloud account? I'm not clear on this.