Senin, 20 Desember 2010

Creating an Enable/Disable Declarative Dynamic Action

 Right click P3_JOB and select Create Dynamic Action.

























Select Standard and click Next. Note that a Standard dynamic action
allows you to create a dynamic action that will fire when a field's value changes,
and will subsequently 'Show', 'Hide', 'Enable', or 'Disable' other page items.
Enter JOB EQUALS SALESMAN
for the Name and click Next.
You want the Dynamic Action to be fired when the Job item is equal to SALESMAN. Because you created a dynamic action on the P3_JOB item, the values for Selection Type, Item(s) and Condition should already be specified. Enter SALESMAN for Value. Then click Next.





Select Enable for Specify the True Action. This action will be invoked when the value of P3_JOB is equal to 'SALESMAN'. Note that the Create Opposite False Action is checked which will create a Disable action that will be invoked when the value of P3_JOB is not equal to SALESMAN. Click Next.





The item that will be enabled or disabled is Commission. Select Item(s) for Selection Type and select P3_COMM from the list of items and click the Move icon to move it to the right and click Create.




 

You can run the page. Click Run.















Notice that the Commission item is enabled because the Job is equal to SALESMAN.









 

Change the Job to CLERK.














Notice that the Commission item is now disabled.


Kamis, 16 Desember 2010

Input image into region

Create HTML Region

1. Select HTML region and click next























2. Enter title region



3. Write the scrip as an example, make sure the image files have been uploaded to the workspace


4. Create Region and finish