Capture screen positions on click of a button in FPM toolbar
Hi Uve,
Currently in visual business if i right click on any map stack i will get the option for personalization and to set the screen position per user.
But my requirement is I have to set screen positions for multiple rail yards per user.So on click of a save button in fpm i require tje current screen positions so that i could save it and pass it during initialization of VB for that yard next time.
But what i notice is only when we right click on a map stack the exact screen position details are fired to backend,But when we right click on spot or links screen positions details like zoom factor, change of perception values etc are not passed.
Could you suggest a solution to get screen position from VB on an external FPM event.
Thanks
Siju
Hello Siju,
I am afraid this is a limitation of the current backend of Visual Business. Technically the camera value can be retrieved with every event fired by the control. But in your case there are two issues right now:
1. There is no event raised by the VB control when you press an FPM button
2. Even if there would be an event, the camera data needs to be requested with the event registration. This registration is fix for the backend API, and the data comes only with the right click on the map/scene.
However, there is a chance to get this done! If you check impl of method IF_VBI_CONTROL_ADAPTER~CHECK_DATA_CHANGED of class CL_VBI_CONTROL_ADAPTER you see how to trigger an arbitrary event of the control from the backend. You can derive your own control adapter from our base class and add an own method triggering event "7" instead of "GenDummy". This should lead to a context menu request including the current camera values.
Good luck,
Uwe
Similar Messages
-
How to open another Swing Screen from a click on a button
hi All
i want to open a screen on a click on a button also tell me what is the correct way does i write the internal frame and add all gul components in constructor or call some other function by creating it object in actionperformed method of button
PLZ HelpIf you want to use JInternalFrame then you have
JDesktopPane. you add all the internal frames in JDesktopPane.
while JDesktopPane is added in the main JFrame.
something like this
JFrame mainFrame=new JFrame("main Frame");
JDektopPane desktopPane=new JDesktopPane();
mainFrame.getContentPane().add(desktopPane);
JInternalFrame iFrame=new JInternalFrame();
/....your logic and iFrame settings.
desktopPane.add(iFrame);--
As per buttons, I think those buttons are the buttons added in JToolbar -
Launching Splash Screen on the click of a button
Situation: I have an application running, and when the user clicks a button on the main menu, a new dialog opens.
Problem: This dialog takes awhile to load as it is retreiving information from the database etc ... hence I would like to launch a splash screen in one thread and the other dialog in a second thread.
Following is the Splash Screen class:
public class SplashScreen extends JWindow {
public SplashScreen(int d) {
duration = d;
this.launchSplash();
public void launchSplash() {
JPanel content = (JPanel) getContentPane();
content.setBackground(Color.white);
// Set the window's bounds, centering the window
int width = 350;
int height = 255;
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
int x = (screen.width - width) / 2;
int y = (screen.height - height) / 2;
setBounds(x, y, width, height);
// Build the splash screen
JLabel label = new JLabel();
label.setIcon(new ImageIcon(getClass().getResource("loading.gif")) );
label.setHorizontalAlignment(JLabel.CENTER);
content.add(label, BorderLayout.CENTER);
// Display it
this.setVisible(true);
// Wait a little while, maybe while loading resources
try {
Thread.sleep(duration);
} catch (Exception e) {
this.setVisible(false);
// System.exit(0);
// public static void main(String[] args) {
// // Throw a nice little title page up on the screen first
// SplashScreen splash = new SplashScreen(10000);
// // Normally, we'd call splash.launchSplash() and get on
// // with the program. But, since this is only a test...
// System.exit(0);
// }When I run this as a standalone, it works fine (i.e. uncomment the 'main' function). But when I try to call it from another function, it doesn't launch.
Eg: I am calling it when a button has been clicked. Code is as follows:
public void actionPerformed(ActionEvent e) {
SplashScreen sd = new SplashScreen(10000);
// Calling the dialog (that takes a long time to load) here
}Would like to know whether
[1] is it possible to launch a splash screen on the click of a button? As usually a splash screen is done at the beginning of an application before anything is loaded. In my case an application is already running, during which a splash screen needs to be launched.
[2] Would using the new splashscreen class of Java 6.0 support this?
[3] If not what is the best way to approach this problem
Appreciate any input.
Thanks,
Edited by: mnr on Feb 20, 2008 9:47 AMThanks Michael_Dunn, I see what you mean.
I know this is not exactly as you suggested, but when I tried the following I got a partial solution. Just wanted to know whether I am on the right track.
I wrote a small class for the thread
public class cSplashScreenThread extends Thread {
public volatile boolean finished = false;
public cSplashScreenThread(){
// override run() method in interface
public void run() {
SplashScreen sd = new SplashScreen(10000);
}This calls the SplashScreen(code encl in earlier post).
In the main application I added the following
public void actionPerformed(ActionEvent e) {
// SPLASH SCREEN
// SwingUtilities.invokeLater(new Runnable() {
// public void run() {
cSplashScreenThread sd = new cSplashScreenThread();
sd.start();
sd.finished = true;
// DIALOG
SwingUtilities.invokeLater(new Runnable() {
public void run() {
DialogToCall tempDialolog = new DialogToCall(.......);
tempDialolog .setVisible(true);
:When I run this in the application, the SplashScreen does indeed appear(earlier I wasn't able to see the splashScreen), and I notice (when I put a breakpoint at the pt where it calls the dialog), that it is going and creating the dialog etc, but the dialog never appears ...... after the splash screen closes, nothing else happens!
Could you please guide me on what best to do?
Thanks,
Edited by: mnr on Feb 21, 2008 11:19 AM -
Capturing the values of screen elements on click of execute button
Hello folks,
Is there a way to capture the values entered in the screen on click of the execute button?
What I want to do is, I have a selection screen where-in a user can fill the input fields (parameters and select-options). Now when the user clicks on the execute button, the values of all the screen elements (no matter if they are filled or empty) should be stored in variable, so that I can use these values again when I am calling this program from another program.
I want to do something similar to saving a variant, but this save should happen on click of Execute button and user need not require to explicitly save these values as variant.
Hope I am clear enough to put my query in front of you all.
It would be a great thing if you could help me.
Need your help.
Thanks in advance.Hi,
You need something like this
REPORT A.
TABLES: sflight.
PARAMETERS: pa_scarr TYPE sflight-carrid.
SELECT-OPTIONS so_conn FOR sflight-connid.
DATA: BEGIN OF it_selscr_values OCCURS 0.
INCLUDE STRUCTURE rsparams.
DATA END OF it_selscr_values.
START-OF-SELECTION.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-repid
TABLES
selection_table = it_selscr_values. "here you have all parameters' values from selection screen
"later in some other program you can use this table to call report A filling its selection screen with these default values like
SUBMIT a WITH SELECTION-TABLE it_selscr_values.
Regards
Marcin -
BDC - How to ignore skipped screens when user click on back button
Hello all,
I am working on a module pool program. From this custom transaction I am calling a standard SAP screen using BAC call transaction. I am calling this screen by skipping 2-3 screens and user can directly see the 3 screen on an event on my custom transaction.
Now my issue is whenever the user want to back, he clicks on back button then user have to back from all the screens that I skipped.
Is this any way by which if user click on back then he can directly go to my custom transaction.
Please suggest.
FYI..
I am calling IA06 - Inspection characterstics screen from my custom screen using BDC.
Thanks,
Sanket SethiHi Jovito,
I also think the same that it's not possible. Now my issue is how to get my requirement.
FYI..
To open Classification screen directly we have a function module CLFM_OBJECT_CLASSIFICATION. But if I want to open IA06
Inspection characterstics screen we don't have any FM or API to do the same.
So how will I get my requirement done. That why I use the BDC call transaction to open IA06 Insp. characterstics screen but here I am facing this Back issue.
Please advice if there is any suggestion. -
I was downloading a Bosesoundtouch update on my iphone. Screen went black and now I cannot see anything.
Any suggestions?try a hard reset, hold the sleep.wake button and the home button down at the same time until the apple logo appears, it generally fixes this issue
-
Saving Data from subscreen to main screen on a click of a button
Hi,
I have a main screen which has multiple subscreens attached to it.
My problem is when ever i enter the data on the screen and execute a button, the data on the screen is not being saved. what i observed is when ever there is a button press, the data is cleared. i have checked the same in debugging mode as well still then i am not able to see the data which i am trying to store.
I have attached the code, please help me in this regards,
Thanks,
Shanky.
Main screen:-
PROCESS BEFORE OUTPUT.
MODULE STATUS_9020.
MODULE MZO_DISABLETABSTRIP.
MODULE CHECK_MANDATORY_DISABLE.
CALL SUBSCREEN SUB1 INCLUDING SY-REPID '9030'.
CALL SUBSCREEN SUB2 INCLUDING SY-REPID '9050'.
CALL SUBSCREEN SUB3 INCLUDING SY-REPID '9060'.
CALL SUBSCREEN SUB4 INCLUDING SY-REPID '9080'.
CALL SUBSCREEN SUB5 INCLUDING SY-REPID '9090'.
CALL SUBSCREEN SUB6 INCLUDING SY-REPID '9070'.
PROCESS AFTER INPUT.
MODULE MZI_USER_COMMAND_9020.
CALL SUBSCREEN SUB1.
CALL SUBSCREEN SUB2.
CALL SUBSCREEN SUB3.
CALL SUBSCREEN SUB4.
CALL SUBSCREEN SUB5.
CALL SUBSCREEN SUB6.
Subscreen - 1
PROCESS BEFORE OUTPUT.
MODULE MZO_STATUS_9030.
MODULE MZO_INITIALIZATION_9030.
module mzo_routes_display.
PROCESS AFTER INPUT.
MODULE MZI_USER_COMMAND_9030.
PROCESS ON VALUE-REQUEST.
FIELD ZTTT001-ZFACTNAME MODULE MZV_ZFACTNAME.
FIELD ZTTT001-ZTTBASICOBJI1 MODULE MZV_ZTTBASICOBJI1.
FIELD ZTTT001-ZTTBASICOBJI2 MODULE MZV_ZTTBASICOBJI2.
FIELD ZTTT001-ZTTBASICOBJI3 MODULE MZV_ZTTBASICOBJI3.
FIELD ZTTT001-ZTTBASICOBJI4 MODULE MZV_ZTTBASICOBJI4.
FIELD ZTTT001-ZTTBASICOBJI5 MODULE MZV_ZTTBASICOBJI5.
FIELD ZTTT001-ZTTBASICOBJI6 MODULE MZV_ZTTBASICOBJI6.
FIELD ZTTT001-ZTTBASICOBJI7 MODULE MZV_ZTTBASICOBJI7.
FIELD ZTTT001-ZTTBASICOBJI8 MODULE MZV_ZTTBASICOBJI8.
FIELD ZTTT001-ZSEASONALPROD MODULE MZV_ZSEASONALPROD.
FIELD ZTTT001-ZROUTEID MODULE MZV_ZROUTE.
FIELD ZTTT001-ZFPLANTS MODULE MZV_ZPLANTS.
FIELD ZTTT001-ZTOPLANTS MODULE MZV_ZTOPLANTS.
FIELD ZTTT001-ZSTACKCONFIG MODULE MZV_ZSTACKCONFIG.
G_OKCODE2 = SY-UCOMM.
CASE G_OKCODE2.
WHEN 'SAVE'.
" Write code for save as draft version and saving the existing data.
PERFORM SAVE_AS_DRAFT_VERSION.
WHEN 'COMP'.
ZTTT001-ZDOFCOMMENCT = SY-DATUM.
PERFORM SAVE_DATA_ORIGINATOR.
PERFORM F_UPDATENWORKFLOW. " Update the database table and initiate workflow.
LEAVE PROGRAM.
WHEN 'ENTER'.
PERFORM save_temporary_data.
LEAVE TO SCREEN 9020.
WHEN 'OTHERS'.
BREAK-POINT.
PERFORM TT_GENERATE_NUMBER.
Wa_ZTTT001-MATNR = ZTTT001-MATNR.
Wa_ZTTT001-ZTTNO = ZTTT001-ZTTNO.
Wa_ZTTT001-ZORGNAME = ZTTT001-ZORGNAME.
Wa_ZTTT001-ZORGCONT = WA_ITZTTT001-ZORGCONT.
Wa_ZTTT001-ZDECNTNAME = ZTTT001-ZDECNTNAME.
Wa_ZTTT001-ZFACTNAME = ZTTT001-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
Wa_ZTTT001-ZTRAILER = ZTTT001-ZTRAILER .
Wa_ZTTT001-ZPALLET = ZTTT001-ZPALLET.
Wa_ZTTT001-ZSTONUM = ZTTT001-ZSTONUM.
Wa_ZTTT001-ZSTATORG = 'Complete Version'.
MOVE Wa_ZTTT001 TO ZTTT001.
MODIFY ZTTT001 FROM Wa_ZTTT001.
COMMIT WORK.
endform.Let's see... if you call the subscreen9030 after 9020 PBO, then in the 9020 PAI you call it again, and the PBO for 9030 initializes the data, didn't you just wipe out what you have entered?
-
Remove EDIT button from FPM ToolBar
Hi All,
I am new to FPM, and I am working on SRM 7.0. In the Monitor Shopping cart WD application, after search event, a list of Shopping Carts are displayed, when we click on one of the SC number, the SC screen opens as a new Pop-up.
Here we have an EDIT button, and we need to remove this button from this screen.
Technical Details(EDIT button):
Application: /SAPSRM/WDA_L_FPM_OIF
Web Dynpro Component: FPM_OIF_COMPONENT
Window Information: FPM_WINDOW
View Information: CNR_VIEW
Configuration ID: ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL
Technical Details(SC screen):
Application: /SAPSRM/WDA_L_FPM_OIF
Web Dynpro Component: /SAPSRM/WDC_UI_SC_DOFC_HD
Window Information: IV_L_FPC_CA_HDR
View Information: V_SC_BOFC_HD
Configuration ID: /SAPSRM/WDCC_FPM_SC_HD_PR
Appreciate any help on this.
Thanks,
PrabhakaranHi Prabhakaran
You will need remove the static usage of config id ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL and make use of dynamic component configuration depending on the particular scenario.
Create two configuration id's ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL1 and ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL2. Set visible property of Edit button as visible in the first config ID and none in the second.
Now assign this config ID dynamically depending on the scenario. If scenario is Monitor SC, then assign config ID ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL2, else assign config ID ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL1.
Please refer the below document for usage of dynamic component configuration.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70337875-167f-2e10-daa7-a1c69d55ee95
Hope this helps.
Regards
Lorraine -
Application specific button on FPM toolbar to call action triggered in view
Hello,
In the content area of my FPM is an ALV with some buttons, e.g. clicking one of the button opens up certain ALV column for editing (for simplicity, I omit the details besides simply enable the columns).
With FPM, I want the button to be placed in the toolbar as a application specific button. How do I achieve the same functionality e.g. from PROCESS_EVENT method calling an action (to open up certain ALV column for editing) via the application specific button placed on the toolbar communicating with the action/method found in the view controller ? Thank you.
Regards
Kir ChernHi Arvind,
I tried as follows :
- Create an event in the component controller, say 'MA'
- Within PROCESS_EVENT, raise the event as follows :
data : lo_fpm type ref to if_fpm,
lo_event type ref to cl_fpm_event.
create object lo_event
exporting
iv_event_id = 'MA'.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_fpm->raise_event( io_event = lo_event ).
- In the view controller, create an event handler which subscribe to the event, MA of the component controller.
However, the code in the event handler is never executed despite the event being raised. Not sure how FPM event flow works here.
Can anyone advise ? Thank you.
Regards
Kir Chern -
When I click on one of my buttons in the toolbar, Firefox opens that button in a new window. I would like to be able to click on one of my buttons and Firefox open it in a new tab instead.
== This happened ==
Every time Firefox opened
== When I attempt to click on a buttonRight click the FireFox button in your toolbar and look in the properties- middle tab...make sure that it only has "C:\Program Files\Mozilla Firefox\firefox.exe" with no other link added to the end. I had a similar problem this morning and found a website had attached it's link to the end so it would always pop up first and would only open a new tab.
Hope that fixed it. -
How to close the detach popup on click of a button in the panel collection
Hi,
I'm using Jdeveloper 11.1.2.3.0.
I have an af table surrounded by panel collection. There is a button on panel collection to commit the changes in the table.
Clicked detach button to view the table in full browser.
On click of Commit button, the detach popup is not closed. I have set partialSubmit of that button to false. Then also detach popup is not closed.
Can anybody suggest me how to close the detach popup on click of a button in the toolbar.
Thanks,
VinodHi Frank,
Thanks for your response. Popup is not closed.
I tried this approach, when the view tree is navigated on the Detach, I see that the tree is same as if it is traversed on the page without detach.
Printed client id and UI component class in the while loop, result is as below.
r1:0:pc1:t3 class oracle.adf.view.rich.component.rich.layout.RichToolbar
r1:0:pc1 class oracle.adf.view.rich.component.rich.output.RichPanelCollection
r1:0:ph2 class oracle.adf.view.rich.component.rich.layout.RichPanelHeader
r1:0:pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
r1 class oracle.adf.view.rich.component.rich.fragment.RichRegion
pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
db2 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
db1 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
psl1 class oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout
ps1 class oracle.adf.view.rich.component.rich.layout.RichPanelSplitter
f1 class oracle.adf.view.rich.component.rich.RichForm
Tried with setting partialsubmit property to false on the command button, still the popup is not closed and my Faces Message are shown behind the detach popup.
Thanks,
Vinod -
instead of opening new tabs I do a lot of surfing from one tab. Before when I wanted to get back to my homepage I would click the Home button in the toolbar and it would take me back to my homepage. A nice feature. But lately when I click the home button it takes me to a search window and I have to type in yahoo and then click on yahoo login.
Anyone know how to fix this?... and 99% of the time the site you want is at the top of results.
or hit down arrow to get to it from history...
Believe it or not but most people use the url bar for searching.
.... it should never had been that way by default(.com) -
I used to be able to go back a few pages at a time until the latest upgrade. Now, if I click the "back" button on the toolbar I can only go back 1 page at a time. This doesn't always work and I have to go back to my original starting point which could be 10-15 click back ... is there anyway to get the option to go back multiple pages like before or can I just not use certain web pages anymore?
thank you!Use this to open the tab history list:
* Right click on the Back or Forward button
* Hold down the left mouse button on the enabled Back or Forward button until the list opens
You can look at this extension:
* Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/ -
I went to the website and it said it downloaded, but when I click on the button in my Toolbar, nothing happens. I seen on a search engine that they make "Print Friendly" for Firefox now. Can you tell me where to find it, how to put the button in my Toolbar? I must be doing something or not doing something for it not to be working for me. I am not real computer friendly but I'm not a beginner either. So if you dont mind Please explain to me how to fix this issue in relatively easy step by step instructions. Thank you for your time, Sheybiker
Is this what you are looking for? <br />
http://www.printfriendly.com/browser_tool
'''Click and Drag''' the Print Friendly button to your Bookmarks Toolbar. -
When I click on the safari button a blank screen comes up for about one second, then minimizes. I have checked wi-fi connection, and all is fine. Facebook and maps apps still work.
Try clearing Safari's cache : Settings > Safari > Clear Cookies And Data (Clear Cache on iOS 4) and also Clear History
If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
Maybe you are looking for
-
How to catch excpetions of function module?
Hallo everybody, how can i catch the exception from function module "exception" and deliver it to call function parameter table --exception table. For example,a function module 'RPY_TABLE_INSERT' is called by Call Function (parameter_table)in order t
-
Adding classification info into 0FIAP_C03(FIAP: Line Item)
Hi, I'd like to add vendor classification infomation into exist 0FIAP cube whihc is filling through 0FI_AP_4 DS. For each vendor I've just 1 class which is include 2 characteristics. I mean vendor and class relation is 1 to 1. Allready I have created
-
Need to change prior owners name and pw to get updates ?
How do I change the name & password of prior owner so I can get updates thru iTunes?
-
2 questions about blog section
Hi, On my blog section, there are 2 strange things going on. First, the text color on my main blog page is red, and I cannot edit it there, it says I have to edit it on my entries page. I do this, and the red still stays there...any ideas why? Also,
-
My ipad air2 has been disabled due to incorrect password input
Please help me to restore my ipad air2 (4th generation) as it was disabled by entering incorrect password attempts.