I think my zero knowledge of Angular skills is hurting :(
Once the modal opens (create, refresh window). When I click on create I want to open the create.html in the parent frame. Not sure that makes sense. Screenshot below.
I think this is some custom section that you are building and you have used a custom create dialog.
If you have a look at my source code from my umbukfest talk you see 2 different approaches for creating new items in a custom section.
First approach - default create action
If you look in this treecontroller you see I just use the default create action for my nodes. This will call your edit view with the a querystring so you know it's in create mode.
You can look at my angular controller to figure out how you can handle this.
Second approach - custom create action
This uses a custom create dialog and that seems to be the route you have chosen.
You can look in this treecontroller to see how I create the custom create action.
And then in this view and angular controller you can see how I handle things after the user clicks the save button.
If you have any more questions feel free to answer them. You can run my code by the way on your local machine. Instructions are on the code repository.
Which nows has the desired effect. I have no idea what this does and how CreateChildEntity, ActionNew wires up to the create.html file?? Just because it's called create?
Opening Angular View in Parent 'Frame'
I think my zero knowledge of Angular skills is hurting :(
Once the modal opens (create, refresh window). When I click on create I want to open the create.html in the parent frame. Not sure that makes sense. Screenshot below.
Hi,
I think this is some custom section that you are building and you have used a custom create dialog.
If you have a look at my source code from my umbukfest talk you see 2 different approaches for creating new items in a custom section.
First approach - default create action
If you look in this treecontroller you see I just use the default create action for my nodes. This will call your edit view with the a querystring so you know it's in create mode.
You can look at my angular controller to figure out how you can handle this.
Second approach - custom create action
This uses a custom create dialog and that seems to be the route you have chosen.
You can look in this treecontroller to see how I create the custom create action.
And then in this view and angular controller you can see how I handle things after the user clicks the save button.
If you have any more questions feel free to answer them. You can run my code by the way on your local machine. Instructions are on the code repository.
Dave
Thanks Dave.
I changed
menu.Items.Add( new MenuItem("create", ui.Text("actions", ActionNew.Instance.Alias)) { Icon = "add" });
to
menu.Items.Add<CreateChildEntity, ActionNew>(ui.Text("actions", ActionNew.Instance.Alias));
Which nows has the desired effect. I have no idea what this does and how CreateChildEntity, ActionNew wires up to the create.html file?? Just because it's called create?
Anyhow thanks heaps :)
is working on a reply...