Change UISegmentedControl number of segments at runtime

Hi Everyone,
What is the quickest way to change the number of segments in the UISegmentedControl at runtime?
I have a data entry program that sometimes uses two (yes/no) or three (yes/ no /na)
And i need to change the control to show two (yes/no) or three (yes / no/ n/a) at runtime based on the field definition in the database.
thanks for your help
take care
tony

See [insertSegmentWithTitle:atIndex:animated:|http://developer.apple.com/iphone/lib rary/documentation/UIKit/Reference/UISegmentedControlClass/Reference/UISegmentedControl.html#//appleref/doc/uid/TP40006807-CH3-SW21] and [removeSegmentAtIndex:animated:|http://developer.apple.com/iphone/library/docum entation/UIKit/Reference/UISegmentedControlClass/Reference/UISegmentedControl.html#//appleref/doc/uid/TP40006807-CH3-SW19]. - Ray

Similar Messages

  • How do you change the Number of Plots Shown property of a Waveform Chart at runtime?

    Is there any possible way to change the Number of Plots Shown property
    of a Waveform Chart at runtime?  Thy Dynamic Stackplots example is
    way to limited.....

    There's a couple of ways to do this -
    1. Manage the data going into the chart to only be what you want displayed
    2. Use property nodes.  Specifically, the Plot.Visible node. (LV 7 example attached).
    2006 Ultimate LabVIEW G-eek.
    Attachments:
    MultiPlots.vi ‏48 KB

  • Can I create a dynamic number of inputs during runtime?

    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID               NUMBER                (This will be the primary key)
    TBL_FILE_NAME          VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID               NUMBER               (This will be the primary key)
    TBL_FILE_ID               NUMBER                (This will be the forign key to the file table)
    TBL_META_COLUMN     VARCHAR2(30)     (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE          VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    Other things to note is that we would like this to be on a single page.
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.

    Welcome to the Oracle Forums !
    >
    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID NUMBER (This will be the primary key)
    TBL_FILE_NAME VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID NUMBER (This will be the primary key)
    TBL_FILE_ID NUMBER (This will be the forign key to the file table)
    TBL_META_COLUMN VARCHAR2(30) (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    >
    Creating Page Items dynamically is not available. You will have to create excess items and hide/show , etc. But you cannot change the Item Type. All in all, too many limitations in this approach.
    >
    Other things to note is that we would like this to be on a single page.
    >
    The 100 item limit will hit you if you go with extra item on page. With Tabular Form that should not be a limitation, unless you are exceeding the 50 item limit of APEX_APPLICATION.G_Fnn items, and the 60 column limitation of Report region with "Use Generic Column Names (parse query at runtime only)" of Dynamic region.
    >
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    >
    If the type if item is variable it only means you need a way to store the item type. Meta Data of the Meta Data.
    >
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    >
    Yes, you can do it. Updatable report/ Tabular Form query can be constructed from the Meta Data using PL/SQL Function Returning SQL Query . It will be a bit of coding in PL/SQL where you use the Meta Data and the Meta Data of the Meta Data to piece together your SELECT with the right APEX_ITEMs. It might have a performance penalty associated with it, but will not be a serious degradation.
    >
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.
    >
    I guess that is just a good TNF. It is the Master-Detail Design Pattern, that sound more modern ? ;)
    Regards,

  • How do I go back into my registry and change a number for loading apps and websites from 20 back to ten?

    I tried something suggested from a friend who said to go to a spot in my registry and change a number from 10 to 20, and this would help apps to load better, giving them more time. But now nothing will load because there is to much time taken. I need to find that segment of the registry and change the number back. When I went there, a little box popped up and said, "I will be careful I promise. "

    I did the resetting preferences, still no help, still cannot play flash games on facebook like Indiana Jones, Cityville, and Pioneerville. I wish I could go back and change that number I changed from 20 back to 10. I would be playing right now.

  • Is it possible to change the number of weeks to be displayed in the month view in calendar (mavericks)?

    I'd like to know if it's possible to change the number of weeks to be displayed in the month view in calendar? Thanks!

    No.
    There are up to six calendar weeks that might be used to display the 31 possible days in a month.
    So the month view displays six weeks.

  • How do I change a number that was international back to UK number so it permanently recognises it as UK not international? I've tried delete, reset factory settings, change the format of the number etc and nothing seems to work. Help!

    I recently moved back to the UK and bought my iphone 4 with me. It is unlocked and works on the new contract that I have set up here in the UK. The problem I'm having is that some of the UK numbers that I had already had on the iphone in Korea as international UK numbers will now not work as they are still coming up as international numbers. This means it is costing me a lot to message or call these numbers. I have tried changing the number format various ways, deleting the numbers (although it still seems to remember them), resetting the phone, restoring the phone.
    How can I succesfully change these numbers?
    Any UK numbers I have added since changing the contract are working fine.
    Thanks!

    Do you happen to have Dial Assist on? This is in Settings>Phone. This is what helps the phone identify international numbers when dialing, based on location. See if turning that off/on makes a difference. Unless you are making a number of international calls, I believe this can be left off. See the User Guide http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf  Page 49 has info regarding Dial Assist.

  • My iPad has connect to the wrong number for imessage and facetime. How do I change the number on my iPad for imessage and faceting?

    When setting up my new iPad and entering my own Apple ID my sisters number appeared on the imessage and facetiming; however her number is not associated with my Apple ID. How do I change the number to my own?

    Turn iMessage and FaceTime off, reset the device by holding both buttons until the apple logo appear then let go and wait for it to restart. Then turn iMessage and FaceTime back on and enter the settings again

  • Changing customer number in alv top of page for every new customer

    hi experts,
    in alv grid display top-of- page, how to change customer number  customer name for every new customer.
    please help me.
    Regards
    Naveen.

    You may look into this blog
    http://help-abap.blogspot.com/2008/09/salv-model-5-add-header-top-of-page.html
    This is has been contributed by one of the SCN contributor Naimesh Patel.

  • How can I change the number of pages in a spread?

    I imported a document that our PR department used to create in Quark into InDesign 5.5. They have it set up in four-page spreads. However, the document has always been printed with a coil binding with a large graphic on each left-hand page and text on the right page. I would like to convert to using two-page spreads. However, none of the places the InDesign help leads me give any indication of changing the number of pages per spread.
    My problem may be related to having imported from Quark, but if there's an easy way to change this, I'd appreciate hearing about it. Thanks!
    -Brian

    In the pages panel select the spreads then right-click and check Allow Selected Spreads to Shuffle and also Allow Documrnt pages to shuffle. If asked if you want to maintain the current page arrangement say no.

  • How do I change my number for iMessage and facetime

    How do I change my number for iMessage and FaceTime on my iPad mini

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
     Cheers, Tom

  • How do I change the number of significant digits in a slide's digital display?

    I suspect I'm missing something really obvious. I want the slide's digital display to show 1.23 instead of 1.23456. Here's what I tried:
    1. Drop a Horizontal Pointer Slide
    2. Make its Digital Display visible
    3. Type 1.23456 into that display
    4. Pop up on the Digital Display and select "Display Format..."
    5. Change the number of significant digits to 3 and hit "OK"
    The digital display still shows 1.23456. What am I missing?
    Solved!
    Go to Solution.

    LOL - I had the same problem.  Hidden in plain sight!  All I saw was Numeric, and thought "Duh! Of course it's numeric - it's a slider!"
    I do think NI could do a much better job on this, perhaps with more informative labelling.  Slider Scaling or Scale Format might be better.  Also, since one can select the Digital Display by itself on the front panel, one should be taken directly to the digital display formatting when Properties is selected, instead of still having to change the dropdown. By selecting the digital display instaead of the slider, you're implying that you want to change its format only.

  • How do I change the number of plot areas in a Mixed Signal Graph

    How do I *programatically* change the number of plot areas in a Mixed  Signal Graph?  I recognize that the developer can choose to add or  remove a plot area during edit mode but I want to select between 2 or 3 visible plot areas and scale the plot areas appropriately.  Is there a property that tells me how many plot areas (or yscales) there are?  I also need a property that I can write to as to set the number of plot areas available.
    Aside from manually making too many plot areas and then hiding the unneeded plot areas how can I do this?
    Jonathan

    Hello,
    I don't think that is possible - I searched the property and invoke nodes but didn't find something to do that.  This would make a great product suggestion though, which you can submit (it goes directly to R&D) by clicking the word feedback in the bottom left corner of the Contact NI page linked below:
    Contact NI:
    http://sine.ni.com/apps/utf8/nicc.call_me
    Best Regards,
    JLS

  • How do I change the number of picture columns in a folder

    how do I change the number of picture columns in a folder

    Never mind.  I found the answer.  For those who may wonder: you slide the cursor on the bottom right.  I looked in IPhoto help but there was nothing there.

  • How can I change a number on my account?

    how can I change a number on my account?

    Log into your on-line MyVerizon account.  Click on the blue More Actions under I Want To.  Under Profile, click on Change Mobile Number and follow the prompts.

  • Is it possible to change the number of rows while printing a contact sheet in Iphoto? Please help

    Hi guys, I am struggling to find out how to change the number of rows on a contact sheet on Iphoto , i have selected my photos and i want it to print 6 photos on each page however I am not able to do it.      Please help me out, im a Art student and i need to submit my contact sheets for an assignment  Thanks in advance guys !!!!!

    I don't think you can do that with the Contact Sheet layout.  If you have Pages or a 3rd party image editor that supports layers you can do what you want.  Or try the demo version of OmniGraffle for Mac It will run fully operational for 14 days. 

Maybe you are looking for

  • Changing Mail Server Settings for Other IMAP

    Hello,          I'm an Admin for a treatment center and one of our psychiatrists has a BB Tour. He asked me the other day if I could set up his email account on our exchange server for him on his phone. Going through the mail setup wizard I selected

  • Payment terms in vendor invoice posting

    Hi all, When using FB60 to post vendor invoice, I can't see payment terms and discount information under "payment" tab. I had create payment terms in IMG, and assigned it to the vendor master record. Do I miss anything? Thanks for the help! YuLin

  • Issue when opening Xcelsius-file in InfoView

    Hi all, We have a setup with following hw/sw: Srv: MS Windows 2003 SP2 4 GB RAM 40 GB HD (9 GB unused) Intel Xeon E5430 @ 2.66 GHz BO Edge XI 3.1 Integration Kit for SAP systems Microsoft Office 2003 Crystal Reports 2008 Xcelsius 2008 Live Office The

  • Database connection getting stuked

    Hi, I am using oracle 9i R2 on Windows XP. I am in big trouble. Most of the time while getting connection to database, connection is stuked and finally become hung. I have checked service is alread started for Listener & Database. If I manually stop

  • Aligning text, removing artwork

    I noticed that the text that appears on the screen for a couple of Cake songs justifies to the left of the ipod screen. I like that and would like to do that for all the songs and I don't care about loosing artwork in the process... thanks in advance