Hello,
I am following this https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60db527d-7be4-2a10-0283-e915cfb179a8
to highlight the input fields for validation errors.
1. The PDF uses a deprecated method:
messageMgr.reportContextAttributeMessage(
wdContext.currentContextElement(),
attributeInfo,
IMessageSimpleErrors.MISSING_INPUT,
new Object[] { fieldLabel },
true);
Should I be using this method?
2. I don't understand one statement in the initialize method:
wdContext.getNodeInfo().getAttribute(IPrivateForm.IContextElement.E_MAIL_ADDRESS)
.getModifiableSimpleType().setFieldLabel("E-Mail Address");
I have 4 input fields in my form. Can anybody give me clear steps on how should I go about performing mandatory check.