Two buttons on one region

Hello,
here my problem:
I have a region(SQL_Report) called "Search". There I have a search-function. On this region I have two Buttons. One calleed Search and one called Reset.
If I search after a word and click on the Search Button I get a result table -> that works.
If I click on reset I want the result table to be cleared.
How can I do this?
Hope anybody can help me.
Steffi

Hi Scott,
first my Code was like this:
declare
q varchar2(4000);
begin
q := 'SELECT NAME Name,VERANTWORTLICHER_TEAM Verantwortlicher,BETRIEBSSYSTEM Betriebssystem,WERKZEUG_SPRACHE Sprache FROM PROJEKTE';
if :P1_SUCHEN is not null then
if :P1_RADIOBUTTON = 'B' then
q := q || ' WHERE UPPER(BETRIEBSSYSTEM) LIKE ''%' || UPPER(:P1_SUCHEN) || '%'' ';
elsif :P1_RADIOBUTTON = 'V' then
q := q || ' WHERE UPPER(VERANTWORTLICHER_TEAM) LIKE ''%' || UPPER(:P1_SUCHEN)|| '%'' ';
else q := q || ' WHERE UPPER(WERKZEUG_SPRACHE) LIKE ''%' || UPPER(:P1_SUCHEN)|| '%'' ';
end if;
end if;
return q;
end;
Here I search after specific criterias. This works. I click on the radio button "Betriebssystem(operating system)" and write "L" into my textfield. If I press the search button I got a result table with all datas about the project running with the operating system Linux.
Now I want to press the reset button and want the table to be cleared. But I didn't get it yet.
Hope you understand what I mean.

Similar Messages

  • MAP Component: Two District in one Region!

    Hi Experts,
    Good Day Greetings!!
    I'm working on maps (INDIA), there is a requirement from the user.
    In Dashboard i found INDIA map with Region, in my company, in one region i have different branch's.
    Lets say, Karnataka (region)----> Bangalore and Mangalore.
    Now I want to represent these two cities in Karnataka ( Region)..
    How can i achieve this ????
    Appreciate you help and suggestions..
    Thank You & Regards,
    Manoj

    Hi Manoj,
    Right now all charts functions based on the standard region provided by SAP. In this case i would request you to keep a push button or toggle button to display to your data based on your logic.
    below links can provide you some idea on this. Revert back for any clarification.
    India map in Dashboard

  • Two reports in one region

    Hi,
    I have region and I want to add two reports to this region, every report has diffrent query
    can I do this in Apex ??
    Thanks for all.
    Best Regards.
    Mohd.

    This can be done in several different ways:
    1. the way it was done in my demo application
    2. modifying region templates and making the regions to appear beside / below each other in order to look as one
    3. using HTP.p to create your own region / reports manually.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Two buttons in one form?

    hi,
    i wanted to know if i place 2 buttons in one form, the form will submit to the same page either way, is there any way on the second page to detect which button was clicked? suppose the form sends for info on a person but i need to know which button was clicked on the other end to display other data, is it possible to know which one was clicked?
    Thank you.

    If you name the buttons the same, but assign them different values, you could check the value of the parameter with the button's name to determine which button was clicked. Alternatively, you could set up a hidden field called something like "buttonClicked" and prior to submittal of the page, change it's value to that of the button which the user clicked.
    This is more of a JavaScript sol'n, but one that works.

  • Two buttons on one form

    i have a form that currently has one (image) submit buttong and a check box. If you try to press the button to take you to a new page BEFORE the check box is ticked it brings up an alert.
    I want to add another button that will send the check box information to a phpMyAdmin SQL DB.
    Here is what i have so far
    FORM:
    <form action="eLease.php?userid=<?php echo $row_Recordset1['userid']; ?>" method="post" name="form2" target="_new" id="form2">
          <div align="right"><span id="sprycheckbox2">
            <span class="body-text">Lease Schedule</span><br />
            <input type="submit" name="button" value="confirm" />
            <input type="image" src="../images/smalldownload.png" width="35" height="35" alt="download" value="submit"/>
            </a>
            <input type="checkbox" name="leaseshedule" id="leaseshedule" />
            <br />
          </span></div>
        </form>
    ERROR MESSAGE:
    <div id="ErrorZone1"><span class="checkboxRequiredMsg"><table width="400" border="1" cellspacing="0" cellpadding="0">
            <tr>
              <td><table width="400" border="0" cellspacing="10" cellpadding="0">
                <tr>
                  <td><strong>Electronic Signature Agreement:</strong><br /></td>
                  </tr>
                <tr>
                  <td>this is an error message</td>
                  </tr>
                <tr>
                  <td><strong>Terms and Conditions</strong></td>
                  </tr>
                <tr>
                  <td>Terms go Here</td>
                  </tr>
                <tr>
                  <td>I have read and understand the statement above</td>
                  </tr>
                <tr>
                  <td>Signed:<img src="signatures/<?php echo $row_Recordset1['TenSig']; ?>" alt=""/></td>
                  </tr>
                <tr>
                  <td>Guarantor Signature:<img src="signatures/<?php echo $row_Recordset1['GuSig']; ?>" alt=""/></td>
                  </tr>
                </table>
    So i want to add another button that when submitted send the checkbox "y" to the DB then sends them back to this page, they can then click the other button and log into the eLease.php page
    thanks in advance

    Sorry, I don't understand the logic of what you're trying to do.
    As far as I can see, you want to make sure that the user has selected the check box before being able to proceed. The check box name isn't sent with the form data if the check box hasn't been selected when the form is submitted.
    Let's say your check box is called "agree". You can test to see whether it has been checked like this:
    if (!isset($_POST['agree'])) {
        // return the user to the original form with an error message
    } else {
        // process the form
    Message was edited by: David_Powers to clarify what happens if check box isn't selected.

  • Send two button in one form

    hi...
    i'm using jsp to design and coding in netbeans...
    my problem is....i have 2 button first button i'm using to searching and another button is to update but this 2 button send the parameter using form like this....
    <form action="<%=request.getContextPath()%>/tbcForeigner.do" method="post" name="search">
    and my searching function success....but i have problem to pass update button.....
    how to send this update button....

    The end result of all that "I'm using Netbeans to write a JSP" process is that you produce HTML. So forget about JSP and Netbeans for a minute and design the HTML you want to output.
    Can't do that? You don't know how to do whatever it is you were trying to ask? Okay, fine. Then it's an HTML problem and this isn't an HTML forum. Go and find one. Ask the question about your HTML.
    Or have you decided how your HTML should look and you can't write a JSP that produces that HTML? Then it's a JSP problem. Notice that this is a "Java Programming" forum. You don't have a Java Programming problem, you have a JSP problem. Scroll down the list of forums for a bit and you'll see the JSP forum.
    And if you are having a problem getting Netbeans to do something, then you should find a Netbeans forum to ask about that.

  • Multiple Reports In One Region - Question For Denes Kubicek

    Denes,
    I looked at what you've done on your demo app 31517, Page 152
    (http://htmldb.oracle.com/pls/otn/f?p=31517:152), in which you place several reports in the same region. It is nicely done and a great example of something I
    need to do at my work place.
    I have two questions.
    1) In your explanation link (takes me to your blog) you say you made changes to a copy of the Report Template and placed this copy into a copy of the Standard Page Template. However, I see that your reports are set to "No Template".
    I've probably missed something here, but don't know what.
    2) A more general question ... I'm intrigued in how you get tab item in, say, your Section 4 Tab Set (or any of the other Tab Sets) to "Stand Out" in bold letters
    when clicked on. How are you doing this?
    Thanks very much for your help. Yours is one of the great sites to learn from.
    Elie

    Apex v4. has parent and child regions (subregions) where child regions display inside the parent. If you make the child regions with no template, they will probably appear as if it's just two reports in one region.
    Problem is, they display one above the other, not side by side. But there's been a recent thread on working around this just in the past few days on this forum.

  • Control two functions on one button click

    Hello,
    first off, I am relatively new to actionscript 3.0. I was
    wondering if anyone knows how I can control two events on one (the
    same) button click. On click, the first function must jump the user
    to a particular frame label and at the same time trigger a second
    function which is a movie clip on that particular frame. I must
    note that the event listener is attached to an actual Button and
    not a movie clip.
    Any help would be greatly appreciated.

    Thanks for the quick response. I tried out your solution but
    I get the following error...
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at index_fla::MainTimeline/rev()
    at index_fla::MainTimeline/resources()
    I also tried to create another event listener on Mouse_UP
    ex:
    topNav1_btn.addEventListener(MouseEvent.CLICK, resources);
    topNav1_btn.addEventListener(MouseEvent.MOUSE_UP, rev);
    but I get another strange error...
    ## [Tweener] Error: [object MovieClip] raised an error while
    executing the 'onComplete'handler.
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at MethodInfo-218()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/updateTweenByIndex()
    at caurina.transitions::Tweener$/updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()
    ## [Tweener] Error: [object MovieClip] raised an error while
    executing the 'onComplete'handler.
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at MethodInfo-241()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/updateTweenByIndex()
    at caurina.transitions::Tweener$/updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()
    any other thoughts? Thanks in advance.

  • Can we perform two actions with one button with two clicks one after other?

    Sir,
    can we perform two actions with one button with two clicks one after other?
    I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
    Regards
    Tanvir

    In code it should be easy.
    The following code adds a button called butman with a text "ADD".
    It then registers a listener that will be called if the button is clicked.
    This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
    Therefore it will swap the button's functionality between ADD and CLEAR on every click.
    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});I hope this is what you wanted.
    Some extra food for thought.
    You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
    I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed.

  • Extending one Region Controller but need hold button id in Another Region

    Hi All,
    I am extending one Region() Controller.But i need to get control to a Button in a different region(Page Button Bar: (EffDateFooterRN)).
    I tried to use PageLayoutBean as well as OASubmitButtonBean but it is returning null.
    Can anyone help on this?
    Thanks
    Preeti

    Hi
    as sumit said ,u need to capture the button event inside the CO of Paglayout region ,u have to get the correct id of buttion to capture the event in PFR method of CO.
    thanx
    Pratap

  • Can we have two submit buttons in one form

    please someone help me. my problem is i want two submit button in one form.one to insert data and other to search data .how can i do this.

    hi!
    it is possible but impragmatic to supply a single form with 2 submit buttons.
    albeit, rather that use submit button you may just do the following (alternatively):
    a. put a default action url to your form's action attribute;
    b. replace all your submit button with just button (form element) and put a unique id on each;
    c. then put a function name (javascript) on its onClick attribute;
    d. in your javascript function, you may now reference your button through their id's and using an if-then statement, assign the proper url that will serve as the new action for your form;
    e. on the last line of your function, execute the line formname.submit()doods72
    http://www.ingenium.com.ph

  • Unable to clear the data by clear button in Query region in Expenses Home

    Hi,
    I have created two custom regions of query type through JDeveloper,
    Clear button is not working in one region (especially which is on top of both, no matter region 1 or region 2 )
    I didn't write any code there
    please advise how to fix this one
    Thanks
    Suresh

    Extend the controller class file
    Write below code in process request
    OAQueryBean query1 = (OAQueryBean)oawebbean.findIndexedChildRecursive("QueryRN");
         query1.setClearButtonName("CustomClearButton");
         query1.setGoButtonName("CustomGoButton");
    Thanks
    Suresh

  • Processess on Buttons created among region items behaves strangely

    I have two buttons Button1 and Button2 and item TEMP.
    Buttons are of type (Button among region items)
    Now our requirement is that when Button1 is pressed TEMP should be set to 1 and
    when Button2 is pressed TEMP should be set to 2.
    But it does not happen.
    I have written 2 processess for it.
    First is - Set :P1_TEMP = 1 - (when button pressed *P1_BUTTON1)
    begin
    :P1_TEMP := 1;
    end;
    Second is - Set :P1_TEMP = 2 - (when button pressed *P1_BUTTON2)
    begin
    :P1_TEMP := 2;
    end;
    The values in TEMP are not populated accordingly.
    It is always set to 2 even if I press button1.
    I have created a demo at
    http://apex.oracle.com/pls/otn/f?p=20426:1:1861250906981044:::::
    Now if I remove the second process than TEMP gets set to 1 when BUTTON1 is pressed.
    Any ideas on this strange behaviour.
    Thanks
    Ameya

    Hi, Ameya
    I have test your application.
    I had tried to add two branches : one activated when button1 is activated
    , another activated when button2 is activated which submit your page 1,
    affecting the value of item TEMP .
    It's working for button 1 but for button2, despite the fact I tell him to send 2 for the
    value of item TEMP in the branch, it seems that it was "the branch of the button1" which is activated...
    So, I let the 2 branches (with condition never) (I think processes is not needed here) in case you want to see the method.
    Hope Jes can help you.
    Mike

  • Two buttons in upper left corner , arrow pointing upwards with a tail &  tw

    Real simple and quick question in a lot of logic windows in the upper left corner I see these two buttons.
    Once is a arrow pointing upwards with a tail that goes to the right, and turns at a right angle.
    The other question is what is the button right next to it that looks like two paper clips, or two links in a chain. Often this is shaded meaning that it is enabled correct?

    cyline wrote:
    Real simple and quick question in a lot of logic windows in the upper left corner I see these two buttons.
    Once is a arrow pointing upwards with a tail that goes to the right, and turns at a right angle.
    That's the hierarchy button, useful for moving up in the display levels - for navigating up and down within folders, for example.
    The other question is what is the button right next to it that looks like two paper clips, or two links in a chain. Often this is shaded meaning that it is enabled correct?
    That button links windows. Control-clicking sets the way the links are established. Useful for updating (or not) displays of regions - for example, linking a specific region to the piano roll.
    There's another useful link button on plug-in windows, which allows you to switch a plug-in display to show another plug-in in the same window, or with it off, display separate windows each time, so you can compare one to another.

  • I have a 3 year old MacBook Pro with MAC OSX 10.6.8, iPhoto '09 version 8.1.2 and have downloaded two software programs: one is Aperture 3.2 and the other is Photoshop Elements 9 (which I got from a friend who didn't need it). I am totally happy with the

    I have a 3 year old MacBook Pro with MAC OSX 10.6.8, iPhoto ’09 version 8.1.2 and have downloaded two software programs: one is Aperture 3.2 and the other is Photoshop Elements 9 (which I got from a friend who didn’t need it).
    I am totally happy with the way iPhoto organizes my photos and how I can work with iMovie to create slide shows with music from iTunes, etc.
    I have been shooting mostly high resolution jpegs and I continue to learn more and more about photography, post processing etc. I realize that the small adjustments I can make in iPhoto are good, and are adequate most of the time. However, a have started to experiment with shooting RAW images and would like to go the next step, ie. post processing.I am totally technically challenged and need SIMPLE, INTUITIVE programs and am certainly NOT anywhere ready for Photoshop CS whatever!
    After having these programs sit on my computer, I decided to try to see if I could figure them out. When I opened Aperture, this is what first comes up.
    “Welcome to Aperture 3.2
    Your library needs to be upgraded to work with this version of Aperture. Once upgraded, you will not be able to use this library with previous versions of Aperture.
    Upgrading a library from previous versions of Aperture 3 generally takes a few minutes or less, though larger libraries will take longer. After that, Aperture 3.2 will upgrade your library's thumbnails, but you can use the application during that time.
    Tip: To open a different library, quit Aperture and hold the Option key down while starting Aperture
    Current Library Location:
    Jadzia (home)   -----Pictures------Aperture Library
                                                      QUIT             UPGRADE”
    I have heard horror stories  about moving your entire library to Aperture, ending up with 2 libraries, etc. etc. hence my previous reluctance in attempting Aperture. In addition, many of my photography friends are saying: Go with Lightroom 3.....you’ll love it!
    So here is my dilemma.  I don’t want to mess around with my iPhoto library. All I want to be able to do, is to isolate a few photos, export them to Aperture, Elements, and work on them there, then bring them back into iPhoto.
    Can I do this? Should I forget about Aperture and Elements and look at purchasing yet another program like Lightroom?

    Export those few photos via the File ➙ Export ➙ File Export menu option with Kind = Original to the Desktop.  Then import them into the Aperture library. That would keep one copy in your iPhoto library and another in your Aperture library to edit, etc.
    You can use Photoshop Elements 9 from within iPhoto as your editor of choice. However, if you edit a raw file in iPhoto with PSE9 the resulting edited version must be saved outside the iPhoto Library and imported back in as a new file.  For editing jpegs just do a Save (not a Save As) and it all will be kept within iPhoto. 
    Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
    1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop.  When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done. 
    3 - however, if you get the navigation window
    that indicates that  PS wants to save it as a PS formatted file.  You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements  the Saving File preferences should be configured as shown:
    I also suggest the Maximize PSD File Compatabilty be set to Always.  In PSE’s General preference pane set the Color Picker to Apple as shown:
    Note:  to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.
    OT

Maybe you are looking for