Please, I need help, creating a dynamic form with 3 (title header, body and footer) parts on it (sizes: 50, 18, 90). I tried to create the parts in so many different orders and lowerbounds. Right now I think I managed to define the parts at least. But I do not succeed in adding fields to the body. They either show up in the title or the footer or both. But never in the body. This is what I did:
var body = form.newPart(SM_PARTS.BODY, 50);
body.height = 18;
var footer = form.newFooterPart(68);
footer.height = 90;
var header = form.newTitleHeaderPart(0);
header.height = 50;
var field1 = form.newField('col1', SM_DISPLAYTYPE.TEXT_FIELD, 0, 50, 100, 18); // should be in the body part
Q1: Is the order (body, footer, header) really important?
Q2: How do I define a field so it is positioned in the body (top left corner)?
Thank you. Changing y did not help as long as the parts and there heights were incorrect. I changed y and the field was either in the footer or the header or even both .