How to de-activate a button in webdynpro dynamically

Hi Experts,
How to de-activate a button and checkbox in webdynpro dynamically depending upon some condition.
Thanks,

hi
to de-activate or disable a button, lets say u want to disable SAVE button once it is clicked...
then in the method where u write code for SAVE button
at the end:
  elem_btn_disable->set_attribute(
        EXPORTING
          name =  `DIS_SAVE`
          value = abap_false ).
DIS_SAVE should be of type WDY_BOOLEAN in the context.
abap_false means deactivating the button .
if you want to HIDE a button, then type should be WDY_VISIBILITY  or WDY_UI_ELEMENT_VISIBLE
& value = 1 .
if you want to do this before screen loads, then do it in the INBOUND plug method of in tht WDDOINIT method.
give points if helpful.
rgds
prateek

Similar Messages

  • How can i create a button with a dynamic picture?

    How can i create a button with a dynamic picture using
    mcLoader.loadClip
    I did create one with it doesnt seem to be working. It loses
    all its
    functions (eg onPress onRelease)
    Thanks

    I solved thep roblem anyway creating a mc.. then creating
    another MC withing
    the first MC and i change the picture on the second MC. And i
    apply the
    propierities to the first MC , and works
    If i have troubles with mu sistem on the future I will use
    yours!
    Thanks!
    "the fleece" <[email protected]>
    escribi� en el mensaje
    news:e67i88$jlf$[email protected]..
    > the image loading will remove any properties or
    functions the mc had.
    >
    > you need to apply them in the onLoadInit function
    >
    > mclListener.onLoadInit = function(target_mc:MovieClip) {
    > target_mc.onRollOver=blah blah
    > };
    > var image_mcl:MovieClipLoader = new MovieClipLoader();
    > image_mcl.addListener(mclListener);
    > image_mcl.loadClip(blah, blahblah);
    >
    >

  • How can I activate save button in acrobat 8.1

    Hi
    I have a Pc who has the acrobat save button and save option disabled and only I can save changes with the "Save As" Option. In anothers Computers of the same network this button is OK but for the moment I coudn't found any significant difference. What can I do to correct this problem?. I have Acrobat 8.1 over W2k3 in both PCs. Thanks

    Photoshop forum here: http://forums.adobe.com/community/photoshop

  • How do I activate print button on iPad

    Printer is not recognized by iPad - I get message 'no AirPrint printers found'

    See here: http://support.apple.com/kb/HT4356
    It does not look like you have an AirPrint printer. I use fingerprint from collobos.com to print to my non-AirPrint printers.

  • Web Analysis-How to Point the Service Button in Report Dynamically

    Hello All,
    In Web Analysis, I have scenario like this :
    I have divided users in 3 groups : ALL, EMG, LSCA. I have created 3 start pages(*Start Page ALL, Start Page EMG, Start Page LSCA*) one for each user which shows and point to reports assigned to that user. I am able to assign start to each group thru shared services.
    In my each report, I am using service button e.g SB1 which points(links) to start page. Now, I have common reports for user group *(ALL & EMG)* and *(ALL & LSCA)*. If I login with ALL group, Start Page ALL appears and then i got enter to a report e.g. ReportA from start page ALL. In ReportA, I pointed the service button SB1 to start page(Start Page ALL). It works fine.
    Now my problem starts when i login thru User Group LSCA. When i login, Start Page LSCA appears and I go to same report *(ReportA)* that User Group ALL logged in earlier thru Start Page LSCA. In this report, Service button SB1 points to Start Page ALL but I want when i login wid User Group LSCA, service button SB1 should point to Start Page LSCA. Similarly for user group EMG.
    Plz suggest me how the same service button(SB1 in my case) in the same report should point to different start pages(dynamically) and it should depends upon User Group.
    Looking for reply soon.
    Thanks in advance.
    Edited by: user649490 on Mar 23, 2009 9:21 PM

    Thanks mark. I dont have the wsdl. At this moment we import our  request and response structures and all the data elements manually.
    i.e we generate xsds for all the data elements of request and response structures. then create them 1 by one in PI ESB and import the xsd's. Then create the message type and service (manually) and link all together.
    I would like to see an alternative path to do this. If we have some api's then may be we can create our own tool to import this into PI ESR.
    Hope you understand what I am looking for.
    Regards,
    Thilak

  • How can i activate keyboard click(enter button).......

    Hi,
    how can i activate enter button through keyboard for proceeding to next page or to raise some event without going for event handler.
    a samll example, if have a set of rows where some columns with labels,textinputs and a button. I want to call a method to store the values of current row by clicking on button. At this i want to activate keyword button (enter ) to proceed with click functionality without going for event handlers.so please you provide a small example in this ...............
    thanks in advance.

    i didn't understand the question properly i think this may be helpful.
    list.addEventListener(KeyboardEvent.KEY_DOWN,ClickEvent);
    function  ClickEvent(e:KeyboardEvent):void
       if(e.type==Keyboard.ENTER)
         doTask();   // check for which one triggered the event and work on it

  • How to disable Print button on WebDynpro ABAP ALV

    In WebDynpro ABAP, a standard menu appears around the ALV,  that has a PRINT button and an EXPORT button.
    Is there anyway to disable those buttons????
    Thanks
    John

    Hi John,
    Check the interface if_salv_wd_std_functions. It contains methods which are used to hide the standard ALV toolbar buttons.
    Also refer : Removing "print version" button in alv
    How to hide Print and Filter option from dynamic ALV

  • How to activate hold button in MIGO ?

    Dear all,
    How to activate hold button in MIGO Screen ?
    Jeyakanthan

    Note 316931 - MIGO: 'Hold data' does not work
    Summary
    Symptom
    The function 'Hold data' is not active in Transaction MIGO.
    Additional key words
    Enjoy
    Cause and prerequisites
    This is caused by a program error.
    Solution
    Set the attribute 'Hold data' in the Screen Painter (Transaction SE51) for program SAPLMIGO in all screens. Generate the screen after you made the change. The functions are then available.
    You do not need to implement the changes manually if you import Support Packages.
    A prerequisite is that Note 303091 exists in your system.
    Manage held data
    You can use this function to hold the data you are currently entering. No documents are posted.
    To retrieve this data, choose "Goods receipt -> Held data". When retrieving the data, the held data is deleted from the overview tree.
    If you want to delete held data that is no longer required from the overview tree, you can select this data with "Goods receipt -> Held data".
    It is also possible to use held data as a reference for frequently recurring transactions, that will not be deleted after being called again.
    Caution:
    Some data cannot be held by the system and has to be re-entered after you try to retrieve it. This data includes:
    Batch classification
    Import data
    Profitability segment
    In Batch Classification, newly created selection criteria is lost if you do not post the document immediately.
    Edited by: sudhansu satapathy on Mar 4, 2010 9:19 AM
    Edited by: sudhansu satapathy on Mar 4, 2010 9:21 AM

  • How do I activate the microphone button in imessage with the iphone 5 without using Siri?

    How do I activate the microphone button in imessage with the iphone 5 without using Siri?

    You don't. You have to activate Siri.

  • The clear History button is not activated in Safari... How do I activate it

    My "clear" history button is not activated in Safari bookmark page.  How do I activate?

    You're probably Private Browsing now which is why there is no history to clear.

  • HT201365 how can i search my iphone if i'm not activate the button find my iphone?

    how can i search my iphone if i'm not activate the button find my iphone? is it my handphone can still be found?

    No sorry, other than physically looking for it.
    Call your carrier and report to the police.
    Change all passwords used in iPhone.
    Lost or Stolen
    http://support.apple.com/kb/HT2526
    Message was edited by: ckuan

  • How to get the complete data from Webdynpro using a RFC

    hi guys,
    A form is created in the webdynpro, when that pdf form is called the user have to provide the key field ie the employee number in the form and then when he press the 'go' button a rfc is called and it gives all the details of the employee in the form. Then the user have to input some fields in the form and he have press the submit button. My problem is here, when the user is going to press the submit button that form will be converted to a stream (binary) of data and it is sent to one of the import parameter used in the RFC.
    I have created a RFC and created a import parameter of data type XSTRING, since i want to see what exactly R3 is receiving from web dynpro i am writing this contant in the sever as a text file. When i saw that text file i cant see the complete data.
    And when i searched in R3 the capacity of xstring is 1024 CHAR, so i dont know how to capture the entire data from webdynpro into my R3.
    I give the code what i worte please tell me am i missing anything in my code, or is there any data type which can hold more than 500kb of data which is coming from webdynpro.
    FUNCTION ZSEND_MAIL_ATTACHMENT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(OUT_PLACE_LEVEL) TYPE  XSTRING OPTIONAL
    *"     VALUE(BIN_DATA) TYPE  INDX_CLUST OPTIONAL
    *"  TABLES
    *"      IT_MESSAGE STRUCTURE  SOLISTI1
    Data Declaration
      DATA: gd_cnt TYPE i,
          gd_sent_all(1) TYPE c,
          gd_error TYPE sy-subrc,
          tab_lines LIKE sy-tabix.
    Structure Declaration
      DATA : BEGIN OF it_file OCCURS 0,
              row(255),
             END OF it_file.
      DATA : BEGIN OF i_split OCCURS 0,
      row(50),
      END OF i_split.
    Internal Table Declaration
      data : it_receivers like table of SOMLRECI1 with header line."occurs 0.
      DATA : objbin LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE. "sOLIX
      DATA : it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
      data : wa_receiver like table of SOMLRECI1 with header line.
      data : it_receiver like table of SOMLRECI1 with header line.
      data : v_bin_data like SOLISTI1 occurs 0 with header line.
      DATA : gd_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
    *data bin_data1 like table of solix with header line.
      REFRESH : objbin, it_packing_list, it_receivers, wa_receiver.
      CLEAR   : objbin, it_packing_list, wa_receiver, it_receivers.
      DATA V_SUBJECT(255) VALUE 'HI'.
      gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name = 'SENDFILE'.
      gd_doc_data-obj_descr = v_subject.
      gd_doc_data-sensitivty = 'O'.
      APPEND GD_DOC_DATA.
    Appending The Internal Table it_packing_list
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'RAW'.
      it_packing_list-body_num = tab_lines.
      APPEND it_packing_list.
    *CALL FUNCTION 'GUI_UPLOAD'
    *EXPORTING
    *filename = V_FILE_PATH
    *filetype = 'BIN'
    *TABLES
    *data_tab = BIN_DATA.
      move bin_data to v_bin_data.
      append v_bin_data.
    *move soli to bin_data.
      LOOP AT V_BIN_DATA into objbin.
    MOVE v_bin_data TO objbin-line.
        APPEND objbin.
      ENDLOOP.
      CLEAR it_packing_list.
      DESCRIBE TABLE objbin LINES tab_lines.
      it_packing_list-transf_bin = 'X'.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 1.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'PDF'.
      it_packing_list-body_num = tab_lines.
      it_packing_list-doc_size = tab_lines * 255.
      APPEND it_packing_list.
    data file(255) value '/tmp/bali.txt'.
    *Appending The Internal Table it_receivers
    close dataset '/tmp/bali.txt'.
    open dataset '/tmp/bali.txt' for output in text mode encoding default.
    if sy-subrc = 0.
    loop at objbin.
    transfer objbin to '/tmp/bali.txt'.
    endloop.
    else.
    write 'hi'.
    close dataset '/tmp/bali.txt'.
    endif.
      it_receiver-receiver = '[email protected]'.
      it_receiver-rec_type = 'U'.
      it_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
      append it_receiver.
    *Move wa_receiver[] to it_receivers[].
    Clear it_receivers.
    if i_OUT_PLACE_LEVEL NE 0.
    loop at it_receivers into wa_receiver.
       loop at it_receivers into wa_receiver.
    **Function Module To Post The Message To Externa Mail
         CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
             document_data              = gd_doc_data
             put_in_outbox              = 'X'
             commit_work                = 'X'
           TABLES
             packing_list               = it_packing_list
             CONTENTS_TXT               = objbin
             receivers                  = it_receivers
           EXCEPTIONS
             too_many_receivers         = 1
             document_not_sent          = 2
             document_type_not_exist    = 3
             operation_no_authorization = 4
             parameter_error            = 5
             x_error                    = 6
             enqueue_error              = 7
             OTHERS                     = 8.
         clear wa_receiver.
    ENDFUNCTION.

    You have to convert your long string to a table of shorter strings.
    There may be other ways, but one possibility is to use a loop to process you string.
    while (there is something left)
       put the next e.g. 1024 characters in a new row of your table
    endwhile
    If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
    Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right

  • How to create a radio button that changes colors

    I'm using Acrobat X and ID CS5 on Mac OS X.
    A couple of years ago someone on the forums explained to me how to create a button that changes color with each click. You can view a sample PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle.pdf. They gave me the document JS and showed me how to set the properties of the button. I've integrated the button into a particular series of PDF forms and it's worked out very well.
    Now I would like to do the same thing, but using a circle instead of a square. Can anyone tell me the best way to do this? Can I somehow set a radio button to cycle through colors in the same way? I design my forms initially in ID CS5 and then activate and format the fields in Acrobat X. I've tried using circles instead of squares in my ID document, but when I export to an interactive PDF, they're converted to squares.
    Any ideas?

    I understand how to make buttons cycle through colors-- the problem I'm having is that I'm trying to figure out how to make a circular button cycle through colors. When I export my ID document to PDF, my round button maintains it's original appearance, but when I click on it to cycle through the colors, it behaves like a square (see new PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle2.pdf).
    If I use a radio button, I can get it to cycle through colors, but I don't want it to have a black dot in the middle. Is there a way to format the radio button to not show the black dot when clicked?

  • How to create a dynamic radiobutton in webdynpro dynamically

    HI,
    I want to create radiobutton in webdynpro dynamically.But this button in not enabled.Code:-
         IWDNodeInfo info =wdContext.getNodeInfo().addChild("RadioBUttonDymanicNode",null,true,false,true,false,false,true,null,null,null);
         IWDRadioButton rb = (IWDRadioButton)view.createElement(IWDRadioButton.class,null);
         String testAtt = "testAtt";
         info.addAttribute ("testAtt","ddic:com.sap.dictionary.string");
         rb.bindSelectedKey("RadioBUttonDymanicNode." + testAtt);
         rb.bindKeyToSelect("aa");
         rb.setEnabled(true);
         theTransContainer1.addChild(rb);
    Please suggest me how to make it enable.
    Regards
    -Sandip

    Hi Sandip,
    Try this code inside the wdModifyView(),
    if (firstTime)
            IWDRadioButtonGroupByKey radioButtonGroup =(IWDRadioButtonGroupByKey)
            view.createElement(IWDRadioButtonGroupByKey.class, "MyRadioButtonGroupByKey");
            radioButtonGroup.bindSelectedKey(<attributeName>);
            radioButtonGroup.setEnabled(true);
            IWDTransparentContainer container=(IWDTransparentContainer)
            view.getElement("RootUIElementContainer");
            container.addChild(radioButtonGroup);
    Regards
    Kishan

  • How do you activate pages in WCM en masse?

    How can I activate the whole tree in WCM?
    There must be a way to simply activate all web pages [nodes] that require activation with one click of a button.
    I cannot understand how to do this. Please help.
    Thanks in advance,
    David

    please refer - http://dev.day.com/docs/en/cq/current/wcm/page_publish/tree_activate.html

Maybe you are looking for

  • Black Update for Lumia 625

    Could someone help me? I have a Lumia 625 and I wanted to update it to Lumia Black. I always look at this website (http://www.nokia.com/global/support/software-update/wp8-software-update/wp8-availability-in-asia-pac... to check tha availability of th

  • Sort Order in Smart Playlist iTunes 9.1

    Now that I've upgraded to 9.1 I am finding that the sort order is gone wrong in Smart Playlists. What is happening is that artists are being sorted by their first name rather than by their last name regardless of what I have entered in Sort Artist fi

  • Error reading iPods in iTunes

    Hello, I'm trying to update my Windows G1 iPod via iTunes 7 and Windows XP on a laptop. Windows seems to be able to recognize the iPod. The Safely Remove Hardrive button comes up in the tray, but the iPod does not appear in My Computer. Also, when iT

  • Introducing Oracle Business Intelligence 11g  - Your Opinion

    Hi Experts, I missed the 11g webcast and really didn't get a chance to see the replay. I am inquisitive to know your expert comments on how the new release is, would it be significantly different with its predecessors? please comment. Thanks & Best R

  • InDesign CS5 mystery plug-in problem

    Hello. I tested and deleted a third-party plug-in a while ago, but it still shows up in my packaging dialogue box (and it's causing me problems). I've searched everywhere I can think of. Searched the machine in every way I can think of. Deleted and r