How to disable UI element during runtime

Hi!
Can someone show me how to access the properties of ui elements during runtime?
eg. in the method  WDDOINIT i want to enable/disable the GroupBox "Group"
how to?
thanks

>
Abhimanyu Lagishetti wrote:
> ideal way is the one i specified,
>
> other way is you have to change it in WDDOMODIFYVIEW
>
> to get any UI element this is the code
>
> view->get_element( '<ID of the UI element>' ). which return the corresponding UI element reference
>
> the UI element classes start with CL_WD_*.
>
> for example: inputfield CL_WD_INPUT_FIELD
> data: lr_input type ref to cl_wd_input_field.
> lr_input ?= view->get_element( '<ID of the UI element>' ).
> lr_input->set_enable( abap_true ).
>
> Abhi
I would like to stress that this NOT the SAP recommended way of controlling the properties on UI elements - the first solution you were give would be the recommended approach.  The direct UI coding access should be used as a last resort when working with dynamically generated UI elements.  Otherwise you should always try and set the UI element properties via context binding. This makes your application more accessible to customizing/personalization, makes it easier to maintain over time and provides the best performance.

Similar Messages

  • How to disable close button during runtime

    Hi everybody.,
    Please help me how to disable the close button at top of the window during runtime. I dont want the user to use that button to close. I have used button called Exit in that form but sometimes users closing by clicking that button.
    I am using Oracle form 10g R1.
    Thanks in Advance,

    Hi,
    Thanks Mr. Arif Khadas for your quick reply.
    While running the form, in window there will be two close button, one is in form and another one is in Internet Explorer. By making changes on the property what you said above this will hide only the form's close button. I want to hide the internet explorer close button also.
    Thanks in advance.

  • How to disable individual elements in array

    How do I disable individual elements in an array at runtime.

    I assume you are referring to the control property "disabled".
    If so there is no way to disable a single element of an array. By definition an array is a collection of data, it is not a collection of controls. A fine line but an important one. So you can configure the single control that makes up the array and defines its type. For example, if you have an array of Booleans, you can change the color of the Boolean. However this will change the color of all the Booleans in the array. It is 1 control, with a lot of values.
    Part of the reason for this is memory. Imagine an array of 1 million elements. If you could set the properties of each element, then to store that array would be incredibly large. It would be 1 million U8s for example, but then all the properties for each 1 million elements would also need to be saved. Therefore your 1 million element array of bytes could easily represent 100 million bytes in memory.
    Let me know if this explanation makes no sense, I usually explain it better, but I think I need more coffee.
    The way around this is clusters. You can change each element in a cluster, so if your array is of a manageable size, change your array control into a cluster of n elements. You can then use the cluster to array function to convert the data to the array of data you need. Unfortunately this method means that before runtime you must know the maximum number of elements you will need. You can always hide the extras, but you can not create more during execution.

  • Change properties of UI Elements during runtime in Web Dynpro ABAP

    hey ,
    what is the convention for changing ui elements in runtime by method set_attribute_property ?
    for example :
    changing visibilty of text box :
    property= 1.
    *" call method set attribute property and pass value as 'X' to show
      call method lo_el_radio_node1_1->set_attribute_property
        exporting
          attribute_name = 'FIRST_NAME_1'
          property       = 1
          value          = 'X'.
    and in changing enable/disable  of text box :
    property = 4.
    *" call method set attribute property and pass value as 'X' to ENABLE
    call method lo_el_radio_node2_1->set_attribute_property
       exporting
         attribute_name = 'FIRST_NAME_2'
         property      = 4
         value         = 'X'.
    how the property value is defined ?
    link to full example :
    [link|http://wiki.sdn.sap.com/wiki/display/WDABAP/SimpleapplicationtochangepropertiesofUIElementsduringruntimeinWebDynpro+ABAP]
    Regards ,
    ASA

    Hi,
    I also need to change the read-only property of a field at runtime in webdynpro. The read only field should be enabled at runtime.
    I've used the  call method lo_nd_packslip->set_attribute_property
              exporting
               attribute_name = 'ZOPAK'
               property = '3'
               value = space .
    but I am not getting the desired output.
    Thanks,

  • AMFPHP and AS3FLEXDB - how to disable 'busy indicator' during query execution ?

    I'm doing some experiments with Flex and SQL with use of as3flexdb and AMFPHP.
    I've written some application which is pushing some data to SQL base...
    problem is, that durring query execution, there is some 'busy indicator' on the screen
    - some circle, and word 'loading'.
    Have you any idea how to disable this ?
    Everything what I'm doing is based on this tutorial below, but there is no idea in it how to
    disable the indicator.
    http://ghalex.com/blog/tag/as3flexdb
    I'm not sure if this indicator comes from as3flexdb libraries or AMFPHP itself ?
    Has anyone of you had such problem before ??
    Thanks for all ideas
    Rymas,

    Unfortunatelly my cheers was to early
    I've successfully decompiled the library swc file, found Query.as class and corrected things mentioned in this
    post : http://itutorials.ro/viewtopic.php?f=9&t=22&p=59&hilit=loading#p59
    ... but I cannot compile the library.fla back to swf ... it's generating some errors
    Could anyone help me with that, maybe you've got more expirience with decompiling and compiling.
    Orginal .swc file is here : http://www.rymasek.iq.pl/swc/as3flexdb_1.3.0.swc
    Thanks for help !!

  • How to delete RFC destination during runtime

    Hi Experts,
    I need to delete the RFC destination (created via SM59) during runtime. Which API can I use to do so?
    Thanks & Best Regards, Johnney.

    Do delete different type of RFC destination at runtime , you can use these FM on the basis of its type:
    1. To Read Type of RFC Destination use
                    RFC_READ_DESTINATION_TYPE
    2. To Delete RFC Destination
                   RFC_MODIFY_ARFC_PARAMETERS
                   RFC_MODIFY_HTTP_DEST_TO_EXT
                   RFC_MODIFY_HTTP_DEST_TO_R3
                   RFC_MODIFY_L_DESTINATION                - Read Documentation
                   RFC_MODIFY_R3_DESTINATION             - Read Documentation
                   RFC_MODIFY_TCPIP_DESTINATION        - Read Documentation
    Regds.
    Suman

  • How to disable inbuilt icon on runtime

    Dear sir,
    I am new to forms 9i
    Please help me how to disable inbuilt icons which are shown on the menu bar on top
    like it has written on the top of icon
    action edit query like
    i want to disable this icons and not visibale
    thanks in advance
    regards
    s k swain

    This might be helpful,
    Re: FRM-10221 Cannot read file menudef

  • How to disable internet access during Adobe AIR installation

    Hello,
    I am trying to install Adobe AIR in an enterprise environment on numerous clients.
    Unfortunately the installation procedure always tries to open an internet connection during installation.
    As all users in our company require proxy authentification for internet access, the authentification dialog of our proxy always shows up when installing Adobe AIR. So the installation can not be processed without any user interaction.
    We would like to install Adobe AIR silently in the backround. So we are looking for an opportunity to disable the internet access during AIR installation.
    Thanks for any help,
    Alex

    Hi Alex,
    You might want to give the Settings Manager a try (located at the bottom of this page.)  However, I suspect the network might still be pinged regardless of this setting.  Please let me know how it goes.
    Thanks,
    Chris

  • How to auto update JTable during runtime

    Can anyone tell me how to dynamically update a JTable during execution, what i mean isin the I want the table to automatically add new rows as i enter new data.
    if I pass the object array reference of the TableModel to a method, then add more objects to the array and the revalidate the JTable will it work, or how do I do it ? Thanks

    Your table model should extend AbstractTableModel. And when (for example) it adds a row to whatever data structure is supporting the model, it should call fireTableRowsInserted... you can find out more about those methods in the API documentation. You don't need to revalidate or invalidate or validate the JTable, at least I don't have that in my code anywhere.

  • How to disable PS Elements 10 splash screen?

    I'm frustrated that I get this Welcome screen everytime I start Photoshop.  How do I turn it off?
    I just want to start editing, like in the full version. 
    I FOUND IT.   For anyone wanting to do the same thing:
    1. Do NOT go to the Edit/Preferences menu in Photoshop. Not there.
    2. At the Welcome screen, click on the "settings" in the upper right corner.
    3. Choose "Always Launch Photoshop Elements Editor only."
    4. You are done. 

    Welcome to the forums, Tom.
    Well, actually, that's one way, but the thing is that the welcome screen still runs background processes when you turn it off that way. Better to go into the program files and make desktop shortcuts to the editor and/or organizer in windows or make dock icons for OS X.

  • How to disable Photoshop Elements 4.0 from opening up.

    Hi all, just wanted to thank all of you for answering my two other questions I had. My question now is when I start up Photoshop Elements 4.0 up it goes through alot of info before it actually opens up to view my pic's. Is there a way to just open my pic's up without it going through Photoshop's window first? Can I disable that start up feature?
    One more quick question. When opening up any pic's it automatically open up in Photoshop. I don't want it to do this I want to open pic wherever I want. Thanks again all for you great help.
    [email protected]

    While in windows, right click on an image file, go to "open with" and choose the program you prefer--it was probably "windows picture and fax viewer"(or something like that) before you installed PSE--and check the box "always use this program".
    You need to do this for all of the image types you want to open with the alternate program: jpg, gif, etc.

  • How to disable an element of array?

    Hi,
    Here i have written VI that will make an array of meaningfull data, for example: data pattern 23 16 16 24 
    So whenever two consecutive 16 occurs, VI will delete one 16 from data pattern. But in my case wht problem i am facing is: 
    Whenever it deletes 16 from data pattern, it will show 0 in place of 16 but  i need that cell fully disabled unless this 0 will count into mu data pattern. 
    So i am trying to use disable property node for greying that particular cell or can any tell me why 0 is coming into array when it deletes 16 from it.
     Puneet
    CLA 2014
    CCVID 2014
    Solved!
    Go to Solution.
    Attachments:
    recieve.vi ‏65 KB

    Hi Puneet,
    from what I see in your screenshot the described behaviour is resulting from an unhealthy combination of using (hell a lot of) locals in combination with "use default if unwired" case structure output tunnels
    Remove locals (you already have a shift register, so use a wire instead!), use more descriptive names than "array", wire all output tunnels to avoid unwanted behaviour of your vi...
    Why do you compare with an array (in your for loop) when you only need the result for the first element? Compare with scalar instead...
    Why is "DLE Check" of type DBL? You only seem to use it as integer...
    Why do you write to terminal "Array" and a local "Array" after the FOR loop? (Here is probably the root of the problem!) Only one of the write operations will be effective and you don't know which one...(possible explanation: the local array gets an array formed by autoindexing. So this array contains data for each iteration including an zero [because use of "default if unwired"] when you initially wanted to delete that very element!)
    Aditional note:
    Next time you attach a screenshot please use a picture format like PNG (as long as you don't use BMP)!
    Message Edited by GerdW on 05-17-2009 11:03 AM
    Message Edited by GerdW on 05-17-2009 11:05 AM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to check cursor stats during Runtime

    Hi
    I have a stored procedure running in which there is a cursor which fetches around 1500000 records and then query another table using the fetched record values.
    I cannot modify the procedure as its on production.
    I want to know which cursor record is currently being processed by the procedure, and how many are still remaining ?
    I have cursor name.
    Is there some dynamic view to check cursor stats at runtime ??
    thanks.
    Edited by: AnkitV on Sep 23, 2011 7:27 AM

    Ok
    I used this query and it gave 2 records :
    (the results are not in user friendly here , please let me know how can i display comprehensible data here)
    SELECT a.* FROM v$session s, v$sql a WHERE s.sql_address = a.address
    AND s.sql_hash_value = a.hash_value
    SQL_TEXT SQL_FULLTEXT SQL_ID SHARABLE_MEM PERSISTENT_MEM RUNTIME_MEM SORTS LOADED_VERSIONS OPEN_VERSIONS USERS_OPENING FETCHES EXECUTIONS PX_SERVERS_EXECUTIONS END_OF_FETCH_COUNT USERS_EXECUTING LOADS FIRST_LOAD_TIME INVALIDATIONS PARSE_CALLS DISK_READS DIRECT_WRITES BUFFER_GETS APPLICATION_WAIT_TIME CONCURRENCY_WAIT_TIME CLUSTER_WAIT_TIME USER_IO_WAIT_TIME PLSQL_EXEC_TIME JAVA_EXEC_TIME ROWS_PROCESSED COMMAND_TYPE OPTIMIZER_MODE OPTIMIZER_COST OPTIMIZER_ENV OPTIMIZER_ENV_HASH_VALUE PARSING_USER_ID PARSING_SCHEMA_ID PARSING_SCHEMA_NAME KEPT_VERSIONS ADDRESS TYPE_CHK_HEAP HASH_VALUE OLD_HASH_VALUE PLAN_HASH_VALUE CHILD_NUMBER SERVICE SERVICE_HASH MODULE MODULE_HASH ACTION ACTION_HASH SERIALIZABLE_ABORTS OUTLINE_CATEGORY CPU_TIME ELAPSED_TIME OUTLINE_SID CHILD_ADDRESS SQLTYPE REMOTE OBJECT_STATUS LITERAL_HASH_VALUE LAST_LOAD_TIME IS_OBSOLETE CHILD_LATCH SQL_PROFILE PROGRAM_ID PROGRAM_LINE# EXACT_MATCHING_SIGNATURE FORCE_MATCHING_SIGNATURE LAST_ACTIVE_TIME BIND_DATA
    insert into ASPEC_CUSTCONN_TT select * from v_assetspec_ods where orgid = 'NISOURCE' and siteid = 'INDIANA' and classstructureid = '2276' and assetnum = '0176290003-1-0' insert into ASPEC_CUSTCONN_TT select * from v_assetspec_ods where orgid = 'NISOURCE' and siteid = 'INDIANA' and classstructureid = '2276' and assetnum = '0176290003-1-0' 1tb7569x7jc1y 39,098 9,072 8,224 0 1 1 1 0 0 0 0 1 1 2011-09-23/09:48:05 0 1 0 0 2 0 0 0 0 0 0 0 2 ALL_ROWS 12 E289FB89A3E49800C4001000AEF9C3E2CFFA331056414555519521105555551545545558591555449665851D5511058555155515152552455580185AA3E49800050C02000002000000100000000100002000000210D007000000702500CC7C07000101000038F80004000066BE030000B81200A3E498006564640202643202320000020003020A500A 481,337,165 55 55 WMDWHADM 0 070000005F8A9850 00 2,054,729,790 1,157,974,759 3,562,626,483 0 SYS$USERS 0 sqlplus@vnxhamdboras03 (TNS V1-V3) 0 NULL 0 0 NULL 3,572 3,572 NULL 0700000065E448D8 6 N VALID 0 2011-09-23/09:48:05 N 5 NULL 98,449 1,481 10,153,481,056,577,599,000 13,507,897,832,604,099,000 9/23/2011 9:48:05 AM NULL
    SELECT a.* FROM v$session s, v$sql a WHERE s.sql_address = a.address AND s.sql_hash_value = a.hash_value SELECT a.* FROM v$session s, v$sql a WHERE s.sql_address = a.address
    AND s.sql_hash_value = a.hash_value 6srk0sfcrck09 79,598 33,312 26,288 0 1 1 1 4 2 0 1 1 1 2011-09-23/09:47:51 0 2 0 0 230 0 0 0 0 0 0 3 3 ALL_ROWS 1 E289FB89A3E49800C4001000AEF9C3E2CFFA331056414555519521105555551545545558591555449665851D5511058555155515152552455580185AA3E49800050C02000002000000100000000100002000000210D007000000702500CC7C07000101000038F80004000066BE030000B81200A3E498006564640202643202320000020003020A500A 481,337,165 55 55 WMDWHADM 0 0700000065D04EF0 00 2,574,665,737 3,761,974,339 1,595,585,590 0 WMDWHQ1 0 SqlDbx.exe 0 NULL 0 0 NULL 570,234 634,475 NULL 070000006E11E8B8 6 N VALID 0 2011-09-23/09:47:51 N 6 NULL 42,579 21 3,622,857,551,886,949,900 3,622,857,551,886,949,900 9/23/2011 9:48:05 AM NULL
    Rows affected (2)

  • How do I create multiple objects during runtime?

    I don't know how to create multiple objects during runtime, here's my problem:
    I get a String as input. Then I create an object called newobject. I put the object in a hashtable with the above string as key.
    Then comes the problem, in order to create a new object, I have to rerun the same class, which uses the same name (newobject) to create a 2nd object. Now my hashtable doesn't reference to my 1st object anymore...
    Is there anyway I can fill up the hashtable with different objects, and make each key point to each object it was supposed to?
    For those who want to see a bit of the program:
    public class PlayBalloon{
    public Hashtable ht = new Hashtable();
    for(){
    Balloon pB = newBalloon;
    newBalloon=new Balloon(pB);
    ht.put("Some input from user", newBalloon);
    for(){
    ht.get(s).draw;<= s=string, draw=own meth. in Balloon
    }

    I think i can see the problem that you are having. You have, in effect, duplicate keys in your hashtable - ie, two strings used as keys with the same name.
    The way that a hashtable works is as follows...
    When you ask for a value that is mapped to a key it will go through the table and return the first occurence it finds of the key you asked for. It does this by using the equals() method of whatever object the key is (in your case it is a String).
    If you cant use different Strings for your keys in your hashtable then i would consider writing an ObjectNameKey class which contains the String value that you are trying to put in the hashtable and an occurrence number/index or something to make it unique. Remember to override the equals method in your ObjectNameKey object or else the hash lookup will not work. For example
    class ObjectNameKey {
        private String name;
        private int occurence;
        public ObjectNameKey(String name, int occ) {
            this.name = name;
            this.occurence = occ;
        public String getName() {
            return name;
        public String getOccur() {
            return occurence;
        public boolean equals(Object o) {
            if (!(o instanceof ObjectNameKey)) {
                return false;
            ObjectNameKey onk = (ObjectNameKey)o;
            if (onk.getName().equals(name) && onk.getOccur() == occurence) return true;
            return false;

  • Switch Search Help during runtime

    Hi,
    Can we assign search help at runtime depending on user input? I have s drop-down box, depending on user's choice, i need to siplay different values in the search help. Can I assign search help to the screen element during runtime???
    Please help.
    Thanks,
    Sheel

    No, but you can build F4 help on the fly at runtime based off another field.
    For example, in this program, the user enters the sales order number, and then when they do F4 on the line item, they can only choose from valid line item numbers.
    report zrich_0002 .
    parameters: p_vbeln type vbak-vbeln,
                p_posnr type vbap-posnr.
    at selection-screen on value-request for p_posnr.
      data: begin of help_item occurs 0,
              posnr type vbap-posnr,
              matnr type vbap-matnr,
              arktx type vbap-arktx,
            end of help_item.
      data: dynfields type table of dynpread with header line.
      dynfields-fieldname = 'P_VBELN'.
      append dynfields.
      call function 'DYNP_VALUES_READ'
           exporting
                dyname               = sy-cprog
                dynumb               = sy-dynnr
                translate_to_upper   = 'X'
           tables
                dynpfields           = dynfields
           exceptions
                invalid_abapworkarea = 1
                invalid_dynprofield  = 2
                invalid_dynproname   = 3
                invalid_dynpronummer = 4
                invalid_request      = 5
                no_fielddescription  = 6
                invalid_parameter    = 7
                undefind_error       = 8
                double_conversion    = 9
                stepl_not_found      = 10
                others               = 11.
      read table dynfields with key fieldname = 'P_VBELN'.
      p_vbeln = dynfields-fieldvalue.
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
           exporting
                input  = p_vbeln
           importing
                output = p_vbeln.
      select posnr matnr arktx into table help_item
                     from vbap
                          where vbeln = p_vbeln.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'POSNR'
                dynprofield = 'P_POSNR'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = help_item.
    Regards,
    Rich Heilman

Maybe you are looking for