Forum Replies Created

Page 7 of 21
  • Andreas Pfeiffer

    Administrator
    September 9, 2024 at 7:53 am in reply to: Subform Set Panel

    and this one does not run into $destruct once you are assigning another form to the $classname of the subform field?

  • Andreas Pfeiffer

    Administrator
    September 9, 2024 at 7:48 am in reply to: Subform Set Panel

    Martin,

    I think we are confusing ourselves right now. Let me point out. The subformset does not have to do anything with using a subform control.

    I am assuming that one of your subforms that you are using within the subform field is then itself using a subformset panel. Is this correct?

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    September 9, 2024 at 7:43 am in reply to: Subform Set Panel

    Do you open the same or another form?

  • Andreas Pfeiffer

    Administrator
    September 9, 2024 at 7:37 am in reply to: Subform Set Panel

    $multipleclasses is set to kFalse and the $destruct is not executed of the formerly used subform when you assign another $classname?

  • Andreas Pfeiffer

    Administrator
    September 9, 2024 at 7:15 am in reply to: Subform Set Panel

    So if I understand you right you are using a subform component to display different subforms there. And within that form you are using a subformset. But for some reason it does not run into the $destruct method of the subform?

    Please check if $multipleclasses of the subform field is set to kTrue. Make it kFalse and you should then then see the $desctruct of the subform to be executed when you assign a new $classname.

    If $multipleclasses is kTrue that would mean that you can maintain several instances at the very same time. So any instance that has been constructed will stay alive until you either close it manually or close the main form that contains the subform component. That means in return that when re-assigning a classname that has been used before will also not execute the $construct of that subform either.

    I figured it is easier in most cases to leave this property to kFalse.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    September 9, 2024 at 6:58 am in reply to: Subform Set Panel

    Hi Martin,

    Not sure what you are trying to do. Are you saying that you are executing the subformset_remove within the $construct of a form? If so, why?

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    September 6, 2024 at 1:36 pm in reply to: Subform Set Panel

    Hi Martin,

    subformset_add() does not open a subform. It adds a subform set. subformset_formadd() opens a subform. That said you would need to use subformset_formremove() to remove the subform from the subformset.

    However if you prefer using those popup forms for modeless forms I would recommend subformdialogshow instead. In that case you do not need to deal with a subformset but the form is modal only. Closing such a subform can then be done using subformdialogclose.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 27, 2024 at 7:02 am in reply to: Close/Exit/Kill Omnis

    Hi Martin,

    I wonder why you would want to close the Omnis server? That means someone would need to re-start it again when the next user wants to connect to your application.

    If you just want to log out from the application and your first form is the logon form why not simply refreshing the browser using a button? You could do the following in a $event method of a button: Make the $event method client executed (context menu) and use this code:

    On evClick

    JavaScript:location.reload();

    That would refresh the browser and hence it would go into the first form, which is hopefully the logon form.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 15, 2024 at 10:06 am in reply to: Error: Exception occurred/Cannot read properties

    Hi Allan,

    I would try to run this in Omnis Studio 11.1. As far as I know the error handling has improved there. I could imagine that one of the objects might complain that there is no data to be shown.

    I hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 9, 2024 at 12:24 pm in reply to: Remove Tab From Within Tab Pane

    You are welcome!

  • Andreas Pfeiffer

    Administrator
    September 9, 2024 at 8:24 am in reply to: Subform Set Panel

    Martin,

    You cannot assign the same form into $classname as before. It must be a different in order to change the form. Therefore it will not destruct and not construct.

  • Andreas Pfeiffer

    Administrator
    September 6, 2024 at 5:01 pm in reply to: Subform Set Panel

    Awesome! This is great!

    Have a nice evening then.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    September 6, 2024 at 4:44 pm in reply to: Subform Set Panel

    subformset_remove

    This is documented here: https://www.omnis.net/developers/resources/onlinedocs/WebDev/02jsremoteforms.html#subform-sets-1

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    September 6, 2024 at 4:38 pm in reply to: Subform Set Panel

    Martin,

    This is because closing the form does not close the subformset. You also would need to close the subformset.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    September 6, 2024 at 2:46 pm in reply to: Subform Set Panel

    Martin,

    sure subformset_formremove does not remove the subformset. it is not supposed to remove the subformset. Only the subform within the set.

    If you use this command you would need to specify the subformset name and the form id as a row parameter so that subformset_formremove understands which form in within subformset to be removed.

    Best,

    Andreas

Page 7 of 21