Reputation: 153
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,
Questions,
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 .?
In one page if we set build option {not US_ready} then it wont appear in runtime. is this correct ?
What if we add more than 1 build options to the application ? How can we handle such situation ?
Thanks, Thusira.
Upvotes: 3
Views: 482
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:
You want customer A to have only Region1 and Region2, customer B to have Region1 and Region3, Customer C to have Region3 and Region4:
This would require 4 build options, 1 for each "condition":
You would then assign the build options to the regions as follows:
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.
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