FPM event change in ess
Hi All,
I'm confused as to why the fpm is changing the event for ess~cod from START to _DISPLAYMODE the first time I run the app from WebDynpro.
I have stepped through the code and because the event is _DISPLAYMODE and not START the app is removing all the buttons from the screen.
else if (fpm.getEventData().getEventName().equals(CodConstants.EVENT_START_IN_DISPLAY_MODE)) {
//special case if the user has no authorisation to change either the data or the photo
wdContext.currentNavigationButtonsVisibilityElement().setBackButtonVisibility(WDVisibility.NONE);
wdContext.currentNavigationButtonsVisibilityElement().setChangeButtonVisibility(WDVisibility.NONE);
wdContext.currentNavigationButtonsVisibilityElement().setSaveButtonVisibility(WDVisibility.NONE);
//Set visibility of change not allowed or no data to be changed texts
if (!wdContext.currentContextElement().getZRoc_Change_Data_Allowed())
wdContext.currentContextElement().setDataChangeNotAllowedTextVisibility(WDVisibility.VISIBLE);
else if (wdContext.currentContextElement().getIsDataToBeChangedAvailable())
wdContext.currentContextElement().setNoDataToChangeTextVisibility(WDVisibility.VISIBLE);
Any help understanding this would be appreciated.
Rob
Hello Baskaran
Thanks for your reply.
Yes i am sure that have not changed any thing......in the middle.
It suppose to work in EHP5 don't know why it is not working....
BR
-CW
Similar Messages
-
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,
VinayHello 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 -
The order of my ical 'all day' events changes when i go into print mode?
The order of my ical 'all day' events changes when i go into print mode. What can i do to keep the order of events i so painstakingly created?
-
I can't delete events recurring annually...not part of birthday calendar, these are events I've added manually. I've tried delete key, cut event, changing to no recurrence, they just revert to original recurrence and will not be removed from my calendar. Events that occur weekly I'm able to delete, this is only happening with events recurring annually. Very frustrating. Thanks for any ideas.
If you are using a PC, log on to iCloud using Safari (rather than Explorer) to reset the photostream. Then turn iPhone/iPad photostream off and back on. I was getting the same server error as you and this advice from another blog worked for my iPhone and iPad. But I still can't get photostream deleted from my apple tv. There does not seem to be a photostream on/off control In Apple tv 4.4 software. I tried switching the screen saver to one of the ones that comes preloaded on the device, then back to photostream but all the old photos are still there. If anyone can help with this, I would appreciate it.
-
What events change the Created field in, finder, get info
On my laptop, in finder, in the get info screen there are 2 fields the Created Date and Modified Date fields.
I was looking at these fields for an app that I use on my iPhone, it was listed in finder, so I clicked the get info option.
The created date and modified date were 10/16 both the same.
I have not used this app in a long time, my question is this.
What event changes the created field? If the app was downloaded on the Iphone will the created field get updated in finder?
or if it was an update on itunes, would that change the created date in finder?
Does the created date mean that the app was downloaded and installed on that date?Thank you so much. That works just fine. However, I also just discovered something. Evidently, at least some of the fields in list view are editable. By adding Grouping to the columns shown and clicking on the empty field, I was actually able to type whatever I needed into the field.
I have not yet tried it with other fields, but will do so to see if it works for all fields in the list view.
Laura -
Calendar: Why are 1-day events changing to 2-day events?
This has happened to me several times today. When I edit a weekly (repeating) "all day" event (scheduled for today) on the Calendar on my iPhone, the event changes to a 2 day event (today - tomorrow). This change is pushed to the cloud and iCal on my Mac, as one would expect. I use my calendar like this several times a day, every day, and this isn't typical behavoir. Anyone else notice anything like this today? My Calendar is my life, so any time it does't work as expected, I get really nervous...
Note that I'm still on iOS 5 and Lion.Ok, after posting this I found that I should have enquequed here: https://discussions.apple.com/message/11653252 Sorry for that. No solution there though
-
Event.CHANGE - bubbles or not?
I have a little Event propagation question;
Im using Fbuilder 3 testversion on XP and have flash player 10 installed.
Flax 3 API(at least that from http://livedocs.adobe.com/flex/3/langref/) says that the flash.events.Event.CHANGE bubbles
butt wenn i debug the e:Event in the rb_selection function my debugger says it is does NOT.
So what now? Can anyone please explain this?
Following code (init is called on app's creationComplete
private function init():void {
male.addEventListener(Event.CHANGE,rb_selection);
female.addEventListener(Event.CHANGE,rb_selection);
private function rb_selection(e:Event):void
e;
}//break point hier
]]>
</mx:Script>
<mx:VBox id="vb">
<mx:RadioButton groupName="gender"
id="male"
label="male"/>
<mx:RadioButton groupName="gender"
id="female"
label="female"/>
</mx:VBox>
</mx:Application>Txn for help but i doesnt work for me. What I wont to do ist following. See the Code for main-app and component:
main-app
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*"
layout="vertical"
applicationComplete="appComplete()">
<mx:Script>
<![CDATA[
import mx.events.ItemClickEvent;
private function appComplete():void
comp.addEventListener(ItemClickEvent.ITEM_CLICK, ic_comp);
private function ic_comp(e:ItemClickEvent):void{
trace(e.toString())
// HOW TO KNOW HIER WHICH ADIOBUTTON WAS CLICKED???
]]>
</mx:Script>
<local:_RadioButtonGroup_comp id="comp"/>
</mx:Application>
component
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
width="300"
height="200"
creationComplete="creationCompleteHandler()">
<mx:Script>
<![CDATA[
import mx.events.*;
private function creationCompleteHandler():void
rbg.addEventListener(ItemClickEvent.ITEM_CLICK, ic);
private function ic(e:ItemClickEvent):void
trace(e.target.selectedValue); //HIER I KNOW
dispatchEvent(new ItemClickEvent(e.type, true));
]]>
</mx:Script>
<mx:RadioButtonGroup id="rbg"/>
<mx:RadioButton groupName="rbg"
id="male"
label="male"/>
<mx:RadioButton groupName="rbg"
id="female"
label="female"/>
</mx:Panel>
I can’t catch the dispached event from my component in my main-app.
In main app r target and currentTarget the same? So it simply doesn’t work. I expected to se the target as the radioButton, but I see my component – probably because I redespached it ???
I found the solution is to define own event class, and then hoock the “old”-target as extra property wenn redespaching the event to the main app. That works.
But I ask my self – can it be the only way, Do I really have to write own event-class for every single Event that doesn’t bubble per default???
I mean, I understend the point of custom event-classes, one should use them when u need some “extra”-events which r not available in the API – but just because some not bubble?
There must be the other way?
Please help, dont wona end up with hunderts of custom classes -
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 -
Stop triggering the FPM event!!!
Hi Experts,
In SRM7 we have one OIF FPM event, on click of which a popup will appear.I have created the popup on click of that event.
But when click the 'SUBMIT' button, the event is getting triggered after that the popup is coming.
I want that event to be triggered from 'YES' button of the popup.
Any idea will be helpful.
With Regards,
SubhasisHi,
If you are inside a method of the FPM and want to alter the further flow of the method by an action set in the popup you are calling, this is not going to work. When using server side eventing, the phase model will make a complete roundtrip of the method, then render the popup, then user action is taken. The server sided event will not halt and wait for user interactions here.
Example:
What you think happens:
FPM method start.
--> <code>
--><popup>
--><code which execution depends on what was done in the popup>
FMP method end.
What happens in runtime:
FPM method start.
--> <code>
--> <popup is prepared for rendering>
--> <code which execution depends on what was done in the popup is executed with initial dependencies since the popup isn't even rendered yet.
FPM method end.
Server roundtrip.
Popup is rendered.
User takes action in the popup.
--> What you wanted to impact is long since over
Cheers, Lukas -
Issue with xfa.event.change in XFA 3.3
HI all
I've found an issue with the way that XFA 3.3 processes the script below on a change event when a user paste's more than 1 character to a textfield.
var sChange = xfa.event.change;
if((sChange.length>1)){
app.alert("Bad User\nCopy and paste has been disabled for this field");
//discard the change
xfa.event.change = "";
in XFA 3.0 the alert is sent and change is removed, in XFA 3.3 the alert is sent but the change persists.
Any Ideas?Hi Mark,
Unfortunately thats not possible as I'm using Flash Fields with data being passed between the PDF and the Flex app which only works in XFA3.3, let me know when its fixed.
Kind Regards
Kevin Mortimer
Solutions Archtect
Avoka -
Does iPlanet 5.1/5.2 supports event change notification ?
Does iPlanet 5.1/5.2 suports event change notificaiton? I did query against root DSE, but 2.16.840.1.113730.3.4.7 does not show up as supported control. Just enable the change log does not help.
What is the proper way to get entry change notificaiton work on iPlanet 5.1/5.2?
Thanks.Could you perhaps use persistent search? Doing persistent searches with ldapsearch is described a bit in http://docs.sun.com/source/816-6400-10/lsearch.html
HTH,
Mark -
Simple example - Break FOR loop inside an event structure based on Front panel event change.
I am running a for loop inside a state machine architecture that contains a FOR loop. How can I break this For loop based on Event change in front panel ??
Abhilash S Nair
Research Assistant @ Photonic Devices and Systems lab
[ LabView professional Development System - Version 11.0 - 32-bit ]
LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
Attachments:
Case inside Event 3.vi 19 KB
Case inside Event.ctl 6 KB
Case inside Event 2.ctl 6 KBOkay. Accpeting that the design is not favorable and not advantageous when my program expands. I have begin to follow producer/consumer programming architecture.
Please find the attached program which is a simple producer consumer with event structure. I wonder how could I stop looping around the producer and consumer loops over and over again. I am pretty sure that this ENQUEUE ELEMENT loops back to the consumer loop and starts from begining.
I hope my first program in PC architecture with State machine and Event structure is correct.
Abhilash S Nair
Research Assistant @ Photonic Devices and Systems lab
[ LabView professional Development System - Version 11.0 - 32-bit ]
LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
Attachments:
Case inside Event 3.3-ProducerConsumer Event.vi 25 KB
Case inside Event.ctl 6 KB -
Event CHANGED of BUS 2089 (Trip).
Hello.
I would like to know if there is any customizing setting to which event is raised when a trip is deleted. I can see the event DELETED is raised, but so is the event CHANGED. Is this customizable? And where in SPRO?
Thanks
LandeHi
The Change event is a Standard event and it gets triggered in a standard way. No configuration is required in SPRO for this. Try to use proper start Condition to satisfy your requiremenmt.
Thanks
Arghadip -
How to trigger standard FPM events through coding.
While a standard FPM event triggers, it carries out with some event parameters which are automatically filled and is taken care by standard program.
I have a requirement to raise a standard event manually, but in this case, the standard event parameters are not filled.
Can any one tell me if there is any way through which I can get the event parameters automatically by raising a standard fpm event manually.Hi Chittibabu,
There is no any such method to fill the event parameters automatically while we raise standard fpm event manually. You have to fill the parameters accordingly before you raise fpm event manually.
Regards,
Ravikiran.K -
Custom FPM Event for Button row element
Hi Expects,
I have created a new button row element in standard screen, where I want to add custom FPM event and handle the same in get_data( ). But by default SAP is providing few event ID's in drop down.
Please help me how to add custom FPM event for button row element.
Regards,
Reny RichardHi Remy,
Process Event method does have any signature parameters in it which allow us to disable/enable buttons.
We can handle this in Get data method.Get Data is always triggered after Process Event. So you can write that in Get Data instead.
****this is a sample code to do the same. You can do a read as well if single button needs tobe handled***
LOOP AT CT_ACTION_USAGE INTO lw_action WHERE id = (your event id for the button).
lw_action-enabled = abap_false.
MODIFY CT_ACTION_USAGE FROM lw_action TRANSPORTING enabled.
EV_ACTION_USAGE_CHANGED = 'X'.
ENDLOOP.
***use field symbol to avoid modify if you want***
Maybe you are looking for
-
Time Machine Migration Question
I am in the process of moving my Time Machine from a USB attached drive to a NAS. I am looking to do the initial backup on the NAS and was presented with the option of replacing the USB drive with the NAS or alternating between the two. My USB driv
-
Help With Airport Extreme and External Hard Drive
I just purchased the Airport Extreme and I couldn't have been happier. I have attached my western digital external hard drive, but I have run into a slight problem/dilemma which I'm hoping someone who is apple savvy can help me out. I live in a house
-
The Keyspan Serial to USB adapter does not work with Intel. Perhaps a new driver will fix it.
-
HT2729 Why doesn't video or podcasts appear after clicking the video icon on my iPad2?
After clicking on the video icon nothing happens. No video, no start page, no sound. What are the possible causes?
-
GRC AC 10 NWBC Work Inbox - Standard View
I have created a personal view for the work inbox in NWBC, but would like to make that the default view for all users. Does anyone know how this can be done?