Hide/show or enable/disable report column
Hi,
I m using Oracle Apex4.0
I m having an interactive report which has a cloumn with Link provided to it.
I want to enable/disable the linked cloumn for certain records or else the link column can ba hidden/shown for certain records.
How can it be done?
Hi,
Did you look at the Denes example ? It looks as good solution for you.
Is your report in format like this ?
col_1 col_2 col_link
col_1 - column1
col_2 - column2
col_lnk - column with link
in the link there is some redirection to detail page where you can provide update ?
the link should contains record ID. correct ?
The only possibility in your case is Denes or some other simple solution. (case solution)
It should be good if you reproduce it on apex.oracle.com
We can provide more help to you in there.
Regards
J :D
Similar Messages
-
Enable/Disable Reporting in OSB using script.
Hi,
I have to enable/disable reporting in OSB proxy service using script like python,etc..
Each and every time we create a session in console and activate the session.
But as per our requirement, we need to do this activity using script in back end.
Can anyone help on this.
Thanks
RajeshHi,
I have to enable/disable reporting in OSB proxy service using script like python,etc..
Each and every time we create a session in console and activate the session.
But as per our requirement, we need to do this activity using script in back end.
Can anyone help on this.
Thanks
Rajesh -
Enable/disable report parameter control at runtime in SSRS
Hi,
I am using SSRS 2012. I want to enable/disable or hide/show parameters based on another parameter selection.
I have a 3 parameter, Parameter 1 says which parameter need to show either Parameter2 or parameter3 in the parameter panel. i don't find any expression to show/hide option.
Appreciate your help.
Paramesh GHowever if you want parameters to enable disable then that functionality can be obtained by using cascading parameters
ie make parameters 2 and 3 dependent on 1
So for that created two datasets which will provide values for parameters 2 and 3
Check allow null values for both the parameters
Set default value as NULL for both parameters
then for dataset use queries like
SELECT ...
FROM ..
WHERE @Parameter1 = 'Parameter2'
SELECT ...
FROM ..
WHERE @Parameter1 = 'Parameter3'
This will make sure parameter2 or 3 gets enabled with required values based on what you choose for parametr1
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
Show or Hide the icons in a report column in APEX
Hi All,
I have a requirement to show or Hide a Delete Icon in my report.
Condition is whenever the transfer is completed, then the user should not see the Delete Icon for that particular row of the report. I.E. for example if there are 5 rows in the report, and for 2 rows the value of the Transfer is NULL, then the Delete icon should be appear to the user. If the value for the column transfer is Not Null for remaining 3 rows, then the user should not be able to see the Delete Icon.
For this I did like below,
In the report, I edited the Del_Icon and Selected 'Value of the Item/Column in Expression1 is NULL' and entered 'Transferred' in Expression1 in Conditional Display area. But even if the value for Transfer column is 'Transferred', the Delete Icon is still appearing for that row.
Can someone please let me know where can be the mistake is?
Please let me know if you require more info.
Actually in the application if we go to Transfer Page, there is an option to create a row for Transfer page. There is a column Transfer, If we do not enter any value for the column Transfer and submit the page, the record will be created and the Delete Icon should be appear. If I update the row in the application and provide some value, and click submit button, then the Delete Icon should not appear.
Edited by: 980540 on Apr 2, 2013 5:08 AMYou can do one thing, check the condition in the report sql itself and display the image
select case
when transfer is null then '<a onclick="f_func()"><img src="#APP_IMAGES#img"></a>'
else null
end col1,
col2
from tableI have used "APP_IMAGES" you can changes it accordingly.
and the <a> tag should be like this *<a onclick="f_func()"*
in the javascript function you can submit the page using apex.submit('REQUEST') and condition your delete process on the REQUEST.
Regards,
Tauceef -
APEX: Show description in Interactive Report column
Hi experts!
I need to show title and description in the headings of an interactive report in APEX. So when the user places the mouse on the heading of the column, a description message is displayed.
In the heading field, I have introduced this string:
<SPAN TITLE = "Secció Numèrica">SC.N.</SPAN>
Where "Secció Numèrica" is the description and SC.N. is the title.
This works fine in the report and the description is shown, but the problem is:
When the user click on the 'select columns to display' action, the displayed label is
<SPAN TITLE = "Secció Numèrica">SC.N.</SPAN>
instead of "SC.N." or "Secció Numèrica".
Obviously the customer does not want to see that string. I have been looking for any solution in manuals and forums but with no results.
Thanks in advance for your help!
JavierIt is solved.
The customer is happy having the description displayed in the Help Text section, so it is shown with the info tag.
Regards
Javier -
Hide/show text boxes in report header
Hi All,
I'm trying to implement a request to have a tablix header frozen in excel. So, I'm placing it in the report header as text boxes. However, there are two different tablixes (a one per page) with two different headings. I'm trying to place those two headings
into two rectangles in the report header hiding and showing a one of it based on the Page No. It works but only for the first tablix heading as it's shown on the first page and hidden on the second page. But, the second tablix heading is not shown on the second
page for some reason. It's probably due to the Page No rendering is going later than the text boxes appearances on the second page or something else causing it.
I did try to use the Global Page No in if visibility statement for those two rectangles, trying to get Page No through a function, using it as a parameter, but nothing is making the second rectangle to show on the second page report header.
Please, help with how it could be done.
ThanksHi al-dol,
Per my understanding that you have put the textbox in the page header to display the table head instead of in the tablix thus you will got the frozen head when export to excel, you have two table header, so you need to add two rectangle to display both in
two different page, now the issue is the second page header didn't display, right?
I have testted on my local environment and can reproduce the issue, the issue can be caused by when you move the rectangle2 on the position of the rectangle1 then the rectangle becomes the child of rectangle1 but not the child of page header thus you will
not shown the rectangle2.
Please check the details information below to see if you have got the rectangle2 inside the rectangle1 like below:
if so, please move the rectangle2 one time and check to make sure you got the "Page Header" in the parent section of both rectangle:
Please also make sure you have use below expression to show/hide the rectangle:
rectangle1:
=iif(Globals!PageNumber=1,false,true)
rectangle2:
=iif(Globals!PageNumber=2,false,true)
If you still have any problem, please feel free to ask.
Regars,
Vicky Liu
Vicky Liu
TechNet Community Support -
Drill down hide/show report on same page
Hi,
Is it possible to create a drill down report where instead of linking to new pages, the details can be displayed using hide/show buttons on the relevant columns? For example, if you have the following fields:
Region
Country
Division
Account
Order
Product ID
Product Price
Would it be possible to ,by default, have the report only show distinct regions. By clicking an expand button on a particular region, it's countries are displayed. By clicking an expand button on a country, its divisions are displayed,etc., eventually being able to drill down to order details.
This seems similar to a tree to me, although I have not used trees before. However, from the way I understand the structure of hierarchy in trees, the way this data is structured it would not be possible through a tree.
Any ideas? If not I can just settle on a standard drill down report with links to new pages, but if the above is possible it would work much better for my users.
ThanksFJW,
Yes, it's possible. We typically refer people to this demo from Carl to get an idea of how it can be accomplished:
http://htmldb.oracle.com/pls/otn/f?p=11933:13
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen -
How to Print the Report Column headers on each page of any report
Can someone offer assistance on how I can go about achieving the ability to show and print the Report Column headers on each page of any report using the Print Attributes of APEX 3.0? These reports will be printed using Excel and Word.
I read a thread with a similar request but the answer seems vague for my level of understanding.
I am connected to a print server and using BI Publisher.
Thanks,
RicHello Ric,
>> These reports will be printed using Excel and Word.
I'm not sure I understand what you are trying to do. You are using a very powerful tool – BI Publisher – why do you need Excel or Word for printing? Is there a special need only Excel or Word can provide?
One of the major advantages of using BI Publisher is that it's taking care of all these tedious tasks like reasonable page breaking, headers and footers, and also table headers.
Regards,
Arie. -
Hide/show a column in a report
Hi,
I'm actually looking for a solution to hide/show a column in a report (matrix form)in function of a parameter..
Using the conditionnal formating propertie to hide a column (return false) works, but the colmuns in the right side don't move.. It's not very pretty..
An other way could be to change the elasticity property of a column, and replace the data by "", but apparently, we can't access to this property by the srw command.
I really need a solution, else I'll have to produce as many reports as I've to hide columns...
Thanks a lot
Best regards..
DAvid
nullHi,
I use 'decode' in sql statement. If your sql statement is applicable to this,you may use it. So you can choose which columns you want to use and also you can concatanate columns to make them one column. -
Enable/Disable Column in a Advanced Bean Table
Hi,
I have 2 columns that needs to be enabled/disabled on a standard oa page PO Lines summary page.
I went through couple of blogs/forums and found 2 approaches :-
Approach 1
1) Extended the standard VO POLinesMerge.
2) Added a attribute column DeriveDisplayFlag of type VARCHAR2 . This call a database function and will return Y or N
3) Added a attribute of type ShowAdditionalColumn boolean. the get method of this attribute returns TRUE if DeriveDisplayFlag is 'Y' otherwise returns FALSE.
4) created a substitution for the custom VO
5) uploaded the substitution to mds.
6) copied the xml/class files to $JAVA_TOP/..
7) Bounced entire middle tier
8) using personalization, entered a SPEL command on the rendered property. I know rendered will hide/show the column but for time being I just want this to work.
But this fails :-
oracle.apps.fnd.framework.OAException: Message not found. Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND. Tokens: VONAME = XXPBPoLinesMergeVO; APPLICATION_MODULE = oracle.apps.po.document.server.DocumentAM;
I am not aware how to get around this. Can someone help please?
Approach 2
1) steps 1 to 6 from Approach 1.
2) trying to extend controller class OrderLinesTableRNCO. But have couple of questions. This iis a advanced bean table so how should i reference individual record and the column that i need to disable/enable ?
Conceptual questions
Also, when i am entering a new record at what point in time the 2 new attribute will derive its value? the 2 attributes are dependent on the Item number column but i have not created a dependency between the attributes and Item# column.
Will the controller logic fire for every column while i am entering a new record?
Thanks.Hi Anil,
Thanks for the response. I have given up that i will get reply on this post.
I have done the substitution and upload the jpx to umsing importer.
But you are correct may be i might have done something wrong. Can you please help me. I can send you the files if you can review and let me know it will be great.
Also, will this approach work since PO Lines is a advanced bean table ?
One of the experts suggested to use Bound values. I am not sure how to implement it though?
I have went and told back to my business team that I am not able to do this so now they have asked me to enable/disable columns based on a dff value on po header. I thought this will be easier by extending the controller class on PO Lines table but that too is not working.
Can you help me please ?
Here is my code to extend the controller class :-
package xxpb.oracle.apps.po.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
import oracle.apps.fnd.framework.webui.beans.table.OAColumnBean;
import oracle.apps.fnd.framework.webui.beans.table.OASortableHeaderBean;
import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
import oracle.apps.po.document.order.webui.OrderLinesTableRNCO;
public class XXPBOrderLinesTableRNCO extends OrderLinesTableRNCO
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAAdvancedTableBean tableBean =
(OAAdvancedTableBean)webBean.findIndexedChildRecursive("LinesTableRN");
OAMessageLovInputBean poLineLov =
(OAMessageLovInputBean)tableBean.findIndexedChildRecursive("XXPBSecondaryUOMLOV");
poLineLov.setDisabled(false);
} -
Hide/Show Create button on a report/form page
Hi, I included one form and the related report on one page.
When I create a new record, it will show in the report below.
I make the ID column as the link, which assign the ID to the ID item in the form. DML will do the rest work for display.
However I got a issue. when I click the edit button for one row, the create button doesn't disappear. Although it has a condition of "VALUE OF ITEM IS NULL". I un-hidden the ID item and it do have value when I edit some row.
Is this because of some refreshing reason or...?
Your help will be great appreciated.
Edited by: Gadfly on 2009-3-16 下午8:02BTW, this hide/show pattern of 'KEY VALUE is null' works well when I use two pages(one form and one report.)
-
JavaScript: Disabling textarea in report column cell
Hi,
Andi (ATD) helped me with formatting report columns, coloring them depending on a value. See:
Javascript - Referencing report column value
Now I want to add a feature:
If the value is '1' then disable the textarea in the next column, otherwise not. The function is:
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 i;
var j;
var c;
var headers = t.getElementsByTagName("TH");
// var textarea = t.getElementsByTagName("textarea");
for (k = 0; k < headers.length; k++)
if (headers[k].id == f1)
c = k;
for (k = 1; k < rows.length; k++)
i = rows[k].cells[c];
j = rows[k].cells[c+1];
if (i.innerHTML == '2')
i.style.backgroundColor = 'yellow';
i.style.color = 'white';
i.style.fontWeight = 'bold';
i.style.fontSize = '18px';
if (i.innerHTML == '1')
i.style.backgroundColor = 'red';
i.style.color = 'white';
i.style.fontWeight = 'bold';
i.style.fontSize = '18px';
// j.style.backgroundColor = 'green'; // testing purpose; colors background green but not textarea
j.style.visibility = 'hidden'; // works fine but ugly
// j.disabled = 'true'; // nothing happens
// j.firstChild.disabled = 'true'; // does not work
// j.textarea.disabled = 'true'; // does not work
}See the 'j' object: I can make the whole cell disappear but it looks ugly. Examining it with firebug I was thinking I must use sth. like firstChild or textarea, but it does not work. I find it still quite tricky to manipulate tables in Apex...
Could someone help with this?
Thanks a lot,
RogerHi Roger,
You're sort of nearly there!
The next cell to the right of the one you are testing will contain a TEXTAREA object. Your j variable can get to this using something like:
j = rows[k].cells[c+1].getElementsByTagName("TEXTAREA")[0];The issue with using the visibility method that you have used will then disappear as you've applied it to the whole TD object, so all borders will go - applying this to the new j will only hide the textarea object instead.
Andy -
How to Hide/show the columns data while doing Drill down or drill up
Hi ,
How to Hide/show the columns data while doing Drill down or drill up in webi report .
Does it possible BO 3.1 version ?
Please suggest me on this.
Thanks & Regards
VenkatWhile that is not there yet, you can make use of the show when empty yes/no in combination with alerters.
So I have an alerter applied to every cell of the table.
When a condition is true (say I drilled down) I just put = "" in every cell, emptying the table,
because its now empty and doesn't need to show, it wont.
For the detail table I use the opposite, so when you drilled down it becomes visible...
Hope this helps all that do not have 40 yet
Good luck,
Marianne -
How to (un)hide report columns based on checkboxes?
Hello,
I have a simple report that selects 4 columns from a table.
I would like to create 2 check boxes (at the report level, not at the row level) corresponding to 2 of the 4 report columns: When they are checked, the corresponding columns are visible. When they are unchecked, the corresponding columns are NOT visible.
Two questions:
1.
This would require submitting the page automatically upon (un)checking either check box. How do I do that?
2.
I have attempted to use the Conditional Display properties of the report columns with hard coded values, but they don't seem to work whether the Show property of the columns is on or off. Any idea why and how to get around it? (I am using 3.2. Could this be a bug that has been fixed in 4?)
Thanks!
GaborHi,
I can not find post where I have explain how sample works.But here it goes:
You need load jQuery in page template or page HTML header if you are not using Apex 4.
Create new blank page. In my case new page id is 70.
Create HTML region to new page called Columns. Use wizard defaults
Create hidden item Px_REPORT_REGION_NAME. Use wizard defaults.
In my case hidden item name is P70_REPORT_REGION_NAME .
Create computation before header for hidden item. Computation Type "Static Assigment".
In computation write name you like use to your report. My case I did write "Employee report".
Create SQL Report. In region title place your hidden item like
&P70_REPORT_REGION_NAME.In my case I did use query
SELECT *
FROM empCreate check box. In my case it is called P70_SHOW_HIDE.
Use from LOV query
SELECT heading,
display_sequence
FROM APEX_APPLICATION_PAGE_RPT_COLS
WHERE application_id = :APP_ID
AND page_id = :APP_PAGE_ID
AND column_is_hidden = 'No'
AND region_name = '&'||'P70_REPORT_REGION_NAME'||'.' -- Change P70_REPORT_REGION_NAME to your hidden item name
ORDER BY 2Place to report region footer
<script type="text/javascript">
function hideCol(pThis){
var lRepId = '#report_data_#REGION_ID#';
var lCol = pThis.value;
if(pThis.checked){
$(lRepId + ' td:nth-child(' + lCol + ')').show();
$(lRepId + ' th:nth-child(' + lCol + ')').show();
}else{
$(lRepId + ' th:nth-child(' + lCol + ')').hide();
$(lRepId + ' td:nth-child(' + lCol + ')').hide();
</script>Edit checkbox item and place to HTML Form Element Attributes
CHECKED onclick="hideCol(this);"Your report template most inner table tag must have id attribute
id="report_data_#REGION_ID#"Then you have result like this
https://apex.oracle.com/pls/otn/f?p=40323:70
Regards,
Jari
Edited by: jarola on Oct 27, 2010 11:13 PM
Note about Apex 4 and jQuery added -
Show / Hide DOWMLOAD link in classical report based on user rights
Hi,
using apex 4.1.
How i can display or hide download link in classical report based on user rights .
The User who has download rights ,can download the data from classical report Otherwise it should hide.
I have passed the code in authorization scheme in shared component as named "VIEW"
DECLARE
VNAME VARCHAR2(1000);
BEGIN
SELECT PAGE_NAME INTO VNAME FROM APEX_APPLICATION_PAGES WHERE PAGE_ID = :APP_PAGE_ID AND APPLICATION_ID = :APP_ID;
return GET_ADMIN_STATUS_VIEW_NEW(:APP_USER,VNAME);
END;How i can call "VIEW'' name in download link.Right click on the export link, select copy url. Create a button with redirect to URL. Use that URL (or at least everything with and after f?p). Bind rights to the button.
Or create a second identical report with different rights, give one export enabled and one disabled. The first is better, the second is easier :)
Edited by: Joni Vandenberghe on 8-feb-2013 5:08
Maybe you are looking for
-
Why we cant use a tow program in one time ???
hi i'm yousif ali i just want to give advice or suggestions or defects about the ipad software why we can not use a tow program in one time like if we want to Browse the Internet and we want to go to see some pic or to open some thing we cant back we
-
TS3648 Windows support software error, boot camp, MBP OS X 10.8.3
I get this same error, "The Windows support software could not be saved to the selected folder. An error occurred while saving the Windows support software", when running boot camp assistant on OS X 10.8.3, which is installed on my MBP from mid-2012,
-
CAT2: Can't change worklist layout
Hello, I got an user who can't change the worklist layout (hide/show fields) because the administrator button is missing. Where is this setting what do I have to do to 'turn on' that button? BR Michael
-
Hi Fellows. I would like to ask you about any program/tool for monitor an ODBC drive. I would like to have the SQL statements that are received by Oracle from Access. Can anybody help? Thanks. Marcos Yoshiaki Ibuki null
-
Problems updating to 8.1 then how can I update to 10?
Hi , Thank you for visiting the HP Forums! A great place where you can find solutions for your issues, with help from the community! I came across your post about the Notebook, and wanted to assist you! I have looked into your issue about your HP E