No announcement yet.

Field don't update on screen

  • Filter
  • Time
  • Show
Clear All
new posts

  • Field don't update on screen

    Ok guys, other case for Mulder and Scully from X files.

    Scope, a php method called from an ajax onchange. I tried without using php method, with code directly inside the event with same result. It just worked before, stopped working don't know why.
    After some tasks and selects, I do:
    {myfield} = $myvar

    But field is not updated on screen.
    Change code to
    {myfield} = $myvar

    First vardump $myvar = string 56.7688
    Second vardump myfield = string 56.7688
    Field on screen stills 0

    It worked ok one week not... Some idea?

    Professional Scriptcase Services
    Some Customers opinions

  • #2

    I had a similar thing a while back, but as a result of a modal form returning to its caller and the field on screen not updating (although debugging showed the value was changed). In my case it was how I was using the sc_redir which may not apply to you? See this link:

    That said, if that does not apply, I also had an issue (like a few others here) where an app was suddenly misbehaving and clearly corrupted somewhere. Re-genning had no effect so I rebuilt it from scratch (total pain!) but it worked! So that may be your (unfortunate) answer.

    What is interesting is that if you copy an app with a new name and re-gen it - the issue persists. This seems to indicate that it is one of the settings in the app that I changed causes the issue in these cases (or some weird corruption of how SC stores those setting values). But being there are soooooo many settings it is hard to know sometimes what setting may be at fault, and a fresh new app and re-gen is the only way to sometimes move forward - which does seem a bit like using a sledge hammer to crack a nut.

    It would be very cool if SC could implement an audit log for every app somewhere of ALL changes (timestamped), e.g. app and field settings, event code, library changes, method code (php and javascrpt) made so they can be reviewed more easily. I appreciate this may get large pretty quickly, but as long as we have the power to choose the areas to be logged and clear it ourselves occasionally (or set a limit so it round robins perhaps) I'm sure that would prove invaluable!


    • #3
      Are you working on a Form or Grid?

      Once I was working on a Form, and had a text field as read only. At first, I used it as a label, and with ajax I changed the content.

      One time this method didn't work. Then I tried first removing the read only, then modifying the field then re apply the read only.

      I know it desn't make that much sense since the server doesn't act "real time" over the User interface (as in other native languages as C or Java), but it worked. (maybe it forces a refresh of the cache... maybe it's just magic... haha)
      Best Regards

      Daniel Salcedo
      • Software & Hardware developer
      • Photography enthusiast
      • Ultimate Frisbee lover