how to redirect to related list insert screen after inserting a parent account

The subject sorta sums up my question.

Basically I want to be able to do any of the following:

1. Make a specific subpanel entry required after inserting a parent account.

OR

2. Redirect to subpanel insert screen after inserting a parent account.

Any of those 2 doable? I'm using the professional edition by the way.

Parents
  • Hi Doddy Amijaya

    I think you can do that, overwrite the record view, so the first time they got in there you call a navigate

    app.router.navigate("#module_name/create", {trigger: true});
    

    You can count the amount of records in the collections for that subpanel, so you execute it when there is no records.

    Hope it helps

  • I just want share my findings.

    when the subpanel is in a collapse state, doing this = this.model.getRelatedCollections('LINKNAME').models.length will return zero.

    so what you have to do you have to call .fetch({relate:true}); first and then check the length. so regardless of the subpanel state it will return the correct value.

Reply
  • I just want share my findings.

    when the subpanel is in a collapse state, doing this = this.model.getRelatedCollections('LINKNAME').models.length will return zero.

    so what you have to do you have to call .fetch({relate:true}); first and then check the length. so regardless of the subpanel state it will return the correct value.

Children
No Data