Disabling button Control.

Hi all,
i am creating custom add-on for Landed Cost screen, in that, i am placing a button say 'get cost'..
now if i open landed cost in Find/Display mode, i want to disable that 'get cost' button.
Can any body explain how to disable button in Find/Disable mode?
in short,
how to find whether the form i.e, landed cost is in Find Mode or Add Mode..?
I appreciate your help...
Thanks and Regards,
KaviPrashu

Hi,
Try This............
If pVal.FormType = "992" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE And pVal.BeforeAction = False Then
            oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
            If oform.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
                Dim oitm As SAPbouiCOM.Item
                oitm = oform.Items.Item("get")
                oitm.Enabled = False
            End If
        End If
Thanks
Shafi

Similar Messages

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

  • Disabled button does not look disabled

    In a simple FX app I created a button and set the disable property to true, for exampledeleteButton.disable = true The problem is that when I run the app the button does not look disabled. The only way I can tell if the button is enabled or disabled is by mousing over it: if I mouse over a disabled button nothing happens, if I mouse over an enabled button it flashes blue.
    Is this a bug either FX or Nimbus, or am I doing something wrong?
    Cheers, Eric

    I've found the same problem and a "bugy way"
    if in a Custom node:
    var bts: Button[];
    function setControl(b: Boolean) {
            for (bt in bts) {
                bt.disable = not b;
    postinit {
            Timeline {
                keyFrames: KeyFrame {
                    time: .2s
                    action: function(): Void {setControl(false)}
            }.playFromStart();
    public override function create(): Node {
            insert Button {
                //disable: bind not control
                text: "View"
                action: function(): Void {
                    onView(boxNumber);
            } into bts;
            insert Button {
                //disable: bind not control
                text: "Print"
                action: function(): Void {
                    onPrint(boxNumber);
            } into bts;
                            VBox {
                                layoutInfo: LayoutInfo {
                                    width: 80
                                spacing: 5
                                content: [
                                    bts
    ...Afterall it put an shinny effect on your screen, thank's javafx.control API ;-)

  • Button control to make checkbox checked

    I have a button control, not a submit button, that when pressed, I want a checkbox to get checked. Is this possible? I set up a workflow and it will change the checkbox property to "true" or "yes", and will outline the checkbox in red,
    but will not check it. If this is not possible, can the button control be disabled after it is clicked once?

    You will need JavaScript to accomplish this. Something like
    <input type="button" onclick="CheckBox(checkboxId)" value="Check" />
    <script type="text/javascript">
    function CheckBox(checkBoxId)
    document.getelementById(checkBoxId).checked = true;
    </script>
    Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com

  • How do you disable voice control on iphone 4

    Voice Control doesnt seem to work to create a text message on iphone 4 like it does on the 4S.  How do I disable Voice Control all together on a 4?

    capsjenwalker wrote:
    How do I disable Voice Control all together on a 4?
    Sorry, you can't. There is no setting to completely disable such.

  • Disable remote control IR receiver is not showing up in system pref.

    My remote for my iMac is not working. I originally thought it neeeded a new battery but that was not it. I had a power outage the other night and since then have been noticing the problem.
    The apple support says;
    'To turn on IR reception:
    Open System Preferences and click Security.
    Deselect "Disable remote control infrared receiver.'
    When I go to system preferences and then security, the option to 'disable remote control infrared receiver' does not show up.
    Yesterday I restarted and the option came back, this morning after turning my computer on it wasn't there again. Any idea how to resolve this problem for good?
    Thank you
    Dan

    The next time you notice the line gone from the System Preferences, open up your System Profiler (from the /Applications/Utillities/ folder) and check to see if the "IR Receiver" is listed under the USB section in Hardware.
    If it doesn't appear there, then perhaps you're having some kind of failure of your receiver? If it does appear there, then it would seem more likely that you're having some kind of preference file or setting problem.
    -Doug

  • How to enable or disable buttons on an interactive ALV report

    I have two buttons on Interactive ALV report. Before displaying the ALV report, I want to enable or disable buttons on ALV depending on some conditions.I dont want to make the buttons visible or invisible. This is not an OO ALV report.
    Please suggest !!!

    Then you have to use the event set_pf_status or parameter I_CALLBACK_PF_STATUS_SET for this pass the form name.
    You have to Implement the form Routine.
    FORM PF_STATUS using status type SLIS_T_EXTAB.
    SET PF-STATUS 'STS' excluding status.
    ENDFORM.
    First create the pf-staus using SE41 or double click on the status name and create . By default you make them Disable mode.

  • Using CheckBox / Radio-Button Control in Dialog Program

    Dear Friends,
    Please let me know the way to use check-box / radio-button control in dialog programs. Where & how to define them & write the logic.
    If possible provide a small example.
    Regards,
    Alok.

    Hi,
    goto tcode abapdocu.. abap user dialogs - screens-processing screens you will get examples for all --pushbutt6ons radiobutton checkboxes everything
    <b>here is a sample code for you</b>
    PROGRAM demo_dynpro_check_radio .
    DATA: radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
          field1(10) TYPE c, field2(10) TYPE c, field3(10) TYPE c,
          box TYPE c.
    DATA: ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    CALL SCREEN 100.
    MODULE user_command_0100 INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'RADIO'.
          IF radio1 = 'X'.
            field1 = 'Selected!'.
            CLEAR: field2, field3.
          ELSEIF radio2 = 'X'.
            field2 = 'Selected!'.
            CLEAR: field1, field3.
          ELSEIF radio3 = 'X'.
            field3 = 'Selected!'.
            CLEAR: field1, field2.
          ENDIF.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.
    <b>flow logic:</b>
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
      MODULE user_command_0100.
    regards,
    pankaj singh.
    <i><b>
    reward if helpful</b></i>

  • How to dynamically enable or disable a control's runtime shortcut menu?

    Is there a way to do it?  
    I need to disable a control's runtime menu while my VI is running and then enable it at other point of time.  All the way, I can make use of the default menu items (Reinitialize to default values, Copy data etc..,) for the control and I don't have any customized menu items.

    GerdW wrote:
    Hi Ajay,
    as a quick & dirty way you could use a filter event for mouse clicks. When you want to disable the right-click menu you filter the right-click mouse events…
     Thats nice dirty idea.  But it might give my end-user an impression that my application doesn't respond to the given options.  I specifically want to greyout the right-click menu.
    Thanks,
    Ajay.

  • I have tried all the methods in previous logs btu nothing works... how do i get my facebook id to work in settings on my ipad? there is no disable button in privacy only an app on my ipad

    ok so ive tried everything except for complete reset where i lose all my data and stuff... i reset my settings and i tried the privacy then facebook and disable there is no disable button... i am fedup i cant acces any of my games because its registered to that facebook which cannot log in please give me an answer that works because its really ******* me  off...

    Your backlight is out, it's a hardware problem and you'd be best served to take it in for an estimate. Or you could purchase an external display and use it as a desktop computer. You'll have to decide if repairing a 6 year old computer is worth it.

  • Read-only textbox and/or disable buttons in Infopath 2013

    In a InfoPath 2013 custom list form, my requirement is to make textboxes read-only, disable buttons, and/or create new buttons so users can not update fields in a custom list once the user has updated data in the list. Basically after the user hits the 'save'
    button so that the data is saved.
    The requirement is not to set up custom permissions since my SharePoint administrator said I should find another option. This administrator said he does not see a reason for only an 'add' permission.
    Thus can you tell me how to meet my requirements? Can you show me screen prints, pictures, or urls on how to solve the problem?

    Hi,
    According to your description, you might want to prevent users from editing the existing items.
    There are two workarounds I can provide as below:
    As the first workaround, you can remove Ribbon from SharePoint InfoPath List Form via modifying the OOTB settings of InfoPath Web Part.
    Here is a link about more details, you can use it as a reference:
    http://the-north.com/sharepoint/post/Remove-Ribbon-from-SharePoint-InfoPath-List-Form
    As the second workaround, you can apply the CSS code below to your page, it will hide the “Edit Item” button in the Ribbon:
    <style type="text/css">
    #Ribbon\.ListItem\.Manage\.EditProperties-Large{display: none !important;}
    </style>
    About how to add JavaScript/CSS into SharePoint page:
    http://blog.cloudshare.com/2012/10/29/how-to-insert-custom-javascript-code-in-sharepoint-2013-pages-part-i/
    Best regards
    Patrick Liang
    TechNet Community Support

  • How setup browser laces import Bookmarks HTML security disable button open Device Manager security warni vewing mixed

    how to alter these settings?
    1.browser laces import Bookmarks HTML?
    2.security disable button open Device Manager?
    3.security warni vewing mixed?

    We didn't get a reply from you.  I just wanted to try and follow up before I close this out. 
    I'd like to know if the issue went away, and/or if you could confirm whether it's Firefox specific or happening in all browsers.

  • How do I make a radio button control change automatically with time?

    Hello everybody
    I have a radio button selection with 4 options (Line A, B, C, D) which controls a number of valves depending on which line is sampled. Right now I have to do this selection manually but the proccess requires that each line is sampled for 15 seconds.
    Is there a way to do this automatically, meaning when I press a button (e.x. START) radio selection goes to Line A, after 15 seconds to line B, after 15 seconds to Line C, after 15 seconds to line B, after 15 seconds to Line D, and then from the beginnining to line A, B, etc..., until I press the stop button.
    Any help is appreciated
    Thanks for your time

    Hi evdo,
    'tst' is right. The "Radio Buttons" control from the "Boolean" palette
    is basically an Enum. You can add or remove elements as you want and
    only one element can be TRUE at any time (just as the Enum only can
    have one selected item at any time). Just copy and paste the radio
    buttons within the frame to add more choices/elements.
    I created a small example that takes tst's example a little further. I
    implemented the four choices and added an Event Structure for better
    timing. Give it a try and let me know what you think, thanks.
    Have fun!
    Message Edited by Philip C. on 07-06-2005 10:05 PM
    - Philip Courtois, Thinkbot Solutions
    Attachments:
    Radiogaga.PNG ‏14 KB
    Radiogaga.vi ‏25 KB

  • Enabling/disabling buttons problem

    Hello,
    I'm using jdev 10.1.3.3.0 and I want to enable/disable buttons based on the value in a tableSelectOne. I wrote a function isNextButtonEnabled() in my backing bean and I have set the disabled option of the nextButton (=CoreCommandButton) to #{!backing_bean.nextButtonEnabled}. Then I putted the autoSubmit option of the TableSelectOne to true and made a partialTrigger on the nextButton to the TableSelectOne. In the print statements everything is fine, but it is never displayed.
    Does anyone know what to do about this.

    Well,
    the nextButton is in a cellFormat which on itself is in a HtmlRowLayout. I putted partial triggers on the cellformat, the rowLayout and the panelPage to the TableSelectOne, but this doesn't do the trick neither. Strange.

  • In iOS 5 on the iphone 3gs, how does one disable voice control, not voice dailing.  I have never wanted or used voice control please help me disable it.

    In iOS 5 on the iphone 3gs, how does one disable voice control, not voice dailing.  I have never wanted or used voice control please help me disable it. 

    are you talking about voiceover where the phone is reading things out loud to you? you have to double tap things in voiceover in order to select them. you'll need to go to settings > general > accessibility > and turn off voiceover there

Maybe you are looking for

  • Error while trying to get F4 help for a field mapped to an info object

    Hi, I am getting the following exception while trying to attach a search help to a drop down list box.The field belongs to a table on the BW server which has an explicit search help attached to it.I am getting the following exception: An exception oc

  • Web Dispatcher configuration (ABAP+Java vs. ABAP+Portal)

    We are using an internal Web Dispatcher to allow the connections from different networks. This Webdispatcher entry we add to WAS configuration within Portal system object By defintion of ABAP+Java double stack we do not have any problems and the test

  • Need an high quality voice recording app that does mp3s.

    I need an app for my ipad (can be iphone only app as well) that will, best case scenario, record AIFF allow you to edit and then convert edited file to mp3 and finally allow e-mailing the file. If it only records mp3 and allows editing and subsequent

  • SB audigy 2 and headset prob

    Hi, I recently upgraded my computer, my new system config?Operating System: Windows XP Professional? Processor: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+,? MMX,? 3DNow (2 CPUs), ~2.5GHz Memory: 2046MB RAM Page File: 470MB used, 3468MB available

  • Cisco Aironet 1250 basic setup questions

    Hi, I'm going to be three Aironet 1250's within a building.  There is not going to be a wireless controller, the AP's are all going to be standalone.  I am going to set them all up the same, with WPA2 wireless encryption.  My question is, is it impor