Adding custom column to a report
I'm a newbie using APEX 2.1 on Oracle XE.
I've created a simple page with a report which displays the list of rows in a table. I'd like to add an extra column to this report with an "Edit" button for each row. (So I can obviously edit individual rows in a separate window) But I can't see any way to alter the report output to be able to add extra columns.
Have I approached this the wrong way ? (NOTE: I don't want to edit the row in-situ in the table)
Thanks.
Try using the Form Wizard to create your pages. If you select the "Form on a Table with Report". It will for the most part do all the work for you. Then you just cleanup the UI to look the way you want it too.
Similar Messages
-
Adding Custom Column in Report
Hi,
I want to add custom column in the report to show some values after calculation. Can any one tell me is it possible to add?
NismanI think you can do that.
Drag any column, go to Fx and override the column heading and value with your desired value.
Dinesh -
REPORT-12KST1A or T-CODE 'CJE0' Adding a column in predefined report
hi guru's
Please let me know how to insert a new column in the (PROJECT SYSTEMS )
report 12KTST1A . for that reason i copied that report in customising but
i cant able to edit that because it is generating automatically.
The path to get to this report is:
Accounting
Capital investment management
Investment projects
Information system
Report selection
Costs
Budget-related
Budget/Actual/Commitmt/Rem.Plan/Assigned
Then (after entering Cntl Area & DB prof), we narrow data using "Dynamic selection" icon & check Company code. Then enter valid company & save.
Then enter project range, then execute.
OR
T-CODE "CJE0".
is there any procedure to insert a column .
I have not used Report Writer/Report Painter previously
Thanks in advance for any and all help!
regards,
satheesh.
Edited by: satheesh sath on Jan 15, 2008 5:40 AMI have solved it myself by adding few lines in stored procedure. Would like to share the solution, so that it will be helpful for others.
Open the stored procedure which we are using for the default "List of Incidents" reports.
Add the below under SELECT
SupportGroup = ISNULL(TierQueuesDS.DisplayName, TierQueuesEnum.IncidentTierQueuesValue),
TierQueuesEnum.IncidentTierQueuesId AS TierQueuesId,
Classification = ISNULL(ClassificationDS.DisplayName, ClassificationEnum.IncidentClassificationValue),
ClassificationEnum.IncidentClassificationId AS ClassificationId,
Add the below under FROM
LEFT OUTER JOIN
dbo.IncidentTierQueuesvw AS TierQueuesEnum
ON TierQueuesEnum.IncidentTierQueuesId = I.TierQueue_IncidentTierQueuesId
LEFT OUTER JOIN
dbo.DisplayStringDimvw TierQueuesDS
ON TierQueuesEnum.EnumTypeId=TierQueuesDS.BaseManagedEntityId
AND TierQueuesDS.LanguageCode = @LanguageCode
LEFT OUTER JOIN
dbo.IncidentClassificationvw AS ClassificationEnum
ON ClassificationEnum.IncidentClassificationId = I.Classification_IncidentClassificationId
LEFT OUTER JOIN
dbo.DisplayStringDimvw ClassificationDS
ON ClassificationEnum.EnumTypeId=ClassificationDS.BaseManagedEntityId
AND ClassificationDS.LanguageCode = @LanguageCode
Then open the report from Report Builder and add new column in the design. Add Support Group and Classification as a column in the report.
Thanks & Regards, Dinesh -
Adding custom columns to the tasks tab in UWL
Hi Experts,
We have UWL configured for GP in CE 7.1.
Currently we have standard columns like Subject, From, Sent Date etc. only
I need to add some columns like Project No., Customer No.(GP parameters) to the 'Tasks' tab in it.
These columns are required for all the Work items that appear in UWL.
I have read about adding custom view for a specific task , but not sure how it can be done in my case.
Kindly provide inputs for this.
Thanks and Regards
AanchalHi Aanchal,
i have posted exactly the same problem a few months ago, and no one answered me.
I couldn't find any documentation on how to add custom GP parameters in the universal worklist, in the examples on customizing the UWL XML they always refer to parameters from the r/3 webflow, never GP.
I really can't believe that nobody ever tried to do this and faced this problem!
Please let me know if you find something..
Regards,
Marco. -
Adding custom column to Process tracking view
I have a requirement that in process tracking screen, some custom column (e.g instruction) should be added so that different processes listed there can easily be differentiated.
I tried to do this change in Workspace through Preferences->Manage Column Headings -> Tracking. But it affects only the Tasks view (Audit tab) for the process and not the initial process tracking screen. I also tried creating a process variable and made it Visible in UI and Searchable so that it is shown in the column heading list. But still that heading does not show up in the initial process tracking screen.
Is there way through which we may be able to customize the column headers for the initial tracking screen?
(The server is Livecycle 8.0.1)
Thanks,
AshutoshNot that I'm aware of.
However, we have built an enhanced tracking and enquiry tool that provides a lot more flexibility than the built-in tracking, and is also very easy to configure.
Read about it: http://www.avoka.com/avoka/enquirytool.shtml
Try it: http://www.avoka.com/apps/checkcookie?location=/apps/qpacdownload&qpac=y&qpac_code=Worksp aceEnquiryTool1.8
Howard
http://www.avoka.com -
OBIEE 10g Getting wrong results when adding calculated columns to a report
Hi,
I'm experiencing a possible misbehaviour with OBIEE 10g (10.1.3.4.1).
I have a simple report with a table. Columns are simply selected from dimensions and facts. In this case the generated query is:
WITH
SAWITH0 AS (select sum(T30604.TOTAL_TIME) as c1,
sum(T30604.MATERIALS_QTT_COST) as c2,
sum(T30604.AMNT) as c3,
sum(T30604.QNTY) as c4,
T30622.BRANCH_CODE as c5,
T25064.SRP1_CODE as c6,
T25064.SRP1_DESC as c7,
T25064.SRP2_CODE as c8
from
THK_BRANCHES T30622,
THK_ITEMS T25064,
THK_INVENTORY_TRANSACTIONS T30604
where ( T25064.ITEM_ID = T30604.ITEM_ID and T30604.BRANCH_ID = T30622.BRANCH_ID )
group by T25064.SRP1_CODE, T25064.SRP1_DESC, T25064.SRP2_CODE, T30622.BRANCH_CODE)
select distinct SAWITH0.c5 as c1,
SAWITH0.c6 as c2,
SAWITH0.c7 as c3,
SAWITH0.c8 as c4,
SAWITH0.c4 as c5,
SAWITH0.c3 as c6,
SAWITH0.c2 as c7,
SAWITH0.c1 as c8,
SAWITH0.c4 as c9,
SAWITH0.c3 as c10,
SAWITH0.c2 as c11,
SAWITH0.c1 as c12,
SAWITH0.c4 as c13,
SAWITH0.c3 as c14,
SAWITH0.c2 as c15,
SAWITH0.c1 as c16,
SAWITH0.c4 as c17,
SAWITH0.c3 as c18,
SAWITH0.c2 as c19,
SAWITH0.c1 as c20
from
SAWITH0
Results of this report / query are correct.
I then add a simple calculation (subtraction between two fields). The generated query is:
WITH
SAWITH0 AS (select sum(T30604.MATERIALS_QTT_COST) as c1,
sum(T30604.AMNT) as c2,
T30622.BRANCH_CODE as c3,
T25064.SRP1_CODE as c6,
T25064.SRP1_DESC as c7,
sum(T30604.TOTAL_TIME) as c8,
sum(T30604.QNTY) as c11,
T25064.SRP2_CODE as c12
from
THK_BRANCHES T30622,
THK_ITEMS T25064,
THK_INVENTORY_TRANSACTIONS T30604
where ( T25064.ITEM_ID = T30604.ITEM_ID and T30604.BRANCH_ID = T30622.BRANCH_ID )
group by T25064.SRP1_CODE, T25064.SRP1_DESC, T25064.SRP2_CODE, T30622.BRANCH_CODE),
SAWITH1 AS (select D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3,
D1.c4 as c4,
D1.c5 as c5,
D1.c6 as c6,
D1.c7 as c7,
D1.c8 as c8,
D1.c9 as c9,
D1.c10 as c10,
D1.c11 as c11,
D1.c12 as c12
from
(select sum(SAWITH0.c1) over (partition by SAWITH0.c3) as c1,
sum(SAWITH0.c2) over (partition by SAWITH0.c3) as c2,
SAWITH0.c3 as c3,
sum(SAWITH0.c1) over (partition by SAWITH0.c6, SAWITH0.c3) as c4,
sum(SAWITH0.c2) over (partition by SAWITH0.c6, SAWITH0.c3) as c5,
SAWITH0.c6 as c6,
SAWITH0.c7 as c7,
sum(SAWITH0.c8) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c8,
sum(SAWITH0.c1) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c9,
sum(SAWITH0.c2) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c10,
sum(SAWITH0.c11) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c11,
SAWITH0.c12 as c12,
ROW_NUMBER() OVER (PARTITION BY SAWITH0.c3, SAWITH0.c12 ORDER BY SAWITH0.c3 ASC, SAWITH0.c12 ASC) as c13
from
SAWITH0
) D1
where ( D1.c13 = 1 ) ),
SAWITH2 AS (select sum(T30604.MATERIALS_QTT_COST) as c1,
sum(T30604.AMNT) as c2
from
THK_INVENTORY_TRANSACTIONS T30604)
select SAWITH1.c3 as c1,
SAWITH1.c6 as c2,
SAWITH1.c7 as c3,
SAWITH1.c12 as c4,
SAWITH1.c11 as c5,
SAWITH1.c10 as c6,
SAWITH1.c9 as c7,
SAWITH1.c8 as c8,
SAWITH1.c10 - SAWITH1.c9 as c9,
SAWITH1.c11 as c10,
SAWITH1.c10 as c11,
SAWITH1.c9 as c12,
SAWITH1.c8 as c13,
SAWITH1.c11 as c15,
SAWITH1.c10 as c16,
SAWITH1.c9 as c17,
SAWITH1.c8 as c18,
SAWITH1.c11 as c20,
SAWITH1.c10 as c21,
SAWITH1.c9 as c22,
SAWITH1.c8 as c23,
SAWITH1.c5 as c26,
SAWITH1.c4 as c27,
SAWITH1.c2 as c28,
SAWITH1.c1 as c29,
SAWITH2.c2 as c30,
SAWITH2.c1 as c31
from
SAWITH1,
SAWITH2
Results of this report / query are wrong: it seems as if some rows "disappear".
If I delete the filter in SAWITH1 query above ( D1.c13 = 1 ) results are correct.
Anyone experiencing the same problem? The strange thing is that I have a number of similar reports (on other subject areas) and everyting is working fine.
Please also note that I don't want to add this kind of calculated items in the RPD (they can be simple calculations that are made on-the-fly).
Any help would be greatly appreciated.
Thanks a lot and regards,
CristinaI have the same issue, everything OBIEE server generate query using ROW_NUMBER() over () function, it will hardcode Dx.cx = 1, this will cause issue if you have rows of the same distinct value, thus causing missing rows and the final results will be wrong.
I have open a SR with Oracle Support since March 2011, but till today, they have not resolve the issue yet.
Hope they solve the issue soon.
Best Regards
KT -
Adding custom column to a Data Table (bound to database table)
Hello,
I've added an additional "Output Text" column to an existing "Data Table" component, which is pulling a database table and rendering it. It's actually called "OutputText5". What I want to do, is set the value of the "OutputText5" dynamically, depending on a Date comparison between the system date, and one of the currentRow field values, which is actually an Oracle Date data type. basically I'm trying to use the Date.after() comparison and put different content in there depending on true or false evaluation.
Seems simple enough .. but.. I'm trying to do this without using vim and JSP Beans (how I'd usually do this). I'm not experienced with JSF components and how this would be done using JSC - can I iterate over currentRow or something inside the "Page1.java" source? Is there an easy way to create dynamic value bindings like this in Data Table components in general? Maybe using expressions in "OutputText5" properties or something? I figure I should ask about doing this the easy way, before I spend lots of time and start teaching myself bad habbits.
I apologise in advance if this is a repeat post. I spent some time searching ,but came up empty handed.
Thanks in advance.
David BashamHi David,
Here's some ideas to try on:
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=49459
hth,
v -
Adding custom buttons to crystal reports html viewer
Hello,
I'm using crystal reports for eclipse and I have a time chart in my report that is displayed with html viewer. I need a button bar to navigate on this chart e.g. the button which adds values to chart for the next month.
Is it possible to add custom buttons to the button bar of crystal reports viewer ?
Thanks in advance.
Greetings,
NikolasDear Shashidhar,
regarding your request I have to inform you that the ECL Viewer is developed by a third-party vendor company and so from SAP point of view there is no chance to enlarge the buttons for redlining in the ECL Viewer.
Best regards,
Christoph -
ORA-00904 - invalid identifier when adding new column to the report query
Hi,
I am trying to add a new field to an existing bespoke report query. When I click on ok, I get the following error
message: "ORA-00904: <field name> : invalid identifier ==> <field_name>
Any ideas what is causing this problem? Version of the report builder is : 6.0.8 and is connected to a 10.2 db.
Any help appreciated.
Many Thanks,
Praveen
Edited by: praveenrn on May 21, 2009 2:38 PMWhat is the field name ? Maybe a reserved word ? Change to "my_new_variable" to check...
Cheers,
Jens Rettig -
Adding custom column to a user matrix
Hi all
I have a little problem
When i create my matrix i add columns according to how many ship to's i have
from there if i have 3 ship to's three columns are created with the shipto Name as the title.
My problem is
The ship to itself length is > 10 characters then my program crashes and says
INVALID length string cannot surpass 10 characters.
I know this has to do with the datasources the thing is the datsource are useally created AFTER the matrix is created. So i cannot define a length for the column BEFORE the matrix is created because i get a null reference
My question is is there a way without datasources or with to set the colmun length
and when i say length i do not mean size. ( i actually mean how many characters this column can accept)
Thanks looking forword to your answers!Hi
To answer your Question
Here is the order in which i create a MATRIX
1) Create Form
2) Add Matrix with columns
3) Create Datasources for Matrix columns
Now according to what you said i can very well do it at step 3 the problem is
my columns are Filled at step 2. on creation of the Matrix before the datasources are instantiated.
I am wondering if there is a way to instantiate my datasource BEFORE creating my column
The other way of fixing this problem is changing my code which at this point is the last option.
Thanks for any help sorry i was not clear. -
Adding profit center column in CJI3 report
Hi Experts,
How can I add profit center column in CJI3 report ?
This field is not available in "change layout" option as one of the hidden columns.
Please need help
Thanks
FerdawsDefault CJI3 report does not have the profit center field.
One option could be (and this is what we using in our system for adding additional columns in CJI3 report):
Enhancement on CJI3 report.
Implement enhancement COOMEP01 (enhancment componment EXIT_SAPLKAEP_001).
You need to extend your CO structure COEP (CI_COBL) or RKPOS (CI_RKPOS) to add profit center field in this structure. Then implement the above enhancement with a simple code to fill the profit center field with lookup from WBS master table.
Hope this helps.
Thanks.
Rahul -
Adding the columns dynamically in crystal report
Hi,
I am developing a application using asp.net and crystal report. In a report the column is created dynamically( ie, the report gets input from a sp which returns N no. of columns). Since i dont know the column name and no. of columns at design time i am not able to create the report. If any of you have any idea on adding the columns dynamically please send me the code or the link.
Thanks
SankarHello Sankar,
please see CS code for VS 2005 below to add a database field to a report using inproc RAS.
This sampels retrieves the table column name from the database and adds it to the report.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.DataDefModel;
namespace CS_Add_Field_inproc
public partial class Form1 : Form
// CR Declarations
ReportDocument boReportDocument;
ISCDReportClientDocument boReportClientDocument;
CrystalDecisions.ReportAppServer.ReportDefModel.Section boSection;
CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject boFieldObject;
public Form1()
InitializeComponent();
//Create a new ReportDocument
boReportDocument = new ReportDocument();
// load the RPT file
boReportDocument.Load("..
AddField.rpt");
//Access the ReportClientDocument in the ReportDocument (EROM bridge)
boReportClientDocument = boReportDocument.ReportClientDocument;
//Get the first section in the details section
boSection = boReportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[0];
//Create the field object that we will add to the report and set all of its properties
boFieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();
//Set which field to use for the data to be displayed
boFieldObject.DataSourceName = "{Customer.City}";
boFieldObject.FieldValueType = CrystalDecisions.ReportAppServer.DataDefModel.CrFieldValueTypeEnum.crFieldValueTypeStringField;
boFieldObject.Left = 4 * 1440; //1440 twips per inch
boFieldObject.Width = 3 * 1440;
boFieldObject.FontColor = new CrystalDecisions.ReportAppServer.ReportDefModel.FontColor();
boFieldObject.FontColor.Font.Name = "Arial";
boFieldObject.FontColor.Font.Size = 10;
boFieldObject.Format.HorizontalAlignment = CrystalDecisions.ReportAppServer.ReportDefModel.CrAlignmentEnum.crAlignmentLeft;
//Add the object to the report
boReportClientDocument.ReportDefController.ReportObjectController.Add(boFieldObject, boSection, -1);
// show in reportviewer
crystalReportViewer1.ReportSource = boReportDocument;
private void button1_Click(object sender, EventArgs e)
//Get the first section in the details section
boSection = boReportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[0];
//Create the field object that we will add to the report and set all of its properties
boFieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();
//Set which field to use for the data to be displayed
boFieldObject.DataSourceName = "{Customer.City}";
boFieldObject.FieldValueType = CrystalDecisions.ReportAppServer.DataDefModel.CrFieldValueTypeEnum.crFieldValueTypeStringField;
boFieldObject.Left = 4 * 1440; //1440 twips per inch
boFieldObject.Width = 3 * 1440;
boFieldObject.FontColor = new CrystalDecisions.ReportAppServer.ReportDefModel.FontColor();
boFieldObject.FontColor.Font.Name = "Arial";
boFieldObject.FontColor.Font.Size = 10;
boFieldObject.Format.HorizontalAlignment = CrystalDecisions.ReportAppServer.ReportDefModel.CrAlignmentEnum.crAlignmentLeft;
//Add the object to the report
boReportClientDocument.ReportDefController.ReportObjectController.Add(boFieldObject, boSection, -1);
// show in reportviewer
crystalReportViewer1.ReportSource = boReportDocument; -
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. -
How to pass custom column value that is created in Answers to its detail report
Hi,
I have a custom column (in the below ex: 'Aging') which is calculated based on prompt date and arrived at the below aging buckets. I have a drill report from 'Balance' column. When I click on 100/200/125 corresponding 'Aging' value should be passed to the detail report.
Aging
Balance
0-30 days
100
31-60 days
200
61-90 days
125
Tried putting the 'Aging' formula in detail report and make it 'is prompted' - no luck.
Is creating the logic in RPD with a request variable (to pass prompt date) only option to solve this? Any suggestions?
Thanks in advance and a very happy new year.Finally, we used a request variable and handled this in RPD.
-
Filter for custom added site columns using rest
Hi everybody,
I'm trying to filter a REST Response by a custom added site column.
when i'm using the endpoint lists() with /Items the filter works great:
site/_api/Web/Lists(guid'805e17b0-2728-4b30-a889-a7e8f025696b')/items?$filter=astringcolumn%20eq%20%27dfg%20-----------------------------%27
but when I'm trying to filter using
site/_api/Web/GetFolderByServerRelativeUrl('/sites/DennisDevSite/alib')/Files?$filter=astringcolumn%20eq%20%27dfg%20-----------------------------%27
I get a response that states Field or property "astringcolumn" does not exist.
event if I add &$select=astringcolumn&$expand=astringcolumn to the url the same error is returned
Why does the first work and the second does not?
Thx in advance
Dennis
P.S.: sorry: I also posted this question in the sharepoint 2013 apps forums. but I think it's better to post it hereHi Dennis,
Steve as mentioned the reason this happens. You may try any of the following workarounds:
Get the files using Files Rest endpoint and then perform the filteration in the success handler based on the custom column. The Rest query needs to include ListItemAllFields. Example: site/_api/Web/GetFolderByServerRelativeUrl('/sites/DennisDevSite/alib')Files?$expand=ListItemAllFields
Note that you cannot use filter in the Url.
The other option is to use CAML Query Payload, but that can only be used with getitems REST endpoint. However, this will return the ListItem corresponding to the file. It wont be a file object. Example:
function getListItems(viewXml)
var url = "http://aissp2013/_api/web/lists/getbytitle('Management Documents')/getitems";
var queryPayload = {
'query' : {
'__metadata': { 'type': 'SP.CamlQuery' },
'ViewXml' : viewXml,
'FolderServerRelativeUrl': '/ManagementDocuments/F1'
return $.ajax({
url: url,
method: "POST",
data: JSON.stringify(queryPayload),
headers: {
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"Accept": "application/json; odata=verbose",
"content-type": "application/json; odata=verbose"
var query = "<View><Query><Where><Eq><FieldRef Name='Location' /><Value Type='Text'>Srinagar</Value></Eq></Where></Query></View>";
getListItems(query)
.done(function(data)
console.log(data);
.fail(
function(error){
console.log('Error');
Still, the other option is to use old fashioned ListData.svc. It will allow filter in the url and will also return some file properties like Name, approval status, version etc along with all custom properties. Example:
http://aissp2013/_vti_bin/ListData.svc/ManagementDocuments/?$filter=Path eq '/ManagementDocuments/F1' and Location eq 'Srinagar'
Please remember to up-vote or mark the reply as answer if you find it helpful.
Maybe you are looking for
-
I movie 11: how do i find an event for a particular clip in my project
I movie 11: how do i find an event for a particular clip in my project
-
Phone is frozen how do I fix it?
My phone is frozen (IPhone 4) how do I fix it?
-
Error Occures while Passing Data
Hi All, I am making an ADD-On Form by using VB.Net 2005 on its DI API portion. And its UI API portion is designed in XML. This Add-On has an Matrix on it, which store item details. Now while I am going to choose Items from ItemList , after selecting
-
How to make my multicam nest in the timeline?
Hey, When I create a Multicam Source Sequence it plays back as multicam in the source window. But when I drop the Multicam nest into the timeline it appears to split the cameras onto 2 different tracks. How do I enable the multicam in the timeline?
-
Having problem with with Apple tv?
I am having problem with wifi connection? can someone please help me out with this problem