Configure screen button events - abap

How to configure a save button in order to press it and the info that is entered on the screen to be saved in a specific database table?

When you double clicked your button in the layout screen, you will see and fcode area that you should give a function name.
Then in the screen PAI events user comment section, you can define the what button will do. You should modify your db table, under that button fcode name case.
Here is a tutorial about module pool development.
You can check these links for table control tutorials: 1, 2.

Related

Disable "Config structure" button in VA02 Item detail?

I would like to hide the "Config structure" button in the header of the screen "Item derails: configuration" in the VA* transactions, for a certain item status.
I am debugging the Dynpro logic but it's quite difficult to find the right spot where I can implement my additional logic and what button it actually is (technically).
Any help and guidance is appreciated.
Thanks in advance.
Here is a way to locate the code which defines the buttons of the Application Toolbar in any Dynpro. You may then change the code to hide a button, etc.
The "Application Toolbar" is the line of buttons which appears at the top of the main screen area (what is shown in your screenshot), and it's selected by the ABAP statement SET PF-STATUS during the Process Before Output event of the Dynpro screen, right before the screen is displayed.
If you put the focus on the button (click without releasing and drag out of the button) and press the F1 key, you will see both the function code of the button and the GUI status it belongs to (screenshot for transaction code SE38):
Double-click the "Function" field to display the GUI Status:
You may then start the debugger (/h in the command field for instance) and use the feature "breakpoint at statement", to stop at every SET PF-STATUS. After the EXCLUDING word, you may exclude (hide) any function code you want (button, menu item or keyboard key; for information, here SYCR is not even defined in the GUI status, so it's ignored). As you can see, you may modify the code here:

Is there a way to automatically change the selected menu page in a master detail project when the detail changes?

Background:
My project uses the "Master Detail" project from Xamarin.Forms, so it comes equipped with the hamburger menu button in the top left which is supposed to be the main source of navigation throughout the app. However, my app requires the user to go through multiple of those screens without the use of the hamburger menu. But when a user uses my own buttons to change the detail, the hamburger menu still says the user is on the previous page.
For example, a user is on Page A. They click a button outside of the menu which sends them to Page B. The menu will still show Page A.
My Attempt:
I really didn't know where to start, so I tried taking the MenuItemType and passing it through the following function:
// This changes the screen without changing the menu and it works.
((MasterDetailPage)Application.Current.MainPage).Detail = new NavigationPage(new PageB());
// This was my attempt to change the menu.
(Application.Current.MainPage as MenuPage).RootPage.NavigateFromMenu((id)MenuItemType.PageB);
But that returned a Null Reference Exception when run.
I've also tried manually calling the list view associated with the hamburger menu and changing the selectedItem property, but that didn't work either. Is there any way to change the selected menu?
For Clarity:
Since StackOverflow won't let me post a video, here's a link to how the app acts. As you can see, I use the Menu to go to the "About" Page. I click a button on the screen which takes me back to the "Browse" Page. However, when I open the menu, it still says "About" is selected. I can't reselect "About" until the menu moves away, meaning I have to reopen "Browse" despite already being on that screen.
What I'm looking for is a function which will automatically change the selected menu item to "Browse" when I press that button on the "About" Page. The app is currently using a Master Detail Page which has the "Detail" component changing from the About Page to the Browse Page. The menu page is a Content Page which came built with the app beforehand.

Web Dynpro Action on Button

There is some kind of Shopping Cart in which you have Product positions.
There is a Button in web dynpro which is supposed to copy the text from the Inputfield from one position to the others.
When I click one of the positions, and enter a text in the inputfield and click on copy to all other positions - it doesn't copy.
Only if I click the button twice it copies the position to the others. What am I doing wrong?
I'm not a web dynpro expert.
Could be an IE bug or some problem in the code.
You can check the onAction property of your button and also check if there's any loop in the events that could probably cause this "only for the second click" behavior.
Please share your Controller/View code so we can provide a complete answer.

How to hide graph in qlikview

I want to hide a graph in qlikview, display it when I want, but not delete it.
Your help is very appreciated
Thank you
Solution on website is not showing, so have included this response.
To show/hide an item in Qlikview, there needs to be a variable in place that can be altered. To create a variable, open the Settings Menu and then select variable overview. I would suggest a name of vShowGraph, create this and then click ok.
To set the variable on screen this can be done by either an input box or by way of button/trigger set on an item. For ease of user, I would suggest using a button.
To create a button, right click on your qlikview sheet anywhere blank, select "new sheet object" and then button.
To link the button to your variable, open the actions tab on the button, click "Add", choose Action Type of "External" and Action of "Set Variable". Enter the variable name (vShowGraph in this example). In the value box enter this script
=if(vShowGraph='Show','Hide','Show')
Your variable and button are now linked, you can now click it and it will change the variable from the values Show and Hide.
To hide your graph using this variable, right click on the graph and open the Layout tab. There is a box called "Show", change the radio button from Always to Conditional and enter the below formula.
=vShowGraph='Show'
Click ok and your graph will disappear if you haven't clicked the button. click the button and it will show.
If you have made any mistakes, you can still select the graph by opening the sheet properties and opening the Objects tab.

Select Image File and Display it in Forms (Visual Basic)

I have a form, in which it has a few pictureBoxes that i intended to use as a normal button.
first button is the select file button where when the users click the button, a window will pop up allowing the users to select files to be analyzed.
the second button is a run button where when the users have selected the desired files, clicking this will run the application to analyze the image file.
third button is a stop button to stop the analyzing process.
last button is a help button that provide the help and support.
the question is that how do i display the selected files on the form in a tabular format with basic information like file name, file type, date created and date modified?
You can use a listview control with the .View property set to Details. Add an item and subitems for each file.