How to point to another tab on click of a button in another tab?

Hi all,
  I am creating an application in which I am using Tabbar and then referring separate canvas for each tab using viewstack.Now I have a button in in one tab and on click of the button i need to open another tab.For reusability i have created separate mxml for each functionality of subtabs.Please help me on how to link the click of button in one tab screen to another tab.
Thanks in advance.

I would suggest creating a custom event that contains the index of the tab (viewstack child) you are wanting to move too.  The button would dispatch the event and the tab navigator would require an eventListener to listen for the event type.  The handler for the eventListner would then take the index passed and make the change myViewStack.selectedIndex=2 (or whatever the custom event contained)
Note:  you could also pass the name of the tab you were wanting to move to and set it that way.
-Joe

Similar Messages

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • In the previous version of Firefox you would open a new tab by clicking on the small "Open New Tab" button at the Right Hand Side of the Tabs. This button has now disappeared in my upgrade.

    I just installed Firefox 4. In the previous version you would open a new tab by clicking on the small "Open New Tab" button at the Right Hand Side of the Tabs. This button has now disappeared in my upgrade. Firefox help still says you can open a new Tab by using the "Open New Tab" Button so how do I get it back??

    I got it back by going to "customize toolbar" and hitting "restore default set"! Now there is a small tab next to my open tabs with a "+" on it.

  • How to Validate a User on the click of a button in Oracle APEX

    Hi,
    How to Validate a User on the click of a button in Oracle APEX.
    say for e.g: I want to allow only a specific user to go beyond after clicking on a button and restrict all the other Users. Any ideas please.
    Thanks in Advance,
    Af

    Well , the actual idea was to hide the button for specific users and show the button only for some specific users... is this possible...?
    @ AndyH: yeah, what you have suggested also fits well for my requirement... Could you please let me know how can i achieve it...
    Regards,
    Af

  • How to close the detach popup on click of a button in the panel collection

    Hi,
    I'm using Jdeveloper 11.1.2.3.0.
    I have an af table surrounded by panel collection. There is a button on panel collection to commit the changes in the table.
    Clicked detach button to view the table in full browser.
    On click of Commit button, the detach popup is not closed. I have set partialSubmit of that button to false. Then also detach popup is not closed.
    Can anybody suggest me how to close the detach popup on click of a button in the toolbar.
    Thanks,
    Vinod

    Hi Frank,
    Thanks for your response. Popup is not closed.
    I tried this approach, when the view tree is navigated on the Detach, I see that the tree is same as if it is traversed on the page without detach.
    Printed client id and UI component class in the while loop, result is as below.
    r1:0:pc1:t3 class oracle.adf.view.rich.component.rich.layout.RichToolbar
    r1:0:pc1 class oracle.adf.view.rich.component.rich.output.RichPanelCollection
    r1:0:ph2 class oracle.adf.view.rich.component.rich.layout.RichPanelHeader
    r1:0:pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    r1 class oracle.adf.view.rich.component.rich.fragment.RichRegion
    pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    db2 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    db1 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    psl1 class oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout
    ps1 class oracle.adf.view.rich.component.rich.layout.RichPanelSplitter
    f1 class oracle.adf.view.rich.component.rich.RichForm
    Tried with setting partialsubmit property to false on the command button, still the popup is not closed and my Faces Message are shown behind the detach popup.
    Thanks,
    Vinod

  • How to cancelling email submission after user clicks "yes/no" button of message box?

    could some one tell me, how can i cancelling the submission event after one user clicks "yes/no" button of message box? The scenario is the following:
    After data input in a dynamic form clicks the user send mail button. Before the email submit, the user has to decide going back to the form and validate the input or continuing to submit email.
    In case of going back to validate input the submission event must not solve. So, how can i implemente it in java and/or form calc script?
    Thanks so much for your help in advance and i am very glad to hearing from you soon!
    Djinges

    Hello,
    The most easy way to solve your problem is to add two buttons, the first should be regular button and the second is submit by e-mail one. Set the
    'presence' property of the second to 'hidden' and add to it your email address. To the first button on 'click' event add the script like this
    form1.#subform[0].Button1::click - (JavaScript, client)
    var answer = xfa.host.messageBox("Send e-mail?","e-mail",2,1);
    if(answer==1){
    EmailSubmitButton1.execEvent('click');
    Hope this helps.

  • How to get current view name on clicking device back button?

    Hi,
    iam wriing a function for handling device back button(in android) press in my app.controller.js .How to get current viewname when clicking device back button.
    code samples will be helpful.
    my app.controller.js looks like below
    sap.ui.controller("com.opensap.App", {
      onInit : function() {
      document.addEventListener("deviceready", onDeviceReady, false);
      onBeforeShow : function(evt) {
      navButtonTap : function(evt) { 
    function onBackKeyDown(){
      //alert("hai");
      //sap.ui.getCore().byId("SalesDetail").app.backToPage("ProductList");
      //sap.ui.getCore().byId("ProductList").app.backToPage("Dashboard");
      //sap.ui.getCore().byId("SupplierDetail").app.backToPage("Dashboard");
    function onDeviceReady(){
       document.addEventListener("backbutton", onBackKeyDown, false);

    I somehow managed to find the solution
    function onBackKeyDown(){
      var app = sap.ui.getCore().byId("LoginDetail").app;
      app.back();

  • I can only use one tab at a time. If I go to File, New Tab a second tab will not open. I am able to create a 2nd tab by clicking a link from the first tab.

    I am unable to open further tabs, if I either right click or go to File; Ne tab; nothing happens.

    The Ask Toolbar is causing that in the Firefox 3.6.13 version. Evidently something in that extension isn't compatible with a Firefox security fix. Disable that extension or un-install it.

  • How to invoke a task flow on click of a button(CommandToolbarButton)

    hi All,
    I'm using JDev11g, ADF BC.
    Case Background: I'm designing a screen which has a summary and detail screen in same page. I'm displaying a table from which the user would select a row and click on a button to invoke an action through the Task Flow. In the Task flow i have two fragments one to view the record and other to edit the record. The form to view is read-only and the other is editable.
    Problem: I'm not able to invoke the task flow from click of the button, it just refreshes the page.
    I would like to know how to fix this issue.
    -Jyothi

    Hi,
    can i include page-fragments(.jsff) in the task-flow which is invoked by the select button in the page(.jspx). I would like to know if that could be a reason for the error.
    -Jyothi

  • How to make a repeating section by clicking on a 'button'

    Hello,
    I am creating a form and there is a secion for 'Add a Dependent'.  The form only show enough fields for one dependent.  I have created a button that says 'Add a Dependent'. When the user clicks on this button I would like the section to show up again, asking for the information for the new dependent. Also, there will be a cancel button so that if they click on 'add a dependent' too many times, they can cancel each one individually if needed.The purpose for this is because it will take up much less space in the form. Can anyone help?
    Thank you in advance,
    Nik

    Here is what I did for making the Subform repeat..
    Selected the Dependants subform and went to the Binding tab, checked the cehckbox "Repeat Subform each Data Item"..
    Placed the below code in the click event of the Add Dependant button.
         Dependants.instanceManager.addInstance(1);
    Placed the below code in the Click event of the "X" button:
              if 
    (this.parent.index>0)
              Registration.content.Dependants.instanceManager.removeInstance(this.parent.index);
    Placed the below code in the Initialize event of the "X" button:
         if(this.parent.index==0)
              this.presence = "hidden";
    Let me know if you have any issues..
    Thanks
    Srini

  • How to control what VoiceOver says when clicking a radio button in Safari?

    Hello-
    I am developing a web page that I want to work in Safari & VoiceOver. Does anyone know how I can:
    1) control what VO says when it is hovering over a radio button (ideally some alt text or title attribute)
    2) control what VO says when I click a radio button in Safari (right now, it seems to say 'Group').
    I have tried to put the radio buttons in a fieldset, tried tons of attributes in the input tag (including alt, title, desc, description), but nothing seems to change.
    Here is a URL where you can hear what I'm talking about: http://postcalc.usps.gov/
    Turn on VoiceOver (try Cmd+F5), pull up the URL and hover over the 'letter' or 'large envelope' radio buttons, then click one of them. It says 'group'. I'd like it to say 'letter option selected' or something.
    Thanks for any & all help!
    Seth
    PS: I do know about the <label> tag. I've tried surrounding my <input> tag with a label and using <label for="someID">, but it doesn't seem to help.

    Thank you for the suggestion...it does work and fires the event, but it is still not selecting the current record when I try to perform an Update or Delete.
    I had to modify your code a bit in order for it work in JDev 10...used the JUCtrlValueBindingRef instead of the FacesCtrlHierNodeBinding.
    Here is what my af:table tag looks like:
    <af:table value="#{bindings.FeesView1.collectionModel}"
    var="row" rows="#{bindings.Fees001View1.rangeSize}"
    first="#{bindings.FeesView1.rangeStart}"
    emptyText="#{bindings.FeesView1.viewable ? \'No rows yet.\' : \'Access Denied.\'}"
    selectionListener="#{backing_viewFees.tableSelectOne1_attributeChangeListener}"
    binding="#{backing_viewFees.table1}" id="table1">
    If I put back my 2 original attributes, then my Delete and Updates work.
    selectionState="#{bindings.FeesView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.FeesView1.collectionModel.makeCurrent}"
    Here is my code in the backing bean:
    public void tableSelectOne1_attributeChangeListener(SelectionEvent selectionEvent) {
    JUCtrlValueBindingRef binding = (JUCtrlValueBindingRef)this.getTable1().getSelectedRowData();
    if (binding != null) {
    Row currentRow = binding.getRow();
    if (currentRow != null) {
    System.out.println(currentRow.getAttribute("CurrentRecordInd")); // this does print my selected value!!!!
    }

  • How to skip validations in ADF on click of cancel button

    Hi,
    I am new to this technology. i Have used ADF components required property to do Required filed validations. Whne i click on Cancel button i dont want the validations to get executed. How to skip validations in ths case?
    I am using ADF 11g and JSF 2.2

    Set immediate property of the cancel button to true.
    Check this out.
    http://jobinesh.blogspot.com/2009/08/how-to-skip-validation.html
    -Arun

  • Launch a URL in new tab on click of a button

    Hi All,
    I am currently launching a URL from R3 on click of a button on a screen. When I click on the button the second time it lauches the URL again, but opens it in a new window. I am using IE8 to open the URL's. What i wanted to know, is there any way where I can launch the URL in the same IE8 window, but in a  different tab i.e. instead of opening two IE8 windows, launch one window with two tabs.
    Any help would be useful.
    Thanks.
    Sneha.

    Hello sneha!
    As far as I know there isn't an HTML TAG to do that. In CSS3 there is a property 'target-new' that can be used
    [target-new property|http://www.w3.org/TR/css3-hyperlinks/#the-target-new]
    but I'm not sure if IE8 implements this feauture.
    The only easy solution I see is to configure the IE8 to open all the links in a new TAB instead of a new window.
    Open IE8 then go to "Tools" menu -> "Internet options" then in the "Tabs" section click on "Settings" and Select
    "When links from other programs in:"  "A new tab in the current window".
    You can do the same with the :
    "When a pop-up is encountered" "Allways open pop-ups in a new tab".
    Best Regards.
    Claudio (Aparatey)

  • BDC - How to ignore skipped screens when user click on back button

    Hello all,
    I am working on a module pool program. From this custom transaction I am calling a standard SAP screen using BAC call transaction. I am calling this screen by skipping 2-3 screens and user can directly see the 3 screen on an event on my custom transaction.
    Now my issue is whenever the user want to back, he clicks on back button then user have to back from all the screens that I skipped.
    Is this any way by which if user click on back then he can directly go to my custom transaction.
    Please suggest.
    FYI..
    I am calling IA06 - Inspection characterstics screen from my custom screen using BDC.
    Thanks,
    Sanket Sethi

    Hi Jovito,
    I also think the same that it's not possible. Now my issue is how to get my requirement.
    FYI..
    To open Classification screen directly we have a function module CLFM_OBJECT_CLASSIFICATION. But if I want to open IA06
    Inspection characterstics screen we don't have any FM or API to do the same.
    So how will I get my requirement done. That why I use the BDC call transaction to open IA06 Insp. characterstics screen but here I am facing this Back issue.
    Please advice if there is any suggestion.

  • How can we open a file by clicking on a button "open"  in a pplet

    Hello all,,,
    I got some code to open a file in jre witout applets ....but i'm in need to open a file (for exmple to open a .txt file in text editor or notepad automatically by clicking on a button);
    Help me out...
    Thank you...

    pradeepprp wrote:
    Hello all,,,
    I got some code to open a file in jre witout applets ....but i'm in need to open a file.. On the server or client?
    ..(for exmple to open a .txt file in text editor or notepad automatically by clicking on a button);Earlier you mention 'open a file in jre', which implies maybe using a JEditorPane or similar to load the file contents into a JVM. Since the system generic 'text editor' and specifically 'notepad' are not embeddable in anything that can be put in a Java GUI, I am now confused as to whether you want to load the file within a Java based GUI or not. Which is it?
    Help me out...Buy me an ice-cream. A nice, big, ice-cream.
    People on forums do not generally take kindly to being told what to do, so it is better to turn commands like that into requests. The way to do that can be as easy as adding 'please' at the start of the command.

Maybe you are looking for

  • F150 dunning prog. and Gregorian calendar-wrong interest rates calculation

    Hello everyone, I have a problem with F150 - dunnning program and the Gregorian Calendar. I defined a interest rate indicator and I choose Gregorian calendar - 365 days in the year but SAP calculate 360 days and the interest rates are wrong u2013 to

  • File Share with XP

    hey. this mac is the only one in the house with 2 other windows computers (**** them) and the main comptuer with the router and stuff (im running wireless) is a Windows XP. How do i file share with it, as the XP wizard files arn't supported by the ma

  • Can't create multiple dependent LOVs from the same bind variable

    Hi all, I'm having difficulty creating multiple dependent LOVs from queries based on the same bind variable in my JSF application (JDev 10.1.3.1). Basically I have a static LOV in a af:selectOneChoice component from which users select a value which t

  • Disater Recovery for exchange 2010 plan in Cloud computing

    Hi We  are  using exchange 2010  for our messaging solutions.  Please find below our current setup. mainsite:  MBX Server ---  1no --> Hyper V host                 Hub&Cas ----- 1No --> Hyper V Host                 Edge  ---- 1NO --> Physical DR site

  • Error downloading CC 2014 apps

    My team and I are trying to download the CC 2014 apps, but the downloads keep failing about halfway through with the following message: "The download appears corrupted. Please try again after a few minutes. (-60)" We are behind a company firewall and