How to "undo" a create event in Struts

HI,
I'm using ADF and Struts/JSP.
I need to know how I should undo a "Create" event on a iterator in the binding container using Struts. I Create a blank row by invoking the Create action, bound to an iterator, in the binding container. This works just fine - a blank row is created and the JSP-form is blank.
But, when the user hits the "Cancel" button, how do I then remove the blank-row created by the Create action from the iterators/bindings? I've tried some different thing, like getting the RowsetIterator and invoke the removeCurrentRow* methods. I've tried to invoke af Rollback action, but nothing does the job well.
How do I cancel a blank row?
Regards
Jacob

I have been working on same problem. I came to following conclusion. There are two ways to handle:
1. Subclass: WebView doesn't forward touch events by blocking in hitTest function. But link clicking works
2. Transparent subview of WebView: Touch events obtained through transparent view can be forwrded to scrollview subview of webView and all seems working. But link linking fails. It seems like touch event for link clicking is handled by webView only. It does it before other touch events are processed. So there is no point in passing those touch events to webView. WebView doesn't expose way to handle click handling.
Correct me if wrong. If someone has solution please post.

Similar Messages

  • How to undo last created textField

    Hello
    I am creating Multiple textFields using a add textfield Function
    I am unable to delete the textField using delete text function
    getChildIndex
    getChildByName
    RemoveChildAt
    mostly it shows , Null child in response
    or out of bound Index
    How I can delete the created Any of the textFiled  ??

    assuming you are doing all this code from within a DisplayObjectContainer or one of it's subclasses
    you can add a property to the class say var lastTextField:TextField
    and then override the addChild function
    override public function addChild(child:DisplayObject):void
         if (child is TextField)
              lastTextField = child;
         super.addChild(child);
    you will also need to add a function
    private function removeLastTextField():void
         if (lastTextField != null)
              if (contains(lastTextField))
                   removeChild(lastTextField);
              else
                   trace("lastTextField has a different parent: " + lastTextField.parent);
              lastTextField = null;
         else
              trace("no textfield to remove");
    you can then remove the last added TextField by calling
    removeLastTextField();
    if you want to be able to undo more than just the last one you would need to use an array of TextFields instead

  • How can I view my photos in "Events" like in iPhoto? How can I create events?  I have 55,000 photos and 1700 events so the only way I can possibly manage my photos is using events that are one slide in size.

    I have 55,000 images organized into about 1700 events. The only reasonable way to view my library is using events in iPhoto where each event has one image That still leaves 1700 images to sort through but that is a lot easier than 55,000 images.  In the side bar is a folder with "iPhoto Events" but those views still show all of the slides.  How can I create events and view my photos as events as in iPhoto?  Events are critical for large libraries and has been my primary way to sort images.
    Thanks!

    I had a problem a couple of months ago when iPhotos suddenly rearranged the order of my Events (Why won't iPhoto let me arrange my photos?) .  I was told "Use albums not events - events are not a good way to organize - albums and folder are designed for organisation and are very flexible".
    Haha!  I should have paid attention and read between the lines!  My iPhotos were highly organised groupings - not according to date but the way I wanted them - and it was so easy to do!  I see now that if I had them all in albums, as per the Apple Apologist suggestion, I wouldn't have this unholy mess I have been left with just to make iPhone & iCloud users happy.  I am now going through Photos and making Albums (of what used to be in my Events)  ... maybe I'll get this finished before they do another non user friendly update!

  • How to create events in iCal

    I know we can create events (like birthdays, anniversary etc.) from address book and sync it with iCal. What i want to know is how do I create an event (b'day, anniversary etc.) for a person who is not in my address book.

    Greetings,
    Create the event (just like you would any event) and set the repeat to every year and add it to the calendar of your choice:
    Hope that helps.

  • How can I get the soundcard to create event markers on voltage acquisition

    Hello,
    I'm new to Labview and I'm required to create a program that can acquire a voltage..  sounds simple.. the difficult part is that it needs to be able to create event markers on the data to indicate that a sound has occurred.  
    If I could somehow route the audio input to the trigger channel of my NI DAQcard6024E and set the threshold level it would work, but I can't find a way to do this.
    To put it in a real-life scenario... what is happening is that I'm acquiring EEG (brainwave) voltages whilst presenting a series of auditory 'clicks'.  We want to examine the changes in EEG that occur in response to these clicks.  So I need to have some way of establishing exactly when the sounds were presented on the EEG data.
    Hope somebody can help  At the moment my VI can acquire voltage data continuously and write the files to excel, but I can't work out how to create event markers for when the stimulus occurred.
    Thanks
    Shane 

    I still think it should be possible to make a breakout cable. But I guess the person responsible for the Lab is not a technical person. Or he/she is more concerned about the equipment than the student projects. That is quite common among such personal.
    I am also reading you are using a sound card for acquiring EEG. That is a very big NO-NO. This because sound cards are AC coupled. And this will limit the lower bandwidth to about 10Hz. So signals below about 10Hz is filtered out. EEG require a bandwidth from about 0.5Hz to 100Hz.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to create event in Form Portlet ?

    I want to pass parameter from Form to Dynamic Page, but they don't have event so I can't pass parameter. How can I create event in Form ?
    Please hepl me.
    Thanks a lot.

    I think I already answered this question in the main Portal forum.
    Mick.

  • How to create event based process chains

    Hi All,
    I would like to know about event based process chains. In connection to this, could you please answer the following queries,
    1. How to create events
    2. How to link created event to the process chain in the same BI or BW system and as well as from  
        externel BI system.
    3. How link one process chain with other process chain (i.e, After completion of one process chain, it
        should trigger other dependent process chain)
    Thanks and Regards,
    Kotesh.

    1). Doubt regarding first question.
    For example, i would like to create time based event (it should be trigger daily at specified time),
    where we have to maintain scheduling options while creating event.
    When i checked SM62 there i found only two options a). Event name and b). Description.
    Could please send any doucument link if you have.
    Ans : You can use function modules like "BP_EVENT_RAISE" in a program and schedule the program to trigger.
    2). For externel BIW system also same procedure we need to follow or any difference.
    Ans : Externally you need to trigger the same event.
    3). i found dependent process chain also had scheduling options as direct scheduling insted of start using meta chain or API. As you said dependent process chain should be mata chain. it seems dependent process chain may be Meta chain or Direct scheduilg.
    Ans : Its your choice how you want to schedule it.You can either make that dependent chain a metachain or schedule it separately.
    I found at the end of first process chain they kept one process like Raise event and second process chain connected with the help of raise event process event name. If you have any idea about this process could explain a bit more.
    Ans : May be they are raising the event in the main chain and triggering the dependent chain using this event.
    But Metachain is preferred for such thing.Though it does similar thing.
    Hope this helps.

  • How to Create event, background Job & Assing event to backgroud job to trig

    Hi Experts,
    I want to trigger events in Backgroud for data scheduling purpose to automate.
    I can able to create event in SM62. then i want to create background job in SM36 then how to assign to event in Background to trigger.
    can anybody give some suggestion on this.
    Best Regards
    Siri

    Hi,
    There are two cases
    1) to raise an event after the completion of a job
    This can be done by using ABAP coding, trigger the event using a program by the 'RAISE' statement. The job can be scheduled to run in the background daily or weekly(or anything as per the requirements)
    2) to run a job after an event
    in the start condition of the job, give the event name which should trigger that job in the after event field.
    or if you want to run multiple jobs after one event completes, give that event in the start condition of all the jobs.. or model a process chain which will run this jobs..
    I hope this clrifies your doubt...
    Regards
    Shilpa

  • How to create Event Node in smartform

    Hi Experts,
    could you please tell me how to create event node in smartform
    Thanks in Advance,
    Thanks&Regards
    Geetha

    HI,
    plz explain your problem in deeply.
    And as per me you first create page and righ click on it
    Then create window as per your requirement.
    if you want to put condition ot events true or false Righ click on your window
    then goto flow logic -> Altenative
    You can found 2 events in Condition.
    So you can assign this events.If you want to put condition or event on test then goto Text here in General Attributes in bottom side you can find even on page.
    Try it.

  • How to create event receiver when Task is deleted or deleting?

    HI There,
    how can i able to create event receiver for Task deleting and Task deleted in project server 2013
    i am able to create event receiver for project OnCreating but not able to get solution for receiver for Tasks.
    Please help.
    Regards, Kartik Ghodasara Associative Software engineer, Synoverge Tech Pvt. Ltd. Ahmedabad Please vote or mark as answer if it helps...

    It would appear that Tasks are not part of the Project Server Events system.
    http://msdn.microsoft.com/en-us/library/office/microsoft.office.project.server.events_di_pj14mref(v=office.15).aspx
    the closest I can see is Project : Update(ing)ScheduledProject which would imply a change to the schedule
    I know, not much help,
    Thanks, Eric S. Pcubed

  • How to Create Event polling table

    hi,
    1)How to Create Event polling table
    2) wahts RPD stands for.
    3) when we are prefer Dynamic variables.
    thanks.
    raj

    1) http://obiee101.blogspot.com/2008/07/obiee-managing-cache-emptyingpurging.html
    2) Repository Project Design ?
    - More than likely the extension RPD was not used by anything else when Siebel Analytics first started using it, no doubt the 'RP' is repository, so use 'Definition' or 'Design' as you like. Im pretty sure there is nothing in the documentation but i've not checked, maybe you could check and let us know?
    3) Dynamic variables would be something like 'CURRENT_MONTH' where the same query does not need to fire per user (ie SESSION variable) but needs to be periodically refreshed. Another use of you dynamic variable might be 'LAST_ETL_DATE' or somethng similar which might implement with your event polling table. By including the Variable within a Business Model, all cache for the Business Model is purged whenever the Variable's value changes.

  • How to create event

    HI,
    I am trying to trigger a workflow whenever a contract is created against the Requisition.
    I put the trace on(SWELS) and created a contract and got BOR object FREBUS2012 and Event CREATED.
    But when i am using this BOR object and Event in the start event of workflow and creating a contract it is not triggering the workflow.  But workflow is getting trigered whenever i am creating PO.
    When i am tracing PO creation in SWELS i am getting same BOR object and same event.
    Can anyone help me with that how can i create release strategy for Contract or how can i create "CREATE" event for BOR ZBUS2014 which is the copy of BUS2014(Contract) and does not have "CREATE" event.
    Can you explain me also what is release strategy. I have no idea what is that for and how it is helpful in Workflow.
    Any help would be appreciated.
    Thanks in Advance.

    Hi,
    Can anyone help me with that how can i create release strategy for Contract or how can i create "CREATE" event for BOR ZBUS2014 which is the copy of BUS2014(Contract) and does not have "CREATE" event.
    You don't see the created event in ZBUS2014 because you have not delegated it. Delegation means whenever created event of BUS2014 gets triggered your BO ZBUS2014 which has been delegated to BUS2014 will be called. After delegating the BO in workflow you can refer to BUS2014 wherever required instead of giving as ZBUS2014.
    Steps for delegation
    1. Go to SWO1 tcode
    2. Enter the BO name as ZBUS2014. Click settings - delegate.
    3. Click new entries. You will find three fields there.
    Give Object type as BUS2014. Person responsible as your userid. Delegation type as ZBUS2014 and save this entry.
    KR,
    Bharath

  • How to create EVENTS for a View Cluster.

    Hi Tech Gurus,
    I have created a view cluster on 5 tables. I need to do a validation and this can be done by using events. But i am unable to create a EVENT for the View Cluster. Could anyone please tell me how to create events for a View Cluster.
    Thanks in advance for your esteemed replies.
    Regards,
    Raghavendra Goutham P.

    Hello Pasapula
    When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
    Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
    For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
    report zus_0120_u1.
    * Common Data und access routines for user exits in VC maintenance
    include LSVCMCOD.
    include  zus_0120_f1. "FORM routines for VC events
    Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
    Regards
      Uwe

  • How do I send an Event created in Calendar on my iPad2 via e-mail?

    How do I send an Event created in Calendar on my iPad2 via e-mail?

    Hello, light diva. 
    Thank you for visiting Apple Support Communities. 
    Here is an article that walks you through the process of sending calendar invites. 
    Invite others to an event
    http://support.apple.com/kb/PH4706
    Cheers,
    Jason H. 

  • Please very urgent How can i call focus event for dynamic created txtbox

    Hi,
    I create a one texbox using javascript .now i want to call onFocus event that textbox.How is it

    Hi,
    I create a one texbox using javascript .now i want to
    call onFocus event that textbox.How is itJust for you, slowly, so you can understand:
    Javascript was invented by Netscape and is a scri�ting language for browsers.
    Java is a programming language invented by Sun.
    Compare:
    Netscape. Sun.
    Notice a difference?

Maybe you are looking for

  • Installer failure with Acrobat Reader Xl on Macbook Pro with OS 10.8.

    Installer quits with Installation error Here is the error message I receive. I am clueless what this means and why I am having trouble "dyld:DYLD_environment variables being ignored becuase main executable (/System/Library/PrivareFrameworks/Iinstall.

  • How can I remove old Time Machine back-ups for a Mac I no longer have??

    So, i am trying to back-up a brand new MBPro to my Time Machine but it says there's not enough room. Only 13.5 GB avail and need 284 GB. Is there a way to go into Time Machine and delete all the old back-ups from my former MBPro? (I've already migrat

  • Error on adding Delivery / AR Invoice with Freight

    Dear Experts, While punching a delivery or A/R invoice with freight values, i get the following error: Cannot add or update this document, rows are missing [freight code missing for line 0] I have assigned a particular tax code to freight and im usin

  • How to save infopath form in XML file

    How to save InfoPath form in XML file. I want every new record in InfoPath form save in XML file and also retrieve these records from XML like databases

  • Missing company hierarchy in consolidation monitor

    I created a company hierarchy in -Master Data/Consolidation Units/Company- UCWB Then I go to Monitor UCMON and I cannot see the hierarchy. I configurated in 2005 period 012 Version 100 I am trying to see the hierarchy in UCMON and I am usint the same