Oracle EBS Forms Personalization
Oracle EBS Forms Personalization
You can make this be as complicated as you would like, it all depends on when you
want the calculation to happen.
Now, the meat of the problem: how to do the actual calculation. One of the nice
things about forms personalization is that you can just use a query to set item
values in a form. This query can be anything (one caveat though it has to return a
charvalue!). So for our example, a query that would achieve our goal would be:
1. Syntax
2. It must return a char value -> NO NUMBERS
For the syntax, you just need to know that in order to reference the actual values in
the items you are using to calculate your value you need to use the syntax:
$(item.block.item.value}
For example:
select ${item.PO_LINES.UNIT_PRICE.value}/${item.PO_LINES.QUANTITY.value}
from dual
For #2, it must return a CHAR. So use the SQL function TO_CHAR!
select TO_CHAR(${item.PO_LINES.UNIT_PRICE.value}/$
{item.PO_LINES.QUANTITY.value}) from dual
Now plug it all into the Forms Personalization form and youre done.