[CLOSED] Formfield hidden / how to get dirty value from code behind

  1. #1

    [CLOSED] Formfield hidden / how to get dirty value from code behind

    Hello,

    I have a Hidden input in a form that I want to update from time to time. But when I read it from the client (with #{hidden}.getValue()) after the first update I always get the original value because the input is marked as dirty. Is there a way to get the new value or unmark the the input when doing an update on the hidden?

    thank you very much.

    best regards
    Last edited by fabricio.murta; Jan 05, 2019 at 1:42 AM.
  2. #2
    Hello @tMp!

    I'm not really sure I get the right requirements for your question, but here's what comes to me when we're talking about dirty records in Ext.NET:

    - For every dirty record you should have a corresponding commit() call to accept the changes and make the temporary value definitive.

    Nevertheless, you should also have a way to get that "transient" value instead of the old one without committing, but I would rather try to figure that out if you could provide a test case, so I could give you an exact answer on how to deal with that.

    Well, hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello Fabricio,

    Thanks for your input. During the building of my test example I realized that a forgotten update trigger on my database messed with my values.

    So everything is ok now. Sorry for the troubles.

    best regards!
  4. #4
    Hello @tMp!

    Thanks for the feedback, I'm glad you could find the issue nevertheless; writing simplified test cases sometimes can be difficult, but it always helps one way or another; by making clear the issue on Ext.NET, or finding out the actual root cause, like (it seems) it was now.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] Change background color on formfield when it is modified
    By LAEUser in forum 3.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 01, 2015, 4:02 PM
  2. [CLOSED] TagField and Default button in FormField
    By sbg in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 05, 2014, 3:34 AM
  3. [CLOSED] Access hidden field in code behind
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 17, 2013, 3:27 PM
  4. .Hidden in Code behind reset to aspx code
    By bit9bug in forum 1.x Help
    Replies: 0
    Last Post: Apr 19, 2013, 8:11 AM
  5. Couldn't get my Hidden Value at server-side code.
    By jeeshenlee in forum 1.x Help
    Replies: 1
    Last Post: May 21, 2010, 3:47 AM

Posting Permissions