Disable an attribute at run time

I want to build a form using jsf where I need to disable or enable an attribute according to the value of the previous attribute.Is there a way to apply my logic?
Please help.
Regards
Susmita

Hello
The way I see it, if both your attributes are text fields you can use javascript to accomplish this. Just fill in the ID attribute of both your fields and the container form. if I remember correctly, the resulting HTML id will be something like FormID:FieldID.
I tried to do this using Java bean bindings, partial triggers and value change listeners but it didn't work out. It looks like this requires a round trip to the server and that was not efficient.
Anyway if you finally manage it please post the solution here for the rest of us.
Thanassis

Similar Messages

  • Disabling ui elements at run time.

    hi ,
    i am working on a screen in which i have a no gui elements. what i basically want that when i use this component in another my buttons and input field (embeded in the tabe) should get disabled. please guide me ,how to change the value of the context bound to the read only property of these ui elements, at run time.

    Hi Vishvdeep,
        I think your requirement is that you want to control the   enabled property of UI elements from one component by other component.
    So what solution Abhi has provided is perfect and if u didnt understand it i am just explaining in steps.
    *Suppose u have two components
    component A and component B
    You want UI elements of component B should be controlled by component A.*
    Step 1) Create a method in component controller of component A and select the interface property of method( so that you can use it in other component)
    Step 2) Create a node along with its attribute and make this node also interface node.
    step 3)Write the code in this method as per your requirement(as Abhi has given the code)
    step 4)Call component A in component B and bind the enable property of ur UI elements with the interface nodes from component A.
    step 5)call the interface method of component A which will make control enable property of component B.
    Hope this will fullfil your requirement.If you have any query feel free to ask.
    regards
    PG

  • Attribute change run taking more time

    Hi Gurus
    I am loading master data 0mat_plant everyday
    nearly 2 to 3 lakhs record .The extracrion and loading is taking 30 min but attribute change run is taking 3 hrs .Is there any way to reduce attribute change run time.

    Hi,
    You can try going to the monitor for Attribute change run from RSA1 >> tools >> apply change run or from Transaction RSATTR which will schedule/display attribute change run. Here you can have an option called change run monitor (Monitor icon). this wil show the status of change run including which all info objects are affected, and if its hitting the aggregates of any cubes.
    There are scenarios where the attribute change run failed with message that it was hitting/affecting aggregates of some infocubes. In case we had to switch off aggregates and trigger the change run again and then swtich on the aggregates after the change run is over. this may not be the exact issue you are facing.
    And sometimes ACR goes on running for a long time in such case we need to check which Aggregate the ACR is currently changing and need to deactivate that aggregate.
    But before deactivating an aggregate you need to check the data present in that and the usage of the aggregate.
    Also you can try Tcode CHANGERUNMONI/program RSDDS_CHANGERUN_MONITOR to view this data.
    Note 903886 - Hierarchy and attribute change run
    thanks,
    JituK

  • Notification messages set at run time

    I would like to be able to send different message body content at the same place in my workflow determined by settings of a couple of attributes at run time.
    Is the correct approach to create a function call which has the PLSQL to determine the attribute settings and then calls wf_notification.send with the appropriate message name? If so, how do I then handle the response to this notification (Y or N)?
    I am using 2.6 standalone.
    Cheers
    Mike G

    Hi.. I have to use the Notification API (Send) because I dont want to use item attributes (all the notification info like performer and message body is generated in runtime)
    But, just as stated here, the Workflow callback function was giving problems. How can I implement my own callback function? the examples in WF guide aren't enough clear for me! Can abyone help me with this?

  • DSC 8.0 Run-Time custom installation

    Hello,
    I have developed an application using DSC 8.0 features and it runs fine on my development computer. I have a couple of questions regarding deploying a buillt executable on customer computer.
    1. Can application exe be located in a folder different as DSC RTS installation?
    2. Can DSC Run-Time 8.0 be installed in location different as default? I started an installation process of DSC RTS 8.0, but the Browse... button to select custom destination is disabled.
    Ideally, I would like to achieve that application executable ( and all folder hiearchy needed ) would be separate from DSC RTS ( as when building pure LV code). If this is not possible, than 2 options exists:
    a: to install application structure to default DSC RTS location  or
    b: to install DSC RTS to a custom location of my application ( prefered )
    Please, can you explain me what option do I have.
    I can not find a document that would describe a complete procedure for deploying DSC application with all possiblle options that could happen, as we all know that DSC applications are usually preety complicated and consists of many parts deployment can be very frustrating. This is a request for NI folks to put together one complete document ( kind of " Deployment Bible" ) for version 8.0
    Regards,
    ROMP

    Matt:
    Please try the following and let me know what you find.
    Open your project from the project explorer
    Right-click on your application and select Properties
    Click on Advanced in the Category list
    Disable Enable Enhanced DSC Run-Time Support
    I am curious to know what you find.
    Regards,
    Rudi N.

  • Attribute Change run taking too long time to complete.

    Hi all,
    Attribute change run has been taking too long time to complete.It has to realign 50 odd aggreagates, some by delta , some by reconstruction. But inspite of all the aggregates it used to finish in quick time earlier. But since last 4-5 days it is taking indefinite time to finish.
    Can anyone please suggest what all reasons may be causing this? and what possibly can be the solution to the problem? It is becoming a big issue. So kindly help with ur advises.
    Promise to reward your answer liberally.
    Regards,
    Pradyut.

    Hi,
    Check with your functional owners in R/3 if there are mass changes/realignments or classification changes are going on regarding master data. e.g. reasigning materials to other material groups. This causes a major realignment in BW for all the aggregates. Otherwise check for parameterchanges / patches or missing db stats with your sap basis team.
    Kind regards, Patrick Rieken.

  • HOWTO: Control Printer Attributes for a Report at Run Time Reports 6i

    HOWTO: Control Printer Attributes for a Report at Run Time
    Like page width , height etc
    my problem is i had installed a printer and it is set for
    printing different reports ( like invoice slips , legal size ,
    A3 etc ) each time i have to manually set the page settup from
    printer folder .instead if there is an option to set the printer
    attributes from Reports 6i it is great
    rajesh

    All the Printer Setup(Page Height and Page Width) must be set in
    the Reprot Program. These can be set at the Layout-Main Section
    in the Object Navigator.
    hth

  • How do I disable one item in a radio buttons control at run time

    I need to disable one item in a radio buttons control. At design time
    this is possible, but how do I do this at run time? Is this possible? I
    cannot find a property per item

    Use the property "Controls[ ]" - this gives you an array with references of each single button in the radio buttons control. These you can access with property nodes too.
    Hope this helps.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi,
    I believe this would be your Prod system, so don't just cancel it but look at the job log. If it is still processing then don't kill it and wait for the change run to complete but if you can see that nothing is happening and it is stuck for a long time then you can go ahead and cancel it.
    But please be sure, as these kind of jobs can create problems if you cancel them in the middle of a job.
    Regards,
    Arminder Singh

  • Attribute Change Run taking very Long time.

    Hi Experts:
    We are daily loading Master data from one common process chain. There are 33 Infoobjects which are getting activated in Attribute Change Run Process. This process is taking almost 3 hours to run daily; due to this it is impacting our other data load process chains.
    Many times it happens that there is lock on cubes due to attribute change as attributes are getting aligned to same cube on which the roll up is running.
    There are local chains below the attribute change run, which are also important to run.
    Please help and suggest the workaround for the same.
    Cheers,
    Omkar

    33 info objects in one ACR(attribute change run) is not a good idea.
    Better to split the info objects and use multiple ACR.
    During your ACR if transaction data load was on then lock issues always occurs.
    Thats why we need to run master data loads first and later transaction data loads.
    Which info object change run was troubling, better to note the info objects which are causing and try to put them  in separate ACR and trigger it before start of your transaction data loads. so that it won't raise the same issue again.

  • How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    Hello,
                  Regarding the skip/force pass/force fail options, when I set the ControlExecFlow to True in Teststand 3.1 and 3.5, in the Sequence Editor the menu options for skip/force pass/force fail are not active for Technician but, when I launch the Operator Interface logged with Technician the options are active. The problem is that if the technician sets one step to one of these options, and change the user to Operator, the test step remains skip/force pass.
                  Is there any possibility without modifying the Operator Interface (at programming level), to reload default values of the steps when changing the user to Operator?
    Thank you,
    Best regards,
    paio

  • Dynamic/Run time attribute creation & storage of attribute history in OID

    Hello there,
    The client wants to store a history of PIN (user defined field) changes in OID which requires run time creation of attributes to be stored in a particular object class.
    Can we modify the OOTB OID connector in some way so that we can create and/or store the values of the newly generated user pin's? If so which method/API can be used? Any hints/clues ... please?
    Thanks in advance!

    I am not sure what is your exact requirement. If i am understanding correctly then you want to an extra field (User Defind Field) value to be stored in OID.
    If yes, then
    OIM password
    If no, please explain a little bit more about your requirement.
    And for creation you can attach java code if it is some logical id and you can't generate OOTB. Otherwise you can attach pre populate adapter in that
    Struggler

  • How to make a window disable/enable in run time in webdynpro application

    Hi all,
    1) my requirement is in run time i want to make the content of a window in disable mode?
    2)  and again it should display in enable mode when we perform some action?
    thanks & regards
    naveen
    Moderator Message: This has been covered numerous times in this forum. Also, the forum is not a free consulting service here to do your job for you.
    Thread locked
    Edited by: Neil Gardiner on Nov 22, 2010 9:27 PM

    Hi,
    You will not be able to do this with a standard radio button, as each one will be in a separate instance of the row.
    The easiest way is to use a checkbox (as you can script this on/off) and then make it look like a radio button.
    Example here:
    https://acrobat.com/#d=sasUNmniOUgs3MwY-p4H8Q
    Hope that helps,
    Niall

  • Help me, I am using flash pro cc and air 4.0,i have one problem when publishing apk through air publish settings,choosing the run time option from third party is disabled.can any one help me bcoz i have to publish without air runtime.......

    Help me, I am using flash pro cc and air 4.0,i have one problem when publishing apk through air publish settings,choosing the run time option from third party is disabled.
    can any one help me bcoz i have to publish without air runtime.......

    Hi,
    This option is available when your publish target is set to AIR 3.6.
    You can download the desired AIR SDK version from Archived Adobe AIR SDK versions
    Thanks!
    Mohan

  • Porting an InDesign Plugin from InDesign CC to InDesign CC 2014 the plugin complies successfully with the InDesign CC 2014 SDK but at run time presents this error and is disabled. Does anyone know what might be the issue?

    Porting an InDesign Plugin from InDesign CC to InDesign CC 2014 the plugin complies successfully with the InDesign CC 2014 SDK but at run time presents this error and is disabled. Does anyone know what might be the issue?
    Run TimeError Message Presented when InDesign CC 2014 runs:
    Adobe InDesign cannot load the FastFractions.InDesignPlugin plug-in. The FastFractions.InDesignPlugin plug-in requires the 9.0 version of InDesign. Please contact the vendor to get a compatible version of FastFractions.InDesignPlugin.
    Show this alert again?

    As already told this means that the plugin has not been ported correctly. Some part of it for ex InDesign libraries or frameworks are being referenced from the CC sdk instead of the CC2014 sdk. To troubleshoot it i would advise you to rename the folder containing the CC sdk on your machine and then compile the project, it will fail to compile and you will get to know straightaway what aspects of the ported project are still accessing the old sdk. Fix the errors and your plugin will load fine.
    Thanks,
    Manan

Maybe you are looking for

  • Problem with HD? and a few other things...

    Just got my MBP with a 320GB 7200rpm and I wonder if what I am hearing is good or bad. Generally the computer is working fine, but if I lift the computer from the table (or my lap) and tilt it quickly I get a clicking sound where the hard drive is lo

  • Printer problems

    How do I get my HP1020 to print with my new Macbook Air computer?  the printer shows up on the computer....The computer indicates its printing but nothing is printed at the printer?  Do i need a new printer for this computer?

  • Insert a new record in the middle of a tabular form

    Hi, I have a tabular form. Pressing "Add Row" button opens a new, empty row at the bottom of the page or - if I use pagination - jumps to the page with the last record and creates a new record there. Is it possible to open a new line in the middle of

  • Template or CSS style sheet

    Which is the better way to start a website from scratch? 1.  To make a comprehensive Template with lots of CSS rules and then base all the other pages on the template OR 2.  Make individual pages and apply external CSS styles to each page? I'm really

  • File registry problem: entered file types not seen via RON but in DB

    Greetings, I configured SCM with the new Jdev file extension types to be treated as text for merge purposes as suggested in the RC2 release notes. I used RON 4.11 to enter 6 or so new file extensions, then hit the OK. These extensions are not visable