Results 1 to 6 of 6

Thread: Saving a field without DEO in a webview fails

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Saving a field without DEO in a webview fails

    Is this fixed i 18.2, or am I missing a property?

    If I set field_changed_value on a field that's not in the webview, the field is blank after a save.
    If I add a webform to the webview with the field and set pbrender to false, the field is saved as expected.

    What do I do?

    Thanks in advance
    Jimmy
    Last edited by JimmyH; 2-Mar-2016 at 10:33 AM.

  2. #2
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    2,383

    Default Re: Saving a field without DEO in a webview fails

    Ouch ! really ?
    Samuel Pizarro

  3. #3
    Join Date
    Feb 2009
    Location
    Round Lake, IL
    Posts
    1,794

    Default Re: Saving a field without DEO in a webview fails

    Are you sending "Request_Save of DDO" directly after the "Set Field_Changed_Value..."?

    Also, in what method/event are you doing this?
    Todd Forsberg
    Idealease, Inc.
    Senior Programmer

    Web and Mobile Development: Think Outside the <DIV>

  4. #4
    Join Date
    Feb 2009
    Location
    The Netherlands
    Posts
    3,983

    Default Re: Saving a field without DEO in a webview fails

    If there is a round trip in between (you do the set field_changed_value in one UI event like an OnClick and do the save in another event) then it will not work if there is no DEO. That behavior hasn't changed in 18.2. The advised method is to add a hidden cWebForm. Note that there also a few cases where it can be solved by moving the set field_changed_value.
    Harm Wibier
    Data Access Europe B.V.
    http://www.dataaccess.eu/

  5. #5
    Join Date
    Feb 2009
    Location
    Perth, Western Australia
    Posts
    1,404

    Default Re: Saving a field without DEO in a webview fails

    Quote Originally Posted by JimmyH View Post
    Is this fixed i 18.2, or am I missing a property?

    If I set field_changed_value on a field that's not in the webview, the field is blank after a save.
    If I add a webform to the webview with the field and set pbrender to false, the field is saved as expected.
    We've been going through a similar learning curve and Harm has explained the reason why. Makes perfect sense once the ‘penny drops’.

    Quote Originally Posted by JimmyH View Post
    What do I do?
    Depending what you are trying to achieve you may be able to do what you want through Field_Defaults or one of request_save's events (backout, creating, update, validate_save, attach_main_file, save_main_file).

    HTH
    Kind regards,

    Clive Richmond
    Triumph Business Systems Pty Ltd
    www.triumph.com.au

  6. #6

    Default Re: Saving a field without DEO in a webview fails

    Hmm. Can't see the logic in this, but thanks for the help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •