Dynamic column headings

I can append p_arg_names=xxx&p_arg_values=yyy to a component's URL to pass parameters to the component. I can change some of the attributes of the component in the same way e.g. for a report:
&p_arg_names=_max_rows&p_arg_values=1
...will return the data 1 row at a time. I am trying to change the column headings in the same manner but when I use:
&p_arg_names=_col_headings&p_arg_values=COL_NAME
... then there is no visible effect. Does anyone have a solution or workaround?

Hi,
What is the purpose you are trying to achieve? There is not such parameter as colheadings.
Thanks,
Sharmila

Similar Messages

  • Dynamic Column Headings in Report Layout

    I am using Report Query/Report Layout for a custom report in BI publisher. My Column Headings are stored in the database. On my pages, I am using the replacement format ' &FIELD_NAME.' to have them show up correctly. How can I do that on my Report Layout?

    Hi -
    1) Add Query just for column headings under Source Query (you can obviously pass in bind variables to select the correct column values if need be).
    2) For layout, pull in the headers from data model (just like any other field) and use them to replace any existing "hard coded" headers.
    Good luck.

  • Dynamic Column Headings - Function returning colon delimited column list

    I created a SQL report using the report wizard.
    In the report options, I chose a heading type of:
    Function returning colon delimited list of columns
    I then wrote a function that returns a VARCHAR2 string.
    I return a string like this...
    Jan-04:Jan-11:Jan-18:Jan-25:Feb-01
    In the text area labeled "Function returning colon delimited list",
    I simply entered the name of the function, in this case,
    the name is "WeekHeader".
    When I execute the report, I get this error:
    unable to determine query headings:
    ORA-06550: line 1, column 45:
    PLS-00221: 'WEEKHEADER' is not a procedure or is undefined
    ORA-06550: line 1, column 45:
    PL/SQL: Statement ignored
    failed to parse SQL query:
    How can I get the report to use my function?

    all you need to do is put the word "return" in front of your function name, and you should be good to go. before you say it, i'll acknowledge that we should probably be more clear about the syntax for that field, so i'll log the enhancement request.
    hope this helps,
    raj

  • Creating Dynamic Column Headings in Interactive Reports

    Hi,
    any ideas how I can alter the name of a column in an interactive report.?
    I have columns whose usage is defined by the end user and consequently want to have their own meaningful column header displayed whenever this column is referenced.
    I can get column headers to change in standard reports by using PL/Sql to return the column headers. In Forms, I use shortcuts (these don't seem to work for reports, I wish they did) but I'm at a loss on how to achieve this with IR's.
    Thanks
    Mike

    I wrote a script(application process) that updated the table that holds column name. I changed the display name, not the column name. I cant remember the actual table, but i found it by looking at the code that create the "APEX Application Page Ir Col" View.
    I dont know if this is best practice, but it works for me.
    Edited by: Adrian3000 on Dec 26, 2008 9:38 AM

  • Dynamic column heading in csv export not working

    Hi,
    I have a SQL report where the column headings are defined dynamically. for an example let's say I have a report
    SELECT NAME, TODAY'S_DATE FROM TABLE A.
    Under report attribute column I have defined column heading as "&P_todays_date.”. This item has source value “Select sysdate from dual. When I export the data into csv file the dynamic column headings are coming as blank.
    Any suggestions?
    Thanks,
    Manish

    You are posting this question in the PeopleSoft forums. I think it belongs in the BI section:
    https://forums.oracle.com/forums/category.jspa?categoryID=16

  • Dynamic crystal report generation - issues with column headings

    Hi All,<br>
    I'm trying to generate a crystal report dynamically based on a "result set" data(Query: select REPORT_ID, REPORT_NAME, REPORT_DESC, RPT_FILE_NAME, LOCATION from IRS_REPORT_DETAILS). I'm able to generate the report run time, But the report is without columns heads. I would like to include the column headings as well. <br><br>
    I searched the API(RAS) and found that there is a 'add(java.lang.String fieldName, java.lang.String headingText) " method present in "ReportObjectController" using which we can add the headings.<br><br>
    ReportDefController reportDefController = clientDoc.getReportDefController();
    ReportObjectController reportObjectController = reportDefController.getReportObjectController();
    reportObjectController.add( "{Table.Field}", "FieldName" );
    <br><br>
    I'm facing problems in using this code. When trying to use this function for my fields(Ex: reportObjectController.add( "{ IRS_REPORT_DETAILS.REPORT_ID}", "Report ID" );) it is giving me the following error:<br><br>"com.crystaldecisions.sdk.occa.report.lib.ReportSDKGroupException: The field was not found.---- Error code:-2147213310 Error code name:fieldNotFound"<br><br>
    <b>The following is my dynamic crystal report generation code:</b><br><br>
    public ReportClientDocument execute(String repName, String query) {
              ReportClientDocument boReportClientDocument = null;
              try {
                   boReportClientDocument = new ReportClientDocument();
                   boReportClientDocument.newDocument();
                      // Add a table based on the given Resultset to the report.
                   dbConnResultSet mySampleResultSet = new dbConnResultSet();
                   //mySampleResultSet.execute(query);
                   boReportClientDocument.getDatabaseController().addDataSource(
                             mySampleResultSet.execute(query));
                   IReportSource test = boReportClientDocument.getReportSource();
                   // Access all the database fields
                   DatabaseController databaseController = boReportClientDocument
                             .getDatabaseController();
                   IDatabase database = databaseController.getDatabase();
                   Tables tables = database.getTables();
                   ITable table = (Table) tables.getTable(0);
                   int NO_OF_FIELDS = table.getDataFields().size();
                   int LEFT_POSITION = 200;
                   // Add all the database fields to the report document
                   for (int i = 0; i < NO_OF_FIELDS; i++) {
                        IField field = table.getDataFields().getField(i);
                        FieldObject fieldObject = new FieldObject();
                        fieldObject.setFieldValueType(field.getType());
                        fieldObject.setDataSource(field.getFormulaForm());
                        IReportObject rep = (IReportObject) fieldObject;
                        IObjectFormat objformat = rep.getFormat();
                        objformat.setEnableCanGrow(true);
                        objformat.setHorizontalAlignment(Alignment.from_int(1));
                        rep.setFormat(objformat);
                        rep.setLeft(LEFT_POSITION);
                        rep.setWidth(1000);
                        LEFT_POSITION = LEFT_POSITION + 1000 + 50;
                        ISection section = boReportClientDocument
                                  .getReportDefController().getReportDefinition()
                                  .getDetailArea().getSections().getSection(0);
                                   //***************** Data being added to the report here, But headings are not added*****************
                        boReportClientDocument.getReportDefController()
                                  .getReportObjectController().add(rep, section, i);
                   boReportClientDocument.createReport();
                   /*Some report saving code is present down*/
              } catch (ReportSDKException ex) {
                   ex.printStackTrace();
              } catch (Exception ex) {
                   ex.printStackTrace();
              return boReportClientDocument;
    <br><br>
    appreciate your help.

    IField field = table.getDataFields().getField(i);
    Here you are getting the first field in the array.  This may not be the field you want to add since we aren't sure how the arrays are ordered when retrieving fields from the report.  It is better to retrieve the fields with the findObjectByName method, thus ensuring you are retrieving the field you want to add to your heading.

  • LOV of column names with a report's custom column headings?

    I have a list ov values definition that looks like this:
    select column_name d, column_name r from all_tab_columns where table_name = 'DATABASE_LIST'
    I'd like to list the custom column headings from a report as d, rather than repeating the column_name. How can I do this?

    As Anton said, the best thing is to store your custom headings in a table so that you can use the table for your LOV as well as for your report headings.
    To use dynamic report headings, you can use the 'PL/SQL function body returning colon-delimited headings' feature on the Report Attributes page.
    So, if your report headings are stored in table t that function body can be
    declare
    l_headings varchar2(4000)
    begin
    for rec in (select heading from t) loop
       l_headings := l_headings||':'||rec.heading;
    end loop;
    return ltrim(l_heading,':');
    end;Hope this helps.

  • Creating Dynamic Column Names at Runtime

    I have a dynamic query that I'm running under Portal. I would
    like to assign column headings based on the query results.
    Example:
    Select a.x "a.name_x",
    a.y "a.name_y",
    a.z "a.name_z"
    from a
    where a.q = "user input"
    I know the above example will not run, but I'm using it to make
    the point as to what I would like display as column headings.
    TIA
    Sean

    Hi,
    You can try this
    select 'col_name1' col1, 'col_name2' col2, ..., 'col_namen' coln
    from dual
    union all
    select col1, col2, ... coln from tbl
    then, eg. you're building a report, you can just set each column
    heading text to ' '. of course you can use such as
    select decode(:var,1,'col_name1',2,'col_name2...)...
    This trick is not suitable for multi-page report publishing, cos
    the column headings are actually the first line of record.
    hope that would help
    JC

  • How to haveour own titles/captions in selection screen & in column headings

    we have SAP B1 2005 A, MS SQL 2005
    though i am new to MSSQL/T-SQL programming, purely through lot of trials & errors i have learnt & managed to develop many reports/queries !
    but, i am facing some problems : how to have our own captions/title for the options in selection screen & aso in reports/queries column headings.
    e.g. :
    for Customer Aging analysis, i would like to accept a set of 3 parameters (aging days) from the user. where the user may enter the values 30, 60 & 90 OR any other values.
    i have the following codes for this purpose (considering my question's (over) size, only small portions of my program are given below)
    declare @mdue1 int,
               @mdue2 int,
                @mdue3 int
    set @mdue1 = [%1]
    set @mdue2 = [%2]
    set @mdue3 = [%3]
    but, in the selection screen, the system displays "%1 Debit Amount   Greater than" as the caption & 0.00 as the default value. the same is the case for the other two parameters [%2] & [%3] also.
    i tried defining the variable @mdue1 as smallint & also tinyint, but the result is the same.
    how to have our own captions/title for the options in selection screen instead of the ones displayed by t-sql based on our SELECT statement.
    how to have our own column headings, dynamically defined/coined using variables instead of hard coded columns headings (within quotes).
    e.g. in the select statement, instead of defining a column as '<= 30 Days' = T0.due_1
    i would like to get the number of days from the user, who may enter 30 or 40 or whatever.
    i would like to display the value that the user entered in the column heading using a variable say @mcol1
    declare @mcol1 varchar(10)
    set @mcol1 = '<= 'convert(varchar(10), @mdue1)' Days'
    SELECT T0.CardCode,@mcol1 = T0.due_1 from #CustAging T0
    but, this ends up in error.
    i have already searched the net for ebooks, articles, etc. for a solution to this problem, but till now, i could not find any addressing these problems.
    i have just registered in this forum with a hope to get a solution. thanks a lot in advance.
    Thanks & Regards,
    Raghu Iyer
    Place : Vapi, Gujarat, India

    thanks a lot, lstvan.
    i think, it i a good "trick" worth trying out.
    well, i will now mark this question as answered, but still, if anyone has a direct solution "problem", please do share with us.
    i am able to write queries (in fact, full fledged programs) in T-SQL & getting the desired output and for such a trivial thing i do not want to go for an add-on SDK module. but, considering the limitations of T-SQL and the complex requirements of real business world, i think, we have to go the .net way only.
    regarding add-ons, i heard that add-ons will slow down SAP B1. is it true ?
    Thanks & Regards,
    Raghu iyer

  • Problem with dynamic column in SBWP

    Hi Friends,
    In SWL1 I have created two attributes with header as "CANCELLED" and " DESCRIPTION" for a particular task.But my SBWP is still showing columns as "Dynamic column" for the workitems of that task.
    Please help me on this.
    Thanks.
    Dilip

    Hi Dilip,
    The column headings will only appear in the task-specific view. In other words, by default the headers will be generic because you can have mixed tasks in the worklist, and column 1 can be a date for one task and a company name for another.
    The user needs to expand the tree on the left hand side and navigate to the "Approve Purchase Order" (or whatever) node to show only items of that task, then column headers should show up.
    Regards,
    Mike

  • Problem with dynamic columns in smartforms.

    Dear SDN Experts,
    I have a requirement in smartforms for dynamic columns.
    i have used template with 10 columns, So from these 10 columns,Columns may vary monthly MIN 2 to MAX 10 depending on
    readings with them  for that month.
    i cannot fix column headings also,Because headings also changes dynamically.
    So Problem is if there is no data in columns,Columns is displayng empty.
    For EX: In this month i have 2 columns data remaining all columns is displaying empty boxes.
    Please suggest me a solution  is this posible in smartforms if i use table also.
    <removed by moderator>
    Regrds,
    MNR
    Edited by: Thomas Zloch on Sep 11, 2011 3:50 PM

    Hi friend,
    See the link below it is having the solution of hiding the columns in smart forms
    Hide table columns in smart form?
    Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
    I think this will solve your issue if you still have queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Pivot Table with Dynamic Columns and Headers

    Hello,
    I'm trying to pivot a table of data where the column headers will be dynamic.  While I know how to pivot the table to get what I want how will I be able to pick up the table column header from the Pivot to display in the report?
    For example:
    Unpivoted data is Employee Code, Branch Code, Problem Code, # of Problems.
    There is many records for a given Employee and Branch that I want to pivot so the Column headers are the Problem Codes and the data below is the SUM(num_problems) for that Problem.
    So the data may look like this for Tech Bob, Branch NY.
    Problem = LEAK, Num_problem = 5
    Problem = DAMAGE, Num_problem = 2
    Problem = OTHER, Num_problem = 3
    Which problem codes may appear is unknown but selecting the DISTINCT(problem) across all techs gives me the column headings to use.
    So if I pivot this data, I get this Row:
    Tech = Bob, Branch = NY, DAMAGE = 2, LEAK = 5, OTHER = 3
    So first can SSRS handle having dynamic columns?  Only Tech and Branch are known and the remaining columns are dynamic based on how many Problems they worked on.
    Second, how can I set the column heading in my Tablix to be the Problem Code?
    Sherry

    You just need to use a  matrix container
    Use EmployeeCode and BranchCode for row group
    ProblemCode as column group and SUM([No Of Problems]) as the data expression and it will generate the columns for you based on ProblemCode values automatically.
    See an example here
    Sample Matrix
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Adding column headings

    I am using RAS server to create dynamic columns in my report. But the column headings are not coming.
    Isnt there any way to set the heading for the newly added columns?   
    Any idea what i am missing?   
    Here is a code i am using
        Private Sub AddTableFromDataSet(ByVal ds As System.Data.DataSet, ByVal crTable As CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable)
            ' Add the dataset as a data source to the report
            m_boReportClientDocument.DatabaseController.AddTable(crTable, DBNull.Value)
            m_boReportClientDocument.DatabaseController.SetDataSource(DataSetConverter.Convert(ds), "TEST")
            Dim ifield As Integer
            ' Add a field to the report canvas
            Dim CrField As CrystalDecisions.ReportAppServer.DataDefModel.ISCRField
            For Each dtfield In m_boReportClientDocument.Database.Tables(0).DataFields
                ifield = m_boReportClientDocument.Database.Tables(0).DataFields.Find(dtfield.Name.ToString, CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault)
                CrField = DirectCast(m_boReportClientDocument.Database.Tables(0).DataFields(ifield), Field)
                CrField.HeadingText = CrField.Name
                CrField.Description = "TEST"
                m_boReportClientDocument.DataDefController.ResultFieldController.Add(-1, CrField)
            Next
        End Sub
    Thanks in advance

    You either have to add the heading yourself, or you can use
    reportClientDoc.ReportDefController.ReportObjectController.AddByName("{Orders.OrderID}", "OrderID")
    This doesn't let you set anything about the objects, so it would probably be better to add them separately.

  • Interactive Reports using collections - How to control column headings

    Hi,
    I found a link in the forum somewhere that showed a step by step how to to use collections with Interactive Reports so you can dynamically build the SQL and also control the column headings. Does anyone know where the How-To is ??
    If not, I know how to build the SQL dynamically but what is the best way to control the column headings.
    Sometimes the report will have 17 columns and other times up to 30 columns.
    Thank you, Bill

    Hi Bill,
    Without knowing more about the PL/SQL code, the underlying tables and the select statements used, it is difficult to say.
    I would firstly check that I had indexes on the right column or combination of columns. One minute sounds a lot for a query to me, but that may be ok if the tables are very large and the PL/SQL has to do a fair bit to construct the output. You could also do an Explain Plan for any query to check to see if indexes are being used if they exist - this would also show up any part of a query that takes an inordinate amount of time.
    I assume that the PL/SQL is only run once even if the page is reloaded multiple times? However, once the collection has been created, the report itself should be fairly quick as it should be just a simple select over the collection data. Switching on the debug mode should help identify which part is taking the time.
    Andy

  • Fixed and dynamic field headings in field catalog

    i have to develop an ALV Report where certain column headings are fixed and other column heading will be changing from time to time.
    is there any method to do so.
    that is i have to show the report for 3 months and the names of months will be changing in due course.
    Waiting for a reply.
    A.Reshma

    hi,
    you have 4 texts
    SELTEXT_L
    SELTEXT_M
    SELTEXT_S
    and   DDIC_TEXT  (not sure about spelling)
    change this text dynamicly with month of your choice.
    Rgds

Maybe you are looking for

  • Hide Cost Center & GL Account in Movement Types 551-556

    All, Requirement - Movement Types 551-556 should not allow the user to see or enter the Cost Center or G/L Account. How can I remove the user from having to enter and see the cost center and G/L account fields from movement types 551-556? I see I can

  • Wine and directsound 3d

    I have a problem with wine, I have enabled hardware sound with winecfg but I have errors anyway when I start games with wine, errors say that hardware acceleration is not enabled and wine will use HEL instead. I can't post the errors cause now i'm in

  • Itunes movie rental "Cannot Open" Message Ipad3

    Hi I have been downloading iTunes rental movies for a couple of months and playing them on my Ipad3 with no trouble. Over the last few weeks I have been getting a "Cannot Open" Message when I try and play a film. Sometimes it works and other times it

  • How can I add metadata to iWeb pages hosted on .mac?

    How can I add title/description/keyword metadata to my website? Is there an easy solution? I publish my site to my .mac account. Any direction would be appreciated. I work in the web marketing industry, so it bugs me not being able to add metadata to

  • IPhone 4S' Mail's unread e-mail attachments, but where?

    Hi! I am helping a client with his old iPhone 4S' Mail that shows three/3 unread e-mail attachments. So far, he was unable to find them and even tried to delete some unwanted e-mails and read all his e-mail attachments, but Mail still showed 3/three.