Disabling Radio Button Conditionally is not working Well

Hi friends,
I have three radio buttons
<li>self
<li>New Hire
<li>On Behalf of
I will be showing this radio button conditionally according to the user who logs into the application.
Assume, suppose if a person 'A' enters into the application means he will be shown only these radio button options ---NH---,----OB----,----Self-----
Suppose, if a person 'B' enters into the application means he will be shown only these radio button options ----NH----,----Self---
If a person 'C' enters into the application means he will be shown only these radio button options ---Self---
I have restricted those radio buttons according to the users who enter into the application using their roles.
But my challenge here is once the user logged in and if he select anyone of the radio button means,
Example if he selects----NH---means, then ---OB----and -----Self---radio button has to disable and if he selects ---OB----means then ----NH-----and ---Self---has to
disable(vice versa).
I have also achieved the same using the DA.
With true action as: javascript Expression i have given the following codings( i have written the below DA for three cases, if the request_class_code is equal to
(NH,OB,S)
var enabled=$v('P22_REQUEST_CLASS_CODE');
if (!$u_SubString(enabled,'S')) $('#P22_REQUEST_CLASS_CODE_2').attr("disabled","disabled");
if (!$u_SubString(enabled,'NH')) $('#P22_REQUEST_CLASS_CODE_0').attr("disabled","disabled");
if (!$u_SubString(enabled,'OB')) $('#P22_REQUEST_CLASS_CODE_1').attr("disabled","disabled"); The above DA is working great only for the user who has the option of viewing three radio buttons in my form(i.e)(NH,OB,S).
For the user who has the option of viewing two or one radio button, it is not working properly(i.e)(NH,S) or(OB,S) or(S).
Why it is not working for the user with two options or with one option radio button means, the source of that radio button property is changing. Since i have taken
the source of my radio button in my DA only when the three options are present.
How i can solve this issue for the user who is having this two radio option or one radio option.
Hope you understood clearly about the problem.
Brgds,
Mini

Hi,
If I did understand what you like have this might work
var lVal = $v('P22_REQUEST_CLASS_CODE');
$('#P22_REQUEST_CLASS_CODE input:not([value="' + lVal + '"])').attr("disabled","disabled");Regards,
Jari
http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME

Similar Messages

  • I am about to buy and iphone 4, its second hand and is in amazing condition. The only problem is that the 'wi-fi' button doesn't not work. I tried to click on it but nothing responds. Can this be fixed? Should i still purchase it?

    I am about to buy and iphone 4, its second hand and is in amazing condition. The only problem is that the 'wi-fi' button doesn't not work. I tried to click on it but nothing responds. Can this be fixed? Should i still purchase it?

    while you are with the person selling it to you, ask if you can do a complete restore of the software settings->general->reset->reset all
    reboot the phone to factory settings and see if that fixes the problem.  if not, i wouldn't buy it unless they are selling it to you for less than $50.  wifi is crucial for keeping data low and using features like facetime

  • Facebook is not working well on Firefox for two days now?

    For two days now, Facebook is not working well on Firefox...all other web sites are fine, Facebook is not loading like it was, prior to yesterday, there were no problems. Facebook is working fine on Internet Explorer, but not on Firefox. What's up?

    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences''' in the address bar and press enter.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences''' in the address bar and press enter
    Select '''Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

  • Guard Condition is not working

    Dear Friends,
    I have created a dashboard using BI queries. output of queries is displaying via charts.
    Now i have to display charts one by one in single layer. Here i triggered the Select Event on the output of CHART A and Guard Condition as well.
    Now guard condition is not working properly. i want display of CHART A first then after clicking on tab i want display of CHART B. But here i always get CHART B first, which is not the requirement.
    I am using VC 7.0 with flex2 compiler. EP patc level is SP17.
    Kindly hep me out to resolve this.
    Thanks & Regards
    Nivedita

    Drag an output from your table to a data store and add a field to the datastore (lets call it GUARDFIELD). Click the connector between the table and the data store. Make sure the event name is select and assign GUARDFIELD with the following value:
    STORE@GUARDFIELD+1
    Now add a guard condition to the select connector between the table and chart B and use following code:
    STORE@GUARDFIELD>0
    This is going to check that GUARDFIELD is greater than 0, which will only be true when you click the table for first time. If this doesn't make sense let me know and I'll try find the blog which explains this.

  • Seek your help about the issue of Sun JES can not work well in HP9000

    Recently I am testing Sun JES (Java Enerprise System) 2005Q4 in HP9000 (HP-UX 11.11), but I encountered some troubles, after installation, Sun AM -- Access Manager (its old name is Identity Server) and Sun Portal Server can not work well, others (such as Sun App Svr, Directory Svr, Admin Svr) are OK.
    When I try to access AM admin console (http://myhost.mydomain.com:8080/amconsole), exception was thrown as below:
    exception
    javax.servlet.ServletException
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:300)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    java.lang.NoClassDefFoundError
    com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:99)
    com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:242)
    com.iplanet.am.console.base.ConsoleServletBase.checkAuthentication(ConsoleServletBase.java:355)
    com.iplanet.am.console.base.ConsoleServletBase.validateSSOToken(ConsoleServletBase.java:238)
    com.iplanet.am.console.base.ConsoleServletBase.onBeforeRequest(ConsoleServletBase.java:188)
    com.iplanet.jato.ApplicationServletBase.fireBeforeRequestEvent(ApplicationServletBase.java:1105)
    com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:591)
    com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    After many test, I still can not finger out what is the real reasons casued this exception in HP-UX.
    The possible risk is JES 2005Q4 requires some software and hp-ux bundles patches before install JES, but I can NOT find the exact version of them from hp web site, and use corresponding higher version to release them.
    JES 2005Q4 needs:
    Perl (B.5.6.1.F) HP-UX11i
    Tour A.02.02
    Libiconv 1.9.2
    GOLDAPPS11i & GOLDBASE11i (June 2004, B.11.11.0406.5)
    I installed:
    perl_D.5.8.0.G_HP-UX_B.11.11_32+64
    TOUR_B.03.01_HP-UX_B.11.11_32_64
    libiconv-1.11-hppa-11.11
    GOLDQPK11i_B.11.11.0612.459
    I am very appreciated for your help!
    Thanks!!
    Vhu
    ===============
    some test env:
    bash-3.00# uname -a
    HP-UX rp3440 B.11.11 U 9000/800 1110163507 unlimited-user license
    bash-3.00# java -version
    java version "1.5.0.01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.01-_06_jun_2005_05_20)
    Java HotSpot(TM) Server VM (build 1.5.0.01 jinteg:06.06.05-04:39 PA2.0 (aCC_AP), mixed mode)
    JES media:
    java_es_05Q4-ga2-hpux-parisc.zip
    installed components in JES: App Svr, AM, Portal Svr, Directory Svr, Admin Svr.

    This is a double posting, please only post in one discussion at a time.
    Keynote 6.5 is stable and reliable under Yosemite for most users.
    As with all new operating systems and applications, a small number of users find a few problems.
    Copy and pasting text from and into Keynote from all the applications I have, work perfectly: the applications include; Safari, Mail, Word, PowerPoint, excel, Pages, Numbers, iMovie, Photoshop, InDesign, Illustrator.
    If you want to place graphics into Keynote, use one of the following methods:
    Insert > Coose
    click the media button on an image placehoder
    click the media button on the tool bar
    drag and drop from a Finder window
    Copy and pasting images into Keynote is not supported

  • Apps not working well on my Ipad 1 - any updates I can do?

    I am having issues with apps not working well (disconnecting) when using my Ipad 1 - anything I can do?

    Open the multitasking window by double-tapping the Home button. Close all the apps that are open. You can then try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
    Try again to see if the problem persists.

  • Not working well on my msn with creative NX

    can someone please help me with this webcam NX model N0225, is not working well on my msn 7.5 i'm using XP SP2 it will disconnect after like 30 minutes or so... but if i didn't open the cam, it won't have any problems with it. are there any other way I can solve this problem please someone help me thanks

    Open the multitasking window by double-tapping the Home button. Close all the apps that are open. You can then try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
    Try again to see if the problem persists.

  • If condition statement not working in jsp scriptlet

    <%
    String hostName = java.net.InetAddress.getLocalHost().getCanonicalHostName();
    if(hostName.endsWith("dinesh.com"))
    System.out.println("it works");
    else {
    System.out.println("it doesn't work");
    %>
    I am getting output as it works & it doesn't work. It seems the If condition is not working. Pls help with this issue.
    Thanks

    Dinesh_Nala wrote:
    Even the condition in if is returning true, the x value i am get as "/user2/"How did you knew that it returns true? Or did you just expect that? Do you trust yourself more than Java? Too bad.
    Just debug it:
    System.out.println("Actual hostname value: [" + hostName + "]");
    System.out.println("Does it end with dinesh.com? " + hostName.endsWith("dinesh.com"));

  • To whom it may concern      Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E  2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in goo

    To whom it may concern
    Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E
    2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in good shape I can prove it,the Apple support in Brazil doenst work like in USA.
    I look forward to your reply and a resolution of this problem.
    Thank you very much!!!

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • My speaker is not working properly in 4s if i use headphone its working now my volume increase decrease button is also not working properly how can i solve it pl help me my warranty finished

    my speaker is not working properly in 4s if i use headphone its working now my volume increase decrease button is also not working properly how can i solve it pl help me my warranty finished

    Hello. I sent my WRT1900AC V1 to Linksys four days ago (Monday) via UPS with a RMA. Linksys paid the shipping and everything. The router is still in route, and it should arrive to their offices tomorrow. Once they receive the WRT1900 AC V1, they are going to send me an EA8500 as a replacement. But I have been reading the comments about the EA8500 here in the forum and it seems to have the same problems. I guess the firmware is extremely flawed in both routers (maybe it is almost the same code?). Anyway, I will try the EA8500 and I hope it works. I bought a temporary router from Walmart and I paid $35 for it. It is a Belink N600 DB. I can't believe that a $35 router is working a lot, lot, lot better than my previous $250 WRT1900AC router. Unbelievable. If the EA8500 doesn't work, I'm going to try and get my money back from Linksys, or contact The Consumerist or someone to get my money back and get a Nighthawk instead.

  • After upgrading to IOS 8 my iPhone 5 wifi is not working well at all .. and can't connect to any of apple services like apple store even can't upgrade my application

    After I upgraded to IOS 8 my iPhone is not working well at all .. the most serious issue is the wifi which is too slow and can't connect to apple store and can't update my application  .. also tried to search or update for ios 8 but also can't connect . safari also always can't connect to any the server . please check and advise

    Hey ahmedfromtanta,
    Thanks for the question. After reviewing your post, it sounds like trouble with Wi-Fi. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    iOS: Troubleshooting Wi-Fi networks and connections
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • HT4623 iOS 6.1 no longer available because you are no longer connected to the internet- this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.

    this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.
    is there any other method to download ios 6.1.2.
    my phone is not being recognized by itunes on my new windows 8. neither its working on touch copy.
    kindly help.
    thanks

    well in thatcase, i need another help .
    thanks for your instant reply.
    i have currently bought a new laptop (windows 8) and my iphone is not being recognized by itunes.
    because i have no backup on my previous laptop, i downloaded touchcopy but even touch copy is not recognizing my iphone.

  • Safari 5.1.1 I no longer have access to my bookmark folders, just a search that does not work well. How can I retrieve access to bookmark folders?

    OS 10.6.8 Safari 5.1.1 I no longer have access to the bookmark folders. There is just a search function that does not work well. Is there any way to get access back to my bookmark folders?

    This site didn't say anything about one wrong ID, but only talks about changing the Apple ID.  If it didn't work the first time why should it work now?

  • Why ps3 is not working well with airport

    why ps3 does not work well wth the airport?

    If you are referring to online gaming, then PS3 like all non-apple devices uses upnp to open ports.
    Apple uses NAT-PMP to open ports.. East and West.. never the twain shall meet.
    If it is internal wireless issues.. that is different.. airport should be just like any other wireless router.
    If you tell us the issue we have more hope to help.

  • I have to reinstall Mail as it's not working well. How can I make a back up of my emails so as not to lose them all?

    I have to reinstall Mail as it's not working well. How can I make a back up of my emails so as not to lose them all?

    Thank you for your time Woody. Recently the Mac seems to freeze a lot, seemingly due to a problem with the airport, especially if the computer is inactive for anything more than a few minutes. Then yesterday I suddenly couldn't send or receive messages so I got in touch with my server and they reconfigured the mail account. I can now receive messages but can't send them, always getting a timed out message when I try to send an email. I phoned the server again and they said it must be a problem with Mail as we tried sending a message online from the server's webpage and it worked fine, so they suggested I reinstall Mail. So hence my original question. Sorry for the rambling! I'm not very computer minded.

Maybe you are looking for

  • Desktop image center doesn't work after OS update

    Hi - I just updated the OS with software update.  I always had the same picture on my desktop and I used the "center" selection so it was zoomed in.  Following the OS update (10.7.5), the "center" selection no longer works.  When I click on center it

  • Windows 7 Home Premium 64-bit Danish

    Hello I want to format my PC and I have found out that it is legal to download a version of Windows online if you have a legal CD-key. I have a legal CD-key, but I need a copy of Windows 7 Home Premium 64-bit in Danish. So far I've only been able to

  • Mac OS X Server in Mac Mini

    I recently bought an used mac mini and when I turn it on it asks me for the user login information which I do not have. When I get to the login menu it says MAc OS X SERVER, So I guess it has the Server installed?(I don't understand much about the "s

  • As per scope of list order type has changed in ME57

    Hi, I have created PR in doc type NB and using t-code Me57 i have tried to create PO, with selection scope of list A it is going correct means as per the requirement order type shows ZAB and when i select scope of list ZALV which has customized then

  • How Can implement the audit function using toplink?

    My system must record all the modification, how can I use toplink to implement it. I know when toplink modify some object, the toplink will check how many attribute have been modified, and then update it to database, Can I implement the record when t