Dynamic Heading not translated in report template "Value Attribute Pairs"

Hello,
I created a report in which I use application item names in the column heading of the items.
When I use the report template "Value Attribute Pairs" the heading displays not the contents of the application item names but the exact contents of the headings.
for instance:
application item name "trm_label_1" has the value : "Naam".
I created a report based on the SQL: select x.name from persons x
The heading of column "name" is: "&TRM_LABEL_1.".
The report shows the text "&TRM_LABEL_1." instead of "Naam".
When I change the report template in "Standard" the substitution is done well.
Can anyone explain what (not) happens and how I can fix this problem?
Gr.
Rob

Hi Rob,
You can do this by choosing as Headings Type: PLSQL in the Column Attributes.
You would have something like Deptno:DName:Loc:&APP_ITEM.
Where the first columns are normal text and the last one is an application item.
Regards,
Dimitri
-- http://dgielis.blogspot.com/
-- http://apex-evangelists.com/
-- http://apexblogs.info/

Similar Messages

  • How to display dynamic header title in the report?

    I have a req to display dynamic header title in the report.
    When a id is entered in the prompt text, it will display the user data based on that user_id.
    so similarly....the header title should vary each time when you select different user_id.
    How can we implement this?

    >
    Zack H wrote:
    > Lazaro,
    >
    > It depends on what you want displayed in the heading for each id.
    > Please elaborate.
    >
    > Thanks,
    > Zack H.
    Zack..I have several projects listed under several project id's...
    so when a user selects project id 00164 then it should display something like "Project document for Jon Doe"
    again when the user selects project id as 00192 then it should display something like "project document for Zimmerman"
    Did you get it??

  • #REGION_STATIC_ID# does not work in report template for PPR

    I was hoping to use the new substitution string #REGION_STATIC_ID# for a PPR report, because when we do Export/Import of the app the Region ID changes and we have to manually change the Pager Header Javascript to get the PPR to work. A real pain.
    So I changed the Region template to use #REGION_STATIC_ID# and set the Static id in the region definition - this worked fine. Next, I modified the Report template for PPR to use #REGION_STATIC_ID#, but at runtime this resolves to a blank! I assumed it would pick up the static ID for the region it was in. Is this a bug or am I just not understanding the way it is supposed to work?
    Regards,
    Steve

    Hello,
    #REGION_STATIC_ID# is available in some places in the report template. But the PPR javascript uses the APEX engine created ID get into the fast track report engine so it's not going to work that way.
    But you can still do what you want to do what you want to do. Use the #REGION_STATIC_ID# in your region say something like this #REGION_STATIC_ID#_body the use the javascript to get that element and then use that element
    along with getElementsByClass(searchClass,node,tag)
    http://apex.oracle.com/pls/otn/f?p=38704:2:::NO::P2_ID1:22
    to grab the report table and then it's ID which you can then feed into your javascript. It will only be 2-3 more lines of javascript.
    Carl

  • Value not displaying in report template

    I am attempting to use a template for the first time and am having difficulty when using the following template to format the output of an ApEx 3 report.
    All values in the template come from the main table but TRADE comes from a joined table. The output from the report correctly displays the TRADE when run on its own but the value of #TRADE# fails to display when I use the template. Is there something I am missing or should this work?
    <tr><td colspan="6"><strong> </strong></td></tr>
    <tr><td><strong>Date</strong> #CALLDATE#</td><td>&nbsp&nbsp&nbsp&nbsp <strong>Client</strong> #CLIENT_NAME#</td>
    <td>&nbsp&nbsp&nbsp&nbsp <strong>JOB</strong> #JOB_DESCRIPTION#</td> <td> &nbsp&nbsp&nbsp&nbsp <strong>Trade</strong> #TRADE#</td>
    <td> &nbsp&nbsp&nbsp&nbsp <strong>Address</strong> #ADDRESS# #TOWN#</td> </tr>
    <tr><td colspan="6"><strong>___________________________________________________________________________________________________________________________________________________________________________________

    Sandy,
    It's the first time I have used apex.oracle.com as well so I hope I've done this right.
    You did a superb job, thanks a lot. It allowed us to debug the problem, a rather difficult one to isolate as it turned out.
    The problem occurs when your report columns' "query column ID" attributes don't match the "column display sequence" attributes. This is apt to happen in queries that use joins and is not a problem in itself. But if you have this situation and also use a named column row template in which you reference column aliases in #ALIAS# format, the wrong value can get substituted. That's what happened in your case.
    The workaround until we can fix this is to replace the problem alias reference, e.g., #TRADE# with #13# in the template. I got the value 13 by exporting the page and finding this:wwv_flow_api.create_report_columns (
      p_id=> 7496949738101935544 + wwv_flow_api.g_id_offset,
      p_region_id=> 7496823660512873188 + wwv_flow_api.g_id_offset,
      p_flow_id=> wwv_flow.g_flow_id,
      p_query_column_id=> 13,
      p_form_element_id=> null,
      p_column_alias=> 'TRADE',
      ...You'll need to keep track of this template change in case you rearrange the order of the report columns. We expect to fix this bug in the 3.1 release (no announced date yet).
    Thanks again.
    Scott

  • Dynamic Images not shown on report in web farm environment

    I have a custom ASP .NET application running reports on XIR2 platform using the .NET WCA.  This is in a web farm environment.  Reports with images do not reliably work.  It appears that the WCA temp image handler cannot see the files if my session fails from one server in the farm to the next.  I'm looking to move the temp images location to an external file share so that all servers will see it.  Changing the value in web.config for the temp images directory did not work.  Tomorrow I will test changing the registry setting, but I wonder if anyone has any tips?
    Chris

    Hi, Ted,
    I am not the application developer, but rather the server administrator.  I know that the applications are NOT using viewrpt.cwr.  I can not state with confidence that they are using the CR .NET Web Forms viewer.  I know that some of our applications show their reports in the ActiveX Viewer, and some use the DHTML viewer.  The following is the code (in the aspx page) that is used to execute the report (I hope it helps):
              void ViewerSetting()
                        try
                             bool bHasRefreshButton =Request.QueryString["bRefresh"]=="Y"?true:false;
                             bool bHasToggleGroupTreeButton=Request.QueryString["bToggleGroupTree"]=="N"?false:true;
                             bool bHasZoomFactorList=Request.QueryString["bZoomFactor"]=="N"?false:true;
                             bool bDisplayGroupTree=Request.QueryString["bGroupTree"]=="N"?false:true;
                             bool bBestFitPage =true;
                             bool bDisplayBottomToolbar =Request.QueryString["BottomToolbar"]=="N"?false:true;
                             bool bHasCrystalLogo =Request.QueryString["CrystalLogo"]=="N"?false:true;
                             bool bHasExportButton =Request.QueryString["ExportButton"]=="N"?false:true;
                             bool bDisplayToolbar =Request.QueryString["Toolbar"]=="N"?false:true;
                             bool bHasGotoPageButton=Request.QueryString["GotoPageButton"]=="N"?false:true;
                             bool bHasSearchButton =Request.QueryString["SearchButton"]=="N"?false:true;
                             string sPrintMode=Request.QueryString["PrintMode"]==null?ConfigurationSettings.AppSettings["PrintMode"].Trim():Request.QueryString["PrintMode"].ToString();
                             crystalReportViewer.HasRefreshButton=bHasRefreshButton;
                             crystalReportViewer.HasToggleGroupTreeButton=bHasToggleGroupTreeButton;
                             crystalReportViewer.HasZoomFactorList=bHasZoomFactorList;
                             crystalReportViewer.DisplayGroupTree=bDisplayGroupTree;
                             crystalReportViewer.BestFitPage=bBestFitPage;
                             crystalReportViewer.DisplayBottomToolbar=bDisplayBottomToolbar;
                             crystalReportViewer.HasCrystalLogo=bHasCrystalLogo;
                             crystalReportViewer.HasExportButton=bHasExportButton;
                             crystalReportViewer.DisplayToolbar=bDisplayToolbar;
                             crystalReportViewer.HasGotoPageButton=bHasGotoPageButton;
                             crystalReportViewer.HasSearchButton=bHasSearchButton;
                             if (sPrintMode.ToUpper() =="ACTX")
                                  crystalReportViewer.PrintMode=CrystalDecisions.Web.PrintMode.ActiveX;
                             else
                                  crystalReportViewer.PrintMode=CrystalDecisions.Web.PrintMode.Pdf;
                        catch {}
                   void SetParameterandViewReport()
                             try
                                  ViewerSetting();
                            string sServer = ConfigurationManager.AppSettings["APSServer"].Trim();
                            string sUser = ConfigurationManager.AppSettings["APSUser"].Trim();
                            string sPassword = ConfigurationManager.AppSettings["APSPassword"].Trim();
                            string sAuthType = ConfigurationManager.AppSettings["APSAuthType"].Trim();
                                  string sReportName = Request.QueryString["ReportName"];
                                  EnterpriseSession ceSession;
                                  EnterpriseService ceEnterpriseService;
                                  InfoStore ceInfoStore;
                                  InfoObjects ceReportObjects ;
                                  InfoObject ceReportObject ;
                                  CrystalDecisions.Enterprise.Desktop.Report  ceReport;
                                  ParameterFields  ceParameterFields;
                                  ParameterField ceParameterField;
                                  ReportParameters ceParameters ;
                                  ReportParameter ceParameter ;
                                  ParameterDiscreteValue ceParameterDiscreteValue;
                                  SessionMgr ceSessionMgr= new SessionMgr();
                                  if ( Session ["ceSession"] == null)
                                       ceSession = ceSessionMgr.Logon(sUser, sPassword, sServer, sAuthType);
                                       Session ["ceSession"]=ceSession;
                                  else
                                       ceSession = (EnterpriseSession) Session ["ceSession"];
                                  ceEnterpriseService = ceSession.GetService("InfoStore");
                                  ceInfoStore = new  InfoStore(ceEnterpriseService);
                                  string sQuery = "Select * From CI_INFOOBJECTS Where SI_PROGID = 'CrystalEnterprise.Report' AND SI_Name='" + sReportName + "' And SI_INSTANCE=0";
                                  ceReportObjects = ceInfoStore.Query(sQuery);
                                  if (ceReportObjects.Count <1 )
                                       lblMessage.Text="Please check your reportName";
                                       lblMessage.Visible=true;
                                       return ;
                            ceReportObject = ceReportObjects[1];
                            ceReport = (CrystalDecisions.Enterprise.Desktop.Report)ceReportObject;
                            ceParameters = ceReport.ReportParameters;
                            ceParameterFields = new ParameterFields();
                                  if (ceReportObjects.Count > 0)
                                       ceReportObject = ceReportObjects[1];
                                       ceReport  =(CrystalDecisions.Enterprise.Desktop.Report) ceReportObject;
                                       ceParameters = ceReport.ReportParameters;
                                       ceParameterFields = new ParameterFields();
                                       string sParamName="",sParamValue="";
                                       string sPrompt="";
                                       for (int i=1; i <= ceParameters.Count; i++ )
                                            sPrompt="Prompt"+(i-1).ToString().Trim();
                                            ceParameter =ceParameters<i>;
                                            sParamName=     ceParameter.ParameterName.Trim();
                                            sParamValue= Request.QueryString[sPrompt]==null?"": Request.QueryString[sPrompt];     
                                            ceParameterField = new ParameterField();
                                            ceParameterDiscreteValue = new ParameterDiscreteValue();
                                    ceParameterDiscreteValue.Value = sParamValue;
                                    ceParameterField.CurrentValues.Add(ceParameterDiscreteValue);
                                            ceParameterField.Name = ceParameter.ParameterName;
                                            ceParameterField.ParameterValueType = ParameterValueKind.StringParameter;
                                            ceParameterFields.Add(ceParameterField);
                                       crystalReportViewer.ParameterFieldInfo = ceParameterFields;
                                       crystalReportViewer.EnterpriseLogon = ceSession;
                                       crystalReportViewer.ReportSource = ceReportObject;
                                          crystalReportViewer.Visible = true;
                             catch (Exception ex)
                                  lblMessage.Text = ex.Source + ex.Message + ex.StackTrace; 
                                  lblMessage.Visible=true;
    Thanks,
    Chris Peet

  • Dynamic Item not showing in Reports - apex_item.checkbox

    Dear all,
    I want to add a Checkl Box to a report and select some columns. So I used below query for that report.
    SELECT apex_item.checkbox(1,Cus_ID) DELROW,
    Cus_ID Customer_Id,
    Cus_Name Customer_Name
    FROM Customer_ListBut whe I use above query and run the report, Instead of showing checkbox on the report it shows plain HTML code for checkbox under DELROW column.
    This is a example
    <input type="checkbox" name="f01" value="2000" />Any idea??

    Hi Alex,
    Go to report attribute and edit that column.
    Select the column atrribute tab.
    In Display as select "Simple Checkbox" or "Standard Report Column"
    Regards,
    Shijesh

  • Enterprise report TEMPLATE=0REPORT_DEFAULT_TEMPL does not exist

    Hi guys ,
    I have actvated the above mentioned template in business content but when i performed a check in RS_TEMPLATE_MAINTAIN_70 , iam getting the followiong error.
    Enterprise report TEMPLATE=0REPORT_DEFAULT_TEMPL does not exist
    Enterprise report TEMPLATE=0REPORT_DEFAULT_TEMPL does not exist
    Web Item Report error: The report cannot be opened under "TEMPLATE=0REPORT_DEFAULT_TEMPLATE"
    The report cannot be opened
    The report cannot be opened under "TEMPLATE=0REPORT_DEFAULT_TEMPLATE"
    Check whether the report is at this location and it can be read
    Contact your system administrator. This error was recorded
    Can anyone have some idea on this..
    thanks

    Any help on this??

  • Access to customizing default: report templates

    I seem to remember far back in the corners of my memory, someone here on the forum mentioning that although we didn't have access at the time (probably back at HTMLDB 2.0) to customize the default report templates, that there were plans to make this an option in a future version of Apex. Does anyone have any idea if this is something that is being planned, or better yet, available today?
    If you're not sure what I'm talking about I'm referring to the field that says 'Report Template' in the 'Layout and Pagination' section of the 'Report Attributes' page in the application builder.
    The problem I'm having is that I'm using the 'default: vertical report, look 2 (show null columns)' report template and I've got some long column headings that I want to include a line break between each word of the heading, so they're stacked vertical instead of wide horizontally. I've add HTML break tags to the headings but they're disappearing when the page is rendered.
    I've made sure to set the 'Strip HTML' setting to 'No', but whether it's set to yes or no doesn't matter, the headings display the same either way.
    BTW, doing the same thing in a template based multi-row report seems to work fine. However, trying to use/apply the 'Value Attribute Pairs' report template yields the same result as the default vertical look template.
    So I have 2 questions:
    1) anyone know how I can make these heading words stack up vertically, one word to a line?
    2) are we going to get access to customize the default report templates?
    Earl

    Hello,
    1) anyone know how I can make these heading wordsstack up vertically, one word to a line?
    Probably the best way to do this is to just hard code
    a &lt;br /&gt; between your words.That's exactly what I'm doing (and what I said in my original post), however those breaks are disappearing during page rendering when I choose the report templates I mentioned.
    I don't understand why this technique works in the multi-row report templates and not in these vertically oriented value/attribute report layouts.
    2) are we going to get access to customize thedefault report templates?
    No, you should just use a regular theme based
    template, the default report templates are there for
    backwards compatibility and well basically for people
    that don't care about the UI. Since your at the point
    it seems you do care about UI the proper thing to do
    is to move to a standard report template that you
    have full control over.Fair enough. I'll look into that, but I think there's still an open question here as to why the HTML breaks aren't being returned in the page markup for these report layouts.
    Regards,
    CarlEarl

  • Bex dynamic header problem

    Hi All,
    I have 2 problems..
    1) I have to print the vendor statement of account for 1 year. Now for each vendor the vendor code name and address comes followed by other columns of account information related to it. My requirement is that i want the vendor code name and address to appear in header line and then all other information for that vendor comes beneath it. Meaning the vendor name and address comes in 1st line , and from 2nd line all account information related to that vendor comes. then say on 60th line another vendor name and address comes...and from 61st line accoutn information of the 2nd vendor comes.
    How to do it???
    2) i want to ghet dynamic header in the bex report based on the iunformation filled in the selection option. Eg: if user entered a posting date then that posting date should appear in the report header.
    both these are urgent requirements....Plz help soon
    Thanks & regards
    Akash

    Hi , thanks for ur reply but the Report designer is not working , givng me error
    RFC destination NOT_CONFIGURED.
    The main problem is i have to display the name and address of Vendor in a separate row i.e. vendor name and address shud appear in the row and then in following rows the other details.
    Eg.
    11000 Shashi Kapoor  Jaipur         31.12.2006     doc no type etc
    12000 Kamla Verma    Mumbai      12.10.2006    doc no type etc
    Now final putput will be like
    11000
    Shashi Kapoor
    Jaipur
    31.12.2006    .................................
    12000
    Kamla Verma
    Mimbai
    12.10.2006.........................................
    Thanks .

  • BUG: Dynamic report column headings not working with some templates

    Using Apex 2.0, we are trying to create a vertical report with dynamic labels like &P26_REF_RECEIVED_DATE_L. based on items populated by PL/SQL.
    This seems to work fine for some templates but not for others. With a horizontal report template we get output like:
    <th class="t4ReportHeader" id="REF_RECEIVED_DATE">Received</th>
    <td  headers="Received" class="t4data">29-MAR-2007</td>But with the vertical template we get:
    <th>&P26_REF_RECEIVED_DATE_L.</th><td>29-MAR-2007</td>Also, if we use "default: vertical report, look 1" we see "&P26_REF_RECEIVED_DATE_L." in the output, but with "default: vertical report, look 2" we see "Received".
    Message was edited by:
    Tony Andrews

    have you checked that your report template has a
    valid value for the "Column Heading Template"
    property?This template has nothing in the "Column Heading Template" because it is designed to show the data in this form:
    Heading1 - Value1
    Heading2 - Value2
    Heading3 - Value3
    Hence both the heading and the data appear in the "Column Template 1" property as follows:
    <tr><th class="t3header">#COLUMN_HEADER#</th><td class="t3data">#COLUMN_VALUE#</td></tr>
    Maybe it is an Apex limitation that the #COLUMN_HEADER# value can't be accessed from this subtemplate? Yet somehow it works with "default: vertical report, look 2" (which I realise isn't a template as such).

  • Variable Text not working as dynamic header in Crystal report

    Dear Experts,
    I'm working Crystal report that connected to Query BEX SAP BW trough SAP integration kit,
    currently i have case that need report dynamic header using variable text from BEX query, but seem the variable text not working in Crystal reports. the header in Crystal report shown as Desription\technical name, not result from the variable text in Query BEX in SAP.
    In https://wiki.sdn.sap.com/wiki/display/BOBJ/Crystal%20Reports%20and%20BW%20query%20elements stated that the "Text variable" with "replacement path" is supported, but i don't know in my query is not working.
    i already set in Database -> options->  table and fields -> Show Both, but the text variable still not working.
    can you help me
    Crystal Reports 2008 12.2.0.290
    SAP Integration KIT 12.1.0.890
    Thanks
    Luqman

    Post your question BEX and B1 and classic SAP data source issues to the Integration Kit forum

  • Not able to view the values on the report viewed using Query Report Viewer

    Hi all,
    There seems to be some unknown problem with the Report Template I have prepared and uploaded on PIA XML Publisher. When I run it with some ID set, it doesn't seem to show the values from the Data I give. For example if I have a field called ChartField in my report Template, It doesn't seem to get populated when I do SetID.
    Why is it so?

    Hi all,
      select bdmng from resb into corresponding fields of table it_stpo2
                for all entries in it_stpo
                 where matnr = it_stpo-idnrk
                 and xloek ne 'X'.
      loop at it_stpo2.
        move-corresponding it_stpo2 to it_stpo.
        append it_stpo.
      endloop.
    In the above code, m able to fetch the records in the table it_stpo2. but the data is not gettin populated in the final internal table it_stpo. Both the internal tables it_stpo & it_stpo2 are same.
    The data is gettin moved from it_stpo2 to it_stpo but only upto the header level. its not gettin appended in the table it_stpo even after using append stmt.
    Plz help me to resolve this issue. its urgent.
    Rgds,
    Purva

  • Translating a report which is using excel template

    Hello,
    We are working on a BI report using excel template. I've checked the report designer's user guide and it says template translation is a feature only supporting RTF and BI publisher layout template.
    I am wondering what is the best practice for translating a report which is using excel template.
    So far I have a alternative which is making all labels in my template dynamically getting values from HCM lookups , but this solution is time consuming.
    Could anybody help here?
    Regards
    Buyun

    Did you try reading sap help files which clearly explains about Managing templates, selecting templates, creating templates, deleting templates.
    [Managing Templates in ALV|http://help.sap.com/saphelp_apo/helpdata/en/d4/a2a138198daa2fe10000009b38f842/content.htm]
    This will provide you a clear picturesque on handling templates in ALV.
    Edited by: K.Manas on Dec 22, 2010 9:13 AM

  • Dynamic Translation for  reports in apex

    I am busy investigating globalization.
    The current issue I have is that I can quite happily use apex_lang.lang(column_name) to translate lists of values.
    I put the same call in my report (based on sql query) , but the same values are not translated. I subsequently tried basing this on a report (pl/sql body returning query) but this didn't have the desired affect either.
    My Report is hidden until someone presses a button , which is when the report is produced. Since the LOV's were translated I was expecting the report to be translated as well.
    I did see another thread related to this, which appeared to suggest restarting the browser was the solution(I am unconvinced though).
    I am switching languages via a button
    My version of apex is 3.1.0

    The problem was that although the lov's get translated dynamically, you have to republish the application for the changes to appear on the report.

  • Hard code accounts using the dynamic report templates?

    Anyone ever been able to hard code accounts using the dynamic report templates?
    How about getting the Property name/value fields to work?

    Hi,
    No, this is not possible.
    In Dynamic Report templates (which are not based on EVDRE function in version 7 and below), the only thing you can do is to not use any expansion at all and to list your specific accounts on the layout itself. Or to expand your accounts based on a dimension property.
    In version 7.5, all Dynamic Templates for Report and Input Schedules will use EVDRE function.
    Hope this helps.
    Kind Regards,
    Patrick

Maybe you are looking for