Region Title substitution string

hi, i am trying to use &TITLE. in a region header as was expecting to see the title of the region shown ? it does not (apex 3.2)
however the template for the region has this and it works fine..
can someone help ?
thanks
a

Thanks.
This is what I am trying to do.
I have a (whole) bunch of Anychart 5 charts in a page in different regions with their own title and there are many pages like this.
I have the region titles inside the chart too.
as in
<pre>
Region Title
| Region Title |
| |
| |
| | <----- This is the chart
| |
| |
|___________________________________|
</pre>
The XML for all these charts are the same, except for the title.
So I created an application level item and moved the XML without the title tag into it and just refer the item in the custom XML.
This way I make changes in one XML block.
(title is useful when some one wants to save the chart as an image) (Note: #DATA# is part of the XML, the value I push into this item)
If I can get a handle on the region title, I could push that in the XML as a variable (and not code to generate the XML in)
At this point (except for saving the chart as an image) I can get by with the titles being at the region level
and not inside the chart. But we are planning to move all of the charts into a dashboard and we might need the
titles inside or on top of the individual charts. ( I am also researching if the titles could go on the
hbox tags in Anychart XML, so this might not be necessary and also have come across some javascript in the past that copies the data elements
available inside a report, like total, to an item, that might work too.)
Hope that sheds some light on what I am trying to do.
Thanks
A

Similar Messages

  • How to reference the Instance name using Substitution string or SQL

    All:
    We have an Application that will be replicated in multiple Apex instances and would like to display the current Oracle Apex Instance name ( Similar to the &APP_USER. on the Welcome portion of the page ) .
    Is there a substitution string for this ?
    We plan on using a Show/Hide region on the splash page titled [About], that when clicked displays an HTML region with the subsitution strings.
    If no substitution strings, can someone help with an SQL that returns the Instance name ?
    Thanks for all the help.
    Aubrey Fernandes

    Aubrey Fernandes wrote:
    I currently have 3 URLs to get to my Development, QA and Production servers & will have many more production servers with different Application Ids.
    Development = http://canqa101:7777/pls/ngcrmd01/apex
    QA = http://canqa101:7777/pls/ngcrmq01/f?p=100:1
    Production = http://cancs105:7777/pls/ngcrmp01/f?p=100:1
    What I need are the portions before the final forward slash ( canqa101:7777/pls/ngcrmd01 ) which I assumed is the Oracle Apex instance.That information is determined by the web server configuration (e.g. the DADs when using OHS) rather than through APEX itself. There are no built-in substitution strings for this. Create an application item and an On New Instance (new session) computation to set the value using the function<tt>owa_util.get_cgi_env</tt> function to get the CGI environment variables <tt> HTTP_HOST</tt> and <tt>SCRIPT_NAME</tt>. You can then reference the value in the region using substitution string syntax.

  • Remove region title

    Hello,
    Is it possible to remove the region title from a SQL Query region type?
    Regards.

    sure that's possible. the title of your region is displayed when your region template uses the #TITLE# template substitution string. removing that substitution string from your current template or calling a template that doesn't use the #TITLE# substitution string should do the trick.
    regards,
    raj

  • How to change a region title based upon the input parameter?

    Hi All,
    I need to change the region's title dynamically based on the value of a select list in another region.
    Can anyone help me in this?
    Regards,
    Sakthi.

    Hi,
    You can use &P1_ITEM_NAME. (including the & and the .) in a region title - this string will be replaced by the value from the page item called P1_ITEM_NAME, so change the name to suit your page item
    Andy

  • Query stats substitution strings on IR region

    Hello,
    Are the query stats substitution strings, like #ROWS_FETCHED#, #TOTAL_ROWS#, #FIRST_ROW_FETCHED# and #LAST_ROW_FETCHED#, should be active in an IR region?
    Currently, it seems they are not active, and I’m asking if it’s intentional or a bug.
    Thanks,
    Arie.

    Hi Marco,
    Thanks on your reply, and the enhancement request.
    In the meantime, can you think of a work around? I’m trying to derived a row (serial) index on a paginated view, using ROWNUM. In classic report, you can subtract the current ROWNUM from the #FIRST_ROW_FETCHED#.
    Thanks,
    Arie.

  • Item substitution in region title

    It looks to me like the help docs say that you can substitute for a region title like this -- &user.
    When I do that all I get is &user printed on my report.
    Am I doing this wrong?
    Using version 1.3.6
    Curt

    Does this substitution syntax hold true when exporting the region to CSV? The CSV filename is automatically set as the parent region's title and but I need to include the date int that filename. I've created a hidden page item to hold my title, but when I use the &(ITEMNAME). syntax in the region title I just get &ITEMNAME. Any idea what I'm doing wrong, or how to achieve the desire effect by another method?

  • Static Substitution Strings

    Folks,
    Is it possible to reference a Static Substitution String in a region title?
    thanks
    KIM

    Thanks again Scott,
    Yes I had tried but without the '.' after &name. Had not used these before. Actually, just below the Static Substitution Strings definitions it says:
    "Substitution strings are strings that you can define at design time. So for example if you want to reference &MY_VARIABLE and have it replaced with SOME VALUE then enter MY_VARIABLE in the Substitution String column and SOME VALUE in the Substitution Value column."
    A '.' after '&MY_VARIABLE' might be useful. Something for the next release?
    Cheers
    KIM

  • How to escape special characters in a region title

    I have created a drill down report where the second report is filtered by a value chosen in the first report. I am using &Pn_field. syntax to pass the name of the select value to the region title of the second report. Some of the returned values have a ':' in them and therefore the text does not print after the ':'. How do I escape the ':' in the region title?
    regards
    Paul P

    Paul,
    I think your question is "How do I use f?p URL syntax to pass data values to a page where the data includes a colon?" (Please correct me if that's not the issue.) The answer is, you can't. Same with commas. HTML DB reserves those two characters for the f?p request syntax. You'll have to save the string into the item before the page branch. There is no restriction on what characters can be used in a region title, it's just HTML-formatted text, except that you must escape anything that looks like HTML unless you want the browser to treat it as HTML. There are restrictions, however, on what characters you can pass in URLs in general and you must take care to escape them properly, e.g., ?, &, whitespace.
    And do speak up if I've missed the point.
    Scott

  • Footer navigation using pl/sql - substitution strings

    Hi
    I want to make a footer navigation (a BLAF like footer with the same captions and links that appear in the Tabs and the Navigation Bar) using a PL/SQL region. The code I want to use should work for any HTML DB application.
    The procedure could be defined like this:
    PROCEDURE prb_footer_navigation( p_application_id VARCHAR2
    , p_page_id VARCHAR2
    , p_session_id VARCHAR2);
    p_application_id will be used to get the caption and links of the specific application and p_page_id will be used to know which tab is selected.
    I'm using this query in the procedure:
    SELECT t.tab_text caption
    , t.tab_target link
    , t.tab_sequence num
    FROM flows_010600.wwv_flow_toplevel_tabs t
    WHERE t.flow_id = p_application_id
    ORDER BY t.tab_sequence
    (the user has been granted select from flows_010600.wwv_flow_toplevel_tabs)
    The problem is:
    tab_target has substitution strings like '&XXX.' or '&PX_XXX.', so how can I get the real link with resolved substitution strings using pl/sql?
    Something like function_resolve_string(p_string, p_session_id) would be appreciated...
    Thanks in advance!

    A.U.,
    Have you considered looking at how the navigation bar gets onto your page by examining the page template? You'll find something like this in the body section: 
      <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="">
        <tr>
          <td valign="top" class="t1Logo">#LOGO#</td>
          <td align="right" valign="top">#NAVIGATION_BAR#</td>
        </tr>
      </table>Just copy and paste that onto the end of the body section, or into the footer section of the template, although the footer might not support all the same substitution patterns.
    If that's the kind of result you have in mind, do the same thing for the (html) tables that contain #PARENT_TAB_CELLS# and #TAB_CELLS#. I don't guarantee this will work, but it's worth experimenting with.
    Scott

  • Substitution String in Row Template order dependant

    Hi Folks,
    This questions is related to an earlier Complex Detail Report Layout: Can it be done? about building a complex row template (thanks for your help, Vikas!).<br><br>
    Having built the row template (Named Columns) and tested it in a separate application, I have been preparing to incorporate it into the target application. (Here's a screen shot of the work in progress.) I decided to see if I could use column aliases with the substitution strings and so added an alias to the query for the report.<br><br>
    Strange values appeared (like a "Y" for a Project Name) and initially I thought the aliases wouldn't work, so I backed the change out. However, it was now quite apparent that the substitution strings were not taking their values from the column names, as I expected. I was able to put the values in the correct place by modifying the order of the columns selected in the query.<br><br>
    Am I misunderstanding? Shouldn't the order of the columns in the select statement be irrelevant when named columns are used? <br><br>
    Since the order in the query is NOT the order displayed in the template, and I have nearly 30 fields, (many of which are dates, and I couldn't possible guess which is which if the substitution doesn't work properly), it seems important to understand how to ensure the proper values appear in the report.<br><br>
    Many thanks for your help,<br><br>
    Petie

    I take it back. This is whacked. Please take a look at the picture (http://tinypic.com/view/?pic=nygyu0)
    OK, I had a select statement:
    select ps.project_name, ps.project_manager,  ps.gts_dependant, ps.gxp_relevant from project_status ps, eprs_program p
    where
    ps.program_id = p.id and
    p.program_number = :P6_PROGRAM_NUMBERThis populated the fields #PROJECT_NAME#, #PROJECT_MANAGER#, etc. properly.
    I even switched the order around and put the ps.project_manager ahead of the ps.project_name and template still worked.
    I restored the order and checked again. All is good.
    I changed the query and added an alias like so:
    select ps.project_name as "PROJ_NAME", ps.project_manager,  ps.gts_dependant, ps.gxp_relevant from ...The report showed the substitution string "#PROJECT_NAME#" (as expected, because the column was now aliased.) So this is good.
    I went to the row template definition and changed the substitution string #PROJECT_NAME# to #PROJ_NAME# to match the query -- and the substitution strings broke again!
    The report template now behaves as described earlier; being position dependant. Now I suspect that this is a bug, and not something caused by my mucking around.
    I would greatly appreciate your thoughts on the matter and potential workaround. At this point, I will likely delete the region and try creating a new region. I would hate to loose the whole page, the top part was a lot of effort. <sigh>
    Thanks,
    Petie

  • Substitution strings in chart sql query

    Hi Guys,
    I am creating line charts and bar charts based on a query in HTML DB 1.5. I am using substitution strings in the query. Though I can use substitution strings in the line chart, I cannot do it in the bar chart. I am using almost the same sql query in both line and bar charts.
    The sql query in line chart is
    SELECT null, TO_CHAR(t1.extract_date, 'W-MON-YYYY') extractdate,
    MIN_OF_AVERAGES(AVG(&P40_METRICS.),:P40_REGION_LIST,:P40_SUBREGION_LIST,NULL,:P40_METRICS,'ind') orgid
    FROM ind t1,geography t2
    WHERE t1.country_id = t2.country_id(+)
    AND t2.region_name like
    DECODE(:P40_REGION_LIST,'ALL REGIONS','%',:P40_REGION_LIST)
    AND t2.subregion_name like
    NVL(:P40_SUBREGION_LIST,'%')
    GROUP BY TO_CHAR(extract_date, 'W-MON-YYYY')
    order by to_date(extractdate,'DD-MON-YY')
    The sql query in bar chart is
    SELECT null, TO_CHAR(t1.extract_date, 'W-MON-YYYY') extractdate,AVG(&P40_METRICS.) orgid
    FROM ind t1,geography t2
    WHERE t1.country_id = t2.country_id(+)
    AND t2.region_name like
    DECODE(:P40_REGION_LIST,'ALL REGIONS','%',:P40_REGION_LIST)
    AND t2.subregion_name like
    NVL(:P40_SUBREGION_LIST,'%')
    GROUP BY TO_CHAR(extract_date, 'W-MON-YYYY')
    order by to_date(extractdate,'DD-MON-YY')
    The min_of_averages function in the line chart query is some function I am calling. Even if I cut-paste the line chart query in the bar chart I get the error.
    The substitution string which is giving the problem is "&P40_METRICS."
    The error I am getting is
    Query cannot be parsed, please check the syntax of your query. (ORA-00909: invalid number of arguments)
    The only difference I see is that line chart query is inside a series and bar chart is not, does this make a difference??? Or is it because I am using the substitution string in choosing the column??? Please help!!!!
    Thanks,
    Swaroop

    Swaroop,
    You might be using an HTML bar chart and an SVG line chart, I can't tell, but their implementations differ. You won't be able to use a substitution string to replace a column name in the query in the situation you found, you'd have to figure out a way to construct the query string before it gets executed and I'm not sure the chart pages will let you do that.
    Scott

  • Masked HTML tags in substitution strings after upgrade to Apex 2.2

    Hello,<br>
    <br>
    in my application developed with htmldb 2.0 I had the following scenario which worked fine until upgrade to 2.2:<br>
    <br>
    Requirement: a multiline text should be displayed as entered on a html report page.<br>
    My solution:<br>
    - a onload page process of the form <br>
    select replace(description,chr(10),'&lt;br&gt;') into :P1_DESCRIPTION from mytable where id = :P1_ID;<br>
    - and a page template containing <br>
    ...<br>
    <td>&P1_DESCRIPTION.</td><br>
    ...<br>
    <br>
    This worked in HTML DB 2.0.<br>
    <br>
    My problem: After upgrade to Apex 2.2 the report doesn't display the carriage returns anymore. Instead of interpreted BR tags I get masked BR tags printed as text:<br><br>
    <br>this is the first line&lt;br&gt;this is the second line<br><br>
    It's quite obvious that the substitution mechanism changed in Apex 2.2. Any ideas how to change my app ?

    Take a look at this thread:
    Computed Region TItles being Escaped in Apex 2.2
    You may have to change the type of your P1_DESCRIPTION item.

  • Can we Edit #BOX_BODY# Substitution String?

    In apex 4.02 all templates #BOX_BODY# substitution string are used, I need to modified that string.
    Outer #BOX_BODY# if I add anything like Font size, table format and anyting html function not accepted that template string. Can any one help for this how to change that format?
    Thanks in Advance

    Sara254 wrote:
    In apex 4.02 all templates #BOX_BODY# substitution string are used, I need to modified that string.The <tt>#BOX_BODY#</tt> substitution string is replaced by the region content at display points
    Page Template Body (1. items below region content)
    Page Template Body (2. items below region content)
    Page Template Body (3. items above region content)
    and thus <tt>#BOX_BODY#</tt> can't be "modified". Make changes in the relevant regions.
    Outer #BOX_BODY# if I add anything like Font size, table format and anyting html function not accepted that template string. Can any one help for this how to change that format?HTML does not have "functions". It is a mark-up language for defining the structure of documents. Presentational elements like <tt>font</tt> have been deprecated for many years and are now removed from the language. <tt>table</tt> elements should be used to structure tabular data, not for page layout. Use CSS to control presentation.

  • How to edit #BODY# substitution string?

    Hi All,
    I have an issue where I would like to set the border="1" in region where I have placed some select lists and buttons.
    In the region template I can see:
    <td class="t10RegionBody">#BODY#</td>
    From the HTML source of the output page I can see that this is resolved to something begining with:
    <td class="t10RegionBody"><table class="formlayout" summary="" >...
    Now how can I add or change the table definition which seems to be a part of #BODY# substitution string?
    How can I view the contents behind #BODY# string?
    Regards,
    Pawel.

    See http://i14.tinypic.com/2nu7i95.jpg
    That "HTML Table attributes" in the Region Template might be what you are looking for.

  • #BUTTON_ID# substitution string

    Just curiosity, but what is the purpose/use of the #BUTTON_ID# substitution string?
    Described on button template page as:
    Substitution String Referenced From Description
    #BUTTON_ID#          Yes         Template  Button Numeric IdentifierSearching in Help turns up nothing, and in a quick experiment it wasn't substituted on apex.oracle.com.

    Did you use a template based button?
    #BUTTON_ID# is probably used only by template based
    buttons. Yes
    As you can see in the page source this "id" attibute
    contains a big number and that is the button numeric
    identifier.
    Further experimentation reveals that #BUTTON_ID# is only substituted for buttons in Region positions, not button items.
    I suppose that having a unique ID may allow you to
    write some fancy javascript that adds visual effects
    when you press the button or disables it after the first
    key press.I'd be inclined to specify id or class via #BUTTON_ATTRIBUTES# rather than trying to work out what the "button numeric ID" is.
    For a comprehensive list of substitutions template
    you may look here:
    http://oraclequirks.blogspot.com/2007/07/apex-substitution-strings-cross.html
    Excellent - I've been looking for something like this for a while. Many thanks, Flavio!

Maybe you are looking for