Capture FPM Event in another WDC
Hello Friends,
I trying to capture the name of event liek EDIT,CLOSE,NEXT etc.. that are defined in FPM in a std WDC.
I need this because based on the ID of the button , i need to process some information.
Could you pls let me know how to handle this or any code would be fine. ?
Regards,
Vinay
Hello Jens..
I am not trying to go into EDIT mode in std..WDC delivered by SAP .. but thru enh implementation..
I do have dev authorization.
The interface IF_FPM_UI_BUILDING_BLOCK is already implemented in WDC
What I did was..
In the component controller methods.. the method... PROCESS_EVENT is not in EDIT mode..
But i wrote i wrote the code for capturing the instance of the FPM event in the post-exit of that method..
When i tested this in portal.. this code not executed and hence unable to caputre the event.
Is the design approach correct ? or is there another way
Many thanks..
Regards,
Vinay
Edited by: Vinay Reddy on Feb 6, 2012 12:12 PM
Edited by: Vinay Reddy on Feb 6, 2012 12:24 PM
Similar Messages
-
How to Read FPM Events in WDDOBEFOREACTION
Dear All,
I am working on a GAF solution. If the user clicks the PREV or EXIT buttons I want to skip the Check the mandatory field validations. But do not know how to read the FPM Events inside the WDDOBEFOREACTION method inside the View.
Any help is greatly appreciated.
Thank you.
PKHi,
Below code can be used to get the current executed FPM event.
DATA io_event type cl_fpm_event.
io_event = wdevent->get_string( 'ID' ).
io_event will have the Event which is being triggered.
FPM event can be captured in WDDOBEFOREACTION, but since this hook method is invoked before any events in the view, so it will throw a dump , if any action is triggered other FPM event.
So it is better to write the validation in Component controller method,(ON_PROCESS ), if we want to Validate based on prev and next buttons.
DATA io_event type cl_fpm_event.
CASE io_event->mv_event_id .
WHEN cl_fpm_event=>'NEXT'. " Global constants can be declared like gc_event_edit,etc
Endcase.
Regards,
Harsha J -
Dear MDM experts,
Kindly let me know how we can capture an MDM event and trigger an external program.
I have this requirement of populating a field in the main table based on the ENTER event when the user is entering a main table data record and has has pressed ENTER.
There is this external program that needs to be called to do the job.
Pls let me know.
Would appreciate your prompt inputs.
Thanks.Hi,
I guess you r using Eventing as a function to create UI integration between iViews and between iViews and web applications.
There are two types of eventing:
a)URL eventing
Where an event is triggered to open a browser popup window. Possible use of this is in accessing a back-end system or an external web application
B)EPCF eventing
Where an event is published to another iView on the same page.possible use of thsi is in displaying related objects from different repositories.
With the parameters that you define when creating the event, the iView event builder is programmed to build a valid string with the correct syntax to generate a valid EPCF or URL link.[for external access]
<b>The procedure to capture MDM events,in a nutshell, is as follows:</b>
a)Double-click the Result Set iView to launch the editor. The iView is now in edit mode.
b)Select the Custom Events radio button to open the Event Builder.
c)Select Add and define the new custom event with the parameters as per the table below.
Hoever there are certain event builder parameter about which detailed description is given on
<a href="http://help.sap.com/saphelp_mdm550/helpdata/en/45/c89e544c52570be10000000a114a6b/content.htm">this URL</a>
I hope it will help you.
Regards,
Krutarth -
Unable to capture button event in pageLayout Controller
Hi Guys,
I have the following layout
pageLayout
pageLayoutCO (controller)
----header (Region)
----------messageComponentLayout (Region)
-----------------MessageLovInpurt
-----------------MessageChoice(Item)
-----------------MessageTextInput
-----------------MessageLayout
----------HideShow (Region)
-----------------MessageLovInpurt(Item)
-----------------MessageChoice(Item)
-----------------MessageTextInput(Item)
-----------MessageComponentLayout (Region)
-----------------MessageLayout
------------------------SubmitButton(ID:SearchBtn)
------------------------SubmitButton(ID:ClearBtn, fires partial action named clear)
-----------header(Region)
I am not able to capture the event fired by the button ClearBtn in the controller of the pagelayout.....
The two methods I used as follows aren't worked:
if ("clear".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
if (pageContext.getParameter("ClearBtn") != null) {
what should i do in order to capture the button event in the pageLayout Controller
Thanks in advance
Mandy
Edited by: user8898100 on 2011-8-2 上午7:49Mandy,
Its really strange that its not able to caputure the event in CO.
Below is the way in which we handle to Submit action at CO level.
/Check whether ClearBtn is same in case too.
if(pageContext.getParameter("ClearBtn")!=null){
System.out.println("Inside the Clear Btn Action");
Regards,
Gyan -
Unable to capture onClick event of htmlb:image in a controller
Hi,
I am trying to capture onClick event of an htmlb:image (which is present in my view) in DO_HANDLE_EVENT method of my controller.
Surprisingly, when I click the image, page does refreshes. But the event in not captured in do_handle_event method. Control never reaches that method. Whereas if I put onClick event of a button, it is easily captured in do_handle_event method.
Ex. code in my view is:
<%@page language="abap"%>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:image id = "searchimg"
src = "consvalue.jpg"
onClick = "search" />
<htmlb:button id="searchbutton" onClick="search"
text="Event Test"/>
Now, the button event is captured, but not the image event.
Any idea why this might be happening?
Regards,
KaushalHi Kaushal,
are image and button enclosed by <htmlb:form> ?
Please post your of do_handle_event, where you look for the event.
Regards,
Sebastian -
How to capture the event in driver JSplitPane
Hi all, i have some problem with the JSplitPane.
What i want to do is that:
i need to capture the event throw when the user press the button in the driver of the JSplitPane, this is because i want to know wich side of the splitpane is complet visible.
Thanks for your time!
LucaI thought I would do up an example just for fun. As you drag the splitter bar the size of the two components and the splitter component is reported to the console along with the divider location. Interestinly, on my system (Windows XP, Java 1.41_02) when you move the bar downwards the divider location is consistantly two pixels past the height of the top component but when you drag the bar upwards the divider location and the height of the top component are the same.
Does anyone have any ideas why that would be?
Here is the test app:package splitPaneMonitor;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.JFrame;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
public class SplitPaneFrame extends JFrame implements PropertyChangeListener {
public SplitPaneFrame() {
super ("Split pane test");
// Create the components to show in the split pane
myTopComponent = new JTextArea ("This is the top component", 10, 40);
myBottomComponent = new JTextArea ("This is the bottom component", 15, 40);
// Create the split pane
mySplitter = new JSplitPane (JSplitPane.VERTICAL_SPLIT , true, myTopComponent, myBottomComponent);
mySplitter.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, this);
getContentPane ().setLayout(new BorderLayout ());
getContentPane ().add (mySplitter, BorderLayout.CENTER);
public void propertyChange (PropertyChangeEvent evt) {
if (evt.getPropertyName () == JSplitPane.DIVIDER_LOCATION_PROPERTY) {
System.out.println ("Split pane divider moved");
Dimension size = myTopComponent.getSize ();
System.out.println (" The top component's size is: " + size.height +" h, "+ size.width + " w");
myBottomComponent.getSize (size);
System.out.println (" The bottom component's size is: " + size.height +" h, "+ size.width + " w");
mySplitter.getSize (size);
System.out.println (" The splitter's size is: " + size.height +" h, "+ size.width + " w");
System.out.println (" The splitter divider location is: " + mySplitter.getDividerLocation ());
private JTextArea myTopComponent;
private JTextArea myBottomComponent;
private JSplitPane mySplitter;
public static void main(String[] args) {
SplitPaneFrame appFrame = new SplitPaneFrame ();
appFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
appFrame.pack();
appFrame.setVisible (true);
} -
How to Capture Button event on TrainBean navigation
Hi All
i m being required to capture a button event in train bean Navigation, i m doing customization in Iexpense Module,here in Create IExpenseReport i need to capture the events of Remove,Return etc.how is it possible any clue would be very helpful.
Thanx
Prataptry this..
if (GOTO_PARAM.equals(pageContext.getParameter(EVENT_PARAM))
"NavBar".equals(pageContext.getParameter(SOURCE_PARAM))
// This condition checks whether the event is raised from Navigation bar
// and Next or Back button in navigation bar is invoked.
int target = Integer.parseInt(pageContext.getParameter(VALUE_PARAM));
// We use the parameter "value" to tell use the number of
// the page the user wants to visit.
String targetPage;
switch(target)
case 1: targetPage = "/oracle/apps/dem/employee/webui/EmpDescPG"; break;
case 2: targetPage = "/oracle/apps/dem/employee/webui/EmpAssignPG"; break;
case 3: targetPage = "/oracle/apps/dem/employee/webui/EmpReviewPG"; break;
default: throw new OAException("ICX", "FWK_TBX_T_EMP_FLOW_ERROR");
HashMap pageParams = new HashMap(2);
pageParams.put("empStep", new Integer(target));
pageContext.setForwardURL("OA.jsp?page=" + targetPage,
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
pageParams,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
OAWebBeanConstants.IGNORE_MESSAGES);
--Prasanna -
Not able to capture button event in pageLayout Controller
Hi Guys,
I have the following layout
pageLayout ------------------------ pageLayoutCO (controller)
----messageComponentLayout (Region)
----------messageComponentText (item)
----------messageComponentText (item)
----------messageComponentText (item)
----------messageLayout (Region)
----------------header(Region)
----------------------button (item) (say BTN1) (fires partial action)
I am not able to capture the event fired by the button BTN1 in the controller of the pagelayout..... but if i set a controller at the messageComponentLayout iam able to capture the event.
what should i do in order to capture the button event in the pageLayout Controller
Thanks in advance
Tom.Tom,
Two things:
1)The button ur using is of type submitbutton or button?.In this scenario it should be button.
2)The correct coding practice is using:
if("QUERY".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
instead of
String _event = pageContext.getParameter("event");
if("QUERY".equals(_event))
because you never know if Oracle in any upgrade or patch change the value of the constant EVENT_PARAM in class OAWebBeanConstants.
3)If first point is followed by you, just match the exact event name in code and in property inspector for the button.
--Mukul
--Mukul -
How do you pass vi references from one event to another
I have a vi which gets vi references (thereby loading the vi's into memory) for all the vi's in a given directory when a user clicks a button on the front panel. To do this I use an event structure. My question is whether it is possible to have another event (user button on the front panel) which unloads the vi's from memory. I have tried passing the vi references that are initially generated to the close reference function but whenever I do I get a 'vi reference invalid' error. Does this have to do with trying to pass the vi references between one event and another? If I use a local variable simply pass a reference to another indicator and then probe it, the originally-generated refnum and the local vari
able refnum match up. However once I try to wire that same indicator to the close reference function I get the 'vi reference invalid' error. Is there a different/better way to unload the vi's from memory based on a user button click? Any suggestions would be welcome.
Jason
Attachments:
Load_Directory_of_vi's.vi 57 KBSeveral problems with your code:
1... Bad idea to use lights as buttons. Yes it can be done, but it's not "natural".
2... If you've gotta do that, set their mechanical action to "LATCH WHEN RELEASED"
3... Because of #2, you are getting TWO copies of every array when you click the LOAD VIs light (er... button).
4... No need for the conversion from path to string and back - use BUILD PATH to append each file name to he folder path.
5... Set the BROWSE OPTIONS on your PATH control to EXISTING DIRECTORY to allow browsing of directories, not files.
6... Your code doesn't care whether the file is a .VI file, or a .ZIP file, or a .TXT file, or what. Use the PATTERN input on the LIST function to discriminate.
7... Your code is only storing the latest refer
ence, not the array of references.
8... An ERROR DIALOG on the OPEN REFERENCE function will tell you that you're getting an error. Why? You are asking to prepare a non-reentrant VI for reentrant execution (why use options = 8?)
9... Because of #8, the latest VI reference is invalid.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks -
How do I move clips from one Event to another?
How do I move clips from one Event to another?
As soon as I got the new iMovie, I started importing clips and making video's. Unfortunately, I hadn't fully understood the Events feature, so all of my clips are in a single "New Event" Event. I have now created several other Events and named them properly and would like to sort all of my clips into their proper "Event" folders. How do you do that?Ahh, Ok. I actually had to go to Lynda.com to watch a training video of this highly bassackwards maneuver, but now I have it. In other words, while the intuitive thing is to make a new event to hold the clip you want and then open the old event and drag the clip into it's new event, the only way to accomplish this maneuver is to NOT create a new event, but rather, go to the clip AFTER the one you want to move, select it and then Right-Click on it and select SPLIT EVENT BEFORE SELECTED CLIP (or go to FILE>SPLIT EVENT BEFORE SELECTED CLIP). Then you wait a few seconds while the program thinks a bit (no feedback it is doing this - just a pause) and then it automatically creates a new event with the clip you wanted. Now just double-click the new event and name it something meaningful.
Thanks for your help! -
How do I move selected photos from one event to another in iPhoto
Using iPhoto 9.5.1, how to I move selected items from one event into another event. I do not wish to merge both events. Thanks.
select the photos and flag them - then select the target event and use the add flagged photos to selected event command
LN -
How do I move individual photos from 1 event to another event in Iphoto 8
I have moved from a PC to a mac and was using Picasa before. All my photos are stored on a seperate hard disc and I have imported them all into iphoto. I am trying to edit them and cannot seem to find a way to move an individual photo from one event to another. When you open an event is there any way of seeing the other events and dragging and dropping your photo that way?
Gale002
Welcome to the Apple Discussions.
1 Use PHOTOS view and then select View > Event Titles
(You can open and close Events by clicking on the wee triangle to the left of the title. option (or alt) - click will open and close all at one go.)
2. You can now drag and drop pics between Events easily.
Regards
TD -
I want to move a picture from one event to another...how do i do this
i want to move a picture from one event to another...how do i do this
Just select, don't open, the event you want to move the flagged photos to. Then the Events ➙ Add Flagged Photos to Selected Event menu will be active.
OT -
How to capture the event in ALV grid display?
Hi experts,
How to capture the event in an ALV grid display which is editable. I have to capture the TAB key or ENTER key.
regards,
Arul Jothi.Hi Arul,
Take a look at sample program BCALV_EDIT_03. (Find string "register ENTER" in the program to see how to register)
Basically you have to Register edit events using method call REGISTER_EDIT_EVENT and then write a handler method for event DATA_CHANGED..
If you are using a REUSE..GRID fm then first get the grid reference using function module GET_GLOBALS_FROM_SLVC_FULLSCR and then repeat the above procedure..
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni -
Moving Photos from One Event to Another
I don't entirely understand how to do this. When I want to move photos from one event to another, I usually just drag the photos from one event to another. This works fine when the two events are next to each other (within the same window). However, it he event is not in the same window (requiring a scroll up or down) then the drag and drop can't happen (i.e., having to drag photos from my last event to the first event). Any suggestions here?
If you're merging two Events you ca do this in Event View - just drag one Event to the Other and they will be merged.
If you're moving pics from an Event to another (but not a Full Merge):
Photos View, the go View -> Event Titles and option Click on the wee triangle to close all the Events.
Then open the Event you want to get the Files From. Select the Files.
Drag them to the bottom of the iPhoto Window - above the toolbar - and the Window will scroll. (There's a bit of a knack to doing this: there's a sweet spot just above the tool bar. Get the Cursor there and the window will scroll. With practise you can even control the rate and speed of scrolling)
Drop them on the target Event.
Regards
TD
Maybe you are looking for
-
How can I delete a reacurring calendar event from my iPhone 4?
I recently started at a new company and of course I set up my iphone to sync with my corprate email. Everything works fine accept one thing. A few weeks make a got an Outlook reaccuring request for confrence calls on Thursdays. I accepted the invite.
-
I like to fluently blend in more images , When i use the gradient tool and hold down the shift key to draw a line , i see no fluent transition of the two images, instead part of image fades into a tranpanrant ' check board' layer instead. What goes w
-
Can I use my iPod apps with a MacBook?
I'm in college and am trying to decide if I want to use an iPad or one of the MacBooks. I guess one of the big questions is can I use my existing iPod apps with the MacBooks or do I have to make separate purchases again for them? I also want to recor
-
Urgent : Generation of file "application".xml fails and deploys aborted
Hi, I recently took over an application (called RDAS) and downloaded if from DTR. But this didnt work well (all sources files have been downloaded, but lots of models and custom controllers were missing in the webdynpro perspective). This has been fi
-
How to check a network connected system is in power on?
How to check whether a network connected system is in power on through its ip address? Is there a simple way in java to check that? Thanks