RefreshSharePointListItems before submit instead of after finishloading - InfoPath Dev
in

InfoPath Dev

Having trouble finding a blog or post that answers your question? Check out our Custom Search Page

RefreshSharePointListItems before submit instead of after finishloading

Last post 07-13-2012 08:12 AM by ErnestoM. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 07-11-2012 02:55 AM

    RefreshSharePointListItems before submit instead of after finishloading

    Hello Forum,

    We are testing the RefreshSharePointListItems and SubmitToSharepointList.
    It works great but I have one issue:

    It seems the deletion of sharepoint list items only works when we put the RefreshSharePointListItems after the finishloading (when the form opens)
    And not before the SubmitToSharepointList.
    (We tested it also with a button click before doing the SubmitToSharepointList)

    So it fails in the following scenario:

    1. We open the form
    2. We add/delete/modify items in the form
    3. We do a SubmitToSharepointList (works)
    4. The form is still open
    5. We delete an item in the form
    6. We do a SubmitToSharepointList (item is not deleted in the sharepoint list)
      And we get an error: Failed to generate new Batch from mapping

     Please advise.

    Kind regards,
    Mario

  • 07-11-2012 06:49 AM In reply to

    Re: RefreshSharePointListItems before submit instead of after finishloading

    Hi Mario,

    I created a test scenario on one of our servers using your steps. After step 6, I can confirm that the item is not deleted from the list, but I do not get an error after calling SubmitToSharePointList.

    Maybe there's more to the scenario and my test doesn't match your scenario. Are there any other actions in step 6, when the command SubmitToSharePointList is called? If you'd like, you can attach the form via the Options tab when replying.

    Thanks in advance for the additional info.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 07-11-2012 06:58 AM In reply to

    Re: RefreshSharePointListItems before submit instead of after finishloading

    Hello Ernesto,

     I have attached the form.

    Kind regards,
    Mario

  • 07-11-2012 01:20 PM In reply to

    Re: RefreshSharePointListItems before submit instead of after finishloading

    Hi Mario,

    I'm attaching your form, reinjected with a newer version of qRules. We'll be releasing a new version in the next few days to address this issue. Thanks for finding it!

    To address the more general question: the key is that Refresh needs to be executed at some point in the form's session. The Refresh command can be executed immediately after submit, or on finishedLoading (as you are doing now). As long as the Refresh command executes at some point, then the delete in your form should be carried out on the list as well the next time you submit.

    Can you try with this form and let us know if the issue continues? If the resolution is confirmed, let us know and we can send you a new build of qRules.

     Thanks.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 07-11-2012 01:50 PM In reply to

    Re: RefreshSharePointListItems before submit instead of after finishloading

    Hello Ernesto,

    I have tested your form and can confirm that the issue is solved. Thanks.

    But it introduced a small side effect.
    We use SaveToPath for testing reason. But we receive the error message: SaveToPath is not available for Browser forms.

    This is strange because the Form type is: Infopath Filler Form.
    And also we did not have this issue in our earlier release.

    Please advise.

    Kind regards,
    Mario

  • 07-11-2012 02:02 PM In reply to

    Re: RefreshSharePointListItems before submit instead of after finishloading

    Sorry! I might have injected with Browser, so I'm attaching one injected with Client.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 07-11-2012 02:12 PM In reply to

    Re: RefreshSharePointListItems before submit instead of after finishloading

    Hello Ernesto,

    That's OK. Thanks.
    I am just glad there is a logical explanation.

    Keep me posted when the new release is available please. OK?
    And thanks for the quick support.

    Kind regards,
    Mario

  • 07-11-2012 02:15 PM In reply to

    Re: RefreshSharePointListItems before submit instead of after finishloading

     The new build should get posted to the website/webstore overnight, but I can send you a direct link tomorrow.

    Thanks

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 07-13-2012 08:12 AM In reply to

    Re: RefreshSharePointListItems before submit instead of after finishloading

    Hi Mario, just to let you know that the trial has been updated on our website.

    Thanks

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


Page 1 of 1 (9 items)
Copyright © 2003-2012 Qdabra Software. All rights reserved.
View our Terms of Use.