How to check whether checkbox is checked or not and to get label if checked

Hi,
I've used checkboxgroup, and i'm populating it dynamically using attribute node & attribute value.. like this
IPrivateTestView.IWelcomNode wNode =wdContext.nodeWelcom();
     IPrivateTestView.IWelcomElement wEl,wE2,wE3;
     wEl=wNode.createWelcomElement();
     wNode.addElement(wEl);
     wEl.setWelValue("Welcome Boards");
     wE2=wNode.createWelcomElement();
     wNode.addElement(wE2);
     wE2.setWelValue("Traditional Welcome");
     wE3=wNode.createWelcomElement();
     wNode.addElement(wE3);
     wE3.setWelValue("Photograph");
now i want to check whether checkbox is checked and how many checkbox has been checked and then i want that label values of checked boxes.. so pls help me out. if possible give me some sample coding...

CheckBoxGroup.texts -> Welcom.WelValue
In controller method (e.g. action handler):
IWelcomNode node = wdContext.nodeWelcom();
for (int i = 0; i < node.size(); ++i)
  IWelcomElement e = node.getWelcomElementAt(i);
  if (node.isMultiSelected(i))
    String text = e.getWelValue();
    /* checkbox #i is selected and variable "text" contains the text */
Armin

Similar Messages

  • How to check whether portal user exists or not using UM API.

    Hi Experts,
    Let us say i need to create an user account "PortalUser",i know how to create an user,setting first name,lastname,password for that.
    but here before creating the portal user, i need to check whether that user exists or not.If user already exists ,then i  need to skip the below for creating the user.
    IUserFactory userFact = UMFactory.getUserFactory();
    IGroupFactory groupFact = UMFactory.getGroupFactory();
    IRoleFactory roleFact = UMFactory.getRoleFactory();
    IUser tuser = userFact.getUserByLogonID("PortalUser");
    IUserMaint newUser = userFact.newUser("PortalUser");
    newUser.setFirstName("PortalUser");
    newUser.setLastName("Test");
    newUser.setEmail("PortalUser.Testatgmaildotcom");
    //Locale PortalLanguage = new Locale(Lang.toLowerCase(), "");
    Locale PortalLang=new Locale("en");
    newUser.setLocale(PortalLang);
    newUser.save();
    newUser.commit();
    IUserAccount userAcc = UMFactory.getUserAccountFactory().newUserAccount("PortalUser", newUser.getUniqueID());
    userAcc.setPassword("test1test$");
    userAcc.save();
    userAcc.commit();     
    Thanks in advance.
    Thanks
    Sony.

    Hi,
    Try this code,
    IUserFactory factory = UMFactory.getUserFactory();
    IUser user = factory.getUserByLogonID(userId);
    lastName = user.getLastName();
    firstName = user.getFirstName();
    refer this pdf,its very helpful
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars-nw-rig/using%20the%20user%20management%20api%20with%20ep%20applications%20-%20webinar%20powerpoint.pdf
    Regards,
    Sunaina Reddy T

  • How to judge whether the chars contain only number and letter

    how to judge whether the chars contain only number and letter, for example :
    'AEs4386' is valid , but '‘´‘¼ew78' is not
    thanks for your help !

    Hi,
    try the following:
    data: l_test(36) type c.
    concatenate sy-abcde '0123456789' into l_test.
    l_test contains all letters all numbers now
    translate YourVariable to upper case.
    YourVariable contains only upper case letters
    check YourVariable co l_test. " or use if instead of check
    YourVariable contains only letters or numbers
    regards
    Siggi

  • TS3988 My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    Be sure you are checking the email account that you used to set up the Apple ID you used to create the iCloud account.  Also, be sure to check your spam/junk folder as well as your inbox.  The email you should receive looks like the image below.  When you get it, click the Verify Now link.
    If it still isn't there, try going to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right look for a link to resend the verification email.

  • I just want to know that if I buy an iphone 4S here in melbourne can i use it in china? i don`t know whether it`s locked or not and i don`t know what`s the network in china as well. Can somebody please help?I am really in a hurry to know it. Thanks a lot.

    I just want to know that if I buy an iphone 4S here in melbourne can i use it in china?
    i don`t know whether it`s locked or not and i don`t know what`s the network in china as well.
    Can somebody please help?
    I am really in a hurry to know it.
    Thanks a lot.
    P.S: For the iphone 4S. is there any difference for the one from online shop or the actual store?

    iPhones purchased from the online Apple Store in Australia will be unlocked. To the best of my knowledge, unlocked iPhone are not available from the physical Apple Stores at this time, though you can call the Apple Store in Melbourne and inquire.
    Note that the warranty on iPhones is not international, so if you purchase an iPhone in Australia and it needs service, you would have to ship the iPhone to someone in Australia to take or send to Apple for service and then ship it back to you.
    Regards.
    (Note for any readers: this is an old thread and I posted before noticing the date, but decided to leave my reply in case anyone else finds the thread and has the same question).

  • How to check whether a Record Exists or not in Ztable

    Hi all,
    I have Req like this
    In ZTable i have 2 fields  * Legacy System , Legacy Material No*
    Environment Value is coming in one of the field in Idoc
    The logic is if the Environment Value is UK and a Record Exists on the ZTable for Legacy Sysyetm = Leg1 means i have send Legacy Material No , else  Send 01
    Please suggest me the process for this
    REgards
    Vamsi
    Edited by: Vamsi Krishna on May 19, 2009 5:31 PM

    Hi Michal / Aamir,
    Thanks for your replies.
    The ZTable is at R/3 side only, iam using RFC Lookup for this, but iam bit confuse on how to construct the logic to check whether there is a record Exists or not on Ztable
    Logic shld be If the Environment value is UK and a record exists on the Ztable for Legacy system "ABC" means then send Legacy material number else send 01
    In Table we will have the fields Legacy System   Legacy Material No  & Environment value is coming from Idoc itself( Ex: UK or US)
    Regards

  • Checking whether checkbox is inactive

    Hello!
    My report outputs lines from DB to a list. In the list, there are lines with checkboxes. I mark a checkbox -> do an operation on the specified line -> return to the list. I make the checkbox in the line inactive through the following statement:
    DATA markfield TYPE c.
    DO lines TIMES.
            READ LINE sy-index FIELD VALUE markfield.
            MODIFY LINE sy-index FIELD VALUE markfield
                                               FIELD FORMAT markfield INPUT OFF.
    ENDDO.
    Now, I want to check if the checkbox (markfield variable) is inactive and change it to active. How the logical expression should look like in the condition of IF statement?
    I had this idea:
    DO lines TIMES.
            READ LINE sy-index FIELD VALUE markfield.
            IF FIELD VALUE markfield FIELD FORMAT markfield INPUT OFF
                 MODIFY LINE sy-index FIELD VALUE markfield
                              FIELD FORMAT markfield INPUT OFF.
            ENDIF.
    ENDDO.
    or:
    DO lines TIMES.
            READ LINE sy-index FIELD VALUE markfield.
            MODIFY LINE sy-index FIELD VALUE markfield
                          FIELD FORMAT markfield INPUT ON
                          WHERE ....... " what condition?
    ENDDO.
    Count on your help
    Regards

    check these useful tips
    if checkbox = 1.   "  It is marked and inactive
                     = X     " it is marked and active
                     = 0     " it is not marked and inactive
                     = space " it is not marked and active
    u can modify ur code accordingly

  • How to check whether a file exists or not

    i am in an image uploading utility. i hav succesfully uploaded the image to the server directory (say /uploads). but when displaying the uploaded image, i wanna show the picture only if the image exits (bcoz for some records there is no image). so i hav used this code
    if(new File("uploads/1.jpg").exists())
         out.print("image exists");
    but its not working for me. i got it working fine when i give the full path "D:/Tomcat/webapps/diary/admin/uploads/1.jpg". but i think giving this absolute path is not an efficient method bcoz its a web application, bcoz i may not be able get the absolute path always. so how can i do this by specifieing the relative path
    help me ASAP if u can
    aleens

    Haii ameen
    This is one way to rectify your problem..
    if(new File("uploads/1.jpg").exists())
    out.print("image exists");
    instead of this u can write like
    <%
    ServletConfig cf=getServletConfig();
    ServletContext c=cf.getServletContext();
    if(new File(c.getRealPath("uploads")+"/test.txt").exists())
    out.print("image exists");
    %>If u are not clear of what it is done let me know..i will xplain to you furthur...
    Happy New Year
    Shanu

  • How to know whether User is Buyer or not?

    Hi,
    I am developing a function module to create/update/unassign Employee Org Hierarchy. In this I have to know whether User is BUYER OR NON BUYER?.
    If user is assigned to purchase org/purchase group then he will be BUYER or else he will be NON BUYER. If once I come to know whether user is BUYER OR NOT, then I have to proceed further differently in both the cases.
    Pls help me out in this regard asap.
    Thanks & Regards,
    Nagaraju Maddi
    Message was edited by: Nagaraju Maddi

    Nagaraju
    Buyer will be having purchaser roles like SAP_BBP_STAL_PURCHASER, SAP_EC_BBP_PURCHASER, SAP_EC_BBP_ST_PURCHASER. Check the roles of the users. If you find Purchaser(standard roles) or Buyer(in case of customized roles) in their roles then he/she will be buyer.
    Similarly Non buyer user will be having Employee role like SAP_EC_BBP_EMPLOYEE.
    Hope this will help you.
    Do reward points for helpful solution.
    Regards
    Jagdish

  • How to tell whether iPhone is unjailbroken or not?

    how to tell weather iPhone is unjailbroken or not?
    So, about this time last week i decided to jailbreak my iphone 4 ios 5.01. being 15 most of my friends with iphones have it jailbroken. so after hours of youtube i found a way to do it and It was a success! i was really excited that i finally had a jailbroken iphone. However, i started to realize that it was not a big difference from before i jailbroken it. It started to run slow and glitch up. I also have read that jailbreaking you iphone voids your warranty with apple and i do not feel that its worth it. So i uninstalled every application that i have downloaded from cydia and uninstalled cydia its self. After i uninstalled cydia, i backed up my iphone and transfered all of my apps to my cpu. Then i restored my iphone and set it up from the previous backup i just made. Everything went perfectly! however i want to know if my iphone has actually been un-jailbroken being that i restored my iphone from a back up wear my phone was in a jailbroken state. and since i uninstalled cydia from my phone before i backed it up and restored it, there isnt any clear way to tell whether its still jailbroken or not. please if you understand anything i just said please help me lol. i do not want my warranty to continue being voided ! thanks!  

    If you restored from a backup remnants of the jailbreak will still be on the phone. You must go to settings/general/reset - Erase all content and settings, delete all iPhone firmware images from your computer, then do a Restore and set it up as a new phone. You cannot restore your backup. You must reinstall your apps, set up email accounts and other settings from scratch. You will lose all app content, such as game scores.
    Even this will not remove all traces of the jailbreak; Apple will still be able to tell it was jailbroken. But for your purposes the jailbreak will be gone.
    There is one exception; if you also unlocked the phone as part of the jailbreak the modem firmware will not match the iOS version, and future updates may cause problems.

  • How can I change my settings so my notes and calendar are linked to another email?

    Hello, I have an email account on my iPhone that is from my old employer. I know how to "delete" the email account in my settings, but when I did that it removed all of my saved notes from within the past 6 months from the iPhone's original "notes" app, as well as removed my events that are saved in my calendar app. So I re-added the email account (which is an additional email account connected to my yahoo email that my employer added for me in the past (I no longer work there, so I don't need it). The strange thing is that when I bought my phone, I set everything up through a different Yaho account. How can I remove this email without loosing my notes and calendar events?
    Thanks

    Ok, thank you, but my apple ID is all tied to my yahoo email. This is a separate, additional yahoo email the email that I want to remove is not linked to my apple ID.

  • Check whether checkbox interaction has been clicked

    Can anyone tell me whether it is possible to use the checkbox widget from the advanced interactions in Captivate 7 as part of a quiz as detailed below.
    What I would like to do is have 18 checkboxes on my slide with a button which when pressed will trigger an action to check if the correct ones have been checked. If they have I'll show correct feedback, if not I'll show incorrect feedback.
    I guess in short I'd like to know if it's possible to update a variable based on whether the checkbox is selected e.g. '_var = 1' or not '_var = 0'.
    I had considered creating a bespoke activity using click boxes and advanced actions to achieve the desired results but the iPad can't handle more than five click boxes on an individual slide.
    Many thanks in advance.

    Hello,
    I'm not sure that iPad will be able to support that, since one is never sure but it can be done in Captivate. My blog post about using checkboxes/radiobuttons for custom questions is the most popular post I ever wrote, when i screen the number of visits: http://blog.lilybiri.com/widgets-and-custom-questions-part-1
    The radiobuttons and checkboxes interactions have an identical functionality but are guaranteed for HTML5 output.
    You will see that the associated variables are no booleans at all but will be empty when checkbox for that item is not chosen, or equal to the item when chosen. This means that you'll have to create a conditional action that checks for the correct entries like this:
    IF v_one is equal to 'This is first item text' AND
         v_two is equal to v_null      AND...   where v_null is an empty variable, or you can also
    Since this is a static interaction, you will need an event to trigger that action: you could use a button 'Submit' or a slide event.
    http://blog.lilybiri.com/using-captivate-widgets-some-tips
    Lilybiri

  • How to Check whether laptop is OEM or Not ?

    I had bought a  Envy 15 notebook through flipkart. But due to technical problem I had refreshed my pc using HP recovery. At last I cant activate windows 8. When I contacted Microsoft technical support I had given my product ID and they told me that it was not a product of OEM. Whats the solution for this problem ?

    Hi,
    It will blow air out. You can use you hand or a piece of tissue to check. Normally fan will only work when machine is getting warmer. You may run machine for 10 or 15 mins then check. BUT making beeping noise at startup is not a good news, what is the actual noise ? How many times ?
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • HT3775 Can someone direct me as to how I check whether I have the media formats and codecs that QuickTime Player can play back using my Mac Pro?

    I'm trying to use quicktime on my macbook pro but I receive the message below when I make an attemp to use it.  Any suggestions?
    Media formats supported by QuickTime Player
    QuickTime Player natively supports the following media formats and codec components. You can also extend QuickTime to support additional codecs and components.
    Below are the media formats and codecs that QuickTime Player can play back in Mac OS X v10.6.x or later:

    More alternatives to Quicktime. VLC is recommended a lot.
    Video Player - Divx
    Video Player – Flip4Mac
    Video Player - VLC

  • Want to check whether cost center exists or not during payroll process ?

    Dear All,
    Requirement is to throw an error for an employee during payroll run if the cost center does not exist.
    I guess this may be achieved by PCR only.  There is an operation OUTWPCOSTC which can help.
    Issue is that there are parameters like VALEN and VAOFF which need to be taken care of while using OUTWPCOSTC.
    Also, when cost center is not assigned, its value in WPBP is BLANK.  How to query a BLANK value in PCRs?
    Can any help on this with an complete example?
    Regards,
    Ankit

    Hi Ankit,
    Try with PCR
    VALEN 1
    OUTWPCOSTC
    Update the PCR in sub schema COPY  Z002                  Edit basic data
    000040 WPBP                        Read Work Center/Basic Pay Data
    000050 GON                         Continue if Data is Complete
    000060 ACTIO ZQ14 GEN              Check if cost centre exits
    000070 BLOCK END                   Edit basic data
    This will help you while runing the Payroll.
    Thanks & Regards
    Vikram Mali

Maybe you are looking for

  • My desktop icons won't open but I can open them from the finder thru the dock; how can I fix this? I run 10.5.1

    I run 10.5.1 and I have been getting a blue screen on boot that takes forever before the screen icons pop up...then I can't open them by clicking on them even though I can do so thru the finder in the dock. Any ideas how to fix? I dumped a bunch of s

  • [solved] mmg from mkvtoolnix doesn't work

    Hi guys I just wanted to use mmg to make a mkv video file, but starting it from terminal, it only shows the following % locale LANG=de_DE.utf8 LC_CTYPE="de_DE.utf8" LC_NUMERIC="de_DE.utf8" LC_TIME="de_DE.utf8" LC_COLLATE="de_DE.utf8" LC_MONETARY="de_

  • Launch a navigator with class URL

    Is there in java a function which allow to launch a navigator as netscape or opera ....? Thanks

  • How do I enable root user in OS X 10.7 Lion?

    How do I enable root user within Lion? I've looked online, and I've been instructed to launch the 'Director Utility', but I cannot find this ANYWHERE in Lion. It's not in my Utilities folder. Can anyone offer any advice as to how to enable the root l

  • Security Issue

    Using using BO XI 3.1 SP3 FP4 I have been on the phone with BO for 2 weeks now trying to get this resolved, wanting to go live by the 18th.... here is my situation... Have 3.1 up and running, have folder & groups set up (If you copy out to xls its ea