How to Change label content in a sequence ?

OverView: I am using VS 2012 , WPF and C#.
I have got 60 radio buttons in 20 groups. 3 radio button per group name(out of 60 radiobuttons, only 20 can be checked at a time).
Radiobuttons are C, NC,NA in each groupname.
I have 20 labels in other form which i intend to link with radiobuttons having name only NC. for example, Label_1 content will only change when NC is checked else it's by default empty. 
Problem:
I can change the content of the label using if and else. BUT problem is:
For example:
Label names are Label_1 to Label_20. I have arranged them in a line from Label_1 to Label_20. Every label is connected to NC radiobuttons. When user checks only three NC's then it just changes the content of the three labels which is good as per requirement
but as each label is connected to a certain radiobutton, vacant ugly spaces are created which is not the requirement. 
Question:
I want to know is there any kind of loop or something that if only 5 radiobuttons are NC then the first five label content should change ? I know that i linked the labels with radiobuttons thats why they change. but there should be a way to generally change
the content of the label. some loop or something. Plz help.
Why i require all this:
Basically, Nc means non-compliant. so at the end of the application, i want to give the user the list of all non-compliant factors.

I'm not sure I understand exactly what you're doing here, but I have a somewhat different approach I think I would probably use.
I'd make a usercontrol which I used for each question.
Add 2 public dependency properties:
Label text
Selected option
Arrange the label and 3 radio buttons in the usercontrol to suit the requirement - probably using a grid.
As a radio button is checked/unchecked change the value of selected option DP.  As the DP changes, set the appropriate radio button.
I could then new up one of these things, set the label and add it to an itemscontrol or listbox.
( I guess I'd also need some sort of spacer kind of control to group them maybe.)
If I wanted to know which questions are a particular option I could just iterate the items and check the selected option dependency property. I could do that using linq.
If I wanted to update some collection of data I could bind those properties or iterate again.
Hope that helps.
Technet articles: Uneventful MVVM;
All my Technet Articles

Similar Messages

  • How to change the "content created" date/time in FCPX?

    Since I've had problems importing my whole iMovie event library into FCPX I decided to run some tests with importing individual files (part of iMovie events and originally imported from camera into iMovie). Some of them for some reason got the wrong "content created" date/time in them while in iMovie they have the right date/time set. Does anybody have an idea on how to change the "content created" timestamp?

    I had a bunch of DV files that imported stamped with the file modification date and time.  I did not find a way to change it in FCPX. With FCPX not running, I used A Better Finder Attributes to modify the creation and modification dates of the files in the event folder. FCPX reconnected to them but the event still showed the old range of dates so I created a new event and moved the clips to it. Maybe ther is a beter way but that is how I did it.

  • How to change the Content-Transfer-Encoding for the fmddataa.fmd from base

    Dear all,
       When I using this SO_DOCUMENT_REPOSITORY_MANAGERto send email,I find the fmddata.fmd  file have been changed  to binary file attachment. I don't hope so.any one have good idea to avoid this case occur?
      Can you tell me how to change the Content-Transfer-Encoding for the fmddata.fmd from base64 to quoted-printable.  The quoted-printable is the Content-Transfer-Encoding for text file with extension .txt
    Best Regards,
    Merry

    Thank you

  • How to change table content ...

    Hi All,
    Pl. give us soltution for the following :
    1. How to change table content of standard table ?
        (eg. mara content not from MM02.).
    2. How to add field in standard table ?
    waiting reply.
    Yusuf

    Hi  Yusuf,
    Modifying a standard table through a program using SQL statements is highly risky. However if u wish to do it programatically and not through MM02, you have the option of using BAPIs.
    Goto transaction BAPI and through the application hirarchy, goto Material Management section. There i am sure u will find some BAPIs to modify material master and they are the most stable mode of update programatically.
    Hope this helps.
    Regards,
    Aditya

  • How to change label in charts in CRM 2013

    I want to change x-axis and y-axis label in chart. Please guide me how to change label in chart.

    http://mscrmninja.tumblr.com/post/15553130574/changing-chart-axis-titles-in-crm-2011
    My blog: www.crmanswers.net -
    Rockstar 365 Profile

  • How to change label in pagination scheme?

    How to change label in pagination scheme? I need to translate "Next" and "Previous" into my native language.
    Regards,
    Kostya

    Hi Kostya,
    see http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/global.htm#CHDJFHBD and Translation and NLS in APEX
    Hope that helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • On opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    on opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    Select the Project in the Browser.  Go to the Info section of the Inspector.  Click the Modify Settings button.  For  Video Properties, change the Format from PAL to NTSC.  Export again, you'll be fine.

  • How to change label color in LabelGraphics script?

    I am using ID CS4 and running the LabelGraphics script to label several images in a large document. When I run thre script, the box with the file name is transparent with black type. I would like the box to be white with black type. Is there any way to edit the script that will enable this? It would be great if there was an "object style" in addition to the "paragraph style" in the run script pop-up window. Anyone?

    Hi hylet,
    Here's how to change the LabelGraphics.jsx script itself to add an object style option:
    1. Look for the line:
    var myStyleNames = myGetParagraphStyleNames();
    And add this line before or after it:
    var myObjectStyleNames = app.documents.item(0).objectStyles.everyItem().name;
    2. Look for the lines:
    //Style to apply
    with(dialogRows.add()){
         with(dialogColumns.add()){
              staticTexts.add({staticLabel:"Label Style", minWidth:myLabelWidth});
         with(dialogColumns.add()){
              var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:0});
    And add the following lines after them:
    //Object style to apply to the text frame
    with(dialogRows.add()){
         with(dialogColumns.add()){
              staticTexts.add({staticLabel:"Label Object Style", minWidth:myLabelWidth});
         with(dialogColumns.add()){
              var myObjectStyleDropdown = dropdowns.add({stringList:myObjectStyleNames, selectedIndex:0});
    3. Look for the line:
    var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
    And add this line before or after it:
    var myObjectStyleName = myObjectStyleNames[myObjectStyleDropdown.selectedIndex];
    4. Look for the line:
    myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyle);
    And change it to:
    myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myObjectStyleName);
    5. Look for the line:
    function myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName){
    And change it to:
    function myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, myObjectStyleName){
    6. Look for the line:
    myAddLabel(myDocument, myGraphics[myCounter], myLabelType, myLabelHeight, myLabelOffset, myLabelStyle);
    And change it to:
    myAddLabel(myDocument, myGraphics[myCounter], myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myObjectStyleName);
    7. Look for the line:
    function myAddLabel(myDocument, myGraphic, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle){
    And change it to:
    function myAddLabel(myDocument, myGraphic, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myObjectStyleName){
    8. Look for the line:
    var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
    And add the following line after it:
    myTextFrame.applyObjectStyle(app.documents.item(0).objectStyles.item(myObjectStyleName), true);
    9. (Optional) Look for the line:
    myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
    And delete it or put "//" in front of it--this will let the object style take care of setting the first baseline offset method.
    After you make these changes, the script adds the object style dropdown to the dialog:
    Thanks,
    Ole

  • How to change Labels of Fields in the search help shown as F0001 F0002 etc

    Dear All,
    For one of my fields of screen I have been calling a search help configured using F4IF_INT_TABLE_VALUE_REQUEST.
    In this function I am returning the field in dynfields. Let me know please how to change the Labels of Field Names being shown in the search help as F0001, F0002 etc....
    Regards,
    Alok.

    Hi Alok,
    You can change the Field Label by going to the Data Element and changing the Field Label .
    Hope this helps
    Regards
    Sunil

  • How to change Labels of Fields being shown in the search help as F0001 etc.

    Dear All,
    For one of my fields of screen I have been calling a search help configured using F4IF_INT_TABLE_VALUE_REQUEST.
    In this function I am returning the field in dynfields. Let me know please how to change the Labels of Field Names being shown in the search help as F0001, F0002 etc....
    Regards,
    Alok.

    Hi Alok,
    You can change the Field Label by going to the Data Element and changing the Field Label .
    Hope this helps
    Regards
    Sunil

  • How to change the content in request at approval stage

    Dear experts,
    We have a requirement like following:
    Frist, User submits a new account request, the field "Position" is set to cerntain value, eg. sales support
    Then, Manager should have the capbility to change the content in field "Position", such as changeing sales support to sales manager, when he approves the request.
    However, it seems that only very few fields can be changed after request submition.
    How could we configure AC to let the managers can change the content in request at approval stage?
    Thanks a lot!

    Tang,
    In the stage for the Manager set the "Change Request" to 'Yes'.  This will open up a few fields for you, including user group, role validity dates, etc.  I do not believe this will open up position though.

  • How to change BI Content InfoObject (move Lowercase letter mark) and transp

    Hello,
    1. Do you know how to change the business content infoObject by moving the mark "lowercase letter" for the characteristic (no master data) so that i can transport it in PROD.
    When i tried to change it, the message i recieve is, that i have to delete the SID table. And when i want to delete the SID table, i reciéve the message that, the table content data, and that the data in the table have first to be deleted. And also, i cannot delete data in the SID table.
    Actually, and by trying to resolve the problem, i see that the infoObject is NOW on "REVISED",....
    2. Normally, i have to change the infoObject by removing the "lowercase letter Mark", so that by the activation, it can be transferred to a transport order i created in Solution manager PROD. But the infopackage and transformation and datasource i created before did not, give a posssibility to save this in the transport order.
    3. How can i change the activated Business Content infoObject (now on REVISED) and transfer it to the transport order i created in Solution manager Prod. For example, i created a logical system in SPRO and could transfer it to the transport order, but in RSA1, by creating the objects, no dialog to transfer the Z-Bi created objects in transport ORDER is displayed.
    My most important problem here is the change for the INFOOBJECT, save the change in transport order, and transport it in productiv.
    4. One more question, is to know what happen with old request data in PROD infocube, after i transport the change infoObject in PROD?
    Do you know how to resolve the problem?
    Kind regards and many thank for helping
    Arnaud

    Hi,
    Did you try Delete Master Data on the right click of your Infoobject? Since your infoobject is already loaded with data, it does not allow you to change the definition. You need to delete data completely from the infoobject and change the lower case letter.
    You can only transport the Active version but not revised version.
    Try deleting tables in SE14 t-code.
    Regards,
    Suman

  • How to change the content of GTC (terms and conditions) for Partner

    Hi all,
         We are using R/3 version of ISA B2B site. while creating order thru Shopping Basket we have requirement that We need to provide GTC (General Terms and Condions) for the Partner (View GTC link ).  Right now some default text is displayed in that window (text text text ext text text text text text like that). we need to change this.
    where i can change this text and enter our own terms and conditions.
    Please help me to resolve this,
    thanks in advance
    siva kumar

    Hi Siva,
    the GTC is shown in the JSP b2c/order/terms_and_conditions.jsp. If you have a look at the file, you will find the following code:
    <isa:translate key="b2c.order.termsAndConds.txt.dmy"/>
    The translate tag will render the language dependant text for the resource key "b2c.order.termsAndConds.txt.dmy". To change the content that is shown you can change the resource text or create your own resource key in the corresponding resource file. The resource files are located in the src-folder of the web application DC.
    Best Regards,
    Peter Kraus
    SAP Web Channel Consultant
    http://www.leonardo-it.com

  • How to change labels in maintenance view

    Hi,
    i have created a maintenance view on a table.
    i attached this view to a transaction.
    when i run that transaction the table is appearing for display of values
    and new entries. but i want to change labels of the appearing view.
    is there any way?
    please suggest me.
    raju

    Hi,
    to handle GuiXT central in SAP: use transaction SHD0. There is also an online help for further information.
    in SHD0 transaction variants are defined: alternative tcodes, where normally fields are hidden and default values are assigned.
    Enter standard tcode in field TCODE, enter z-tcode in field TCVARIANT and create just something for playing...
    In upper part you will find flag GiuXT-Script and in upper part is 'i'-button for help in using this transaction (this blue-i-help-button is also in starting screen, docu is implemented like SPRO-docu).
    Approach with SHD0 ensures transportation of scripts and automated download to local Guis - so some help to handle bigger installations.
    Regards,
    Omkar.

  • How to change Portal Content by date?

    Dear Colleagues,
    We have the following requirement, a user must be able to change the content (news, the content of iviews, other info) of the portal start page(a custom developed framework page for the external portal) by selecting a date in the calendar.
    If you have any ideas or you've already worked on such a solution, please share your thoughts.
    Sincerely,

    Venkatesan
    Please do the following step by step.
    1. Logon as administrator to your portal.
    2. Go to Content Administration. In the option portal content right click to get the option New -> Iview.
    3. Select the option SAP Web dynpro Iview in the list of Iviews and give the respective properties.
    Is your WD component fetching data from backend. If yes create system before creating the Iview. To create system search for "Portal Integration of the Web Dynpro Application" on help.sap.com and you will get the exact steps.
    Do assign points if this helps.
    Please award points if this helps.

Maybe you are looking for