Editable BO With Parameters - Not Refreshing?

I have an editable BO which takes a parameter. I've added it to a form and created editable controls based on the BO fields. The parameter is set on form load, and the fields of the BO displays correctly.

 

The parameter for the BO is set equal to a Local variable. When changing this variable however, the BO fields on the form does not refresh - is this normal behavour for an editable BO? When I make the BO read only, the Always Refresh option is available to me, and in that case the fields always updates when I change the parameter value. But it also means my fields are non-editable, which is not the desired behaviour...

 

I was under the impression the editable BOs refresh as soon as their parameters change - is this not the case?

 

 

Tagged:

Comments

  • Editable Business Objects do not, and as fars as I am aware, cannot, refresh. Think of data in the folder, these are the same. The only way they get changed during an action is if you set them in code, no other way.

  • Thanks Jerome - I accomplished what I needed to by going to 'traditional' e-route - selected grid row sets variables / controls, confirm button updates DB with new values. It's a pity though that editable BOs can't refresh - cause as mentioned, when you provide the parameter upfront on form load, the editable fields load, you can just set a new value and commit the form and the BO fields update - no need for manual sql update scripts.  Not going to work though in a scenario with an admin form where you might want to select many items after each other from a grid and update the values... 

    Writing a few SQL scipts to update fields is dead easy, I would just think that the BOs would have been even more useful and saved a few minutes here and there, if this was possible... 

  • In our library (see linke below) we have a pretty simple way to use local Business Object variables to manage any Business Object from the grid. There are very simple functions to call for selecting a grid (fills vars), insert, update and delete.I got bored writing all that SQL all over again every time!

     

    All it requires is that the local variables are the same name as the BO variables. I typically manage this by dragging vars from the BO in the data pane, and creating new Local vars for each field created. Works a treat so far.

  • Shot - thanks, I'll definitely check out your library.
    What a great service your free samples are to the Metastorm folk!