Can a single button be used to branch to either a URL or a Page?

I currently have two buttons on my page that are hidden/shown based on user input.
Button1 is a "Template based button" with a URL Target of javascript:showReport();
Button2 is a "Template based button" for which I've created a Branch to Function Returning a Page.
The reason that there are two buttons, is that Button1 is used to popup a window for executing an Oracle Report based on the user's input. The page is not submitted, so all the values are read by javascript in the page header. These values are used to dynamically build the URL (using the showReport() function) which executes an Oracle Report. In contrast, Button2 submits the page items and will redirect to a page within APEX based on the value of one of the Page Items.
Now, I have a need to validate some of the page items, which I could create validations for, but they would only validate upon page submission via Button2. I don't want to write a bunch of logic in Javascript to perform validations for the same items when Button1 is pressed.
As a result, is it possible for me to just have ONE button to either branch to URL using javascript:showReport(); or branch to an APEX page?

Hopefully I am understanding your question correctly.
Use need to use a submit button of some sort. In the branch, you select the on submit, after processing. This is what makes this happen as a branch.
Create two branches.
Branch 1 - select the branch to url or page option
Select page and put in the page number <next>
conditions - select item = value, and put P1_SELECT_LIST = 'PDF' for the expression value.
Branch 2 - select the branch to url or page option
Select URL and type in the url you want to go to <next>
conditions - select item = value, and put P1_SELECT_LIST = 'XML' for the expression value
continue as needed.
I didn't test this, but hopefully you get the idea. If you have other branches, just place these earlier in the sequence if you want them evaluated first.
Hope that helps, Ken

Similar Messages

  • Can a single quote be used at the beginning of a query string parameter

    Hi all,
    I am a relative newbie and have a newbie question.
    Can a single quote be used at the beginning of a query string parameter passed to a jsp page? Are there any inherant problems with this? Is there a comprehensive list of characters that must be escaped in a query string parameter?
    Example: http://mysite.com/myjsp.jsp?param1='nghdh
    Thanks

    You'll have to escape most non-letter characters before you can pass them as a URL. I don't know if it's necessary for a single quote, but better safe than sorry.
    Either use java.net.URLEncoder(...) or use javax.servlet.http.HttpServletResponse.encodeURL(String). I wouldn't recommend using unescaped characters in your URLs, that might cause pretty funny behavior that's sometimes hard to trace back. Don't worry about decoding it, your JSP/Servlet container will do it when you call javax.servlet.http.HttpServletRequest.getParameter(String).

  • Can a single datasource be used by more than one Application running on the

    Can a single datasource be used by more than one Application running on the system?

    What, in this context, do you mean by "datasource"?

  • How can I sort a table using more than one column in Numbers or in Pages?

    How can I sort a table using more than one column in Numbers or in Pages?

    Hi Ron,
    On the right side of the Toolbar click the Sort and Filter button, then select Sort.
    You can then set up a multiple column sort.
    Click Add A Column, Specify the sort for that column, Repeat.
    Jerry

  • Can a Photoshop button be used as a Lightbox trigger?

    I've brought in a layered PSD file as a button with different states, but instead of the button linking to another page or similar, I'd like it to trigger a lightbox image that triggers a different hero image. Or, thinking about it in another way, can a lightbox thumbnail be replaced with not only a different image than the hero, but also has normal, rollover and down states?
    Is this possible?

    Hello,
    You can achieve this by using the Lighbox widget under "Compositions" option in widget.
    First indert the Lighbox widget (from Compositions catagory in Widgets)
    To insert the Photoshop button, Go to File>Place Photoshot button.
    Select the PSD file and place it on the page.
    Now click on the Photoshop button on the page and drag and drop it inside the Trigger of the Widget (Make sure the mouse pointer is inside the trigger and then release the mouse click to make sure it gets placed inside the trigger).
    And you can add a different image/content for target container as well.
    One quick tip : Click on "Hide all initially" option in Lightox widget properties (Which comes up when you click on small white arrow in blue circle when any Widget item is selected) to make sure all the states/layers of the button works.
    Hope this helps.
    Regards,
    Sachin

  • Can a single license be used to multiple pieces of content?

    What I'd like to do is have a user retrieve a single license and be able to view all content belonging to a bundle of media.

    Hi Pedro,
    Thanks for the clarification.  I'll try to answer this question from 2 different angles.  : )
    [ 1 ]
    Flash Access differs from WMDRM/PlayReady in the way licenses are acquired.  With Flash Access, the DRMManager.loadVoucher() API is used to retrieve a license.  There is no need to specify a Key/Content/License ID; the only data required is the content's metadata (DRMContentData), which contains all the information needed by the client and server to issue/use the correct license.
    For additional information on the client workflow involved with playing back Flash Access content, please view the AS3 Developer's Guide for Flash Access.
    [ 2 ]
    To answer your original question - yes, you can encrypt multiple content using the same Content-Encryption-Key, and also the same License-ID (See our Java API).  By doing this, your client can download a single license, and all encrypted content you have can utilize the same license to playback video.  However, your workflow will be the exact same (acquire metadata, call DRMManager.loadVoucher(), call NetStream.play()), so you won't really notice any difference between using the same CEK or LicenseID.
    Make sense, or have I added more confusion?
    cheers,
    /Eric.

  • Can the same button be used for different things

    hi, i want to be able to change what area the player goes to when they press the journey button. but the code i made can only display one message, and that is, "you journey on..."
    i want to be able , for each button press, to move the player forward to a new area, is that possible? here is the code so far.
    import java.applet.Applet;
    import java.awt.Button;
    import java.awt.Graphics;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class Buttondemo extends Applet implements ActionListener{
    String msg = "";
    String zone = "forest";
    String message = "Current zone is" + zone;
    Button attack,run, inventory, search, journey ;
    public void init(){
    attack = new Button("attack");
    run = new Button("run");
    inventory = new Button("inventory");
    search = new Button("search");
    journey = new Button("journey");
    add(attack);
    add(run);
    add(inventory);
    add(search);
    add(journey);
    attack.addActionListener(this);
    run.addActionListener(this);
    inventory.addActionListener(this);
    search.addActionListener(this);
    journey.addActionListener(this);
    public void actionPerformed(ActionEvent ae){
    String str = ae.getActionCommand();
    if(str.equals("attack")){
    msg = "You attack!";
    else if(str.equals("run")){
    msg = "You run!";
    else if(str.equals("inventory")){
    msg = "Here is your inventory";
    else if(str.equals("search")){
         msg = "You start searching...";
    else 
         msg = "You journey on...";
    repaint();
    public void paint(Graphics g){
    g.drawString(msg, 6, 100);

    Ofcourse its possible. Maybe you wanna consider using an specific actionlistener for the journey button instead of using the common actionlistener.
    Like this:
    journey.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent ae){
              //Move forward...
    });

  • Can a single database be used for two operation system in a single machine

    Hi,
    I have a typical question. My problem is that in my testing machine I have Linux Enterprise(UFS file system) and Windows XP(FAT partition) both installed as dual partitions..
    In Linux I have mounted the Windows XP file system as read write , so I can access the Windows file system from my linux.
    I have Oracle 10g on Windows XP with datafiles in my F:\ location.
    This location F:\ of windows is mounted as /datafile on Linux.
    Now my question is If I install an oracle instance in Linux OS of my system, can I use the same datafiles I am using for my windows?
    Regards
    Vineet

    Hi,
    No, because, as you wrote F:\ of windows... /datafile on Linux, the datafiles directory are committed into the system tablespace. Also, you can see that the absolute same directory is not mentionned as the same way.
    For example for Windows database : select member from v$logfile; will give D:\oracle\oradata\DB1\log\redo01.log
    And into Linux, the same query /oracle/oradata/DB1/log/redo01.log
    There is no automatic translation between the both systems when Oracle start.
    HTH,
    Nicolas.

  • HT1343 can a single key be used to delete text in a word document?

    when using mbair, can the keyboard be set up to have one key only delete text?

    What Windows users call a backspace key is the delete key on a Mac (specifically). Is there some major problem putting the cursor at the end of what you want to delete and then deleting it?

  • Can a single char be used both in rows, filters and free chars

    Hi.,
      Can 0customer can be used in rows, filters and free chars at a time ?
    Or the chars which are used in either one of themrows or filters or free chars) cant beused in the other(rows or filters or free chars)?

    NOpe, it can only be used in one place.
    May be what you have seen is it could be a nav. attribute of master data and transactional data with the same name. Or the same object name could have been in two different underlying model of infoset and it would be dragged and dropped with the same name.
    thanks.
    Wond

  • HT202304 Can't send e-mails using iCloud address on either my iPhone or Macs ?

    Hi guys and gals,
    I can't seem to be able to send e-mails using my iCloud address.
    No idea why that is. I don't get any error message, the e-mails 'get sent' without any fuss or ending in the outbox folder and they simply do not reach their destinations. There doesn't seem to exist any issues with Apple either. Perhaps my e-mails are being blocked, out of the blue (not by my ISP though, I'm having this problem with whatever network I'm connected to or using  internet data on my mobile). ?
    Any help would be appreciated, thanks !

    Hello,
    Is the e-mail account in question a .Mac or .Me account at all?

  • Sound Blaster Omni 5.1 - mute speaker and mic with single button push

    Does anyone know if its possible configure the Omni to mute both speakers and the Omni's internal mic with a single button push using the hardware volume/mute button on the Omni. I have a scenario where i need to mute both quickly when a call comes in and its a nuisance having to mute the speakers and mic separately.

    Hi Tony,
    Unfortunately there is no physical button to achieve that. Neither is there a software button to disable both speakers and mic at the same time.
    Regards,
    Colin-CL

  • How to use single button for different operations

    Hi
    I am using one button with image having 4 controls like left right up and down...
    How to use the single button for 4 different operations??
    Is there any way of defining hotspots on single button to do four different operations...
    Please have a look at the attached image, u can understand my problem better...
    Please let me know ASAP...
    Thanks and Regards
    Aruna.S.N.

    Here ya go:
    http://code.google.com/p/flexlib/wiki/ComponentList
    If this post answers your question or helps, please mark it as such.

  • HT1947 If you add music VIDEOS to Up Next playlist, then go to look at the album cover playing screen, then go to add another song from diff playlist, no longer can see Up Next, just go to full screen mode button. Using remote app iphone 5 to play out of

    If you add music videos to Up Next playlist, then go to look at the album cover playing screen, then go to add another song from different playlist, you no longer can see Up Next, just go to full screen mode button. Using remote app iPhone 5 to play out of iTunes. It looks like it works fine for regular music, but for music videos you can't see your up next unless you go back on the computer to change once you've left the screen. When using the remote app, you shouldn't need to go to iTunes on the PC to view or edit Up Next already added. See first image, you can hit upper right and get back to Up Next (second image). Third image is music video, where you can't get back to Up Next, just swap between full screen and not. I hoped 3.0.1 would have the answer, no luck!

    wow, very nice review Makes me want to get a vision for myself.
    WebKnight wrote:
    <SPAN>
    Add the ability to randomly select a new background from a pre selected group of photos every time the player is turned on or each day.
    I would love that feature. I can't stand useing my computer with a single wall paper anymore (I have 500 anime pics that i rotate between every 2 mins ) If you could make the vision rotate background every x minutes or every time the player is turned on, it would be totally amazeningly sweet!!!! (i might have to go out and buy one then :P)
    I just hope that creative has better firmware support with the vision than they have had with the touch.
    Once again, great review

  • How can i fetch records from 3 tables in a single query  without using join

    Hi.
    Can any body please tell me <b>How can i fetch records from 3 tables with a single query  without using joins</b>
    Thanx
    prabhudutta

    Hi Prabgudutta,
    We can fetch the data by using the views concept.
    Go throuth this info we can know the how to create view and same like database table only we can fetch the data.
    Views conatin the data at runtime only.
    Four different view types are supported. These differ in the
    way in which the view is implemented and in the methods
    permitted for accessing the view data.
    Database views are implemented with an equivalent view on
    the database.
    Projection views are used to hide fields of a table (only
    projection).
    Help views can be used as selection method in search helps.
    Maintenance views permit you to maintain the data
    distributed
    on several tables for one application object at one time.
    step by step creation of Maintenance view:
    With the help of the table maintenance generator, you are able to maintain the ENTRIES of the table in SM30 transaction.
    It can be set in transaction SE11 - Tools - Table maintenance generator.
    Table maintanance Generator is used to manually input values using transaction sm30
    follow below steps
    1) go to se11 check table maintanance check box under attributes tab
    2) utilities-table maintanance Generator-> create function group and assign it under
    function group input box. Also assign authorization group default &NC& .
    3) select standard recording routine radio in table table mainitainence generator to move table
    contents to quality and production by assigning it to request.
    4) select maintaience type as single step.
    5) maintainence screen as system generated numbers this dialog box appears when you click on create button
    6) save and activate table
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    SM30 is used for table maintenance(addition or deletion of records),
    For all the tables in SE11 for which Table maintenance is selected , they can be maintained in SM30
    Sm30 is used to maintain the table ,i.e to delete ,insert or modify the field values and all..
    It creates the maintenance screen for u for the aprticular table as the maintenance is not allowed for the table..
    In the SE11 delivery and maintenance tab, keep the maintenance allowed..
    Then come to the SM30 and then enter the table name and press maintain..,
    Give the authorization group if necessary and give the function group and then select maintenance type as one step and give the screen numbers as system specified..
    Then create,,,
    Then u will able to see the maintenance view for the table in which u can able to insert and delete the table values...
    We use SM30 transaction for entering values into any DB table.
    First we create a table in SE11 and create the table maintenance generator for that Table using (utilities-> table maintenance generator) and create it.
    Then it will create a View.
    After that from SM30, enter the table name and Maintain, create new entries, change the existing entries for that table.
    Hope this resolves your query.
    Reward all the helpful answers.
    Rgds,
    P.Naganjana Reddy

Maybe you are looking for

  • Listener Start Problem with TDE (Transparent Data Encryption)

    i am testing Transparent Data Encryption in Oracle 10g by using the following link http://oracle-base.com/articles/10g/TransparentDataEncryption_10gR2.php Before Implementing the TDE listener was running fine but after implementation of TDE the liste

  • Solman 4 SR3 MOPZ issue

    Did a fresh Solman 4 SR3 install. Completed the post install config. Cannot activate OSS connection yet due to firewall rules. Two issues: 1) when doing the Part II config wizard step, an error occurs and the config step terminates. Nothing in the sy

  • Is there a way to find old ( iPhone) back ups from iTunes

    where are they stored (mac)

  • "water spots" in large areas of a single color

    When a large area of sky is in a photograph, I see what appear to be waterspots in the area, but the glass is clean.  Is this a sensor problem? It happened with my previous Canon DSLR as well. I use the 100-400L lens on a 60D. Thanks.

  • Nested Repeat region error

    I am trying to create a simple nested repeat region and I get a mismatch error. I ran a SQL trace and it seems to not be passing the key from the master table , but rather @p1 in its place. any ideas?