Submit Button never gets a Value in ReviewAbsenceCO

Dear Experts,
I have a requirement and have to extend ReviewAbsenceCO, my validation should only be fired when user clicks "Submit" button
To achieve this task I am using the following code in my class , but the Submit button never gets a value it is always null..
CODE
(pageContext.getParameter("HrSubmit")!= null)
I have substituted HrSumit with a few more options like "Submit","submit" and so on, but no effect.
Please tell me how to get the name of the clicked button.

Hi ,
Please make sure that you 're passing the right ID ( HrSubmit ) ??
to find the button ID , right click on OAF page - > view source - > search by prompt name , you will
get the id associated to bean , copy it and replace it in the above line you 've mentioned .
Note : Please make sure that its an submit button , for regular button normally Fire action will be attached , and approach for
handling regular button would be different .
--Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Create Window with Textbox and Button For getting Input Value

    Hi All,
    I have create plugin application but i want to take input from user. Therefore i want to create window with textbox and button.
    please may i get solution...

    Or if that's all you need to do, just use JavaScript or a form.

  • Command button to get next value?

    i am new to j2me
    i have this code which just shows 2x10=20 for now
    Code:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class TestMidlet extends MIDlet {
    private Form form;
    private StringItem testTable1;
    private Command testTable1Command = null;
    public void startApp() {
         Display.getDisplay(this).setCurrent(getValue(2));
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    // form.addCommand(getExitCommand());
    //form.setCommandListener(this);
    private int getValue(int val){
    int total=val*10
    return total;
    what i want is add a 'NEXT' button(Command button) in the main display or canvas
    which clicked shows value of (value+1)x10 and so on
    for eg
    on first 'NEXT' click it should show 30(ie 3x10)
    again pressed shows 40 and so on
    i actually want to implement it to a calendar code
    next i press on next on january display calendar of feburary should come
    suppose calendar is being displayed in getValue function
    I want to make concept clear through above simplified example
    thanks

    Thanks for the encouragement; I am going through the tutorials and also own two books, the Easy HTML-DB book and the Pro Oracle Application Express book. I do find it odd that the books and tutorials don't assume one has already created the database and then wants to create an application after that- such as that they all begin with creating an application from a spreadsheet and talk about uploading data, things I would expect to be done via PL/SQL or some other approach (such as pushing from SAS to Oracle). So these tutorials spend a lot of time on the loading of data as opposed to actually creating a front-end application, which is frustrating to me because I've already got my database all loaded and modeled.
    But I will be more specific in questions in the future. If any of you need any SAS help, please ask at the SAS forum (google SAS-L, hosted by Univ. of Georgia).
    Thanks :-)
    -Mary

  • Submit button don't commit field data to database

    Hello,
    I am working to fix a problem in apex. The problem that I have is that the submit button doesn't work propertely. When the form is running,  I select a row in the tabular form, change value in the  independent fields to Y, click the submit button, I get the message "the database have been updated " but when I refresh the report, I still don't see the field updated with the Y value.  it seems like the submit button don't commit the value to the database. can someone help? what do I do?

    Hi,
    I think it is an IE issue.

  • Adobe form with Webdynpro - Form is hanging on click of Submit button

    Hello Experts,
    My View has an adobe form that has many dropdowns and input fields. There are some fields which get automatically populated based on entries made by the users. There are several internal tables getting populated in the WDDOINIT method. I have a 'Submit Button' which when clicked should close the browser, retrieve data in the Context and do processing in SAP.
    When I click on the submit button, I get a 'Wait' symbol (the circle symbol) for a very long time and then the Connection time out error comes up.
    I commented the population of some internal tables in the 'Init' method. when I tested by clicking this button, it worked. The browser got closed and processing in SAP was done too.
    I am working with a fairly large data. 2-3 of the internal tables (that I commented) have 2000-3000 records. Is there is restriction on how much data the WDN can handle? I am stuck now because even though all codes are correct, the wdn is not able to handle the data.
    Any suggestions ?
    appreciate all your help! Regards, Liz

    This issue is resolved. This was due to loading a large data set to the form.

  • Problems with "Submit" button on simple PDF form.

    Hi there!
    I have searched, but perhaps not searching forums correctly to find my answer as this seems like it should be easy to fix (she said hopefully).
    I have created a simple, offline PDF form for an event registration.
    I have fields all done, set it up to email back a simple FDF from the client with a Combo Box "Submit" button.
    When the client fills in the fields and hits "Submit" button, she gets:
    "The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."
    I created this in Adobe Acrobat 9.
    Client is filling in using Windows XP.
    I have extended release, no security, etc.
    Is there something simple I am missing?
    Have been able to get this to work before.
    But now, not so much!
    Any help is greatly appreciated!
    Thanks!

    That's not normal. Do you know what version of Acrobat/Reader the other person is using? Can you post the form somewhere? If not, I'd be happy to take a look at it if you are free to email it to me at: acroscript at gmail dot com

  • Problem with submit button of jframe

    hi all
    i am having problems with the submit button. once the submit button is clicked the values should be updated to an array of objects. it is doing this. the problem is i want the current frame to close once i click submit button. i have a GUI at the background and once i click something this frame appears asking for details for th user to input. but i want only the current form to close, not the whole progrmy code is shown below
    thanks in advance
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class TextForm extends JPanel {
    public JTextField[] fields;
    public MainInteractiveMap mainClass;
    public TextForm(MainInteractiveMap m)
    mainClass= m;
    public TextForm(String[] labels, char[] mnemonics, int[] widths, String[] tips)
    super(new BorderLayout());
    JPanel labelPanel= new JPanel(new GridLayout(labels.length,1));
    JPanel fieldPanel= new JPanel(new GridLayout(labels.length,1));
    add(labelPanel, BorderLayout.WEST);
    add(fieldPanel, BorderLayout.CENTER);
    fields= new JTextField[labels.length];
    for(int i=0; i< labels.length;i+=1)
    fields[i] = new JTextField();
    if (i<tips.length)fields.setToolTipText(tips[i]);
    if (i<widths.length)fields[i].setColumns(widths[i]);
    JLabel lab = new JLabel(labels[i], JLabel.RIGHT);
    lab.setLabelFor(fields[i]);
    if (i<mnemonics.length)lab.setDisplayedMnemonic(mnemonics[i]);
    labelPanel.add(lab);
    JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT));
    p.add(fields[i]);
    fieldPanel.add(p);
    public String getText(int i){
    return (fields[i].getText());
    public void printForm()
    String[] labels = {"Location","No of Bedrooms","No of Bathrooms", "Garage","last selling price","current selling price"};
    char[] mnemonics ={'L','B','b','G','L','C'};
    int[] widths = {15,1,1,4,9,9};
    String[] desc = {"Location","No of Bedrooms","No of Bathrooms", "Garage","last selling price","current selling price"};
    final TextForm form = new TextForm(labels,mnemonics,widths,desc);
    JButton submit = new JButton("Submit");
    submit.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e){
    String location;
    final int sellingPrice;
    final int numOfRooms;
    final int marketPrice;
    final int numOfBathrooms;
    final int numOfGarages;
    location=form.getText(0);
    sellingPrice=Integer.parseInt(form.getText(1));
    numOfRooms=Integer.parseInt(form.getText(2));
    marketPrice=Integer.parseInt(form.getText(3));
    numOfBathrooms=Integer.parseInt(form.getText(4));
    numOfGarages=Integer.parseInt(form.getText(5));
    mainClass.Testing(location);
    System.out.println(numOfGarages);
    System.exit(0);
    JFrame f = new JFrame("Input details of House");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(form, BorderLayout.NORTH);
    JPanel p = new JPanel();
    p.add(submit);
    f.getContentPane().add(p, BorderLayout.SOUTH);
    f.pack();
    f.setVisible(true);
    regards

    you just need to change (at end of actionPerformed())
    System.exit(0);
    to
    [whateverFrame].dispose();
    easier to show a simple demo
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      public void buildGUI()
        JButton btn1 = new JButton("Open new Frame");
        final JFrame f1 = new JFrame("#1");
        f1.getContentPane().add(btn1);
        f1.pack();
        f1.setLocationRelativeTo(null);
        f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f1.setVisible(true);
        btn1.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            JButton btn2 = new JButton("Close/Return");
            final JFrame f2 = new JFrame("#2");
            f2.getContentPane().add(btn2);
            f2.pack();
            f2.setLocationRelativeTo(null);
            f2.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);//do not want to close with 'X'
            f1.setVisible(false);
            f2.setVisible(true);
            btn2.addActionListener(new ActionListener(){
              public void actionPerformed(ActionEvent ae){
                f2.dispose();
                f1.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • Problem in getting selectOneRadio value placed in dataTable

    I want to get Id bind with selected radio button, whn radio button is selected, the value of backing bean should be set.
    But the problem me facing is, If I check last radio button I get the value and if I get rest of radio buttons my bean value didnt set. Why it happen that only last radio button of data table row works fine.
    I hope I u ppl help me
    <h:dataTable value="#{depositMoneyPageBean.allCreditCardsOfUser}" var="creditCardData"
    >
    <h:column>
        <f:facet name="header">
           <f:verbatim>...</f:verbatim>
       </f:facet>
       <h:selectOneRadio id="selectRadio" value="#  {depositMoneyPageBean.selectedCreditCardId}"  onclick="selectOne(this.form , this)"  >
                                   <f:selectItem itemValue="#{creditCardData.cardId}" />                               </h:selectOneRadio>
      </h:column>
    <h:column>
                                  <f:facet name="header">
                                       <f:verbatim>Payment Method</f:verbatim>
                                  </f:facet>
                                       <h:outputText value="#{creditCardData.cardTypeName}" styleClass="tLabel" />
                             </h:column>
    </h:dataTable>

    Here is a comparable solution: http://balusc.xs4all.nl/srv/dev-jep-dat.html#SelectRowByRadioButton
    With a much better Javascript solution, it only clears out the involved radiobuttons, not the other radiobuttons in the same form, which can be dangerous if you've another radiobuttons for other purposes.

  • HTTP Submit Button vs event.target.submitForm

    Dear All,
    I have a problem that looks like I would need some expert help to resove.
    I have designed a small Form with Acrobat LiveCycle Designer ES 8.2
    The plan is people to fill out the form and submit it to a script on a web page.
    Here is the problem.
    When I insert a regular HTTPSubmit button. Everithing is working just fine. All th fields are submited, and I can process them from there with my script.
    However, when I try to make a regular button and add javascript to the click event.
    event.target.submitForm({cURL: "http://mysite/myscript.php", cSubmitAs:"HTML", cCharSet:"utf-8"});
    The form is submited but non of the fields are.
    As an example output from REQUEST array in PHP.
    With the regular HTTP Submit button I get:
    Array
        [familyname] => 1
        [SubjectNumber] => 2
        [Site] => 3
    While with the above javascript I get:
    Array
        [form1] => Array
                [0] =>
    Looks like with the Javascript I somehow cannot submit the actuall fields.
    Finally, let me tell you the reason why I even want to use Javascript instead of the regular HTTP Submit button.
    My plan is so people can actually change the location where to submit the form.
    From what I read if I use a regluar submit button, the URL must be hardcoded and cannot be changed (selected, by the user dinamically)
    While if I use javascript then I can easily have a text field where people can enter the site where they want to submit the form and use it.
    Thank you very much for your help
    Please let me know if you need any further information
    Regards
    Tsvyatko

    Hey gays, thanks for answering.
    However, looks like I still have problems.
    When I insert a regluar HTTP submit button, it asks for the URL or it will give error.
    Anyhow, if I leave the URL setting blank, and try to execute the code u mentioned, I get a messege, "submit canceled" and nothing is happening,
    And if I enter something in the URL, looks like it still overites the code and submits the form the the hard coeded url.
    In addition, the regular submit button does not even allow me to enter code in the click even, so I did enterend in the mose in even,
    as to execute the code before the button is clicked.
    In addition I also tried to enter the even in a text field exit which I was hoping to use so the user can enter their own url.
    In other words.
    could please be more specific.
    On which even shown I enter the code.
    p.s.
    Finaly,
    in Form Calc
    If I enter this on the mouse enter of the button:
    form1.SCOPA_p2.HTTPSubmitButton1.event__click.#submit.#target = form1.SCOPA_p2.HTTPSubmitButton1_txt.rawValue;
    I get error accessor form1.SCOPA_p2.HTTPSubmitButton1.event__click.#submit.#target is unknown
    Any other thoughts
    Thanks
    Tsvyatko

  • How to get current row value from table when press the submit button

    Hi,
    I want to get the current row value of SuccessionPlanId which is one of the column in a advanced table.
    I created one button (created using personalization, action fired thru CO)in the table as column, so each row having one button, if i press the first row's button means then i want to fetch the first row's SuccessionPlanId and if it is 3rd means then i want to get the value of third row's value.
    How to do it in controller extension?
    Please reply soon, its urgent.
    Thanks in advance,
    SAN

    Pratap,
    Yes, I tried with 'delete' button which is seeded one.
    For this, our code using row reference is working too fine. it throws exact SuccessionPlanId value of corresponding row.
    I created MessageStyledText, but here i need to give text value right, then only it 'll appear in the page.
    Instead i created one image and fired explicitly from the controller processRequest method.
    But the same problem remains..
    here my code:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean){
    super.processRequest(pageContext, webBean);
    OAButtonBean oabb = (OAButtonBean)webBean.findChildRecursive("XXSubmit");
    FireAction action = new FireAction("XXSubmit");
    oabb.setAttributeValue(UIConstants.PRIMARY_CLIENT_ACTION_ATTR, action);
    OAImageBean oaib=(OAImageBean)webBean.findChildRecursive("XXSubmitImage");
    oaib.setFireActionForSubmit("XXSubmitImage", null, null, true);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean){
    if("XXSubmitImage".equals(pageContext.getParameter("event"))){
    String succIdI="";
    String rowRefI = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    if(rowRefI != null && !("".equalsIgnoreCase(rowRefI ))){
    PerSuccPlanSearchVORowImpl rowI = (PerSuccPlanSearchVORowImpl)oaam.findRowByRef(rowRefI);
    if(rowI != null)
    succIdI=rowI.getAttribute("SuccessionPlanId").toString();
    }else{
    throw new OAException("Row is null");
    throw new OAException(succIdI, OAException.INFORMATION);
    }else{
    super.processFormRequest(pageContext, webBean);
    If i run the page using this controller, it throws exception without any value, because for 'succIdI' i initialized without any string.
    Can you please suggest me how to solve?

  • To get value of a ADFdropdown in backing bean without submit button

    hi all,
    It maybe a very easy thing to do ,but please could you help me with this as I am new to ADF?I have a dropdown whose value i need in my backing bean without the use of a submit button..
    please do help me out!!!!

    Hi Frank ,
    Thank You for replying...
    But even after autosubmit=true, it didnt work..
    i shall post the code below,could u please throw more light on it?
    <af:selectOneChoice value="#{bindings.fetchbusinessservicesVO1Pagename.inputValue}"
    label="#{bindings.fetchbusinessservicesVO1Pagename.label}"
    binding="#{GiveAccess.selectOneChoice1}"
    id="selectOneChoice1" >
    <f:selectItems value="#{bindings.fetchbusinessservicesVO1Pagename.items}"
    binding="#{GiveAccess.selectItems1}"
    id="selectItems1"/>
    </af:selectOneChoice>
    <af:commandButton text="commandButton 1"
    binding="#{GiveAccess.commandButton1}"
    id="commandButton1"
    action="#{GiveAccess.getItemsList}"/>
    When i use Command button it works fine..but i want the same functionality without the command button.(GiveAccess is the backing bean where i want the value from dropdown)

  • How to get inputted value in a RTE field on custom page and submit by REST call in 'Sharepoint hosted app'.

    Hi I am facing the three questions below.
    1. How to use default RTE in custom page in Sharepoint hosted app.
     I saw the article of Rich text Editor (ribbon based) in a webpart in SharePoint 2013 and tried it. But it did not work well. I guess it needs code-behind setting, however sharepoint hosted app does not support code-behind.
    Does anybody know how to do this?
    2. In above case, I placed the below code on custom page and tried to get the field's value when submit button was clicked.
    <SharePoint:InputFormTextBox ID="rftDefaultValue"
    RichText="true"
    RichTextMode="FullHtml" runat="server"
    TextMode="MultiLine" Rows="5">
    </SharePoint:InputFormTextBox>
    In debugger, the returned value was 'undefined'.
    var note = $('#hogehoge').val();
    Is it possible to get the RTE value? If yes, please let me know how to do this.
    3. I need to submit the RTE value using REST call.
    In this
    article in MSDN, the item creation sample treats single line text field. Does anybody know the sample for RTE?

    Hi,
    According to your description, you might want to use Rich Text Editor control in your SharePoint hosted app.
    First of all, I would suggest you post one question in one thread to make it easier to be discussed, which would also help you get a quick solution.
    Though we can add this control into a SharePoint hosted app, however, as we can’t add code behind for it, plus with the potential compatibility issues in different
    browsers, I would suggest you use other JavaScript Rich Text Editor plugins instead.
    Two JavaScript Rich Text Editor plugins for your reference:
    http://quilljs.com/
    http://nicedit.com/
    If you want to submit the value of Rich Text Editor control to a SharePoint list using REST call, since the content in the Multiple Line of Text column is wrapped
    with nested HTML tags, the similar requirement would also be applied to the content to be submitted.
    Here is a code snippet about how to update a Multiple Line of Text column for your reference:
    updateListItem(_spPageContextInfo.webAbsoluteUrl, "List018", 1);
    function updateListItem(siteUrl, listName, itemId)
    var itemType = GetItemTypeForListName(listName);
    var item = {
    "__metadata": { "type": itemType },
    "MultiTextEnhanced": "<div><a href='http://bing.com/'>Bing</a><br></p></div>",
    "Title": "123"
    $.ajax({
    url: siteUrl + "/_api/web/lists/getbytitle('" + listName + "')/items(" + itemId + ")",
    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    success: function (data) {
    console.log(data);
    $.ajax({
    url: data.d.__metadata.uri,
    type: "POST",
    contentType: "application/json;odata=verbose",
    data: JSON.stringify(item),
    headers: {
    "Accept": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val(),
    "X-HTTP-Method": "MERGE",
    "If-Match": data.d.__metadata.etag
    success: function (data) {
    console.log(data);
    error: function (data) {
    console.log(data);
    error: function (data) {
    console.log(data);
    // Getting the item type for the list
    function GetItemTypeForListName(name)
    return"SP.Data." + name.charAt(0).toUpperCase() + name.slice(1) + "ListItem";
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How to get current value of checkBox on button press programatically in adf

    Hi,
    I want to get the current value of checkbox(checked/unchecked or 0/1) in my java bean whenever I press submit button on my jspx page.
    My JDeveloper version is : 11.1.1.6.0

    Where is the checkbox value bind to? The status of hte checkbox is hold in the value property of the checkbox. This is normally an EL like
    #{bindings.Myvar1.inputvalue}or something pointing to a bean property. This value can be read from the action listener of your submit button
            BindingContainer bindingContainer = BindingContext.getCurrent().getCurrentBindingsEntry();
            AttributeBinding attr = (AttributeBinding)bindingContainer.getControlBinding("Myvar1");
            Object obj = attr.getInputValue();Timo

  • Submit button in cftextarea value

    Hello~
    I have a cftextarea whose value is being populated from a database. The problem is, some of the values contain form code, including submit buttons. Most of the form displays correctly inside the richtext cftextarea, but the Submit button is always displayed outside of the text box, rather than as part of the textbox value. I have html set to yes, and I am using the richtext option. Any ideas? Thanks!

    Esacpabe the HTML with either htmlCodeFormat() or htmlEditFormat().  One ads a set of ,<pre></pre> tags, but I can never keep them straight without looking at the documentation.
    Otherwise the Browser is going to see the HTML tags and parse them in order they find them.  Browsers are not strict about tags being closed before other tags opening so you can't put unescaped tag code inside something like another <textarea></textarea> HTML tag block.

  • How to get current row using submit button ?

    Hello Friends ,
    Is there any way i can capture the value of current row by submit button ?
    Here is my requirement , i have seeded OAF screen and it has table region one of the column has radio button , the existing
    functionality is when ever the radio button is selected and click on submit button ( submit button attached on top of the table region )
    other oaf page is getting opened .
    Now i wish to restrict the navigation based on some condition , but i don't know how to get the current row using submit button .
    Note : there is no Fire Action event for radio button column ? I dont' know how orale is selecting a specific row
    Any suggestion please ?
    Regards ,
    Vamsi

    Thanks sushant for your response ,
    Well i have tried your approch , i am not getting values for current row .
    if (pageContext.getParameter("paApply") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject localOAViewObject1 = (OAViewObject)am.findViewObject("ProjectDatesVO");
    if(localOAViewObject1!=null) {
    Row DateVoROw = localOAViewObject1.first();
    RowSetIterator iterator = localOAViewObject1.createRowSetIterator("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(localOAViewObject1.getRowCount());
    for(int i=0; i<iterator.getRowCount(); i++)
    DateVoROw=iterator.getRowAtRangeIndex(i);
    String vacancyValue= DateVoROw .getAttribute("vacancyname).toString();
    Could you please let me know where i am going wrong
    Thanks again ,
    Vamsi

Maybe you are looking for

  • Memory upgrade for HP Compaq 6000 Pro SFF

    Hi all!. I've got a problem for upgrading RAM memory on my HP Compaq 6000 Pro SFF. In fact, upgrading is from 2GB to 4GB. I think all technical details are the same ones. So, there're two memory modules on my PC (ELPIDA 1GB 1Rx8 64 bit DDR3 1333 PC3-

  • Is patch 140995-07 for SunRay supported with VDI 3.2?

    I have an existing VDI 3.2 infrastructure in place and have just bought some SunRay 3I DTU's and want to know if the Patch bundle 140995-07 is supported in this environment. I have Files included with this patch: Note:     SUNWlibusbut-4.2-77.27.i386

  • Problem with contacts

    Hello there, I have two iPhones, one is my mother and one is mine. Can I separate contacts, messages and etc, without creating new ID

  • HT202856 Dell P2715Q for 2013 Mac Pro.

    The new Dell P2715Q 4K monitor looks to be a technically compatible monitor for the new Mac Pro.  I see it supports DP 1.2 and MST. Anyone using this monitor and and vouch for its use. Thanks.

  • I want product costing  related full documents

    Hi i want product costing related full docments. Thank you Anil