Quantcast
Viewing all articles
Browse latest Browse all 72043

Field shows old value after update()

Hi 

In the ProdBOM (datasource) of ProdBOM (form) I have BOMQty filed. 

here is its modified()

public void modified()
{
    super();   
    
    ProdBOM.doUpdate();    
    element.changeIris(ProdBOM, 0); 
    
}

My problem is when I change the value of the field and leave the row. It switches back to the old value. But when I select the field again, it shows the right value. 

I tried to run #taskF5 but it didnt help.

public void modified()
{
    #Task
    FormRun formRun;
    
    super();   
    
    ProdBOM.doUpdate();    
    element.changeIris(ProdBOM, 0);
    
    
    // Get an instance of the calling form.
    formRun = element.args().caller();
    
    // If the caller is a form, refresh that form.
    if(formRun)
    {
        formRun.task(#taskF5);
    }
    
}



Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>