This content has been marked as final. Show 6 replies
Thanks for the help. I don't have button position "Above and below region" option in the dropdown list for button position. How can I define that position in the template and get in the dropdown list for button position?.There's no built-in "Above and below region" button position. There is "Top and Bottom of Region". Does that not provide the required layout?
There's no way to create new button positions through templates. Region templates support the following button position substitution strings:
which can be located as required within the template HTML, and any buttons assigned to these positions will be rendered at that point. (These strings can be repeated within the template.)
#EDIT# Edit Button #EXPAND# Expand Button #CREATE# Create Button #CREATE2# Create2 Button #CLOSE# Close Button #HELP# Help Button #DELETE# Delete Button #COPY# Copy Button #NEXT# Next Button #PREVIOUS# Previous Button #CHANGE# Change Button
The other region button positions:
are generated by the APEX engine relative to the region #BODY# substitution string.
Above Region Top of Region Bottom of Region Top and Bottom of Region Below Region
If you still can't achieve the required layout using these options you could try splitting the layout into different regions with two copies of the buttons, e.g. starting with a "Button Region with Title" to give a title and buttons "above" the region, then the content in a "Region without Buttons and Title" region, and finally a "Button Region without Title" for the buttons "below" the region.
is it possible to at least rename these substitution strings if you cannot create new button positions?To what purpose? Those are the button position substitution strings defined in APEX that can be used in region templates:
When those strings are used in the region template, they are reflected in the Button Position options in the button Display properties, as described in the online help:
Buttons using REGION_TEMPLATE positions will only be displayed if:
1. The region template contains the position. For example #EDIT# is required to show a button in the REGION_TEMPLATE_EDIT position.
2. The button is part of a region.
Adding arbitrary strings like #FOO# to the region template doesn't result in a FOO button position option being listed.
That those are the button position substitution strings APEX understands does not mean that only Edit, Expand, Create... etc buttons can be created, or that buttons assigned to those positions must have those labels or perform those functions. A button labelled "Edit" can be assigned to the #HELP# region template position, all buttons can be assigned to the #CREATE# position, whatever.