EBS Customizations (MOSC)

MOSC Banner

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center