Reset Feature state or its Beans

Hello.
I have 3 features, one for ordering meals, one that shows the user the meals he ordered for the next few days and one that shows the past orders and the overall costs.
Now if I order one new meal, how can I have the other flow "reset", so that the REST service is accessed again and shows the now newly added orders in the "future orders" flow?
A use case would be:
"what have i ordered for tomorrow" checks what he as ordered in flow 1
"no meat , i want meat!" goes to flow 2 and orders a nice steak
"lets see if that was successful" goes back to flow 1
now here is the problem. the state of flow 1 is saved from before, and it still shows the old data. Sure i could just create a method that deletes the old list of meals and then refills it again with another REST call, but it would be nicer to just have the flow restart from anew, then I don't need to code any code that is already there.
Greetings and a nice weekend to everybody.
Pascal

Hey. I ran into the same problem again, however now it seems to be more general.
On page 21 of the participant guide it says "way to refresh a feature" : and then tells me to implement the activate() method in the featureLifeCycleListener class.
Then when I call AdfmfContainerUtilities.resetFeature("feature1"); nothing happens. If you double click the iphones bottom button, something happens, however it navigates back to the custom springboard page. I put together a simple example app to show what i am talking about.
Where to send it? its a 450kb zip file. I don't want to throw it up on rapidshare or anything.
Have a good weekend everybody!
Pascal

Similar Messages

  • Resetting a form to its original values

    Does anybody know of a way to reset a form to its original values? In some cases JSF is displaying the last used form values, even after navigating to a different page and back again, instead of re-reading the values from the relevant backing bean.
    I'd imagine it involves iterating through the tree of UIView objects, but if anybody has some sample code that would much appreciated (and if anyone from the EG is listening, some kind of resetValues() method would be a useful addition to the API).
    -- Keith

    Each page in creator gets an AbstractPageBean which extends FacesBean and that contains the erase() method. This clears the state of the page forcing a reload of the page components. The docs make the following comment.
    "Erase previously submitted values for all input components on this page. This method MUST be called if you have bound input components to database columns, and then arbitrarily navigate the underlying RowSet to a different row in an event handler method."
    I find this comment very strange indeed. First, why hardwire you GUI to database components? What's the upside? It's not convenience because you can automate creation of datamodels from the database then do your binding. That aside, why hardwire the documentation to the database? Why not say "if the underlying state of bound variables changes independent of the UI you must call erase to relaod the change values". Anyhoo, I digress.

  • Reset Picklist Options to its original Values

    Hi,
    Is there a way to reset picklist options to its original values (when the page initially loaded) in CRM 2013/2015?
    Depending on some business logic, I am removing some of the options from the picklist. Since in CRM 2011, after each save, the page was reloading, all the initial values were coming back and based on my logic I could remove some.
    But in 2013/2015, since the page is not reloading any more, after i remove some of the options the first time, they never come back. Is there any way to get them back without explicitly adding them back in JavaScript?
    Basically what I need is a mechanism to reset the picklist to its original state with the options available when the page got loaded.
    Is there a method that would reset the picklist?
    Thanks.
    captainsina

    Thanks for your reply.
    I have tried this already. The problem is I do not want to call save from within my JavaScript. And if I use the following command: 
    Xrm.Page.data.refresh(false);
    It does not reload the page and does not bring optionset original values.
    Thanks,
    Sina
    captainsina

  • Hi,we have had to reset our pc to its factory settings and i can no longer sync my ipod when i purchase a song.

    Hi,
    we have had to reset our pc to its factory setting and i can no longer sync my ipod when i buy a song? can anyone help? cheers.

    Thanks for your reply. Unfortunately this has not worked. I didn't have quicktime to begin with so I don't know if that makes a difference? After following the instructions, I get the "registry keys missing" problem appear again (which I've subsequently fixed again) and then when I connected the ipod I got the following message - 'Device driver software was not successfully installed'.
    I've tried windows update but this doesn't do anything as '...the service is not running'.
    Any suggestions?

  • I was reset my phone n its not working??? so plz help me???

    i was reset my phone n its not working??? so plz help me???

    What is it not doing? You say you did a reset, what is displayed on the screen?

  • I've found that middlemouse.contentLoadURL feature has changed its behavior in FF5.0 as compared with previous versions

    I've found that middlemouse.contentLoadURL feature has changed its behavior in FF5.0 as compared with previous versions: I now can paste&load only full urls that start with "http://" prefix, but previously it was possible to paste&load any url even without protocol prefix. It is very useful when someone has an url for example just "support.mozilla.com", but with FF5.0 one _has_ to paste it to urlbar instead of just middle-clicking into the browser window (long standing and usual *nix behavior). How can I make middlemouse.contentLoadURL load any clipboard content not prefixed with protocol specification?

    Oops, already found a solution: https://support.mozilla.com/ru/questions/824759
    But, how could it be done via something less freaky (ala about:config)?

  • No way to publish a workflow, I get this error: System.InvalidOperationException: Operation failed with error Microsoft.Workflow.Client.ScopeInactiveException: Scope ... is not in an active state. Its current state is 'Unregistering'

    Hi,
    I'm using Project Server 2013 and I'm not able to publish a workflow in SharePoint Designer 2013, I get this error:
    System.InvalidOperationException: Operation failed with error Microsoft.Workflow.Client.ScopeInactiveException: Scope '/SharePoint/default/d7feb9ea-ccb2-4ec3-8f89-2a45b6cf3777' is not in an active state. Its current
    state is 'Unregistering'. HTTP headers received from the server - ActivityId: c47ef567-8c54-4ae0-9a1a-1e4fb51320d8. NodeId: TestServer. Scope: /SharePoint/default/d7feb9ea-ccb2-4ec3-8f89-2a45b6cf3777. Client ActivityId : c6e5979c-20f8-e042-1f9d-2cb2a25d7f9e.
    ---> System.Net.WebExceptio
    The thing is that I transferred the databases from a Prod.Env. to the Test Env. and from that moment on the Test Env. stopped working (only workflows), then I
    was thinking that maybe the workflow is not working in the Test Environment because when I transferred the databases from Prod Env to Test Env I didn’t transfer the databases related to workflow, I only transferred:
    WSS_Content
    PWA_ServiceDB
    But I didn’t transfer:
    SBGatewayDatabase
    SBManagementDB
    SBMessageContainer01
    WFInstanceManagementDB
    WFManagementDB
    WFResourceManagementDB
    I didn’t transfer them because, before, when I transferred DB’s in version 2010, these DB’s were not needed, as the workflows were done using another method.
    So, I tried to create a new workflow in the Test Env. but there is no way, I always get that error.
    I've tried to Register again the workflow, and the result looks ok, but it doesn't solve the problem:
    Register-SPWorkflowService
    –SPSite "http://whatever/PWA"
    –WorkflowHostUri "http://TestServer:12291"
    –AllowOAuthHttp -Force
    Do you know how to solve this issue or have an idea to give me some light?
    Thank you for your help and regards,
    José Espases

    Looks like you haven't defined the WF scope or the site where you are trying to deploy the workflow to isn't included in the scope
    Check this article
    http://fangdahai.blogspot.in/2013/04/on-premise-windows-workflow-server.html
    Thanks | epmXperts | http://epmxperts.wordpress.com

  • Trying to reset my iphone and its connect to my internet but is saying "could not activate iphone"

    trying to reset my iphone and its connect to my internet but is saying "could not activate iphone"

    What model is your phone and what OS are you trying to install.  iOS 7 can only be installed on certain phones.
    Maybe someone knows the specifics?

  • The reset feature is not working

    I have tried resetting a 4th generation ipod touch but the reset feature is not working.  Is there an alternate?

    On the iPod Touch itself there is a factory reset option under;
    Settings -> General -> Reset (scroll all the way to the bottom) -> Erase All Content and Settings.
    OR
    Put your device in DFU mode , and iTunes will do a restore. Plug the device into your computer then; Hold the lock and home button for 10 seconds, then release the lock button but remain holding home for another 10 seconds until iTunes opens and asks you to restore.
    hope that helps,
    thanks!

  • HT4623 My iphone 3gs has downloaded to the ios6 and it keep shutting down i need to reset it back to its former 3gs setting how do i do this

    My iphone 3gs has downloaded to the ios6 and it keep shutting down i need to reset it back to its former 3gs setting how do i do this

    USB connection to iTunes. Back up your 3GS with your last 3GS back up. DON'T use an iPhone 4 back up or higher. It will cause exactly this.

  • HT201303 Do any of you apple geniuses out there know how to retrieve the answers to your security questions or at least reset them?  Apparently its to much for the support team. Can't get an answer out of them...

    Do any of you apple geniuses out there know how to retrieve the answers to your security questions or at least reset them?  Apparently its to much for the support team. Can't get an answer out of them...

    Reset Security Questions
    Frequently asked questions about Apple ID
    Manage My Apple ID
    Or you can email iTunes Support at iTunes Store Support.
    If all else fails:
    Go to: Apple Express Lane;
    Under Product Categories choose iTunes;
    Then choose iTunes Store;
    Then choose Account Management;
    Press Continue;
    Now choose iTunes Store Security and answer the bullet questions, then click Continue;
    Sign in with your Apple ID and press Continue;
    Under Contact Options fill out the information and advise iTunes that you would like your security/challenge questions reset;
    Click Send.
    You should get a response within 24 hours by email.
    Presently there appears to be problems on Apple's end, so it may be quite some time before they respond.
    Another user posted the following:
    I got some help from an apple assistant on the phone.
    It is kind of round about way to get in
    Here is what he said to do and it is working for me...
    1) on the device that is asking you for the security questions go to "settings", > "store" > tap the Apple ID and choose view"Apple ID" and sign in.
    2) Tap on payment information and add a credit/debit card of your preference then select "done", in the upper right corner
    3) sign out and back into iTunes on the device by going to "settings"> "store" > tap the Apple ID and choose "sign-out" > Tap "sign -in" > "use existing Apple ID" and you should be asked to verify your security code for the credit /debit card and NOT the security questions.
    4) At this time you can remove the card by going back in to edit the payment info and selecting "none" as the card type then saving the changes by selecting "done". You should now be able to use your iTunes store credit without answering the security questions.
    It's working for me ...I just have to put in my 3 digit security pin from the credit card I am using.
    Good Luck friends!

  • HT1695 how do i reset my ipod to its original settings

    how do i reset my ipod to its original settings

    Go here: Settings > General > Reset
    Troubleshooting 101
    Some topics covered
    -Basic troubleshooting steps
    -Hard reset instructions
    -Manual restore instructions
    -Hardware troubleshooting
    -Preventive Maintenance
    -Anti-theft & recovery tips
    -Battery-saving tips
    -Repair options
    -Contacting Apple
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • TCP Reset Feature

    Hi!
    I would like to realize the reset of a single TCP connection (Ip adress + port number) using a
    CISCO IDS 4235,Version 4.1(5)S194, with a
    PIX 520, IOS Version 6.3(3) and a
    4500 router, IOS Version 12.0(8b).
    Is it really possible by this hardware?
    I think I need at least ROUTER IOS version 12.2(15), but I cannot do this upgrade on my device. Is it true?
    Is the PIX able of resetting the single connection? Maybe IOS Ver 7.00 needed?
    It's possible to upgrade PIX 520 ?
    Thank you in advance!

    TCP reset feature on the IDS by default will send out a TCP reset through the sniffing interface.
    However, it sounds like you are talking about shun connection rather than tcp reset. A shun will effectively block the connection by applying a filter (rather than a packet to terminate the connection), it does this by applying this filter on your router or PIX.
    On the PIX this is achieved through a filter function called a shun command. This is actually available on the version of PIX you are running (6.3.x)
    On the Router an ACL is applied on an interface.
    I hope that helps.
    -jonathan

  • HT201210 i upgraded my iphone4 to ios 6.0.1 but my phone reset it self and its in recovery mode & every time i try to restore my phone its saying error 2001 or 2006 & my lock button is broken so i cant put my phone in dfu mode what im i suppose to do help

    i upgraded my iphone4 to ios 6.0.1 but my phone reset it self and its in recovery mode & every time i try to restore my phone its saying error 2001 or 2006 & my lock button is broken so i cant put my phone in dfu mode what im i suppose to do help me pleas

    Hi, to get your iPhone  4 back to normal, here're two ways for you.
    1.  Use Dr.Fone for iOS. The free trial version can fix iPhone screen of death. The free trial version can do that, you don't have to pay.
    Just download and install this software on your computer and connect your iPhone 4 to computer with a USB cable. When it detects your iPhone 4 is abnormal, click Restart the device to get your iPhone 4 to be normal.
    2. Use iTunes to fix it.
    Step 1. Make sure that the latest iTunes is installed on your computer.
    Step 2. Plug into a USB cable to connect your iPhone4 to computer.
    Step 3. Press and hold the Home button and the Sleep/Wake button at the same time for about 10s.
    Step 4. 10 seconds later, release the sleep/wake button. But continue to hold the home button until a message comes out, saying "iTunes has discovered an iPhone 4 in recovery mode, you must restore this iPhone before it can be used with iTunes".
    Step 5. Click your iPhone 4 in the left sidebar to show the device control panel on the right. Then, click Summary.
    Step 6. Go to Backups section and click Restore Backup.... In the drop-down list, choose a backup file and restore to your iPhone 4

  • I could not update my apps on my phone this morning,it told me my account was locked for security reasons ??to vist iforgot and reset my account and its looking for all my details again ,i have credit in my account,can you help

    i could not update my apps on my phone this morning,it told me my account was locked for security reasons ??to vist iforgot and reset my account and its looking for all my details again ,i have credit in my account,can you help

    Apple ID- "This Apple ID has been disabled for security reasons" alert appears

Maybe you are looking for