How can i click a button Programmatically

Dear sir;
there is way to run a button in a form Programmatically?
thank you Dear.

Dany,
Yes you can.
Here is example.
Let's say you want to close a form Goods Receipt PO when it loads
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And _
                   pVal.FormTypeEx = "143" And pVal.BeforeAction Then
SBO_App.Forms.Item(FormUID).Items.Item("2").Click()
end if
'This simulates the user clicking on the cancel button (item ID 2 on the form)
Please close the posts that are handled by assigning points.

Similar Messages

  • How can I click on a button and make a text box appear or disappear

    How can I click on a button and make a text box appear or disappear?
    Thanks ahead of time for your help,
    Doug

    Hi Denes,
    I just thought that the example you pointed the OP to, is far more complex than what I understood he needs. The OP was talking about using a button, which I thought was a very basic and simple case. Your example is much more complicated. If memory serves, the radio group item, at the time (prior to 3.1 fieldset) behaved differently, so you needed to create a new value retrieving function, and then was the need to preserve the items show/hide status upon reloading the page. In short, I thought maybe I didn’t see the complexity in the OP post, but it seems that his requirement was indeed a simple one.
    Regards,
    Arie.

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How can do i set button to close form

    have put together an internal enquiry report form. to be filled in over a 2 week period and saved each time closed then submitted at the end of the fortnight. How can I set a button to save an close form. I don't need or want to close acrobat program
    thanks
    craig

    Hi Pascal,
    Add this script to the click event of your button. It will close the window containing the form.
    app.execMenuItem("Close");
    Denver
    Adobe Enterprise Support.

  • How can I make a button "react"?

    This is probably a super silly question, but you know how it is, sometimes we sit on the answer and still can't find it... How can I make a button react to a click? I just want the simple effect of the button changing colors or looking like the user pushed it. Right now it's just the same old plain button, no matter if I click it or not, you can't really tell the difference. How can I give it the "pushing the button" effect? Thanks guys!

    You can choose image button and then choose from the available image buttons, or click on the folder icon when you select the image button and choose from the Gallery of Captivate 6.
    Few image buttons change color on hover or onclicked, these effects are predefined in them.
    Or you can edit that button on which you are working, from properties Panel.
    The Post and Cancel button on this thread seems like a transparent button in Captivate with different fill and stroke color, and transparency is also less, and with corner radius of 0.
    You will find these all optionns, when you will click on that button and then click on the properties panel.
    Thanks.

  • How can i get FIND button and hotmail to the toolbar, and how do i update firefox i dont want to update automatically

    how can i get FIND button and hotmail button to the toolbar, and how do i update firefox i dont want to update automatically

    Thanx 4 your "you're welcome" cor-el. It's now 4p.m. E.S.T. in Melbourne, Victoria, Australia on Thu. 29/9/2011 and my page tells me u sent this message 21Hrs. ago. To elaborate a bit on my prev. message: I soon realized that after R clicking in the 'Downloads' screen and then on the 2nd. in the drop down menu I could click and drag and drop the icon of the wanted download into the open file or memory device as required. I would take up the offer I see in this e-mail to participate in helping like you and others do but I won't as I feel I'm not experienced enough yet. Nevertheless u keep up the good work. Yours, james1.51.
    P.S. I used Google Chrome for this not Mozilla but it's still me!

  • How can I use the button in one panel to control the other panel's appearing and disappearing?

    How can I use the button in one panel to control the other panel's
    appearing and disappearing? What I want is when I push the button on
    one button . another panel appears to display something and when I
    push it again, that the second panel disappears.

    > How can I use the button in one panel to control the other panel's
    > appearing and disappearing? What I want is when I push the button on
    > one button . another panel appears to display something and when I
    > push it again, that the second panel disappears.
    >
    You want to use a combination of three features, a button on the panel,
    code to notice value changes using either polling in a state machine of
    some sort or an event structure, and a VI Server property node to set
    the Visible property of the VI being opened and closed.
    The button exists on the controlling panel. The code to notice value
    changes is probably on the controlling panel's diagram, and this diagram
    sets the Visible property node of a VI class property node to FALSE or
    TRUE to show or
    hide the panel. To get the VI reference to wire to the
    property node, you probably want to use the Open VI Reference node with
    the VI name.
    Greg McKaskle

  • 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 'click' on a "latch" mechanical boolean in an event case?

    Since I can't set true of false to the local variable of latch mechanical boolean, how can I click the boolean in an event case?

    LUX_ wrote:
    1. I can't make the value change event work (the second option of the solution posted by smercurio...)
    2. The occurrence does not work as I thought it would be. I need to stop the timer if user change to other mode within that 7 minutes period (my test.vi set to 10 seconds).
    The value change using a signaling property only works if you actually have an event assigned to that value change. You currently don't!
    I am not sure why you complicate things with the occurrence. You don't need it. (the wait for occurence prevents the the loop from e.g. checking the elapsed time). THe code is way too convoluted.
    I think all you need is one loop utilizing the timeout of the event as wait timer (and one to randomly cause faults). See attached for a rough draft. modify as needed. As you can see, you don't need all these locals and hidden controls.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    testMOD.vi ‏18 KB

  • How can I click on a photo to enlarge it in a separate box?

    How can I click on a photo on my webpage and show an enlarged photo of it?  Everything I read points to "thumbnails" under "slideshows".  I do not need a slideshow, just an enlargement with a text box.  Help.

    If Thumbnails or Lightbox slideshow widgets do not fit your purpose and if its just a placed image on a page that you'd like to show an enlarged version of when clicked, you can simply use the Hyperlinks -> Link to File option to link it with a larger version and select the option to Open the link in a new window or tab from the Hyperlinks tab in the Control bar.
    Following the above method would not allow you to place a text box as its just a static asset that you are linking to, however, you can choose to add the text in an Image editor program (or even Muse for that matter), save and link it. Or you could place the enlarged image on a separate page with text and everything and link the image to the page.
    Thanks,
    Vinayak

  • In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email?

    In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email? like when you tap a recipe in Marth Stewart Every Day Food for example....

    http://forums.adobe.com/message/4190932

  • How can i create a button? t

    i'm new in using flash, how can i create a button and link it in other scene? thanks in advance

    Please re-post the question to the Flash forum at http://forums.adobe.com/community/flash/flash_general.
    Steve

  • I Use Too Use A Redeem Card For My ITunes then I Used A Visa Card how Can I Click None Again ?

    I Use Too Use A Redeem Card For My ITunes then I Used A Visa Card how Can I Click None Again For The Payment Style ?

    On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on your iPhone then try tapping on your id in Settings > iTunes & App Store (Settings > Store on iOS 5 and below) and select 'View Apple ID' on the popup - that should also give you a payments link on your account's page.
    Changing payment info : http://support.apple.com/kb/HT1918
    If you don't get the 'none' option on the payment's screen then do you owe iTunes anything or have a pre-order or subscription due : http://support.apple.com/kb/TS5366 ?

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

  • How can i get Radio buttons  and parameters  in a Single Straight Line

    Hi Experts,
    How can i get Radio buttons  and parameters  in a Single Straight Line...
    Example:
       r1 r2 p1 p2.....
    Cheers,
    Priya
    Points granted.

    Write the following code for the selection screen:
    DECLARATION OF PARAMETERS.
    SELECTION-SCREEN: BEGIN OF BLOCK select WITH FRAME TITLE text-001,
                      BEGIN OF LINE.
                      SELECTION-SCREEN COMMENT 1(10) FOR FIELD p_detail.
                      PARAMETERS p_detail RADIOBUTTON GROUP r1 DEFAULT 'X'.
                      SELECTION-SCREEN COMMENT 25(10)  FOR FIELD p_summry.
                      PARAMETERS p_summry RADIOBUTTON GROUP r1.
    SELECTION-SCREEN: END OF LINE,
                      END OF BLOCK select.
    this will solve your poblem surly. reward the points if you find helpful
    Regards,
    Siddarth

Maybe you are looking for

  • Doubt in ABAP Data types

    Hi friends, I want a clear idea of what is the diference between data type 'f' and 'p' with examples and in what situation which should be used. Similary what and where is 'x' and 'xstring' is used .. In what situations we 'll handly BYTE data ?????

  • May be the stupidest question, but anyway - where do I put my libraries?

    So, I download the Java Activation Framework, MAIL api, beanshell, etc. I get a nifty directory with not only the JAR but the javadocs etc. Where do people put these things on MAC OsX? I'm sure there's a best practice based on standards for where thi

  • I updated to 7.0.1 and my search function cannot find anything now

    I updated to 7.0.1 and my search function cannot find anything now

  • LIBTUX_CAT:681Failure ro create message queue

    Hi, We get this error when we start more than 3 Appserver. (Solaris 8 + Oracle) Any information would be appreciated. Thanks. It's my /etc/system file... set maxusers=80 set shmsys:shminfo_shmmax=8589934590 set shmsys:shminfo_shmmni=100 set shmsys:sh

  • Error While Extracting data

    Hi All. The below is the error, which I am getting while extracting data. Please let me know the reason, and how to overcome the below error. Status Log Warning ORA-02049: timeout: distributed transaction waiting for lock Error ORA-01555: snapshot to