Thusira Dissanayake
Thusira Dissanayake

Reputation: 153

How to give multiple build options in Oracle apex

I have two customers for our product which is developed using Oracle apex 4.2. (AU & US).

I would like to deploy same application in both of those regions but only the application features are different. it is like enable disable features.

For that i looked for Build Option provided by apex. then i created following build option,

  1. US_ready / Status: Include / Default on Export: Same as Current Status.

Questions,

  1. When deploying the application, can we set environment build option to one of above and execute the script. so that only the respective pages are added to the application .?

  2. In one page if we set build option {not US_ready} then it wont appear in runtime. is this correct ?

  3. What if we add more than 1 build options to the application ? How can we handle such situation ?

Thanks, Thusira.

Upvotes: 3

Views: 482

Answers (1)

Tony Andrews
Tony Andrews

Reputation: 132670

Yes you can have multiple build options, but each component may only be associated with a single build option. This means that you can certainly achieve your objectives, but perhaps differently from the way you had expected.

Suppose you have a page with 4 regions:

  • Region1
  • Region2
  • Region3
  • Region4

You want customer A to have only Region1 and Region2, customer B to have Region1 and Region3, Customer C to have Region3 and Region4:

  • Region1 (customers A and B)
  • Region2 (customer A only)
  • Region3 (customer B and C)
  • Region4 (customer C only)

This would require 4 build options, 1 for each "condition":

  • BO1 (which customers A and B will both have)
  • BO2 (which only customer A will have)
  • BO3 (which customers B and C will both have)
  • BO4 (which only customer C will have)

You would then assign the build options to the regions as follows:

  • Region1 = BO1
  • Region2 = BO2
  • Region3 = BO3
  • Region4 = BO4

To build customer A's application you would set BO1 and BO2 to "Include", BO3 and BO4 to "Exclude", and so on.

Of course, the names BO1, BO2 are unhelpful. Think of these as "features" that a customer may buy and name them more usefully e.g.

  • Costing
  • Planning
  • Monitoring

If a customer has paid for the "Monitoring" feature, then include the "Monitoring" build option, which will switch on the associated components (pages, regions, items, processes - whatever they may be).

Upvotes: 4

Related Questions