How to change the numbers of items in a ring control in run time ?

Hi !
I would like change the numbers of items in a ring control in run time, but I can´t.
Thanks.

Hello blaze,
did you try the "Strings And Values []" property of the ring?
LabView7.1 help says:
Array of clusters containing the strings from which you can select in the ring control
and the numeric values for each item. Use the Strings [] property if you do not need to
assign specific numeric values to each item.
Best regards,
GerdW
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How to change the data type property of a feild property at run time.

    i have feild varchar2(15) in database, but if want to insert alphanumric, char, number it at runtime by changing its parameters dynamically (parameter is a).
    i have write this code
    if a= 'C' then
         set_item_property('CAPTION1',DATATYPE,'Char');
    elsif a='N' then
    set_item_property('CAPTION1',DATATYPE,'Number');
    else
    set_item_property('CAPTION1',DATATYPE,'alphanumeric');
    end if;
    no compile time error but its not working at runtime, any one can help me.

    Checking for number is easy:
      Declare
        c varchar2(100) := 'hello';
        n number ;
      Begin
        n := To_Number(c);
      Exception
       When Others Then
       -- cannot convert string to number --
      End;You can do the same to check dates also
    Francois

  • How to limit the number of items that a list control can hold?

    Hi,
    I am using a Flex3 List control for one of my projects.
    I add drag & drop functionality to it, so that i can drag & drop elements from one control to another.
    How to limit the number of items that a list control can hold / can be dropped in a list control ?
    - Sen.

    1. Listen for the dragdrop event on the control you are dragging onto.
    2. check the length of the items in the dataprovider - if it exceeds your maximum override the default drop action with e.preventDefault(); (assuming you used e for the event on the handler).
    Regards,
    Mark.

  • How to change the text of item's displaying in the folowing ALV.

    Hi Experts,
    I want to change the text of item's displaying in the folowing ALV.
    Go to ME23N->Click 'Messages'->Click 'Further Data' -> Click 'Displ.Originals'.
    Here one small ALV grid is appearing.
    Currently it is showing same name's under the 'Title' column of that ALV. My requirement is to change the text coming under the column 'Title' in that display.
    Can any one throw some light in the issue.
    Thanks&Regards,
    Anversha

    Hi Anversha ,
    i think you need to use Enhancement point for it.
    check the program DV70AF0A-->ARCHIV_ANZEIGE(Subtoutine).
    i had similar kind of requirement ,while attaching the supporting documents to FI document , i need to update title field with File name , so i used EP and BADI to do so.
    regards
    Prabhu

  • How to change the caret/selection color of text input controls?

    Hello JavaFX Community,
    i'm new to JavaFX. I'm using it since i saw the huge steps forward with version 2.0.
    I have the task to migrate a software from Swing to JavaFX. As a part of our corporate design, we used a special color for the caret and text selection. I couldn't find any information about changing the caret color in JavaFX 2, so i'd like to ask you and i'd be very thankful for an advise.
    There is a cross-post at StackOverflow:
    http://stackoverflow.com/questions/10057989/how-to-change-the-caret-color-in-javafx-2-0
    Thanks and best regards.

    This might be possible, but it is not trivial. You cannot do it with a standard API at this time, you will have to look into creating a skin that allows for these properties to be controlled.
    For example, the color of the caret is currently controlled in the TextFieldSkin (look for the "caretPath" property). Just forcing a color change in a subclassed skin is not so hard. Something like this:
    public class MyTextFieldSkin extends TextFieldSkin {
      public MyTextFieldSkin() {
        this.caretPath.fillProperty().unbind();
        this.caretPath.fillProperty().set(Color.RED);
    }However, it gets trickier if this color must be dynamic and if you want other things to be changed as well. It is a place to start though.
    Many of the skins methods and properties are 'protected' though, so atleast in Skin subclasses you have a lot of options to introduce new features and behaviour.

  • How to change the Maxinum of item in a iview

    i use KM to display news, but it only can display 5 item,how to change it to 10?

    Hi,
    which CollectionRenderer do you use?
    You should be able to configure the displayed columns and rows in "System Administration" > "System Configuration" > "Knowledge Management" > "Content Management" > "User Interface" > "Settings" > e.g. "Collection Grid Renderer Settings" > "News Collection Renderer".
    Also have a look at the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/87/3d48475ee8bd448c4031aa98d90524/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/94/29df3d0eb8af5ee10000000a114084/frameset.htm
    Regards, Alex

  • How to change the Height of item....!!!! in multi record block

    Here is the problem I want to change one item height in multiple records block..
    I tried to do the following
    set_item_instance_property(:system.mouse_item,:system.current_record,height,50);
    But this didn't work as the property for height couldn't be used with this built in..
    Can any one tell me any other suggestion to move around
    Thanks and best regares

    If you just have two sizes to display - e.g. normally the item is 1 line high but in the current item you want to show more information and want to make it say 2 lines high, then you can use a Mirror item to do this.
    Create another item in the block - set the Synchronize With Item property to the base item you want to "Resize".
    Set the Records Displayed property to 1 for this extra field.
    Put this field on a stacked canvas that is just big enough to hold it.
    The in your When-New-Record Instance trigger you can pop the stacked canvas up over the normal version of the field.
    That should do the trick.

  • How to set the XML tree to be collapsed by default at run time?

    I am developing a simple software in Java, to improve my programming skills, the output of this program is an XML file. I am very new to XML. My question is that, every time the XML file is opened the tree is in expanded form, which appears to be the default setting at run time. I want it to be fully collapsed when the XML file is opened. I have read about certain solutions to this problem by using XSL or CSS. I am not familiar with XSL at the moment so I have not explored it yet. Is there any other way around this problem.
    I would like someone to just point me in the right direction so that I can eventually get to the answer.
    Any help will be highly appreciated.
    Thankyou

    Bscript wrote:
    My question is that, every time the XML file is opened the tree is in expanded form, which appears to be the default setting at run time. I want it to be fully collapsed when the XML file is opened. If you are asking to control the XML display in text editor when the XML is opened, I think you can't control it through the java. How the individual editor shows the XML is their property. For example, if you open the file in notepad, you may not get the pretty XML however if you open if the file in XML editor like XMLSpy, you may get its hierarchical representation.

  • How to change the order of item records?

    Hello,
    IDOC - File
    Required Structure:
    Header
    item1
    child1
    item2
    child2
    item3
    child3
    File now generating in the following manner:
    Header
    item1
    item2
    item3
    child1
    child2
    child3
    what changes do I need to make in order to get the required strucutre in the file?
    so that for each item, the child gets displayed?
    Nikhil.

    Target structure:
    +MT_TARGET
    ++TARGET
    +++Header
    +++Orderitm
    +++Ordchild
    The Orderitm and Ordchild get the data from an IDOC segment named ZE1XYZ
    so I have mapped Orderitm and Ordchild to ZE1XYZ.
    thus, how many no of times, that ZE1XYZ repeat, im getting those many item and child records but they are being displayed in the following order.
    +MT_TARGET
    ++TARGET
    +++Header
    +++Orderitm
    +++Orderitm
    +++Orderitm
    +++Ordchild
    +++Ordchild
    +++Ordchild
    ===
    the desired output should be:
    +MT_TARGET
    ++TARGET
    +++Header
    +++Orderitm
    +++Ordchild
    +++Orderitm
    +++Ordchild
    +++Orderitm
    +++Ordchild
    Nikhil.

  • How to change the number of items displayed on the screen based on user input

    I need to place a number of input clusters on the user's screen based on the number of input types he will have.  Is there an easy way to do this?  (Say I have 3 different electrodes, I want to be able to add information for each then take this information and add it to a database, this case adding three new record sets to the database.  If I only have one electrode though, I only want one cluster on the screen and only one recordset will be added to the database)
    Message Edited by Vitamin on 01-11-2007 12:36 PM

    Place your clusters in a 1D array and create a property node for the array. You can use the Number of Rows property to control how many elements are shown. Wire the array into a for loop to index it.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • Renaming the text of a cell in tree control during run time

    Hello all,
      Actually i am stuck up at one point.In the picture of front panel i attached,there is a tree control and two buttons (re,stop).when i press the rename button,i want the selected cell in the tree control to be focussed and when i enter some text through the key board the cell should be renamed.Can anybody suggest me how to do this?
    Thanks and regards,
    srikrishnaNF
    Solved!
    Go to Solution.
    Attachments:
    Example_VI_FP.png ‏7 KB

    Yes it is possible. look at the attached library developed by Norman J. Kirchner, Jr. Also more info could be found @LAVA
    Guru
    Regards
    Guru (CLA)
    Attachments:
    Tree_Control_VIs.zip ‏437 KB

  • How can I change the background color of a menu ring?

    Hi
    Does anybody know how to change the background color of a menu ring??? (not the backround color of the first item, the background color of the list (remains always gray))
    thanks martin

    Try Preferences>>Colors>>Menu Background, but this will change ALL menu's background color.
    Hope this helps

  • Change the Purchase Order : Item - Conditions value

    Hi,
    How to change the Purchase Order : Item - Conditions value.
    In my PO, Item conditions shows the SKTO - Cash Discount value is 0. I want to change the Discount value 10.
    How can i change it??

    Hi,
    Goto the Transaction code MN05 and give the CONDITION TYPE SKTO and change the value
    MN05 is the Transaction code for Purchase order  condition types.
    Please check and revert back if you need more details.
    regards,
    santosh

  • How to change the width of a switch control?

    If I set long on&off texts, they can't be fully displayed. How to change the width of this sap.m.switch control?
    P.S., "width" attribute doesn't work here.

    Hi Jocy,
    A switch is just a simple boolean control : true/false, yes/no, on/off. Other possibilities are not possible.
    If you to need to choose between, say, black/white, then a switch is *not* a good choice; nothing stops you from adding yellow/red/blue to the mix as well.
    If you *do* have a strict boolean choice (again, only rue/false, yes/no, on/off) then I would suggest adding a descriptive label with the simple, short switch control.
    Otherwise, I would strongly advice using a different type of control (RadioButtonGroup, DropdownBox)

  • How can I change the name of item in TableViewController iOS

    How can I change the name of item in TableViewController? I want to be able to change the title of an item if I added one. Code:
    //  ViewController.m
    //  Movie List
    //  Created by Damian on 20/02/15.
    //  Copyright (c) 2015 Tika Software. All rights reserved.
    #import "ViewController.h"
    @interface ViewController ()
    These outlets to the buttons use a `strong` reference instead of `weak` because we want
    to keep the buttons around even if they're not inside a view.
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
    // A simple array of strings for the data model.
    @property (nonatomic, strong) NSMutableArray *dataArray;
    @end
    #pragma mark -
    @implementation ViewController
    - (void)viewDidLoad
        [super viewDidLoad];
         This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
        self.tableView.allowsMultipleSelectionDuringEditing = YES;
        // populate the data array with some example objects
        self.dataArray = [NSMutableArray new];
        NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
        for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
            NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
            [self.dataArray addObject:itemName];
        // make our view consistent
        [self updateButtonsToMatchTableState];
    #pragma mark - UITableViewDelegate
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        return self.dataArray.count;
    - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateDeleteButtonTitle];
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateButtonsToMatchTableState];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        // Configure a cell to show the corresponding string from the array.
        static NSString *kCellID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
        cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
        return cell;
    #pragma mark - Action methods
    - (IBAction)editAction:(id)sender
        [self.tableView setEditing:YES animated:YES];
        [self updateButtonsToMatchTableState];
    - (IBAction)cancelAction:(id)sender
        [self.tableView setEditing:NO animated:YES];
        [self updateButtonsToMatchTableState];
    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        // The user tapped one of the OK/Cancel buttons.
        if (buttonIndex == 0)
            // Delete what the user selected.
            NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
            BOOL deleteSpecificRows = selectedRows.count > 0;
            if (deleteSpecificRows)
                // Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
                NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
                for (NSIndexPath *selectionIndex in selectedRows)
                    [indicesOfItemsToDelete addIndex:selectionIndex.row];
                // Delete the objects from our data model.
                [self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
                // Tell the tableView that we deleted the objects
                [self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
            else
                // Delete everything, delete the objects from our data model.
                [self.dataArray removeAllObjects];
                // Tell the tableView that we deleted the objects.
                // Because we are deleting all the rows, just reload the current table section
                [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
            // Exit editing mode after the deletion.
            [self.tableView setEditing:NO animated:YES];
            [self updateButtonsToMatchTableState];
    - (IBAction)deleteAction:(id)sender
        // Open a dialog with just an OK button.
        NSString *actionTitle;
        if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
            actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
        else
            actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
        NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
        NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
                                                                 delegate:self
                                                        cancelButtonTitle:cancelTitle
                                                   destructiveButtonTitle:okTitle
                                                        otherButtonTitles:nil];
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
        // Show from our table view (pops up in the middle of the table).
        [actionSheet showInView:self.view];
    - (IBAction)addAction:(id)sender
        [self.dataArray addObject:@"New Movie"];
        // Tell the tableView about the item that was added.
        NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
        [self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
                              withRowAnimation:UITableViewRowAnimationAutomatic];
        // Tell the tableView we have finished adding or removing items.
        [self.tableView endUpdates];
        // Scroll the tableView so the new item is visible
        [self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
                              atScrollPosition:UITableViewScrollPositionBottom
                                      animated:YES];
        // Update the buttons if we need to.
        [self updateButtonsToMatchTableState];
    #pragma mark - Updating button state
    - (void)updateButtonsToMatchTableState
        if (self.tableView.editing)
            // Show the option to cancel the edit.
            self.navigationItem.rightBarButtonItem = self.cancelButton;
            [self updateDeleteButtonTitle];
            // Show the delete button.
            self.navigationItem.leftBarButtonItem = self.deleteButton;
        else
            // Not in editing mode.
            self.navigationItem.leftBarButtonItem = self.addButton;
            // Show the edit button, but disable the edit button if there's nothing to edit.
            if (self.dataArray.count > 0)
                self.editButton.enabled = YES;
            else
                self.editButton.enabled = NO;
            self.navigationItem.rightBarButtonItem = self.editButton;
    - (void)updateDeleteButtonTitle
        // Update the delete button's title, based on how many items are selected
        NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
        BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
        BOOL noItemsAreSelected = selectedRows.count == 0;
        if (allItemsAreSelected || noItemsAreSelected)
            self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
        else
            NSString *titleFormatString =
            NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
            self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
    @end

    Hey JB001,
    Sounds like you have more going on than just a simple issue with Home Sharing and more dealing with Wi-Fi syncing. Start with the article below and see if that may resolve it.
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
    http://support.apple.com/kb/TS4062
    If it does not work out, then may I suggest contacting Apple for further assistance to walk you through it or just take that time that you were talking about to sort it out.
    Contact Apple Support
    https://getsupport.apple.com/GetproductgroupList.action
    Regards,
    -Norm G.

Maybe you are looking for