PunnamchandarKalla

Xoging parameterized single or multi valued lookup attributes. (Inserting into ODF_MULTI_VALUED_LOOKUPS ?? No.)

Blog Post created by PunnamchandarKalla on Apr 19, 2017

Dear All,

 

We recently came across a requirement where we need to copy previous object instance attributes to newly created object instance.

Copying should happen while creating the new object instance when the user opted to copy (using a check box in the create page).

This helps the user to automatically fill the page. Especially when the page has huge number of attributes.

The page has both simple attributes and parameterized single or multi valued lookup attributes.

There are dependant attributes. The list of values are controlled by the attribute values selected in few other attributes.

When I try to read from previous instance and xog all these attributes at once, I was getting below error.

 

java.lang.NullPointerException

 

So, we have separated simple and parameterized attributes.

Xoged the simple attributes first and then the parameterized attributes next using GEL.

This worked fine.

 

Initially I was tempted to do insert or update on ODF_MULTI_VALUED_LOOKUPS and the attributes which have parameterized lookups.

 

Hope this helps.

 

Please ignore, if this information is already available in the community portal.


Best Regards,
Punnam

Outcomes