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

Similar Messages

  • How to add screen elements at run time on button click in Web Dynpro abap?

    Hello All,
    I have a requirement wherein the user wants to add the textbox dynamically at runtime on button click action. My questions is, Is it feasible to dynamically add screen elements at runtime? If yes, how?
    Please help.
    Thanks

    Hi Ajinkya,
    This is absolutely possible! Adding view elements at runtime is called "dynamic programming". There are a lot of good resources and tutorials on SCN if you do a search. To start you off, here is an excellent series by Thomas Szücs:
    Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements
    Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
    Dynamic Programming in Web Dynpro ABAP - Part III: Aggregations and DDIC-Binding of ViewElements
    Another option that avoids dynamic programming is to create the view element at design time but bind its visible property to a context attribute of type WDUI_VISIBILITY. You could initially set its visibility to "none" until the user clicks the button, then you could change its visibility to "visible".
    Cheers,
    Amy

  • Photoshop elements 7 run time error

    Came pre-loaded on my PC.  After using mmany many times, now selecting Editor causes a runtime error.  Running Windows 7.  

    Please try launching Editor keeping Ctrl+Alt+Shift keys pressed and delete the settings when prompted,
    Thanks
    Andaleeb

  • Adding selection screen elements at run time

    Hi,
    I have a selection screen with four drop down list which has 20 elements.
    When i select any element from drop down, i must be able to add some other UI in the same line.
    DD1
    DD2
    DD3
    DD4
    If i choose a first item in DD1,
    DD1 Lable1 IP1 lable2 IP2
    DD2
    DD3
    DD4
    these lables and input fields are not known till selecting the item.
    Will i be able to do this in selection screen?
    Thanks
    Vimalraj

    Have a look at this Report. you have to Capture events on User Command and modify the screen accordingly.
    REPORT  ztesttt.
    PARAMETERS: test1(10) TYPE c MODIF ID sc1,
                test2(10) TYPE c MODIF ID sc2,
                test3(10) TYPE c MODIF ID sc1,
                test4(10) TYPE c MODIF ID sc2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'SC1'.
          screen-active = '1'.
          MODIFY SCREEN.
          CONTINUE.
        ENDIF.
        IF screen-group1 = 'SC2'.
          screen-ACTIVE = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • 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

  • To get system status of WBS Element in run time

    My requirement is to call a Z prorgam when the std transaction CJ20N is saved.
    The Z program should be called only when the system status is set as closed. I am using the BADI workbreakdown_update to call the Z program. Inside the BADI I need to check if the system status is closed or not. How can I capture the screen field value of System status ? Can any one help me?

    Hi,
            table TJ02 dont contain the updated record. this process should be triggered before saving. So I need to get the changed system status in screen. The table contains the status as Released but the screen field has the status as closed.I need to fetch the screen value.

  • Can we populate UI Element Dropdownbykey at run time

    Hi All,
    Can we populate UI Element dropdownbykey at run time, I am able to populate R/3 data in inputfield type UI element, but how to populate it in dropdownbykey UI element, is it possible??
    Thanks in advance

    Hi Amit,
    Yes we can populate dropdownbykey UI element at run time using data from the R/3. For doing this, try to understand the below given code:
    empCode - Which you bind to the DropDownByKey.
    IContextElement contextElement = wdContext.currentContextElement();
    IWDNodeInfo nodeInfo = wdContext.getNodeInfo();
    IWDAttributeInfo dateAttributeInfo = nodeInfo.getAttribute(contextElement.empCode);
    IModifiableSimpleValueSet dropValueSet = dateAttributeInfo.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
    String empCodeTxt=null;
    //Gives the Size of the List, which is coming from Model
    int nodeLength = wdContext.node<BAPIList>().size();
    for (int i = 0; i < nodeLength; i++) {
    // Gives the Value, which you want to show in Drop Down List Box..
    empCodeTxt=String.valueOf(((IPrivate<viewname>.I<BAPIList>Element)(wdContext.node<BAPIList>().getElementAt(i))).get<Parameter>());
    dropValueSet.put(empCodeTxt, empCodeTxt);
    This piece of code has been taken from the following thread:
    https://forums.sdn.sap.com/thread.jspa?threadID=215743&tstart=0
    Bye
    Ankur

  • 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.

  • Getting run time error in organizer Photoshop Elements 5.0??

    How do I fix run time error for Adobe PhotoShop Elements
    5.0 when I pull up organizer?

    What operating system?

  • LabVIEW VI with Report Generation Toolkit elements in a TestStand sequence does not run with a LabVIEW 8.5 Run-Time Engine

    Hi all,
    I am using LabVIEW 8.5.1 and TestStand 4.1. I have done a TestStand sequence with a VI in it, which uses Report Generation Toolkit elements. On my machine I am using LabVIEW and TestStand with a Development System license. On the other machine I am using TestStand with a Base Deployment license and I have chosen the LabVIEW 8.5 Run-Time Engine in the Adapter Configuration. Everything is running well except of this VI with Report Generation Toolkit elements. The error message is showing that the VI is not executable. It works well only after I have installed LabVIEW with an Evaluation license and chosen LabVIEW 8.5 Development System in the Adapter Configuration.
    I have found other posts and a document in the KnowledgeBase with a similar problem: http://digital.ni.com/public.nsf/allkb/8A0E6274D9B​D7B1986256F62006AD402?OpenDocument But I am not using EXE files in my sequence, so I don't know how to solve mine. Anybody has an idea?
    Solved!
    Go to Solution.

    Hello guys,
    thank you very much for your answers!
    @Ruediger:
    I tried to follow the instruction for Method 2 in the mentioned document: http://digital.ni.com/public.nsf/allkb/F3DC40A6E3F​3B25B862570AD005D1D3D?OpenDocument, but the steps on my machine are different starting from step 4. After I click "Continue..." in step 3, I dont get a window, the system just makes a new folder with the same VI. 
    To be honest, I am new to LabVIEW and have some difficulties at this time. What I understood from your reply is, that I need to make a LLB-File, where the files from Report Generation Toolkit are in!?
    @GovBob:
    I was following the instruction in the document: http://digital.ni.com/public.nsf/allkb/9E00E7EFE06​35E678625734600779EFE, but it wasnt working. Can you please tell me how I can check if the VI Server is installed and running on the machine?
    I am using LabVIEW 8.5.1 and TestStand 4.1 on my machine, on the deploy machine there is TestStand 4.1.1. The version of my Report Generation Toolkit is 1.1.2.
    Kind regards, Roman

  • 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...

  • Add an element to the list in run time

    There is an item in my form which is a list of values.It is getting populated based on a record group query.
    I want to let the user enter values at run time and add the values to the exiting list in the form and same
    should be added to the record group so that next time i open the form the added value can be seen.
    Is this possible?
    Regards,

    I have written this code on when_button_pressed trigger to populate the record group RGSTD and LOV(Name LOVSTD).
    I have added the element in the list using add_list_element built in. But it is not giving me proper results.
    Record group has two columns STDID and STDNAME.
    DECLARE
    ln_num NUMBER := 0;
    BEGIN
    ln_num := show_alert('ALERT15');
    IF ln_num = 88 THEN
    add_group_row('RGSTD', 1);
    set_group_char_cell('STDID', 1, 'ST00004');
    set_group_char_cell('STDNAME', 1, 'Add To List');   
    add_list_element('LOVSTD', 1, 'Add To List', 'Add To List');  
    ELSE
    NULL;
    END IF;
    END;Edited by: LostWorld on Feb 9, 2009 5:49 AM

  • 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

  • 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

  • Have Elements 11 and I get a Run Time Error when going into editor?

    I have Elements 11 and I am getting a run time error when I select editor.  It worked 2 weeks ago and now I get the message. I use Windows 7 and it nothing has changed in the past two weeks that I know of. The error is Microsoft Visual C ++ runtime Library

    Windows was installed in 2013, so it is whatever that dumb version was with
    no 'off'...
    I have Photoshop Elements 10.0
    I have no idea what an optimized computer means.
    When I say 'either editor' I mean I can't use the Full or Quick editor,
    they both produce the same message stream.
    As follows:
       Box pops up that is Microsoft Visual C ++ Runtime Library  with the
    message:
        Runtime Error
        Program : C:\Program files
        THis application has requested the Runtime to terminate it is an
    unusual way....
       PLease contact the application support team for more information
    If I click the OK button then I get an Adobe Photoshop Elements 10 box that
    pops up which says
    "Elements 10 has stopped working"
    I have no problem downloading images into the program or renaming files or
    pulling images back out I just can't edit.
    Hope that helps.
    Leslie
    On Tue, Mar 31, 2015 at 11:27 AM, A.T. Romano <[email protected]>

Maybe you are looking for

  • BADI/UserExit for MIGO in Stock Transfer

    Hi Gurus, I have a requirement. When posting a GR in MIGO, if the material has been flagged to go through inspection, MIGO post the batch to quality inspection. Now, when a batch has already gone through inspection (for example in another plant) and

  • Why do I get certificate errors?

    Why am I getting certificate errors for Facebook and other sites?  Why am I getting Invalid URLs as well?

  • Need mass storage controller for Equium A110-147

    Hello. I have an Equium A110-147 running windows7 ultimate with 2g of ram and a 500 g hard drive. In other devices in device manager I am informed that my mass storage controller drivers are not installed. When I try to update the drivers I am told t

  • Any way to export project to original format (dv) without loosin quality?

    I know that many has been said in the forum of exporting and file formats, and I have read lots of posts relating the topic, but I need to put another question concerning the issue. I have a MiniDV video camera and use iMovie08. I just want to select

  • ITunes Affiliate Program Approval

    In regards to the iTunes Affiliate Program. Can you use "IOS" in a domain name, or would that lead to application being rejected ? Can you display IOS Apps/Game descriptions and screenshots within your website ? Thank you