Example Form Personalization Using Custom
Example Form Personalization Using Custom
1 sur 5
https://iamlegand.wordpress.com/2012/10/20/example-form-personaliz...
How to change the background color of the field Payment Terms in Sales orders others screen
For example how to Change the background color to Fuchsia(r255g0b255)
if (event_name = WHEN-NEW-FORM-INSTANCE) then
if (form_name = OEXOEORD) then
app_item_property2.set_property(ORDER.TERMS,BACKGROUND_COLOR, r255g0b255);
end if;
end if;
How to make a field non editable field but the values needs to be defaulted?
For disabling the customer field in orders screen
if (event_name = WHEN-NEW-ITEM-INSTANCE) then
if (form_name = OEXOEORD AND block_name = ORDER) then
COPY (Business World, ORDER.SOLD_TO);
VALIDATE (item_scope);
15/05/2015 08:50
2 sur 5
https://iamlegand.wordpress.com/2012/10/20/example-form-personaliz...
How to ensure user enters not more than 3 characters in Customer PO field and exits the field ?
if (form_name = OEXOEORD) then
if LENGTH(name_in(ORDER.CUST_PO_NUMBER))>3
and
GET_ITEM_PROPERTY(ORDER.CUST_PO_NUMBER,UPDATE_COLUMN) = TRUE
then
V_REC_NUM := name_in(SYSTEM.CURSOR_RECORD);
SET_RECORD_PROPERTY(V_REC_NUM,INV_SUM_FOLDER,STATUS,NEW_STATUS);
15/05/2015 08:50
3 sur 5
https://iamlegand.wordpress.com/2012/10/20/example-form-personaliz...
How to prevent a particular user from entering an Odd quantity for a particular item?
b := fnd_profile.VALUE (user_id);
if (b = 1008697) then
if (event_name = WHEN-VALIDATE-RECORD) then
if (form_name = OEXOEORD AND block_name = LINE) then
if (NAME_IN (LINE.ORDERED_ITEM_DSP) = AS54888) then
if (MOD (NAME_IN (LINE.ORDERED_QUANTITY), 2) = 0) then
fnd_message.set_string (Even quantities for ||NAME_IN(LINE.ORDERED_ITEM_DSP)|| not allowed);
fnd_message.show ();
RAISE form_trigger_failure;
end if;
fnd_message.set_string(Entered quantity is Odd so no problem);
fnd_message.show();
end if;
end if;
end if;
end if;
15/05/2015 08:50
4 sur 5
https://iamlegand.wordpress.com/2012/10/20/example-form-personaliz...
session_flag => Y,
other_params => ITEMS= || param_to_pass1 || );
end if;
end if;
if (event_name = WHEN-NEW-RECORD-INSTANCE) then
if (form_name = INVMATWB AND block_name = MATERIAL_QF) then
b := fnd_profile.VALUE (user_name);
fnd_message.set_string (NAME_IN (parameter.ITEMS)||is entered by user ||b);
fnd_message.show ();
GO_ITEM (MATERIAL_QF.ITEM);
COPY (NAME_IN (parameter.ITEMS), (MATERIAL_QF.ITEM));
VALIDATE (item_scope);
END IF;
end event;
15/05/2015 08:50
5 sur 5
https://iamlegand.wordpress.com/2012/10/20/example-form-personaliz...
Related
This entry was posted in custom.pll in oracle apps r12, r12 form personalization, Sample codes. Bookmark the permalink.
Blog at WordPress.com.
15/05/2015 08:50