- Check if your bursting XML definition and concurrent program belongs to same application.
- Bursting XML definition name (CODE) should match the concurrent program short name for which it's deing called. No exception.
- Follow other checks from here.
Wednesday, September 18, 2013
java.lang.NullPointerException - XML Bursting Error
Perform the following check to resolve the error java.lang.NullPointerException in XML Bursting.
Monday, September 9, 2013
Dynamic Images in XML Publisher
Image path used in XML publisher can be constructed dynamically from values rather than hard coding. Below image provides the example.
CF_IMAGE_NAME in the report generates image name value for each row of data. And the images with those names reside in the path "$OA_MEDIA/custom/". Let's say a value of CF_IMAGE_NAME is image1.jpg during run time the follow value will be rendered to "$OA_MEDIA/custom/image1.jpg" and the corresponding image will be displayed on the output.
Format picture is a property of a dummy image used in the report to print the images in specific dimension. Due to white background its not visible. You can check more from other post.

And use the elements in the image properties ALT TEXT. Below word properties are from Office 2013.
Note that data structure has elements in root hence the construction of the concat is

To bring up and use the XML elements at a different level use ../ or // in the concat
CF_IMAGE_NAME in the report generates image name value for each row of data. And the images with those names reside in the path "$OA_MEDIA/custom/". Let's say a value of CF_IMAGE_NAME is image1.jpg during run time the follow value will be rendered to "$OA_MEDIA/custom/image1.jpg" and the corresponding image will be displayed on the output.
Format picture is a property of a dummy image used in the report to print the images in specific dimension. Due to white background its not visible. You can check more from other post.
And use the elements in the image properties ALT TEXT. Below word properties are from Office 2013.
Note that data structure has elements in root hence the construction of the concat is
url:{concat(IMAGE_PATH,'/',IMAGE_NAME)}To bring up and use the XML elements at a different level use ../ or // in the concat
url:{concat(../IMAGE_PATH,'/',../IMAGE_NAME)}
Monday, August 12, 2013
Images in XML Publisher
- Insert a dummy image in your template.
In Microsoft Word's Format Picture dialog box select the Web tab. Enter the
following syntax in the Alternative text region to reference the OA_MEDIA directory:
url:{'${OA_MEDIA}/image name'}
For example, enter:
url:{'${OA_MEDIA}/ORACLE_LOGO.gif'} - Ensure that the image file is in OA_MEDIA
- Then, from the XML Publisher Administrator resp, upload the edited template into the Template record.
Also see Dynamic Images in XML Publisher
| Picture properties from Word 2003. |
Friday, August 9, 2013
Some useful Unix commands for shell scripting
IF-ELSE
if [ "$value" -eq "0" ] || [
"$value" -ge "2" ]; then
echo "condition met"
else
echo "condition not met"
echo "condition met"
else
echo "condition not met"
fi
Comparisons:
|
-eq
|
equal
to
|
|
-ne
|
not
equal to
|
|
-lt
|
less
than
|
|
-le
|
less
than or equal to
|
|
-gt
|
greater
than
|
|
-ge
|
greater
than or equal to
|
Exit Host concurrent program with
Error
exit 2;
Linux Find and Move Archive
files older than N days
find $frompath -type f -mtime +$age -exec mv {} $archive \;
Obtain value from string
echo $value | cut -f1 -d"."
Command will return the value
starting to until “.” is found.
Test.txt will return Test
Using SUBSTR in Unix
echo $name | awk '{ print substr( $0, 0, length($0)-4 ) }'
Command will return name starting
from 0 to (lengthofstring)-4
Test.txt will return Test
Monday, July 8, 2013
DEFAULT WHERE Forms Personalization
At times custom query has to be executed at run time to limit the data visible to users. It can be achieved by forms personalization.
In forms personalization
Under the condition tab
Trigger-Event : WHEN-NEW-BLOCK-INSTANCE
Trigger-Object: Block name where condition has to be executed.
Processing Mode: Not in Enter-Query Mode
You can limit personalization to site/resp/user.
Under Actions
Type: Propery
Object Type: Block
Target Object: Block you selected for Trigger-Object
Property Name: DEFAULT_WHERE
Value: Enter your custom query.
Sample Value: customer_trx_id IN (select customer_trx_id FROM temp_table WHERE customer_trx_id=:GLOBAL.XX_CUST_TRX_ID).
No need for quotes. Probably you might have to enter a value in double quotes if you have a string value to compare like --> valid_flag = ''Y''

In forms personalization
Under the condition tab
Trigger-Event : WHEN-NEW-BLOCK-INSTANCE
Trigger-Object: Block name where condition has to be executed.
Processing Mode: Not in Enter-Query Mode
You can limit personalization to site/resp/user.
Under Actions
Type: Propery
Object Type: Block
Target Object: Block you selected for Trigger-Object
Property Name: DEFAULT_WHERE
Value: Enter your custom query.
Sample Value: customer_trx_id IN (select customer_trx_id FROM temp_table WHERE customer_trx_id=:GLOBAL.XX_CUST_TRX_ID).
No need for quotes. Probably you might have to enter a value in double quotes if you have a string value to compare like --> valid_flag = ''Y''
Wednesday, May 15, 2013
Find Master Organization for Organization Oracle Apps
Master Organization can be found in different ways. Simple way is to use
SELECT * FROM OE_SYSTEM_PARAMETERS;
Make sure you initialize org_id of the operating unit so that parent organization can be derived specific to that Org.
set-org-context-in-oracle-apps-11i/R12
SELECT * FROM OE_SYSTEM_PARAMETERS;
Make sure you initialize org_id of the operating unit so that parent organization can be derived specific to that Org.
set-org-context-in-oracle-apps-11i/R12
Query to find Organization Structure Oracle Apps
Query to find Organization Structure in Oracle Apps
SELECT ood.operating_unit, hou.NAME, ood.organization_id,
ood.organization_name,
(SELECT organization_code
FROM mtl_parameters mp
WHERE mp.organization_id = ood.organization_id) inventory_org_code
FROM hr_operating_units hou, org_organization_definitions ood
WHERE hou.organization_id = ood.operating_unit
ORDER BY ood.operating_unit, ood.organization_id;
SELECT ood.operating_unit, hou.NAME, ood.organization_id,
ood.organization_name,
(SELECT organization_code
FROM mtl_parameters mp
WHERE mp.organization_id = ood.organization_id) inventory_org_code
FROM hr_operating_units hou, org_organization_definitions ood
WHERE hou.organization_id = ood.operating_unit
ORDER BY ood.operating_unit, ood.organization_id;
Subscribe to:
Posts (Atom)
