Why program couldn't enter into ABAP event? - abap

I've made additional save button for ALV screen. Button is described within GUI-status.
FORM user_command USING u_ucomm TYPE sy-ucomm
CHANGING c_selfield TYPE slis_selfield.
Data: lv_is_bayer TYPE c,
lt_rows type salv_t_row.
CASE u_ucomm.
WHEN '&SAVE'.
But it's not working, despite the fact, that the same code in another project executing just fine. In debugging mode there's no access to that part of code on button pressed. So, where should i look for the problem?

Related

How to use "preventDefault" equivalent for React Native Text Input onSubmitEditing?

I have a text input with a submit button next to it. When the submit button is pressed I get one behavior. When the enter button on the keyboard is pressed, I get a slightly different behavior even though I have them both running the same exact function. This leads me to believe that when the enter button is pressed, some other function is also getting called. How do I go about preventing this default function from being called so that only my custom function is called?

How can I create a method in VB.NET for a button's function?

I'm working on a Viewer Form in VB.NET. I have a select picture button which I want to write a function for it. When I double click on the button in the viewer form design it was suppose to create a method automatically in the viewer form code but I didn't. So I had to create the method myself but I have an error which I don't know how to fix it. I tried to change the "btn" to "Btn" but it still didn't work.

Triggering Visual Basic Keydown events without a specific function

I'm building on top of code that a previous developer has left me, and he left something that intrigued me quite a bit.
Basically on his menus, he has a TextBox to take in user input and a button next to it to submit the value of the TextBox (for example if the user wanted to select option 1, he would input 1 into the TextBox and click the button). However, the user could also press the Enter key while focusing the TextBox, and it would be treated as the submit button was clicked.
Now this is simple enough to do, but when I check the VB code behind the menu, there's no TextBox_Keydown(...) Handles TextBox.Keydown function anywhere, only the button click event. How is he doing this? He has several menus that are similar and I can't figure out how.
A standard dialog box, if not told to act otherwise, enter does default command button and escape does cancel. In VB look at the properties Default for the command button.
I discovered how he was doing it. He basically mapped the AcceptButton and CancelButton properties of the entire Windows Form to various button functions.

Cannot click Submit button on Selenium IDE

I am having trouble getting Selenium IDE to click the Submit button on one of my webforms after having selenium open and fill out the form. I am using the clickAndWait command and identifying the button by its ID:
<td>clickAndWait</td>
<td>id=ctl00_ContentPlaceHolder1_OSVFHResults_btSave</td>
<td></td>
Interestingly, if I write a script that simply opens the form and clicks the submit button without filling it out, I am not having any problems. My problem is coming specifically after I've asked Selenium to fill out the form. Additionally, if I try to manually click the submit button, it doesn't work if the Selenium script to fill out the form was run before my manual input. If I manually open and fill out the form, I have no problems clicking submit, and Selenium works for all of the other form's submit buttons on the site. Anyone have any ideas?
Instead of filling form with type command you can try typeKeys one. It simulates keystroke events on the specified element, as though you typed the value key-by-key and probably enable your submit button.
It sounds like some javascript event unrelated to click() (such as mouseover or onkeydown) is attached to one or more of the form fields and is responsible for enabling the submit button.
You'd have to look at which exact events are being fired, either by looking at the source with something like firebug, or by using a javascript debugger. Then modify your Selenium script to make sure the same events get triggered.
After type the values in the form just try "ClickAtandWait" instead of "clickandWait"..i also face the problem once and it gave hands once..
selenium.clickAtandWait("locator", "position");
if you know the exact "position" just put it, otherwise leave it as an empty string.

Visual Basic (VB) Forms: wait for a user click?

I'm making a simple form that is to step through a program iteratively.
How can I get it to run a method each time a user clicks a button and wait once it is finished for the next click?
Maybe I'm not understanding your question very well, but is it like the "Next" button on a Wizard?
You can have a State variable to store the current "state", so at starup its has the value 1. when click "Next" then do the code for State=1 and then change to State=2 and so on.
Inside you Click event you can have a case statement to proceed according
You want to create a method that gets called when it sees the OnClick event.
The simplest way to do this is to double-click the button in the GUI Form Designer, and it will go to the code page and start the method for you with the correct syntax.