Trigger an event in the parent view, when popping a child view (Mobile)

So from one view I'm pushing another view with some data:
<s:Button label="Edit System" click="navigator.pushView(EditSystem, systems.selectedItem)"/>
The problem I have is that in this other view I'm updating a view things in my sqlite database, so when I pop the 'EditSystem' view and return to the original, I want to run a function to requery the the sql so I can update a view things in the original view. But from what I can fugure Eventlisteners dont work across views? How do I trigger an event in the original view when I return from a child view via pop? 

You should find this post useful: http://flexponential.com/2010/12/05/saving-scroll-position-between-views-in-a-mobile-flex- application/
It demonstrates one way of saving and restoring data when pushing and popping a view.

Similar Messages

  • Error on load: System.IO.IOException: The process cannot access the file : error in event viewer when users want to view documents from this third party deployed scan solution

    Error on load: System.IO.IOException: The process cannot access the file
    '\\server1\SCANSHARED\.pdf' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
       at abc.Scan.Layouts.ICC.Scan.View.Page_Load(Object sender, EventArgs e)
    I faced this  error in event viewer  when users want to view documents from this third party deployed scan solution
    here I have two WFS servers  and they configured with load balancing in F5 .
    when I enable both servers in F5 I receive this error messages in 2nd server,
    when users want to view documents
    adil

    Do you have antiVirus installed on the sharepoint servers?
    These folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint. If these folders are not excluded, you may see unexpected behavior. For example, you may receive "access denied" error messages when files
    are uploaded.
    Please follow this KB and exclude the folders from Scanning.
    http://support.microsoft.com/kb/952167
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to trigger an event in the program

    Hi,
    I have a program. The purpose of the program is to retrieve the data matching the selection criteria and downlod the same to a file.
    In the selection screen, I have a parameter called 'EVENT'. Here, user enters some event name. Generally, they enter the 'Background job processing events'.
    So, my requirement is... once the files are successfully downloaded, the program should trigger the 'EVENT' specified in the selection screen at run time.
    Can someone help me in this regard. How to trigger an EVENT in the program. Is there any Function Module or Method available in SAP which triggers the EVENT at runtime.
    And is there any table available in SAP which stores all the events available in SAP. Because, whenever the user enters an EVENT in the selection screen, we should check whether the event is valid or not. So, if there is any table available which has all the events then, it will be easy I guess. or is there any other way to validate the EVENT name.
    Please help me. Thanks in advance,
    Best Regards,
    Paddu.

    Hello Paddu,
    have a look at tables
    - btcsev, btcsed (system events)
    - btcuev, btcued (user events)
    and use function BP_EVENT_RAISE.
    kind regards
    Walter Habich

  • Apple reminders do not disappear from "all" and "missed" view when dismissed from "today" view of notification center by marking the circle by the reminder. why is this?

    Firstly, I really like the new reminders in iOS 7. However, I noticed that apple reminders do not disappear from "all" and "missed" view when dismissed from "today" view of notification center by marking the circle by the reminder. it requires me to take an extra step and click on "all" and then click the "x" to make it completely disappear and clear from notification center.
    why is this? am i doing something from?

    unfortunately, that does not address my question. your link describes how to clear the missed section of center.  I know how to clear the missed section of notification center, as I said in the original question. I will re-peat my question to clarify. it is:
    apple reminders do not disappear from "all" and "missed" view when dismissed from "today" view of notification center by marking the circle by the reminder. it requires me to take an extra step and click on "all" and then click the "x" to make it completely disappear and clear from notification center. 
    why is this? am i doing something wrong?
    the behavior I would expect would be that when i click the circle on the "today" view. it would clear it out from the missed and all view so i would not have to clear in 2 areas.
    I Hope this clarifies...

  • How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query

    How to retrieve Task Lists from All Subsites to the Parent Site and display in  Grid view using CAML Query + object model

    do u just want task list or items under task list for all subsites
    for items use spsitedataquery ref
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
    for tasklist only u can a simply use a for loop to find in all subsite
    Manish Sati

  • Problem refreshing the parent page when closing a modal window.

    I have page that opens a modal window from a report link column. In the modal window I want to be able to make my changes and press an Apply button so that the modal window is closed and the parent page is refreshed to show the modified details in the report. In Firefox all works well but in IE I get the error message ‘Window.opener.location is null or not an object’ .
    When I comment out window.opener.location.href=window.opener.location.href; the modal window closes without error but I want to refresh the parent page with changes made in the modal window.
    I’m afraid my java script is very limited (the code is based on other peoples examples.)
    Parent Page I call this function from a report link column to display a modal window. Sets the hidden SAVE_STATUS field in destination page to ‘N’
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {
    window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px"); }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    Destination page (modal window)
    HTML Header.
    The function closeWindow should refresh the parent page and close the modal window.
    <base target=_self>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function closeWindow() {
    if ( document.getElementById("SAVE_STATUS").value == 'Y' )
    window.opener.location.href=window.opener.location.href;
    window.close();
    //-->
    </script>
    Html Body attribute.
    onLoad="closeWindow();"
    P_UPDATE_DATE process called from the Apply changes button. Sets the SAVE_STATUS flag to ‘Y’ for the onload in the html body.
    UPDATE event
    SET event_date = :P5001_EVENT_DATE
    WHERE contract_reference = :P330_EVD_CONTRACT
    AND event_number = :P330_EVD_EVENT_NUMBER;
    :SAVE_STATUS := 'Y';
    Thanks in advance, I will have a look when back in the office on Monday.
    Cheers Pete

    Hi Chris,
    Thanks for your help. I think I've sorted it using your first suggestion doing a refresh in the parent page, I just didn't know how at the time.
    What I've got in the parent window after the call to the modal window is the reload window.location.reload(); and in the modal window I close it using window.close(); The down side being the refresh happens if I use my 'Apply changes' or 'Cancel' button but I can live with that for now.
    It seems to work in IE and firefox but as I say most of what I'm doing is cobbling together using other peoples code without really understanding exactly what it does. Anyway thanks for your help, sound like I should look into JQUERY when I have time.
    Thanks Pete
    Parent window call to modal
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {  window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px");                                          }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    window.location.reload();
    Modal Window Close.
    window.close();

  • Trigger a event and send an email  when a new entry is created in a table

    Hi All,
                I have scenario here where i want to trigger a event and send an email too when a new entry is created in a Ztable or an existing entry is changed.
    Please let me know how can i achieve this.
    Please excuse me if you find it basic as I am not very old in Workflows.
    Thanks in Advance,
    Saket.

    Hi..
    For your Requirement workflow not Required.
    Write a  Program to send Mail. This Program has to execute when ever the Save Button is Click, then the mail will be sent.
    Check the program in this [link|https://wiki.sdn.sap.com/wiki/x/nYKdAw ], which send the mail.
    Regards,
    Surjith

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
    1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
    2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
    I have created two ADF view object based on two function return
    Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
    Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
    I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
    Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
    I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
    I will appreciate your help.
    Thanks

    I have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
    I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
    I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
    Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
    Thanks for quick response.
    com.ContractualSalaryByYearlyView xml
    <ViewObject
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="empId"
    Kind="where"
    Type="java.lang.Integer">
    <TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
    </Variable>
    ContractualSalYearlyByYearViewLink.xml file
    <ViewLinkDefEnd
    Name="ContractualSalaryByYearlyView"
    Cardinality="1"
    Owner="com.ContractualSalaryByYearlyView"
    Source="true">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryByYearlyView.EmpId"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.StDate"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="ContractualSalaryForYearView"
    Cardinality="-1"
    Owner="com.ContractualSalaryForYearView">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryForYearView.EmpId"/>
    <Item
    Value="com.ContractualSalaryForYearView.StDate"/>
    <Item
    Value="com.ContractualSalaryForYearView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>

  • Trigger an Event in SAP R/3 when meeting request is accepted in MS-Outlook

    Dear Experts,
    I am able to send the meeting request to MS-Outlook using the following thread.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b035a861-5f61-2c10-d086-c4dd779dd253]
    When the user opens the .ICS file and accepts the meeting request in MS-Outlook, the MS-Outlook calender gets booked.
    Now the requirement is, Once User accepts the meeting request an event should be trigerred in SAP R/3 so as to track the User response. Is there any BADI/API s available which can be used to achieve this? Which business object can be used ?
    Regards,
    Vaishali.

    Hi,
    Triggering the event is the easy part. That will be just pure ABAP development.
    Your problem is that how can you call your function/method (or whatever) from the Outlook (or from Exchange server). So, you should really try to investigate the possible modification or enhancement possibilities of the Echange server - and this is not really an SDN issue at all (of course if you are lucky, someone could notice this thread and help). If you find a way to add some kind of "modification" to the Exchange server (for example you could find a way to call a web service always when the meeting request is accepted), then you can easily build the necessary web service around your ABAP function.
    Another approach could be that you try to utilize the possible Exchange server web service API. For example it seems that there is some kind of availibility service available, which you could use to find out the user's availibility (I am not sure though that is it possible to see whether the user has accepted the meeting request or not). Anyhow, if you find out a way for this, you could call the web service from your ABAP system to find out the corresponding information from Exchange server.
    Good luck.
    Regards,
    Karri

  • How to split events by the original date when photos were actually taken??

    I just imported a lot of old photos (10,000 more) into iPhoto, but to my big surprise, all my 10,000 photos were sorted into one event, according to the date of importing. but what I want is automatically split them by the actually time when those photos were taken, is there an easy way of doing this? thanks for your help.

    'autosplitting event' from the menu...

  • My Iphoto library has recently updtaed itself with a same picture icon for every event. I backed up all my photos and deleted all the events in the library. When I imported  a fresh batch of pictures the same picture appeared as the key photo. Help

    Hi,
    My i photo events in the library have updated themselves with a key photo. I really do not want this picture as a key photo on every event.
    I backed up and deleted my entire library. After importing a fresh event, the key photo still remained the same. How can I stop that. 

    Sorry to ask but since we onlhy have words to comunicate with here using them correctly is critical
    iPhoto is an application and lives in your Applications folder
    Your photos are in a database which by default is names iPhoto library and is in your pictures folder
    I still have Iphoto on my computer.
    Is this the application of the intact non-functioning liPhoto library?
    I have copied all the pictures on a USB so I wont loose any data.
    exactly how did you do this?
    Then I deleted all the pictures.
    and exactly how did you do this?
    Have you done this?
    If so what were the results?
    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your thumbnails (you may need to do several times)
    LN

  • How to update a list in parent view with data from child view/window ?

    I have a view named AccountListView that displays some buttons and a list of accounts.Its viewmodel is called AccountListViewModel and has a collection : ObservableCollection<AccountViewModel>. What I'd like to acomplish: whenever I press the Add/Edit
    Button from the AccountListView to open a new window/usercontrol, i.e. AccountView and bind it to an instance of AccountViewModel that will have some fields to fill in and a Submit and Cancel buttons. How can I update the ObservableCollection<AccountViewModel>
    from  inside the child view, so when I click on the Submit button from AccountViewModel it will return an AccountViewModel object with the data I filled in and add it to the observablecollection. Would notifications from prism be the right way ? Should
    I include code from the AccountListViewModel and AccountViewModel ?

    The way to communicate between view models in Prism is to use the EventAggregator. You raise an event from view model A and subscribe and handle this event in view model B. I have written a blog post about it which should be helpful here:
    http://blog.magnusmontin.net/2014/02/28/using-the-event-aggregator-pattern-to-communicate-between-view-models/.
    In your case you could define an event that carries an AccountViewModel object and pass this one from view model A to view model B:
    public class AccountViewModelEvent : CompositePresentationEvent<AccountViewModel>
    Please refer to the blog post for more information and a complete code example.
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • IN BOM the Weight and Volume Update from the Parent item when Change Itemca

    Hi  Guru
    we are facing problem when we create SO for Configuration material, By Default all the weight and Volume Flow Proparlly form Material Master for all Parent and Child item  but when we change the item Categries for Child item the weight is copied from Parent Material
    Please give me solution for the above
    Prasanna

    Hi Prasanna,
    Check with weight/volume update in VOV7 for the item category you are using/changing manually.
    Regards
    Jeewnath

  • My power cord will not charge my battery or even maintain the Macbook pro when I am in my mobile office!

    Any one else having issues with the 60w MagSafe Power Cord not working when connected to an inverter or Generator?  My Inverter is a 2000w modified sine wave 12vDC-110AC unit.  The generator is a 6 KW diesel powered unit.  Both of these units are functioning and are in use powering other devices so I am at a loss as to what the problem might be!  I have been using the inverter for the last year to power a PC Laptop, and a small refrigerator, the last of which is still in use, but the PC died.  The generator powers a microwave without issue, thus I feel certain there is no problem with either power source.

    USE FOLDING DUAL PRONGED ADAPTER FOR BEST RESULTS!!!  NOT THE GROUNDED EXTENSION...
    It seems as though the solution in my case was to eliminate the 3 pronged (Grounded) Charge cord extension from the MagSafe Power Cord, use the 2 pronged folding plug instead and now I have the ability to charge the unit from either my (MSW) Inverter or my Generator without any failure!  Too bad I bought 2 more inverters and wasted a trip to an Apple Store as well as an hour of Phone Tech Support before figuring it out on my own!  Good Luck!

  • Defaulting the student status when adding a child.

    Hello All,
    How can we default the Student indicator in infotype 21 when we are trying to add a child under age 19 to always on.
    When I enter date of birth and hit enter it should default the Student indicator field to with a check mark when the child is under age 19.
    Please advice. Its urgent!
    Thanks,
    Chakri.

    Hi,
    You have to write an User Exit for this. Check this User Exit enhancement  PBAS0001. Hope this will solve your problem.
    Thanks,
    Sarika.

Maybe you are looking for

  • Apple tv rca connection

    I have an old TV with RCA plugs, can I still use apple tv?

  • RemoteApp on server 2008 works on mobile not external at home

    We have Windows Server 2008 R2 with Terminal Services installed and remoteapp, internally everyting works greate, when i am externally and i'm connecting with my iphone with Microsoft RDClient to our remoteapp services i will see all the remote apps

  • Adobe Photoshop 6.0 for mac install

    I purchased Adobe Photoshop 6.0 for mac off ebay, but when I try to install it I get a message that says the old style install is not supported. I am using an iMac Intel with Lion installed. Any suggestions?

  • Download link Oracle SOA Composite Editor doesn't work

    The following link http://download.oracle.com/otn/java/jdeveloper/11.1.1.3.0/extensions/soa-jdev-extension.zip returns 404 page not found. The update center in Jdeveloper lists the Oracle SOA Composite Editor 11.1.1.3.0.25.27. The download however fa

  • Soft synths being distributed amongst cores

    Hi all, I'm thinking of upgrading my 2.0 dual core (5 years old) with a new MP. I mainly use the machine for Logic 8. Not heavy recording, but a lot of powerful soft synths.. One of them being "Omnisphere" and the BFD 2 Drum program. Right now I only