Filter the report based on the parent report column values
Hi,
period --- jan12 feb12 mar12...
tickets --- _3_ _10_ _16_ .....
This is my report layout.When i click on the no.of total tickets 3/10/16.It need to navigate to another report which should be filtered based on the reporting period as well as total tickets.
How can i achieve this requirement.Is there any possibility to pass the column values from one report to another report?
I tried "filter based on the another request" but it not worked for me.
The summary of the requirement is when i click on 3 it need to display the 3 tickets details only...
Anyone please help me out.
thanks,
prassu
If your query means that for Jan 12 there are 3 tickets and for Feb 12 there are 10 tickets in the database, then you should only need to make the Period Column Is Prompted in the detail report. If the action link is not working this way then something else is wrong. Is the detail made from the same subject area?
Similar Messages
-
Javascript - Referencing report column value
Hi,
In my application I have a report "Test" with some columns. In column "PFT_PCODE" the possible values are either 1 or 2.
What I want is to display the report table cell in red, if the value in "PFT_PCODE" is 1, or the table cell in orange, if the value in "PFT_PCODE" is 2, respectively.
I tried to make something in Javascript, based on a Vikas' example. I put in the
Region Header:
<style type="text/css">
.rot {
background-color: red;
.orange {
background-color: orange;
</style>
Region Footer:
<script type="text/javascript">
var spans=document.getElementsByTagName('span');
for (var j=0;j<spans.length;j++) {
if (spans[j].className=='farbe') {
var td=html_CascadeUpTill(spans[j],'TD');
if (document.getElementsById('#PFT_PCODE#').value == 1) {
td.className = 'rot';
else {
td.className = 'orange';
</script>
The column "PFT_PCODE" is marked as CSS class "farbe".
Unfortunately it's not working, I'm not sure if I reference the report column value right. Since I'm a beginner in Javascript I would be glad for help.
I put my (reduced) application on apex.oracle.com for testing.
Workspace: app
Login: [email protected]
PW: riponi
Thanks in advance,
RogerHi Roger,
In your report, if you do a View Source, do your report headers have id's on them - that is, the TH tags that contain the headings?
If so, you could use:
<script type="text/javascript">
function hilite(f1)
var h = document.getElementById(f1);
var t = h.parentNode;
while (t.tagName != 'TABLE')
t = t.parentNode;
var rows = t.rows;
var k;
var j;
var c;
var headers = t.getElementsByTagName("TH");
for (k = 0; k < headers.length; k++)
if (headers[k].id == f1)
c = k;
for (k = 1; k < rows.length; k++)
j = rows[k].getElementsByTagName("TD")[c];
if (j.innerHTML == '2')
j.style.backgroundColor = 'purple';
j.style.color = 'yellow';
if (j.innerHTML == '1')
j.style.backgroundColor = 'red';
j.style.color = 'white';
</script>Put that in the page's HTML Headers setting.
In the report region's Region Footer, add in:
<script type="text/javascript">
hilite('PFT_PCODE');
</script>This will find the heading's TH cell, work out where it is in the row, then loop through all remaining rows and check the TD cell in the same column, highlighting the cell using background and font colours.
Andy -
How to accessing current row report column value in Lov Query?
Hi,
which access methods (eg. bind variables, substitutions, ...) for getting the current row report column value can be used in the "Lov Query" property of a report column?
As what I know of and what I have read on the forum there are no bind variables for the report columns. For the "Link Text" property it seems that the column values exist as substitution strings (#COLUMN_NAME#). But they don't work in the Lov Query. => And would be good because of a hard parse each time the Lov query is executed.
The following post (Re: Simulating a correlated sub query in lov
is showing a solution to use package variables for temporary storage of the referenced value, but the only problem with that solution is that if a new record is added with the "Add rows to tabular form" process the package variable still contains the value from the last queried row! Is there a way (variable, APEX package, ...) to determine if the lov query is executed for a new record so that the package can return null?
I know that I could write the package in a way that the value is immediately cleared when lov_pkg.keyval is called (one time read), but then I would have to create several variables if I'm accessing the value multiple times in the query or in another query => I think an one time read solution would be very obscurely.
Thanks for your help
Patrick
http://inside-apex.blogspot.comHi Patrick,
I agree that it's a waste to continually use Ajax to go back to the server to get the contents of a dynamic select list.
There are no bind variables for any row item - but what you do have, as per my previous post, is the value of the data entered by the user in the first row. You can pass this into your application process (using get.add("VARIABLENAME", value)), which can use it to retrieve the correct LOV in your Ajax code - this will give you a "bind variable" that your process can use.
What you could do, however, is generate hidden select lists on your page - one for each possible LOV list and replace the contents of the new row's select list with the contents of the appropriate hidden select list. This is easy to do with javascript (using innerHTML functions). Obviously, though, the usefulness of this depends on the number and size of the select lists.
Even if you don't generate them to start with, you can keep a copy of any select lists returned by Ajax in the DOM for use on new rows. So, if you have retrieved a select list, you will have a copy of it in DOM which you can then copy into the new row. If you don't have the list in DOM, use Ajax to get it, store a copy of it and copy it into the new row.
Which method you use will depend on the number/size of select lists needed. If they are few in number and/or size, I would suggest generating hidden lists. If they are large, use Ajax to get them once, store them and then retrieve them from the DOM when needed.
There is another thread here where Arie recommends going to the server every time to make sure you get the most up-to-date data for the lists. If you want to follow this advice, for this reason, use get.add("VARIABLENAME", value) to pass the value to your process. If this is not an issue, you can use one of the other methods I outlined above.
Regards
Andy -
Column link - call java script & assign current report column value to item
Hi,
How to call java script and assing current report column value to item?
I have a button column in the report to 'delete' the selected row.
I want to first show dialog box with message 'Are you sure?'. If yes, process to delete
will be executed, else no action.
In order to fire JS, I used Column Link ->Target=URL.
Problem: The alert is showing but I don't know how to pass selected row's primary
key value to process (to delete selected row).
I have a item which can be used to store selected primary key value but don't know how to assign the value
when button pressed.
Thanks in advance
DipOk. The issue has been resolved by following way.
PAGE PROCESS: delete_request
begin
delete xyz
where id = :P8_id;
commit;
end;BUTTON URL:
javascript: DelRec(null,'CREATE', 'f?p=&APP_ID.:8:&SESSION.:delete_request:NO::P8_id:#id#');Java Script:
<script language="JavaScript1.1" type="text/javascript">
function DelRec(msg, req, url){
var confDel = msg;
if(confDel ==null){
confDel= confirm("Are you sure?");
}else{
confDel= confirm(msg);}
if (confDel== true){
redirect(url); }
</script> -
Update tabular report column value using AJAX
Hi,
I'm developing an online store application whereby I would like the user to be able browse a list of products (tabluar report), enter an order quantity against a product and click a 'Buy' button (column link). This should then update a collection with the selected product id and order quantity. However, I'm struggling with how to update the order qty column value.
See http://apex.oracle.com/pls/otn/f?p=33248:1 for an example
The report displays the products from demo_product_info table. I have an additional column in the report SQL for the order quantity (set to '1').
I'm using a column link on the product_id column that sets
P1_TEMP_PRODUCT_ID = #PRODUCT_ID#
P1_TEMP_QTY = #QTY_ORDERED#
then re-renders the page.
I have a page rendering process that takes the values from the temp items and updates a collection.
When the user changes the order quantity, how do I update session state so the new value is picked up by the column link?
Thanks,
Andrew.To update session state you might check out this article titled, "ApEx: Setting session state from within a PL/SQL Package/Procedure/Function" at http://atulley.wordpress.com/2007/05/17/apex-setting-session-state-from-within-a-plsql-packageprocedurefunction/
It says:
The answer lies in the set_sesssion_state procedure found in the APEX_UTIL package. E.g.
APEX_UTIL.set_session_state(
p_name => ‘PX_MY_ITEM’
, p_value => ‘wibble’);
Now, I have a question for you. Once you set the value of the column in session state, how will you make that value be put in the database?
Thanks, Maggie -
Unable to pass report column value to url in select statement. Please help
Hi all,
I am trying to pass the report column value as follows:
select key, num,
case when Attachmentcnt(KEY) != 0 then
'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'And I am passing values as follows:
{noformat}
'#KEY#,'#NUM#','9' ELSE null
END Attachment
from tableA
{noformat}
But, I am not able to figure out correct sysntax to pass these column values. Can anyone give me some help. I appreciate it.
rgds,
Suma.
Edited by: sumak on Jun 23, 2009 12:11 PM
Edited by: sumak on Jun 23, 2009 12:22 PMSuma,
If you're trying to generate a column with a URL, try something like the following:
select key, num,
case when Attachmentcnt(KEY) != 0 then
'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'
|| tableA.key || ',' || tableA.num || ',' || :P91_PREVPG
else NULL
end
FROM tableA;
But the best way to pass these would include checksum values against the values of your parameters (to make sure a user doesn't hack them). You'll need to check the Apex User manual for details - See "Understanding Session State Protection".
Good luck,
Stew -
When I filter the dataset, though column name exists I got an error Cannot find column
In the following lines of the code
foreach (DataRow row in meterDs.Tables[0].Rows)
meterChannels = string.Format("{0} = {1}", Global.MeterIdColumnName, row[Global.MeterIdColumnName].ToString());
DataRow[] channelRows = ChannelsDs.Tables[0].Select(meterChannels);
In the following line
DataRow[] channelRows = ChannelsDs.Tables[0].Select(meterChannels);
I got an error Cannot find column [Mtr_T1]
In the debug mode run time values are:
? row[Global.MeterIdColumnName].ToString()
"Mtr_T1"
? meterChannels
"MeterId = Mtr_T1"
? Global.MeterIdColumnName
"MeterId"
Any clue?
ThanksHello,
The line
DataRow[] channelRows = ChannelsDs.Tables[0].Select(meterChannels);
is trying to filter the data table where the Column value of MeterID equals the values in Column MTR_T1, if you do not have the MTR_T1 column in the ChannelDS.Tables[0] you will get the error.
Regards, Dinesh -
How to refresh a report column value alone.
Hi All,
If we have a static report and for one of the columns of report, if I need to give a feature to click on it and a popup appears and there is a checkbox to select values on that popup page and finally after making changes and I press on apply changes, It should close the popup window and then come and change the value of that column alone in original report instead of refreshing the whole page.
The column of the report is of type "Standard Report Column".
How can I achieve this functionality?
Thanks & Regards,
Vikas
Edited by: Vikas Krishna on Sep 29, 2009 9:47 PMVikas,
I slightly modified on of my older examples and you will find everything here:
http://apex.oracle.com/pls/otn/f?p=31517:241
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------ -
How to get the Row and Column values in ALV (without using Objects)
Hi All,
I need to get the Row / Column when double click is used in ALV, I can use the double click event for this. However, I do not want to use the Object Oriented ALV. I want to implement the same functionality using general (using functions) ALV.
Is there any way to get the row / column values for a Generia (non-OOPs) ALV report.
Please help.
Thanks,
Vishal.Hello,
The only think you have to do is to get the index where the user clicked, and then read the internal table you sent to the alv
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'prg_name'
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND' " this is to the click event!!
i_callback_top_of_page = 'TOP_OF_PAGE'
is_layout = alv_layout
it_fieldcat = alv_fieldcat
i_save = 'A'
it_events = alv_events[]
TABLES
t_outtab = i_totmez. ---> TOUR IT.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
" then....
FORM user_commandUSING r_ucomm TYPE sy-ucomm
ls_selfield TYPE slis_selfield.
" r_ucomm -> HAS THE STATUS
" ls_selfield-tabindex -> HAS THE SELECTED INDEX
" THEN READ THE INTERNAL TABLE
" HERE YOU WILL HAVE THE SELECTED ROW
READ TABLE i_totmez INDEX ls_selfield-tabindex.
ENDFORM.
cheers,
Gabriel P. -
How to pass report column value
I'm trying to implement a AJAX report pull from one of the response on this forum. The report column calls the following javascript function below. The #COL2# values are dotted values like 10.2.3.5.6. The function passes values correctly passed if the values are without special characters. I tried to put the value 10.2.3.5.6 in escape(10.2.3.5.6), but didn't work. Any ideas to pass this value in javascript encode/decode way is appreciated.
javascript:GetReport(#COL02#)
thanks,
SuryaHello Surya,
>> I have put an example on APEX site …
This is indeed the best and fastest way to get help.
>> but the third version value "1.2.3" fails to display …
String parameters should be encapsulated with single/double quote signs.
Your first two rows could have been considered as numbers, so the systems let them pass. The third one – 1.2.3 – is not a number, but you didn’t mark it as a string.
I changed your code to the following:
javascript:GetReport_r1('#COL01#');And now it’s working as you need.
General remark: I saw in your report page that you are using the “Generic Column Names”. Just so you know, this not is the optimal choice. If you don't have to use it, you should use the first option of “Query Specific Column name”. If you have to use generic columns, try to minimize the number as close as you can to the real number of columns, and not just to default of 60.
Regards,
Arie. -
How to Update the oracle toad column value in table by using SSRS 2008
Hi Team,
How to update the oracle DB table column value by using SSRS 2008.
Can any one help me on this.
Thanks,
Manasa.
Thank You, Manasa.VHi veerapaneni,
According to your description, you want to use SSRS to update data in database table. Right?
Though Reporting Services is mostly used for rendering data, your requirement is still can be achieved technically. You need to create a really complicated stored procedure. Pass insert/delete/update and the columns we need to insert/delete/update as
parameters into the stored procedure. When we click "View Report", the stored procedure will execute so that we can execute insert/delete/update inside of the stored procedure. Please take a reference to two related articles below:
Update Tables with Reporting Services – T-SQL Tuesday #005
SQL Server: Using SQL Server Reporting Services to Manage Data
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
I am not able to read the xslt table column value.
Hi,
I have the scenario like this.
I have two irpt pages first.irpt and second.irpt and saperate xslt tables for each page and common js file for two pages.
when I click on first.irpt page xslt table row that opens the second.irpt as a popup window then I click on the column in second.irpt xslt row after that column value should be inserted in to first.irpt xslt table column.
In above I have done everything except I am not able to update the first.irpt xslt table column as Even I am not able to read that value.
For your reference:
/* This function will be called when we select the row in first.irpt xslt table here SelectBatch_b.irpt means second.irpt
function getBatch(row)
var id=row;
var material=document.getElementById('Material_'+row).value;
var location=document.getElementById('StoreLoc_'+row).value;
var plant=1000;
var strUrl = "SelectBatch_b.irpt";
strUrl = "?plant="plant"&""location="location"&""material="material;
window.open (strUrl,"mywindow");
/*This function will be called when we select the row in second.irpt (SelectBatch_b.irpt)
function getBatchID(row)
var Batch=document.getElementById('Batch_'+row).value; // reading second.irpt xslt table column value
document.getElementById('Batchc1').value=Batch; // reading first.irpt xslt table column value and inserting.
window.close(); // here I am getting error like object expected.
Please help me in this .
Edited by: rajkumar12345 on Feb 29, 2012 1:45 PMHi Rajkumar,
Please find below the method to pass the variable back and forth in .irpt page.
First Page:
var Toaccessinchildpage = "value";
function getBatch(row)
var id=row;
var material=document.getElementById('Material_'+row).value;
var location=document.getElementById('StoreLoc_'+row).value;
var plant=1000;
var strUrl = "SelectBatch_b.irpt";
strUrl += "?plant="plant"&"+"location="location"&"+"material="+material;
window.open (strUrl,"mywindow");
function populate(strBatch)
document.getElementById('Batchc1').value=strBatch;
Second Page:
function getBatchID(row)
var Batch=document.getElementById('Batch_'+row).value;
window.opener.populate(Batch);
window.close();
You have to call parent page function from child page.
No need to use common js.
If you want to access variable from parent page use
window.opener.<variable name>.
Example
window.opener.Toaccessinchildpage
You have to declare that variable as global variable in Parent page js file.
Refer First page code.
Regards,
Selva -
Add sort, filter, export to excel and summation of tab column values in VC
Hi,
Can anyone help me out in providing the following functionalities in the Visual Composer tableUI element :
1. Sort
2. Filter
3. Export to Excel
4. Summation of Table Column Values
5. Update entry in table
6. Create entry in table
Thanks in advance.
Wish you great time.
Best Regards
SidHello Sid,
1. Sort
--> This is a standard functionally of tables in VC
2. Filter
--> Use the filter element of VC
3. Export to Excel
Go to: Sdn>Wiki>VC>Modeling>Export data to Excel/PDF
4. Summation of Table Column Values
--> This depends on your data source. If you use BI queries you have this normally automatically. If not you can use the sum element of VC.
5. Update entry in table
6. Create entry in table
> see Sdn>Wiki>VC>Modeling-->Moving data between tables
Kind regards
Thomas -
Hiding a report based on Action Link on report column values in OBIEE 11g
Hi All,
I have two Daashboard pages. In Page1, I have Report1.
In Page2, I have Report 2 and Report 3 in different sections.
My requirement is, to create Action Link on two columns in Report1. Column1 should be navigated to Report2 in Dashboard Page2 and Column2 should be navigated to Report3 in the same Dashboard Page.
Is it possible to use variables to hide Report2 when we click on Column1 and Report3 when we click on Column2.
If yes, how to achieve this requirement?
Please help me out.
Thanks in Advance.Please see the following thread - I just implemented exactly what you are looking for. The bad thing is that it does require adding an additional column to all of your reports.
https://community.oracle.com/thread/2483725
Thanks,
~KKT~ -
How to replace the string of column value with other column value in same table
I have a temp table which contains
Id Name CTC Address Content
1 Ross $200 6th block Dear #Name your CTC is #CTC and your address is #address
2 Jhon $300 1oth cross Dear #Name your CTC is #CTC and your address is #address
Now i want to select content so that it should get replace with the respective columns and final output should come like this
Dear Ross your CTC is 200 and your address is 6th block
Dear Jhon your CTC is 300 and your address is 10th cross
Kindly suggestI think RSingh suggestion is ok ... what do you mean by another way? ...maybe something more generic?
maybe build a table whith the list of col you need to "replace" and dinamically build the replace query ...
declare @colList table(colName varchar(100))
insert into @colList
select 'name'
union all select 'ctc'
union all select 'address'
declare @cmd varchar(2000)
select @cmd='select '+ (select 'replace(' from @colList for xml path('') +' content '+
(select ',''#'+ colName +''', '+ colName +')' from @colList for xml path(''))
+' from YOURTABLENAME '
exec (@cmd)
or your request was different ?
Maybe you are looking for
-
Create an XML file from XSD file in JDeveloper
Hi, I am working on XML DTD and XSD to validate xml file using JDeveloper. 1. How we can create xml file from XSD in JDeveloper. 2. How to design content model very easily.. 3. where can I learn XSD easily.. any URL can anyone help out.. with regards
-
Hi experts, We setup a GG exception table in target side to capture the error details with reperror parameter , in that table we have stored db error message details and its stored error details as , for example , if no data found error , the below s
-
Data Visualization Education Path
Hi, I'm interested in learning how to create interactive data visualizations, such as maps and charts that will eventually be data driven. Here is an example: http://www.boston.com/news/local/massachusetts/graphics/08_22_10_property_tax/ My backgroun
-
Where is the "Load more messages..." button in Mail?
My Mail icon has a badge showing unread messages since I did a "Continue search on server" but the usual button at the bottom of any inbox saying "Load more messages" is missing. As a result I am unable to view my old unread messages. I have restarte
-
CISCO IPCC EXPRESS - SUPERVISOR NEEDS TO DINAMICALLY MOVE AGENTS BETWEEN QUEUES
We have a Cisco IPCC Express environment with two queues ("REQUESTS" and "TROUBLES"). In case of, for instance, a great trouble in the customer network (loss of the e-mail service), most of people will call to the Troubles service, so the customer wo