I created a form with a subform, but when I delete the Header of the form, the lines are not deleted. How do I get the lines deleted when a user deletes the header? Also, my subform doesn't seem to have the scroll bars, but when I just run the form the scroll bars are there. Any ideas what happened to it?
#-o
0
Comments
You can look at the salesheader delete trigger for example.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
1: you design your subform, and don't worry about size yet. Just slap the table box with the right fields on there, get rid of the buttons and save the form.
2: you design the header/line form, and you size the subform control to the size that you need. Open the properties page for the subform control and copy the width and the height of the control into notepad.
3: make sure that the glue properties are set to both, and you set it not to have any borders. Save and close your header/line form.
4: open your subform in design mode again. First drag the table box to the top left corner, as high and as far left as you can get it, so there is no space between the tablebox and the left/top edge of the form.
5: Open the property page for the table box and paste the height/width values into it.
6: Open the property page for the form and paste the same values in there.
At this point, your subform, the tablebox on the subform and the subform control are all the same size, and you will have a header/lines form that looks just like the native NAV Sales Order form.
By the way, the easiest way to start a header/line form is to use the form wizard to create a card type form for the header table. All you need to do is make some room between the tab control and the buttons for the subform control.
RIS Plus, LLC
The subform is always 16060 x 3300.