Hello everybody, I have trouble with shrinking the fields of a form.
I'm editing the standard form "DocuView": I have created a checkbox that allows the notes to be shown in the grid instead of in the reserved part below.
When the checkbox is checked, the fields of the grid grow in height, in order to contain a rather large portion of the note, and when the checkbox is unchecked the fields shrink again.
I also keep track of the last value for the checkbox (checked or unchecked) for every user. 
When the form is closed with the checkbox checked, it reappears just fine (it actually saved the value of the checkbox), but if I uncheck it the grid does not shrinks anymore. 
This only happens when the form is reopened with the checkbox value saved as checked. 
If the form is opened with "no previous value" or with last value "unchecked", it shrinks and grows as needed.
Here is the code for the edit method of the checkbox.
edit boolean showNoteInGrid(boolean _set, boolean _mark)
{
    if (_set)
    {
        showNoteGrid = _mark;
        docuRef_NotesGrid.visible(_mark);
        if (showNoteGrid == false)
        {
            DocuRef_Type.displayHeight(1);
        }
        element.redraw();
    }
    return showNoteGrid;
}
The LastValue is handled as usually using Currentversion and xSysLastValue
Thank you
  
                            
                         
                        
                        
                            
                            *This post is locked for comments
                            
                            
                            
                            
                            
                            
                                I have the same question (0)