Programmatically change tab in TabbedMobileApplication?

I have a TabbedMobileApplication which has X number of tabs. In a view for 1 of the tabs, I would like to programmatically change the selected tab to another tab, just as if the user clicked on the tab button at the top of the screen. Is this possible? I've looked through the API for TabbedMobileApplication and can't seem to find anything.
Much appreciated!

Hey,
Currently, the best way to change the selected tab programmatically would be to set the selectedIndex on the application's navigator.  You would do this like so:
FlexGlobals.topLevelApplication.navigator.selectedIndex = x;
Note that the navigator property in the TabbedMobileApplication class is not the same navigator referenced inside a View.  So doing navigator.selectedIndex inside a view would not work.  I hope that made sense.
Let me know if you have more questions.
Chiedo

Similar Messages

  • Programmatically change tab page label font size

    Hellow Fellow LabVIEW Lovers,
    I thought this subject was easy with LV2009, somehow I cannot find the property for the "tab page label font size", yes, i also looked with the "pages" ref array from the tab ref, also no luck. Could someone point me to the right place? I would really appreciate your help. Thanks.
    Bryan

    Odd,
    The each tab is a page  Class Generic>Page.
    This snippet shows that there are no objects on the page (like the lable)
    However ,Page Propertise do not include lable.font.all elements
    Page Properties
    Dim hasPlayer, playerversion
    hasPlayer = false
    playerversion = 10
    Do While playerversion > 0
    On Error Resume Next
    hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion)))
    If hasPlayer = true Then Exit Do
    playerversion = playerversion - 1
    Loop
    is_FlashVersion = playerversion
    is_Flash = hasPlayer
    Requires: Base Package
    Inherits from Generic. View the class hierarchy.
    Property
    Description
    Colors
    Gets or sets the foreground and background colors of a tab
    control page. Details
    Colors:BG Color
    Gets or sets the background color of the tab control page. Details
    Colors:FG Color
    Gets or sets the foreground color of the tab control page. Details
    Controls on Page[]
    Returns an array of references to the controls and indicators
    on a page. The order in which you place the objects on the page determines the
    index of the object in the array. For example, if the first object you place on
    the page is a numeric control, the index of the numeric control in the array
    returned by this property is 0. Details
    Decorations on Page[]
    Gets an array of references to all decorations on a tab
    control page. Details
    Description
    Gets or sets the description of a tab control page. Details
    Independent Label
    Makes the tab control page caption independent of the page
    label. Details
    Objects on Page[]
    Gets an array of references to all controls, indicators, and
    decorations on a page. Details
    Page Enabled State
    Gets or sets the state of a tab control page to enabled,
    disabled, or disabled and grayed. Details
    Page Label
    Gets the label of a tab control page. Details
    Page Visible
    Shows or hides individual pages of a tab control. Details
    Tab Caption
    Gets or sets the text of a caption on a tab control page. Details
    Tip Strip
    Gets or sets the tip strip of a tab control page. Details
    Moreover, I can select a tab lable on the FP, change its font and EACH tab lable changes to the SAME font and color. 
    Must be some serious MAGIC in the background similar to how NI made Latching Bools.
    Champions?
    Jeff

  • How can I programmatically change the colour of tab pages? If not, when?

    I have found that in LabVIEW 6.0.2 the "Dialog" tab control cannot be coloured, but the other type of tab control one can be coloured by the paintbrush tool. I cannot find any property node to programmtically set the colour of the enitre tab control or individual pages. When will these properties be available in LabVIEW?

    The dialog controls and indicators are designed
    specifically for use in dialog boxes. These controls inherit their color from the colors you set in Control Panel >> Display. Because of this you will not be able to programmatically change their color.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • Changing tab focus with the keyboard

    I've read about changing the tab focus from one page to another programmatically; however, I would like to have shortcut keys to change tabs (like many programs that use CTRL+Tab to change windows within the program).
    I could use an event structure to capture keyboard button presses and then change the value of the tab control, but is there a more straightforward approach?
    Thanks!
    mlloyd

    You can set all other controls not to be tabbed through and the tab control to have its pages tabbed through. That way, when you use tab, only the tab control's pages will be on the tabbing list. This, however, is probably less straightforward.
    I'm not sure what's the problem with the method you outlined. In most cases, if you want something to happen, you will have to code it. This appeares to be one of those cases. You can make a subVI to do the tabbing for you, if you don't want to have to code all of it in your VI. Pass the reference of the tab control into the VI after you detect the event and use that to decide whether to increase or decrease the tab value. Be sure to cycle the number back to the first page when it reaches the end.
    Try to take over the world!

  • Can you change tabs on a tab control by using boolean buttons?

    Need to change tabs by pressing a button instead of using the actual tabs.

    Absolutely. First create a local variable for your tab control. Then poll your boolean to tell when its value has changed. Finally write a value to the tab's local variable to change its tab page programmatically.
    Message Edited by Jarrod S. on 02-07-2007 05:46 PM
    Jarrod S.
    National Instruments
    Attachments:
    tab.PNG ‏17 KB

  • Programmatically changing JCOs

    Hello all,
    is there an API to programmatically change the JCOs instead of using the content administrator. I often have to switch the underlying R3 system and so dealing with the content administrator is sometimes a little bit monotonous.
    Anyone who has an idea where to find related information, please tell me.
    Thank you
    volker

    Hi
       Well the only way to do what you are looking at is
    1. Create the JCO destinations for the number of SAP systems that you have in the WebDynpro Content Administrator. For Eg : "DEV" and "TST"
    2. Create a properties file called "Connection.properties". Maintain a property in the file say "JCOConnectionName=DEV"
    3. For reading the properties file please refer to the link http://help.sap.com/saphelp_nw04/helpdata/en/b8/aa343e32ff1033e10000000a114084/frameset.htm
    4. Now if the system is down and you would like to change the system name just edit the properties file and change the name from "DEV" to "TST".
    5. The only additional change you will have to do is open up your application and do the following steps.
    Steps :
    If you want to change only the JCO Destinations that your model refers to, then its very much possible to change their names.
    But if the model stucture has got changed , then you should reimport that.
    I guess, trying out the following steps for changing the names will work out for you.
    1) For Medata Dest--
    a) Click on the local disctionary stucture that has been generated by importing the model.
    b) Click on the properties tab on the bottom right corner.There you shoulb be able to change the Metadata dest name.
    2) For Application data Dest-
    a) Right Click on model classes (model_Input & model_output) & then click EDIT.
    b) Same Way, on the bottom right corner , Change whichever proerty you want to alter inlcuding the Dest Name.
    In this way, you can mainten unique JCO references for all the models you are using in your project.
    ReBudild & Redploy the entire project . Create the New JCOs Destinations in the content Admin & happily run your application.
    Let me know if that helps you.
    regards
    ravi

  • Is there a way to automatically change tabs with different times set for each tab?

    I found a few add-ons that will automatically change tabs based on a configurable time. But all the tabs use the same time setting. What I need is the ability to have tabs displayed for different amounts of time. Ex, Tab 1 for 30 seconds, Tab 2 for 10 seconds, Tab 3 and 4 for 5 seconds. Ideally, I will have the ability to modify these settings as the amount of tabs and the content will change a couple times a week.
    Currently I'm using Tab Slideshow with each tab displayed for 15 seconds. But it sounds like Tab Rotate and Auto Toggle Tabs essentially do the same. If there is already a solution that would be great but if not is there someone available for hire to help modify one of the existing add-ons? Thank you in advance for your time.
    John

    Currently Firefox don't have any options like that.
    You can ask the Addon developers
    *http://addons.mozilla.org/

  • VA01 ATP incorrecct results when delivery date is programmatically changed

    Hi Guru's,
    When creating or modifying a sales order (VA01 & VA02), we need to programmatically assign the delivery date a) for certain customers or b) when the delivery priority is changed from downs to regular order and visa-versa. For examples: 1) user enters a delivery date 02/01/2012, the program (userexit_check_vbep) will automatically replace it with a calculated
    date (i.e.. 2/20/2012). 2) if user changes the delivery priority from regular order to a downs order, the program will automatically replace delivery date to current date.
    But are getting incorrect ATP results when requested delivery date (based on what user enters in VBAP-LPRIO "delivery priority") is programmatically changed and then user manually enters the date and run ATP (see steps 8 & 9 below).  
    VA01 execution steps:
    1) Used VA01 and entered a material of quantity 1, requested date 2/01/2012, delivery priority = regular. Date was overwritten automatically with program calculated date 2/20/2012 as expected.
    2) ATP automatically ran successfully for the initial entry.
    3) I then changed the delivery priority from regular order to downs order & requested delivery date was automatically changed to current date 02/01/2012 as expected.
    4) ran ATP manually and all is well.
    5) I then changed the delivery priority back to a regular order and date was automatically changed back to 02/20/2012 as expected.
    6) I ran ATP manually and again all is well.
    7) I then manually changed the delivery date 02/25/2012.
    Incorrect / bad results:
    8) ATP then passed back 2 sub-items lines with the quantity of 1 each. The quantity on the main line item is doubled to 2.
    9) I then tried to delete the main line item manually to start all over, but the transaction just hangs because it tries to go to ATP, but cannot resolve what to delete.
    Do you have any suggestions to help resolve this?   
    The following SAP user-exits were modified:
    a) MV45AFZB
      1) userexit_check_vbap
      - for certain customers (a custom "override days" field stored in VBAP is populated), delivery date is automatically calculated using this field (i.e.  current date + override days).   If user entered date < calculated date,   calculated date is used (xvbep-edatu).
      - If user changes delivery priority, xvbep-edatu will be set automatically to either the calculated date (regular order) or current date (downs order).
      2) userexit_check_vbep : if user enters a delivery date (vbep-edatu), it is checked against calculated delivery date & overwritten, if it is < calculated date.
    b) MV45AFZZ - userexit_move_field_to_vbap :
      - override days is determined & delivery date is automatically calculated. If user entered date < calculated date, calculated date is used (xvbep-edatu).
      - If user changes delivery priority, xvbep-edatu will be set automatically to either the calculated date (reg.order) or current date (downs order)
    Reason for updating xvbep: if only vbap-lprio or vbap-override (custom field) fields are changed, the VBEP user exit routines (userexit_move_field_to vbep or userexit_check_vbep)  do not run.  Change to xvbep does trigger userexit_check_vbep.
    Please advise.
    Joe

    This is not an SD question and should be moved to ABAP forum. It seems to me that the issue is not with incorrect ATP but with the subitems / main item updated incorrectly. This needs to be resolved by a developer who wrote the user exit. Most likely either a user exit is triggered when not expected or a wrong line updated, etc. Debugger should be helpful.
    Also instead of setting delivery priority, why can't the users just change the delivery date to current date? This seems just as easy to me...

  • How to programmatically change the cell color of an ADF table ?

    Hi all,
    I have an ADF table with some fields on it. Depending on the value of a field named, say, "F1", I would like to change its background color.
    So far I can change the field color with this EL expression inside the InlineStyle table column property:
    font-size:medium; background-color:#{viewScope.myBean.setColor};
    where setColor is a bean function, in where I access the field "F1" via binding, parse its value, and return the right value - so far, so good.
    The bad thing is, the InlineStyle affects that field in all the rows of the table, while I would like to change only the field in the rows, which have that specific value in it.
    So for example having the rows:
    F1
    abc#1 ----> currently selected row
    cde#2
    efg#3
    I want to change the background color to all the F1 fields which have a "1" after the '#' and let the other "F1" row cells background color stay unchanged.
    But as you can imagine, the InlineStyle affect the "F1" background color in all the rows (assuming that the first row of the table is selected).
    So the question: how to access a single cell of a row in an ADF table, and programmatically change its background color ?
    So far I can iterate through the ADF table with:
    BindingContext bindingctx = BindingContext.getCurrent();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("aTableIterator");//access the iterator by its ID value in the PageDef file
    RowSetIterator rsi = dciter.getRowSetIterator();
    System.out.println("rsi getrowcount = " rsi.getRowCount());+
    Row row = null;
    +if (rsi.getRowCount() > 0) {+
    row = rsi.getCurrentRow();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    System.out.println("class : " row.getAttribute("F1").getClass().toString());+
    +}+
    +while (rsi.hasNext()) {+
    row = rsi.next();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    +}+
    Regards,
    Sergio.

    Hi,
    I mean a specific cell within a row.
    Here are two pictures that show an ADF table with two rows and some fields on it:
    https://skydrive.live.com/?cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents#cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents
    bild_A is what I have, bild_B is what I would like. Note that:
    in bild_A the first row contain a yellow background color for the field F4 and an orange background color for the field F5. This is correct, because F4 has an "1" at the end of its string value, and F5 has a "3" at the end. So far so good.
    But the second row (again, bild_A) has also the fields F4 with yellow background color, and the field F5 with orange background color, even if the value in both fields is 0.
    What is should be, is shown in bild_B.
    The problem is that the solution provided affects all the cells of the column, while I need to change the background color of a single cell, and leave the other unchanged (see bild_B).
    I hope that clarify a bit :)
    Sergio.

  • Can I Programmatically Change the Active Group on a Hypertrend in DSC?

    I would like to know how to programmatically change the active group of a hypertrend in Labview DSC.  I saw a link which said it can be done in Lookout.  But in the DSC module, the active group is read only.
    I know of a hard way to do it.  I could save the hypertrend settings as xmlSettings to a temporary file.  The active group is one of the settings.  I could then change the active group in this text file to point to the new group and then reload the settings.  But this is not a clean way of dong it.
    Anyone know if there is a easy way?
    Solved!
    Go to Solution.

    I found a way to do it but its not very clean.  I dont know why there is not a function to change the current group.
    Here is how I did it.

  • How to programmatically change the password of user accounts in PDF Generator

    I am using 4 user accounts for multi-thread converting Word documents to PDF in PDF Generator ES3, and I have to update the password of those user accounts. Does PDF Generator ES3 save the password somewhere on the Windows 2008 server? Can I programmatically change the password of those accounts other than updating them manually from LiveCycle Admin console?
    Thanks,
    Will

    Not in LiveCycle API.
    Changing user account password is related to Operating System.

  • Can you programmatically change the width of columns in a table control\indicator

    Is it possible to programmatically change the width of columns in a table control\indicator ie to fit to width of the data or in my case the header information.

    Create a property node (or reference) and use the 'Active Cell' property to select which column you want to change and then use the 'Cell size'--> 'Width' property to change the size.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    table.vi ‏33 KB

  • Programmatically change the query used to generate Oracle Reports

    I have two queries. Depending on some parameter value, I would like to use one of these queries to generate my report. Is it possible to programmatically change the SQL query used to generate the Oracle Report.
    Thanks

    There are two options:
    - The easy way
    In the report paper layout create two frames, one for each query , and at runtime
    display only one based on your parameters. (using format triggers on the frames)
    - the not so easy way (but more elegant)
    create the query at runtime using xml customizations using the examples from
    the following documentation:
    http://download-
    uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_xml.htm#i1006734
    16.3 Creating XML Data Models
    16.4.1.3 Applying an XML Report Definition in PL/SQL
    16.4.1.3.2 Applying an XML Definition Stored in Memory
    Regards and Good Luck
    Ionut S

  • Programmatically Change Array to Cluster Size

    Hello,
    I have a Chart with several values scrolling across it. The number of
    values is variable. To prepare the data for the Chart, I use the Array to
    Cluster element. Is there a way I can programmatically change the size of
    the cluster output?
    Thanks,
    Peter

    Peter,
    As far as I know, you cannot programatically chage the size of the cluster output in the Array to Cluster vi. However, you may not need to convert to a cluster for charting. The chart will take a 2D array and plot mutiple lines. See the attached example which uses Reshape Array to form the data for a chart.
    The only hitch is that it erases the plot when you change the number of values to plot. This may or may not be important to you.
    Tim
    Attachments:
    Reshape_array_for_chart.vi ‏18 KB

  • Changing Tab color of SuperTabNavigator

    Hi .
          How to change tab color of the SuperTabNavigator.
    Can any help me?
    thanks
    Raghu.

    No,
    Modifying the CSS files directly is not a viable option. Everytime someone saves the theme, the CSS files will be overwritten.
    Refer to this for a possible solution.
    Unleash the power of the Portal Theme Editor
    Thanks
    Prashant

Maybe you are looking for

  • Help for MDB, with Sun Java System Application Server Platform Edition 8.2

    Hi all, Iam having problem in working MDB. Have written & deployed the Bean sucessfully and when am trying to run the Client, to post a new message am getting exceptions The Exception i got is D:\krb\ejb\Message\MDB>appclient -client MDBClient.jar MQ

  • How do I enlarge the info. on a website I am viewing?

    On one of the websites I frequently visit. I accidentally made it larger once and then small again, to the point that I can barely view the info... and have no idea how it happened. Seemed that it was either a key function on my laptop or something I

  • No Order Found

    Last night, I ordered a Samsung Focus 2 4G for AT&T, and I got an email confirming the order, but when I check the order status on bestbuy.com, it says no orders found.  However, when I call and check the order status, it says that it is being prepar

  • Error Using ProductLookup droplet - ATG 10.0.3

    Hi All, I am not able to render any of the product details using ProductLookup droplet. I am using custom catalog and that is created using ACC. Please find below the debug logs of ProductLookup droplet. **** debug Tue Sep 04 18:11:27 EDT 2012 134679

  • How to stretch Letterbox back to 16.9?

    When I open the DVD NTSC-Letterbox  through Quick Time Player it plays at 16.9 ratio.  After converting it to Quick Time via MPEG STREAMCLIP to enter it into FCP7 it plays as Letterbox in the Browser.  Then I choose NTSC Anamorphic in the Easy Set up