Issues Creating an Inline Date Picker
Hi,
I'm on EBS12.2.5.
I've created a custom OAF page with date fields, StartDate & EndDate. I need to add a datepicker control on the right side of the page.
I've added below code (form OAF developers guide) in my processRequest method
OAInlineDatePickerBean inlineDatePicker = (OAInlineDatePickerBean) createWebBean(pageContext, INLINE_DATEPICKER_BEAN, null, "DatePicker");inlineDatePicker.setID("DatePicker"); OAMessageDateFieldBean dateField = (OAMessageDateFieldBean)webBean.findIndexedChildRecursive("StartDate");dateField.setPickerId("DatePicker"); // Set the same inlineDatePicker to another date field.dateField = (OAMessageDateFieldBean)webBean.findIndexedChildRecursive("EndDate");dateField.setPickerId("DatePicker"); webBean.addIndexedChild(inlineDatePicker);
when I run the page, its throwing NullPointerException at line 5.
please can someone help with this error? Also, how can I place this control on a specific location on the page? eg. on the right side of the page