This content has been marked as final. Show 6 replies
You could have your installation scripts create a user preferences table and then populate this via a prompt of some kind during installation. The regions could then be created with conditional display dependent upon this table.
You could also include a setting page where this could be modified later on. Should be pretty easy...
First thanks for the fast answer. First thought to do that too. But I want to be sure that's the best solution in terms of cost and efficiency because I will have to justify my choice.
I forgot to ask about something anyway. Let's consider my example with the search region again.
I would like to specify what mode will be used for the search during the installation and so, what function will be called.
That's just an example and there will be probably other regions with parameters.
I guess the plugin could be more useful there but I don't really like the idea to recreate all my items with code to perform this.
Any faster alternative?
Thanks again for helping.
What you have described actually backs up going down the route that I suggested. You only need one table to hold all the user preferences and make everything conditional on this table. The only difference you have now is that as well as the value of the preference, you also need to record what preference for example...
Small table, quick look up, default APEX conditional behaviour.
SELECT 'X' FROM my_pref_table WHERE pref = 'SEARCH_MODE' AND value = 'XML'
I think that the plugin route could become a little cumbersome for what you are trying to achieve and is not, in my opinion, what it was designed for.
Ok. Seems what I understood about the plugins wasn't so wrong then.
Thanks a lot for helping again :)
sounds like you should have a look at the "Build Options" feature (Shared Components).
1) Create a build option for each of your regions
2) For each region, assign the build option in the "Configuration" section
3) Enable build option prompting in "Supporting Objects"
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins