Event handlers for backbutton

Hi,
I want perform some validations when I press back button.how to find event handlers for back button,because F2
is not giving full info for back button.
Regards,
Brahmaji

Hi,
the back button is always part of toolbar buttons.
So you can open the view controller class and open the GET_TOOLBAR_BUTTONS method from that class.
In this method you see how the BACK button is defined. One of the attribute of button structure is ON_CLICK.
The value of this attribute should be the event name that is triggered when the button is clicked.
Now open the DO_HANDLE_EVENT method from the view controller class, you will have methods with prefix EH_ON
after the prefix you see the event name. If you find one that mached to the event name of the BACK button, then this is the event handler that is triggered by the BACK button.
Regards,
Steve

Similar Messages

  • How to remove event handlers for a content type currently in use?

    Hi,
    We had a SP 2007 solution that managed event handlers as described in
    Brian Wilson's blog regarding event handlers. We then did a in-place upgrade to SP 2010. It so happend that we wanted to remove some of our old event handlers and this is where our problem started. We managed to delete event handlers
    (SPEventReceiverDefinitions) for
    Site and List by using the ui from Brian Wilsons feature "Manage Event Handlers" (ref the link above), but not anyone at all for
    Content Types... It simply wouldn't be deleted
    (remove was grayed out in the ui). 
    We then tried to do it by code. Below is a code snippet illustrating how we tried to delete the event handlers for content types:
    using (SPWeb web = properties.Feature.Parent as SPWeb)
    string targetClassName = "targetClassName.";
    web.AllowUnsafeUpdates = true;
    // Removing Content Type event handlers
    foreach (SPContentType ct in web.ContentTypes)
    for (int i = ct.EventReceivers.Count - 1; i >= 0; i--)
    if (ct.EventReceivers[i].Class.StartsWith(targetClassName))
    ct.EventReceivers[i].Delete();
    ct.Update(true);
    web.Update();
    The Content Types are not sealed and are
    not readonly. When debugging, we can see that the
    Delete() method are called on one of the Content Types we wanted to delete event handlers for. We noted that the
    ct.EventReceivers.Count remains the same, before and after Delete() is called. We did not get any exceptions when running this code.
    When running the code a second time and debugging again, we see that the very same Content Type still has the very same event handler attached... As in, it wasn't deleted....
    We also tried to delete the event handlers through PowerShell as described
    here in the post by Per Jakobsen. However, the script did not really seem to find any EventReceivers... We tried to write the
    $site.AllWebs | % {$_.Lists} | % {$_.ContentTypes} | % {$_.EventReceivers} list to file, but it was empty.. We did however get a long list when writing $site.AllWebs | % {$_.Lists} | % {$_.ContentTypes} to file. We could then in
    that file see the event handler references we want to remove registered to our Content Types, as we did during code debugging earlier on. So PowerShell might still be the way to go here...
    So, does anyone know if there is a way to force this delete through, either by code, PowerShell or some other means? Any help regarding this matter would be very much appreciated :)

    Hi,
    For your information, there's two versions (at least) exists for each content types. One is Site Content Type - exists in Root web and another is list content type. Once you add a content type to a list, a copy of the site content type is taken and stored
    in the list. If you update the site content type, it may or may not affect the list conten type. So make sure you are updating the both - site content and list content type. Once you update site content type with passing paramater true to 'ct.Update(true)',
    the list content types are supposed to updated too.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Multiple event handlers for one button

    I'm trying to create a button with 2 event handlers, such
    that when you roll-over the button, a submenu pops up, and when you
    click the button, you go to a certain frame. I feel like this
    shouldn't be hard at all, but it's not working. Below is the
    actionscript I have tried. Both event handlers work as I want them
    to if alone, but the on(release) functionality does not work when I
    try to put them together.(I have Flash 8). Thanks for your help!
    on (release) {
    _root.gotoAndStop("one1");
    tellTarget (_root.navigation) {
    gotoAndStop (1);
    on (rollOver) {
    this.gotoAndPlay("links");
    tellTarget (_root.navigation.introduction) {
    gotoAndStop (1);
    tellTarget (_root.navigation.overview) {
    gotoAndStop (16);
    tellTarget (_root.navigation.coronary) {
    gotoAndStop (1);

    this code is ok, it seems that when u rollover on the button,
    the event is fired and it keeps on running the time u r on it. i
    think just add
    delete this.onRollOver inside rollOver event.

  • Event Handlers for Dynamic Buttons

    Hi, I hope someone can help. I just can't figure out how to
    solve this problem:
    I am creating an number of buttons dynamically that
    correspond each to a filename read from a directory. The problem is
    I don't know ahead of time how many buttons (files) I will have so
    I create them dynamically in action script. -- this much I can do.
    What I can't figure out is how do I assign each of these
    dynamically created buttons individually specific event handlers?
    ie. I need to know which file icon you clicked on and then take
    action based on that info.
    for example: "folder" is a button icon I have linked from my
    library - i name each instance "folder"+i -- what I need to do is
    do something for folder1, folder2 etc.
    for (i=1;i<numdirs;i++) {
    graphics.attachMovie("folder","folder"+i,depth);
    graphics["folder"+i]._y= coordy2;
    // want to put an event handler here for each
    graphics["folder"+i] button
    I wanted to do something like:
    graphics["folder"+i].onRelease = function() {
    test_txt.text = i;
    but each button I click on gives me i= numdirs (ie the max
    number -- for example 6 if there are 6 files, I can't identify
    which button you actually clicked on -- button1 through 6 all
    deliver the number 6 to test_txt.text)
    I hope that makes sense - if someone can take a swag at this
    and point me in the right direction I will be very appreciative.
    Best Regards,
    Tom

    There is other way to do that.. whenever you call a
    attachMovie or loadMovie
    function there is a return value that corresponds to the
    actual movieclip
    created on the flash movie. ie
    for (i=1;i<numdirs;i++) {
    var temp_mc:MovieClip =
    graphics.attachMovie("folder","folder"+i,depth);
    that new reference temp_mc is the newly created movieclip and
    you can do
    whatever you want with it, ie:
    for (i=1;i<numdirs;i++) {
    var temp_mc:MovieClip =
    graphics.attachMovie("folder","folder"+i,depth);
    temp_mc._y = 30
    temp_mc.id = I
    //even assign new funtions to events
    temp_mc.onRelease = releaseFunction
    function releaseFunction(){
    trace("do something on the release event")
    <DIV>&quot;charmcityMD&quot;
    &lt;[email protected]&gt; wrote in
    message
    news:ed2l97$n8$[email protected]..</DIV>> THANK YOU
    soo
    much -- I have been pondering this and scanning the web for
    hours. Your
    solution is perfect. I very very much appreciate your help.
    >
    > Best Regards,
    > Tom

  • Defining event handlers for renaming, moving, copying and deleting of files.

    Hi every one.
    I had created a tool for InDesign CS6 written using Javascript to manipulate portions of text in nested way by marking them with small non-printing small anchored text frames contains sequenced numbers and storing these portions as snippets in a spicific folder beside the InDesign documents.
    This tool is open source and free of charge, the only this that I want from you (after downloading) as a user to feedback and as a developer to improve it and join me.
    sourceforge.net/projects/livesnippets
    My question is not about this but I want to trace when the user rename, move, copy or delete a file of these snippets or any container folder and interact according to that by reserving the links between snippet files and their instances which interspersed in InDesign documents.
    Thanks.

    Here is an example of using Bridge events… What this scrript will do if you add it to Bridge scripts… is set *all* indesign snippets in the folders you browse to… to be locked/readonly… This means that users will get an extra dialog if they want to delete the file… Finder or Bridge… You can't just rename the file Finder or Bridge… and Bridge's Batch Rename will only function if the user makes copies to new location… You could set this property using the File Object with indesign…
    #target bridge
    onDocLoaded = function( event ) {
        if ( event.object instanceof Document && event.type == 'loaded' ) {
            lockIDSnippets();
            return { handled: true };
    function lockIDSnippets() {
        var i, count, doc, thum;
        doc = app.document;
        count = doc.visibleThumbnailsLength;
        for ( var i = 0; i < count; i++ ) {
            thum = doc.visibleThumbnails[i];
            if ( /\.idms/.test( thum.spec.name ) ) {
                thum.spec.readonly = true;
    // Register event handler
    app.eventHandlers.push( { handler: onDocLoaded } );

  • Where to register event handlers for a content type

    Hello,
    I'm developing a feature that creates site columns, content types, event receivers (class libraries) and binds all together - everything using code and not xml.  The web application should have 1 site collection and several hundreads sites. 
    For example:
    field1 = web.createtextfield(...); spcontenttype ct = web.createNewContenttype(...); ct.FieldLinks.Add(field1);
    I have a question about binding the event receivers: Should this be done in site collection level or it should be done for every subsite?
    the code is:                  
    string evClass = typeof(SampleEvReceiver).FullName;string evAssembly = typeof(SampleEvReceiver).Assembly.FullName; RegisterEventHandler(currentCT, "Content Type Event Receiver", 1010, evAssembly, evClass, SPEventReceiverType.ItemUpdated); //my function.
    Also, I've put the event receivers in a different project - i.e. different dll. The idea is to change the event receivers's code, copy the dll file to the gac, iisreset and have the new code running. Is this correct?
    Thank you
    Christos

    Hi Christos,
    1. This should be done in site collection level.
    2. This is correct and Restart Timer Service if as need.
    /Hai
    Visit my blog: My Blog | Visit my forum:
    SharePoint Community for Vietnamese |
    Bamboo Solution Corporation

  • Sharing Events/Handlers for Tree and List

    I have a Tree component and a List component that both share
    very similar functionality. In particular, I have setup
    functionality to edit the labels in each component only when I
    trigger a custom event from a ContextMenu, preventing the default
    action of editing the item when it is selected.
    Since Tree extends List, I was wondering if there was some
    easy way to make a Class/Component that could contain all the logic
    for this functionality that could be shared across Tree and List
    (or any List-based) components.
    I'm basically trying to avoid duplicating code.
    Any thoughts/suggestions?
    Thanks!

    "ericbelair" <[email protected]> wrote in
    message
    news:ga8h3q$9pn$[email protected]..
    >I have a Tree component and a List component that both
    share very similar
    > functionality. In particular, I have setup functionality
    to edit the
    > labels in
    > each component only when I trigger a custom event from a
    ContextMenu,
    > preventing the default action of editing the item when
    it is selected.
    >
    > Since Tree extends List, I was wondering if there was
    some easy way to
    > make a
    > Class/Component that could contain all the logic for
    this functionality
    > that
    > could be shared across Tree and List (or any List-based)
    components.
    >
    > I'm basically trying to avoid duplicating code.
    >
    > Any thoughts/suggestions?
    I think what you're looking for is called "monkey patching",
    which involves
    putting a file of the same name and directory structure in
    your project as
    the original was in the Framework. I don't know much more
    about it than
    that, though.

  • Are there event handlers for graphic objects drawn with the CWIMAQViewer toolbar?

    Hi,
    I use the CWIMAQViewer in my VB.Net  application to display images from a CCD camera.  I want to use the toolbar that comes with the viewer to draw graphics (e.g. a circler) over the image.  Is it possible to get the position and radius  of the circle as I drag it and change its size?  If not, what library should I use (I do have the NI Vision module) to achieve my goal?  Thank you so much for your help.

    Try creating the circle as a ROI.  Then take a look at ROI properties.  As an example, ROITop Property: CWIMAQ.ROITop
    Jeff B.
    Applications Engineer
    National Instruments

  • Event Handlers for the Textfield

    How can I capture the 'value changed' event of a text field, without using IB.

    you can do addTarget:action:forControlEvents on UITextField, e.g.:
    [myTextField addTarget:(id)self action:@selector(textFieldChanged) forControlEvents:UIControlEventEditingChanged]
    then implement the textFieldChanged function, e.g.:
    - (void)textFieldChanged{
    NSLog(@"value changed");
    Message was edited by: bratax

  • Event Handlers Invoked Everytime for update on User Profile.(OIM 11g)

    Hi,
    We had Custom event handlers for generating some fields on user form.
    Everytime there is update on user profile on any field, All the event handlers fired, (As seen from logs).
    I want to fire particular event handlers on particular update. Like if first name is updated then only display name event handler should fire. (not all)
    How can i achieve this???

    Here is my code..it is working fine for creation of the user. but when i am updating the user i am getting all null values except the updated one.
    Example if there are 5 fields in that i am updating 2 .apart from those 2 fields the other 3 are coming as null which is making validation to fail.
    package flatfilevalidation;
    import java.io.Serializable;
    import java.util.Date;
    import java.util.HashMap;
    import oracle.iam.platform.context.ContextAware;
    import oracle.iam.platform.kernel.ValidationException;
    import oracle.iam.platform.kernel.ValidationFailedException;
    import oracle.iam.platform.kernel.spi.ValidationHandler;
    import oracle.iam.platform.kernel.vo.BulkOrchestration;
    import oracle.iam.platform.kernel.vo.Orchestration;
    import oracle.iam.identity.usermgmt.api.UserManagerConstants.AttributeName;
    import Thor.API.*;
    import Thor.API.Exceptions.tcAPIException;
    import Thor.API.Operations.*;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Set;
    import oracle.iam.identity.usermgmt.api.UserManagerConstants;
    import oracle.iam.identity.usermgmt.vo.User;
    import oracle.iam.passwordmgmt.utils.MLSUtils;
    import oracle.iam.platform.Platform;
    import oracle.iam.platform.kernel.vo.OrchestrationTarget;
    import oracle.iam.upgrade.changes.jaxb.Entity;
    public class FFValidation implements ValidationHandler {
    int count;
    tcUserOperationsIntf userOperationsService;
    Entity ent = null;
    @Override
    public void validate(long arg0, long arg1, Orchestration orchestration)
    throws ValidationException, ValidationFailedException {
    System.out.println("entered the Validation methode");
    HashMap<String, Serializable> parameters = orchestration.getParameters();
    System.out.println("****************************************************************");
    User user = getUser(orchestration);
    Object passwdOrchParam = parameters.get(UserManagerConstants.AttributeName.EMPLOYEE_NUMBER.getId());
    System.out.println("***************************"+passwdOrchParam+"*************************************");
    System.out.println("orch.getParameters() ============================ " + parameters);
    String ceo="CEO";
    String trainee="Trainee";
    String Emp="EMP";
    String Contractor="Contractor";
    //int Skypecount,Empcount,phonecount;
    String Role= getParameterValue(parameters, "Role");
    String Designation = getParameterValue(parameters, "Designation");
    Long Manager =getManagerid(parameters, "USR_MANAGER_KEY");
    Date EndDate =getDate(parameters, "End Date");
    String EmpNo=getParameterValue(parameters, "Employee Number");
    String skypeid=getParameterValue(parameters, "SkypeId");
    String Mobile=getParameterValue(parameters, "Mobile");
    String skypeidDb="usr_udf_skypeid";
    String MobileDb="usr_mobile";
    String EmpDB="usr_emp_no";
    //validating SkypeID
    uniquevalidate(skypeid,skypeidDb);
    //Validating Employee Number
    uniquevalidate(EmpNo,EmpDB);
    //Validating Employee Number
    uniquevalidate(Mobile,MobileDb);
    //CEO Validation
    if(Designation.equals(ceo)){
    if(Manager!=null){
    String msg="ManagerID not required";
    System.out.println("ManagerID not required ");
    throw new ValidationFailedException(msg);
    //Cotractor Validation
    if(Role.equals(Contractor) && Designation.equals(ceo)) {
    System.out.println(Designation.equals(ceo));
    String msg="Contractor Cannot be CEO";
    System.out.println("Contractor Cannot be CEO");
    throw new ValidationFailedException(msg);
    if(Role.equals(Contractor)&& EndDate==null) {
    String msg="Contractor Endate is not provided";
    System.out.println("Contractor Endate is not provided");
    throw new ValidationFailedException(msg);
    //Trainee Validation
    if(Role.equals(trainee) && Designation.equals(ceo)) {
    System.out.println(Designation.equals(ceo));
    if(Designation.equals(ceo)) {
    String msg="Trainee Cannot be CEO";
    System.out.println("Trainee Cannot be CEO");
    throw new ValidationFailedException(msg);
    //manager validation
    if(!Designation.equals(ceo)){
    if(Manager==null){
    String msg="ManagerID Can not be Null";
    System.out.println("ManagerID Can not be Null");
    throw new ValidationFailedException(msg);
    //Employee Validation
    if(Role.equals(Emp)){
    if(EndDate!=null) {
    String msg="Employee End Date Should be empty";
    System.out.println("Employee End Date Should be empty");
    throw new ValidationFailedException(msg);
    @Override
    public void validate(long arg0, long arg1, BulkOrchestration arg2)
    throws ValidationException, ValidationFailedException {
    System.out.println("**************Inside BulkOrchestration****************");
    HashMap<String, Serializable> parameters = arg2.getParameters();
    System.out.println("orch.getParameters() ============================ " + parameters);
    @Override
    public void initialize(HashMap<String, String> arg0) {
    private String getParameterValue(HashMap<String, Serializable> parameters,
    String key) {
    String value = (parameters.get(key) instanceof ContextAware) ? (String) ((ContextAware) parameters
    .get(key)).getObjectValue()
    : (String) parameters.get(key);
    System.out.println("VALUE::" + value);
    return value;
    private boolean isNullOrEmpty(String str) {
    return str == null || str.isEmpty();
    private Long getManagerid(HashMap<String, Serializable> parameters,
    String key) {
    System.out.println(parameters);
    Long managerLogin = (parameters.get(AttributeName.MANAGER_KEY.getId()) instanceof ContextAware)
    ? (Long) ((ContextAware) parameters.get(AttributeName.MANAGER_KEY.getId())).getObjectValue()
    : (Long) parameters.get(AttributeName.MANAGER_KEY.getId());
    System.out.println("managerLogin "+managerLogin);
    return managerLogin;
    private Date getDate(HashMap<String, Serializable> parameters,
    String key) {
    System.out.println("date "+ parameters);
    Date date = (parameters.get(AttributeName.ACCOUNT_END_DATE.getId()) instanceof ContextAware)
    ? (Date) ((ContextAware) parameters.get(AttributeName.ACCOUNT_END_DATE.getId())).getObjectValue()
    : (Date) parameters.get(AttributeName.ACCOUNT_END_DATE.getId());
    System.out.println("EndDate "+date);
    return date;
    void uniquevalidate(String idvalue,String idDbvalue){
    userOperationsService = Platform.getService(tcUserOperationsIntf.class);
    HashMap<String, String> UMAttr = new HashMap<String, String>();
    String msg="Entered Value is not unique" + idvalue;
    System.out.println("idvalue="+ idvalue);
    System.out.println("idDbvalue="+ idDbvalue);
    if(idvalue!=null){
    try {
    System.out.println("in try block");
    UMAttr.put(idDbvalue, idvalue);
    tcResultSet USAttr = userOperationsService.findUsers(UMAttr);
    System.out.println(USAttr);
    System.out.println("User set count ========================= " + USAttr.getRowCount());
    count=USAttr.getRowCount();
    if(count>0)
    throw new ValidationFailedException(msg);
    catch (tcAPIException e) {
    e.printStackTrace();
    private User getUser(Orchestration orchestration)
    if(orchestration.getTarget() != null && orchestration.getTarget().getEntityId() != null)
    return new User(orchestration.getTarget().getEntityId());
    HashMap orchParams = orchestration.getParameters();
    User user = new User(null);
    Set orchParamNames = orchParams.keySet();
    String orchParamName;
    for(Iterator i$ = orchParamNames.iterator(); i$.hasNext(); user.setAttribute(orchParamName, orchParams.get(orchParamName)))
    orchParamName = (String)i$.next();
    MLSUtils.setStringValuesForMLSAttributes(user);
    System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"+user);
    return user;
    }

  • Do I need to worry about these event handlers in a grid from a memory leak perspective?

    I'm pretty new to Flex and coudn't figure out how to add event handlers to inline item renderer components from the containing file script so I attached the listnerers simply as part of the components themselves (eg <mx:Checkbox ... chnage="outerDocument.doSomething(event)"../>):
    <mx:DataGrid id="targetsGrid" width="100%" height="100%" doubleClickEnabled="true" styleName="itemCell"
          headerStyleName="headerRow" dataProvider="{targets}"
          rowHeight="19" fontSize="11" paddingBottom="0" paddingTop="1">
         <mx:columns>
         <mx:DataGridColumn width="78" dataField="@isSelected" headerText="">
         <mx:itemRenderer>
              <mx:Component>
                   <mx:HBox width="100%" height="100%" horizontalAlign="center">
                        <mx:CheckBox id="targetCheckBox" selected="{data.@isSelected == 'true'}"
                             change="outerDocument.checkChangeHandler(event);"/>
                        <mx:Image horizontalAlign="center" toolTip="Delete" source="@Embed('/assets/icons/delete.png')" useHandCursor="true" buttonMode="true"
                             click="outerDocument.deleteHandler(event);"/>
                        <mx:Image id="editButton" horizontalAlign="center" toolTip="Edit" source="@Embed('/assets/icons/edit-icon.png')" useHandCursor="true" buttonMode="true"
                             click="outerDocument.editHandler(event);"/>
                   </mx:HBox>
              </mx:Component>
         </mx:itemRenderer>
         </mx:DataGridColumn>
              <mx:DataGridColumn id="Name" dataField="@collectionDesc" headerText="Name" itemRenderer="com.foobar.integrated.media.ui.component.CellStyleForTargetName"/>
              <mx:DataGridColumn id="Created" width="140" dataField="@createDateTime" headerText="Created"  labelFunction="UiHelper.gridDateFormat" />
         </mx:columns>
    </mx:DataGrid>
    This grid is part of a view that will get destroyed and recreated potentially many times during a user's session within the application (there's a large dynamic nature to the app and views are created at run-time.) By destroyed I mean that the view that holds the above datagrid will no longer be referenced under certain circumstances and an entire new view object is created (meaning the old datagrid is no longer refernced and a new one is created.)
    I heard you should clean up event handlers when they are no longer used, and I know at what point the view is destroyed, but I don't know how to clean up the event handlers added to the item renderer components? Is it something that the Flex garbage collector will handle efficiently?
    Also, on a somewhat related note, how could I push the item renderer to an external component since in my event handlers for the item renderer buttons I need a reference to the datagrid.selectedIndex which, as an external item renderer I wouldn't have access to this containing grid?

    No. You don't need explicit cleanup in this case: if your outerDocument is going away, you have nothing to worry about. The event handler leak can happen in sort of the reverse situation: suppose you have a long-lived MyView that contains a custom DataGrid like the one below. Now suppose that MyView frequently destroys and re-creates the grid. And suppose that on its creationComplete event, the grid registers a listener for outerDocument's (MyView's) enterFrame Event. Unless you explicitly remove this listener, MyView will still have a reference to it even after the grid that registered the listener is destroyed (and garbage collected).
    This is a pretty contrived example, but it sort of illustrates the potential for leaks: a certain component is elligible for garbage collection, but some longer-lived component holds a reference to it (or part of it, such as a listener function). If the longer-lived component is elligible for GC as well, you don't really need to worry about proper cleanup. That's what you're paying the GC processor cycles for.

  • Event handler for selecting 3d views

    Hi,
    Is there any event handlers for when a user selects a view?
    I would like to be able to base actions after a view is selected but can't figure away to do it other then creating my own list of views.
    Thanks!

    ...Yes indeed! :-) It's called the CameraEventHandler. It gets triggered whenever a user changes a view. You can use the returned "event" object to get info about the camera (or modify it), to just use the eventHandler to trigger other activity as you mentioned.
    Here's a simple example which outputs all the camera properties to the console window at view change.
    //===============================================
    myCEH = new CameraEventHandler();
    myCEH.onEvent = function(CameraEvent)
    console.println("CameraEvent.binding = " + CameraEvent.binding );
    console.println("CameraEvent.far = " + CameraEvent.far );
    console.println("CameraEvent.fov = " + CameraEvent.fov );
    console.println("CameraEvent.currentTool = " + CameraEvent.currentTool );
    console.println("CameraEvent.canvas = " + CameraEvent.canvas );
    console.println("CameraEvent.isNewCanvas = " + CameraEvent.isNewCanvas );
    console.println("CameraEvent.near = " + CameraEvent.near );
    console.println("CameraEvent.projectionType = " + CameraEvent.projectionType);
    console.println("CameraEvent.targetDistance = " + CameraEvent.targetDistance);
    console.println("CameraEvent.transform = " + CameraEvent.transform );
    console.println("CameraEvent.viewPlaneSize = " + CameraEvent.viewPlaneSize );
    runtime.addEventHandler(myCEH);
    //===============================================

  • Event Handlers OIM 11g

    Hi Folks ,
    I am very new to OIM 11g , Could you please help me on below :
    I have a OIM system, i want to see what all event handlers are present in OIM . Could you please tell me where can i go and look to find out the event handlers in my
    OIM instance .
    Thanks
    P

    OimWannaBe wrote:
    Thanks i will go through the links .., just one more question :
    In 11g , creating normal process task adapters /scheduled tasks , does it involve all the plugins stuff etc .., or they are like 10 g and plugins comes in to picture when we create event handlers .No, process task adapters are the same old way, just that you need to upload the jar into the db rather than copying them. Other than that everything else needs plugins atleast.
    Other Ques :
    Is it possible to create pre process/pre insert Event handlers in OIM 11g for trusted reconciliation . I heard somewhere that 11g doesnt support pre insert event handlers for trusted recon , is it ?Yep you heard it right, you cannot have event handlers during 11g recon pre process.
    Thanks
    Preeti.Edited by: Bikash Bagaria on Dec 29, 2011 10:39 PM

  • Acrobat SDK: How to get events and write event handlers in c#

    I am trying out to get events from a pdf doc and handle it in my c# code with the samples that come with Acrobat-SDK. 
    I am yet to understand how I can do it. I am yet to discover the class that provides me the events. All the classes currently expose methods only. It might be that I am missing something for sure.
    Can somebody help?
    My use case is:
    the user will open a pdf doc and my application (or my app can trigger opening the pdf doc)
    when the user selects some text from the pdf doc, my app should get the event
    My event can handle the selection and get the selected text.
    Put a bookmark on the selection in the pdf doc (with additional attributes)
    the pdf doc retains such bookmarks when the pdf is saved.
    bookmarks in the pdf should be available for edit.
    A different app/code should be able to parse and retrieve these bookmarks along with the additional attributes of the bookmark.
    I hope, I have not asked too much.

    There are no “event handlers” for C# in the Acrobat SDK.  You will have to “poll” for things such as selected text.
    Also, I don’t know what sort of “additional attributes” you are thinking about, but that may or may not be possible from C#.

  • Multiple menu items != multiple event handlers?

    I'm developing a program whereby a user can rate how much they like certain images when displayed on screen. The bulk of the work is done, but my rating mechanism (first attempt at one) is currently a right-click pop-up menu with the values 1-10 in ten menu items - naff I know, but its early design stages ;)
    This brings obvious problems, and I don't want to have to code event handlers for each and every Menu item just to set the same parameter to a different value depending on which menu item the user clicked (i.e. I don't want to have to create an event for the first menu item that simply sets and int variable to 1, and do the same for #2 through 10). What I was wondering was, is there any simpler way of implementing this? I.e. can I use the same event for the whole popup menu and detect the value of the option clicked and set the value accordingly? This would also mean, should I need to extend the rating scale above ten, say perhaps to twenty, then there would be no further coding necessary (which is nice! Lol!).
    Can anyone offer any suggestions? I did search, but tbh didn't have a clue what to search for. Your advice is appreciated.

    Implement the ActionListner that allows the constructor to take an argument as to the rating of the menu item, and then set the required rating variable to this when called. For example
    class MyRatingSystem
        int rating = 0;
        public void createMenus()
            JMenu ratings = new JMenu("Ratings");
            for(int i = 0; i < 10; i++)
                JMenuItem rating = new JMenuItem("Vote: " + i);
                rating.addActionListener(new RatingListener(i));
                ratings.add(rating);
        class RatingListener imlpements ActionListener{
            final int rate;
            public RatingListener(int rate)
                this.rate = rate;
            public void actionPerformed(ActionEvent ae)
                rating = this.rate;
    }The above code is inefficient and is only there to serve the purpose of an example(look at the loop, although I would think the compiler could do some loop unrolling?)
    HTH

Maybe you are looking for

  • While assigning PDF in APP Spool not getting generated

    Hi, am working on APP(Automatic Payment Program)...for both cheque printing and  Payment Advice printing..Am Using Script for Cheque Printing and PDF forms for Payment Advice Printing... But after running F110, spool is getting generated only for Che

  • Adding Business Days to a formula

    All- The formula below is adding a certain number of days to a call date based on dialer result code, but I want to be able to exclude Saturdays and Sundays.... And if it's not too much trouble holidays when adding the days. My formula is called @Wor

  • HP envy 17 dual bays

    I have a HP Envy and I would like to install a SSD in one of the bays.  I have followed a post on how to do it. The post talks about a HP Envy dv7t-7300. I can't find "dv7t-7300" as a model number anywhere. Where do I find the model number? Also what

  • InDesign CS4 type library Com reference is missing in visual studio 2008 in windows 7

    hi i am trying to create InDesign CS4 COM object using vb.net as indApp=CeateObject("InDesign.Application.CS4") i checked in the visual studio 2008 ,and tried to add indesign reference but the reference is not available in the VS references Com secti

  • How to initialize Button Array at "declaration"?

    How to initialize Button Array at "declaration"? Button[] b = new Button[2]; b[0] = "label" ? b[1] = "label" ? Again,please at declaration not using setText within main program.