Thout Conditionally Hiding a column
Hi Experts,
I am using OBIEE 11.1.1.5. I have a requirement that i have a report with 3 columns column1, column2 and column3. If Value='Value1' i have to Hide column1 and column2. If Value='Value2' HIde column2. If Value='Value3' Hide column1, column2 and column3. Is it possible without creating additional reports.
Thanks in Advance
Edited by: 1000397 on Apr 19, 2013 5:41 AM
Hi,
Couple of questions:
1. Are you driving 'Value 1'/'Value 2' from a dashboard prompt or based on the values of a column 'value'?
2. Does your report need to display 3 columns initially and then hide the columns based value1/value2?
Did you think of a view selector option?
Above details help understand the requirement more clearly so that appropriate solution can be suggested.
Thanks,
Rajesh Gurram
Similar Messages
-
Changing the Column Header and Hiding the Column dynamically???
Hi friends..
I'm new to OBIEE field. I'm working in a OBIEE project that requires to dynamically change the column header, and dynamically hide the column depending on the prompt value.
I know we can dynamically change the table header using the presentation variable but I couldn't do that same thing with column header.
I searched some forums that suggest to use java script for this purpose but I'm not able to do the same also. If anyone had same issue before please help.toony, I'm not sure it's possible to do all that you want exactly the way you want, but here are some ideas you can pursue.
To dynamically change column headers without javascript, check this blog out...
http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
As far as dynamically hiding a column, I don't think you can do this, but since you don't provide any details on how the PV is supposed to hide a column based on the value, are you talking about hiding a column for one PV value and another (different) column for a different PV value? Or are you talking about hiding one column when a PV has certain values and displaying it when the PV has a different set of values?
I have managed to create both scenarios via a work-around, but the procedures require some writing so I don't want to put both. Please detail how you want your PV to "hide" a column or columns.
P.S. I don't think column selectors will do the trick for you. Basically column selectors work like this: Say you have a report using Sales Region ID, Region Name, and Sales. Now let's say you want the user to choose if he/she wants to see annual sales, or quarter sales or weekly sales, etc. The column selector view would allow you to put the various columns (Year Sales, Quarter Sales, Weekly Sales) as an option the user can select. Once selected, the sales figure will change for the time period selected. For an example of how this is done, check out the section in this "Oracle by Example" link.
Waited too long to publish this... Madan beat me to it, so there is some overlap here...
http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
Edited by: LC143 on Oct 27, 2008 9:21 AM -
Is it possible to hide a column is the entire column is null, but to show it where there's value in it? I was wondering if this can be done automatically in report, thanks!
HelenHow would one go about conditionally showing a column in the rows section of a pivot table if all values or null?
-
Hiding Table Columns with the Spry Element Selector
I am trying to set up a toggle button that will show/hide
rows >1 when clicked. I've used Adobe's
"Hiding
Table Columns with the Spry Element Selector" example and it
worked fine with an HTML list, until I linked to actual XML data.
Now it works in reverse. What gives?
Here's the example:
http://a44.awardspace.com/testing/toggleShowHideRows.htmThat's what I started with. Same result:
http://a44.awardspace.com/testing/toggleShowHideRows.htm -
Hiding a column in the ALV in a webdynpro component(standrad one)
Hi,
i have an requirement of hiding a column inside a ALV output of a web dynpro component which is a standrad one. please help me finding the way to do the same.
thanks,
selvakumar M.data: l_ref_usage type ref to if_wd_component_usage.
l_ref_usage = wd_this->wd_CpUse_Alv( ).
if l_ref_usage->has_active_component( ) = abap_false.
l_ref_usage->create_component( ).
endif.
DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_Alv( ).
data:
l_VALUE type ref to Cl_Salv_Wd_Config_Table.
l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model(
data: lr_column type ref to CL_SALV_WD_COLUMN.
lr_column =
l_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'CARRID' ).
lr_column->set_visible( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).
Abhi -
Hiding the column data. What is the point of DBMS_CRYPTO package?
DB version:10g R2
A requirement has come where we need to hide some columns' data from end users.
Trasparent Data Encryption feature wouldn't do the trick as it encrypts the data only at the storage level not at user level.
I've seen PL/SQL codes using DBMS_CRYPTO which encrypts and decrypts input strings like the code mentioned in
Re: Need some hints on using dbms_crypto
What is point of these PL/SQL codes?
They can only be used to create functions which will be called in VIEWS. That is the only use of DBMS_CRYPTO package. Right?
Do you guys have any suggestion in hiding/obfuscating column data? Is creating a view my only option?One solution to "hide" data (columns or rows) from end users is simply to create a view.
The end user will be granted only access to the view and not to the base tables behind the view. The view will only expose those cloumns and rows that the end users is supposed to see.
Of cause this has nothing to do with encryption. But I don't see anything in your business requirements that needs to use encryption methods. -
XML Report - Conditionally showing a column in between other columns
I have a XML Report, with columns
A, B, C, D
Now I need to add a new column E in between B and C when certain condition is satisfied.
A, B, E, C, D
for column E, I kept <?if:column='X'?> columnname <?endif?>.
When condition is satisfied it is displaying column and also values, but when not an empty column is displayed with no values, I dont want this empty column when condition is not satisfied.
It should just show A, B, C, D instead of A, B, , C, D
Request you to help me with my requirement.Hi Kavipriya, thanks for response.
I tried below condition for that column:
<?if@column:OM_Due_Date_X='Y'?> <?OM_Due_Date_L?> <?end if?>
I am setting OM_Due_Date_X in sql package to 'Y' if customer is 'Rob' else it will be 'N'.
If 'Y', then I am displaying a column name OM Due Date which is <"OM_Due_Date_L?>
Now for Column values it is just <?OM_Due_Date?>
Do I need to change anything here ? -
Conditionally Formatting One Column Based On The Value of Another Column
I have the following requirement:
I have 2 columns in a report showing Actual Sales & Budget Sales each year. I am using a bar chart to show the different values for these 2 columns.
I need to conditionally format the column "Actual Sales" so that if it is less than the "Budget Sales" it will appear in red, and green if "Actual Sales" is greater than "Budget Sales." So in a nutshell,
CASE WHEN "Actual Sales" < "Budget Sales" THEN
RED
ELSE
GREEN
END
Thoughts anyone?CASE WHEN (COL1 - COL2) < 0 then Red else Green end
regards
John
http://obiee101.blogspot.com -
Where condition on date column using OleDb Command?
Hi,
How to read date column from excel sheet usign OleDb command. Below code failing .
OleDbCommand cmd = new OleDbCommand("SELECT Column1 FROM [sheet1$] WHERE createdDate < ="+Convert.ToDateTime("3/24/2015")+" ", connection);
OleDbDataReader dr = cmd.ExecuteReader();
Syntax error (missing operator) in query expression 'LastRun < =3/24/2015 12:00:00 AM'.
How to write a where condition on date column excel sheet?
Thanks
PS.Shakeer HussainHi PS.Shakeer Hussain,
In Excel, we store these data in excel is string type. Based on your code, it is dataTime type. So if fails when compare with dataTime and string.
Please try the following code, Useing DateTime.ToOADate Method to convert to the equivalent OLE Automation date. It works fine on my side.
OleDbDataAdapter dbAdapter = new OleDbDataAdapter("select * from [Sheet1$] WHERE createdDate < "+DateTime.Parse("3/29/2015").ToOADate(), connExcel);
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hiding few columns before displaying alv grid output
Hi All,
I struck up at hiding few columns before displaying alv output. I have used used FM: REUSE_ALV_GRID_DISPLAY. By using this i am displaying 29 fields to the output. But before displaying the output i want to hide few columns among them, and also those fields have to be avialable for further selection by the user by using layout.
Kindly help me in this,
Regards
Srinivas KHi,
In field catalog set NO_OUT='X' for all the columns you want to hide. They will be available when changing layout for ALV, so you can show them at any time.
Regards
Marcin -
Condition on a column in a table
Hi,
Can anybody tell me, how to include a condition on a column value in a table.
what i mean is, for example, i have a table with 4 columns namely a,b,c,d. i want to have a condition on column c that its value should always be greater than value of column d. i guess, check constraint cannot handle this, as it would not be possible to know the value until column d is populated.
can anybody please tell a solution to this?I am a newbie in dba side, just asking a doubt:
sql>desc t;
Name Null? Type
SNO NUMBER
TDATE DATE
SNO2 NUMBER
sql>alter table t
add constraint cons_check check (sno>sno2);
Table altered.
sql>insert into t
values(100,null,null);
1 row created
sql>update t
set sno2 = 101
where sno = 100;
update t
ERROR at line 1:
ORA-02290: check constraint (HR8.CONS_CHECK) violated
Thus can he ever by pass the constraint?Pls clarify..
jeneesh -
Conditionally Display Report Column
hi,
i want to display report column Conditionally .
i have created a report . there are multiple column Like. BILL NO,BILL DATE, PAYMENT MODE, CHEQUE NO, CHECQUE DATE, TOTAL AMOUNT
Now i want to display only BILL NO,BILL DATE, PAYMENT MODE, TOTAL AMOUNT when i select PAYMENT MODE Cash in Select List ITEM
And
i want to display only BILL NO,BILL DATE, PAYMENT MODE, CHEQUE NO, CHEQUE DATE,TOTAL AMOUNT when i select PAYMENT MODE Cheque in Select List ITEM
How Can i Conditionally Display Report Column.
Thanks
Manoj KAushikHi,
try this as report query - pl/sql function returning select statement.
declare
qry_str varchar2(1000);
begin
if :p1_select_list = 'PAYMENT MODE' then
qry_str := 'select BILL NO,BILL DATE, PAYMENT MODE, TOTAL AMOUNT from yourTable';
else
qry_str := 'BILL NO,BILL DATE, PAYMENT MODE, CHEQUE NO, CHEQUE DATE,TOTAL AMOUNT';
end if;
return qry_str;
end; Regards,
Shijesh -
Updating a JTable by hiding/displaying columns
I have a customizable JTable where I display/hide columns according to a users' selection criteria. My code works fine for hiding/displaying columns if the Jtable is opened for the fist time, but doesnot work if I want to hide columns in already displayed table.How do I do it?? Any clue?? I tried
myTabModel.fireTableDataChanged();
but this only works for updating the table data...it does not hide columns for me... when I hide column I just remove desired column like this:
myTable.removeColumn(myTable.getColumn("Column 3"));Here is the sample code I tried. It worked without any invalidate or repaint or updateUI(). generated using NetBeans
check for <==== for the line of code doing this
* TableTest.java
* Created on October 9, 2002, 1:42 PM
* @author Anki Reddy Nelaturu
public class TableTest extends javax.swing.JFrame {
/** Creates new form TableTest */
public TableTest() {
initComponents();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jButton1 = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
menuBar = new javax.swing.JMenuBar();
fileMenu = new javax.swing.JMenu();
openMenuItem = new javax.swing.JMenuItem();
saveMenuItem = new javax.swing.JMenuItem();
saveAsMenuItem = new javax.swing.JMenuItem();
exitMenuItem = new javax.swing.JMenuItem();
editMenu = new javax.swing.JMenu();
cutMenuItem = new javax.swing.JMenuItem();
copyMenuItem = new javax.swing.JMenuItem();
pasteMenuItem = new javax.swing.JMenuItem();
deleteMenuItem = new javax.swing.JMenuItem();
helpMenu = new javax.swing.JMenu();
contentsMenuItem = new javax.swing.JMenuItem();
aboutMenuItem = new javax.swing.JMenuItem();
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
jScrollPane1.setViewportView(jTable1);
getContentPane().add(jScrollPane1);
jScrollPane1.setBounds(80, 30, 230, 120);
jButton1.setText("jButton1");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
getContentPane().add(jButton1);
jButton1.setBounds(170, 180, 81, 26);
jTextField1.setText("jTextField1");
getContentPane().add(jTextField1);
jTextField1.setBounds(60, 190, 63, 20);
fileMenu.setText("File");
openMenuItem.setText("Open");
fileMenu.add(openMenuItem);
saveMenuItem.setText("Save");
fileMenu.add(saveMenuItem);
saveAsMenuItem.setText("Save As ...");
fileMenu.add(saveAsMenuItem);
exitMenuItem.setText("Exit");
exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exitMenuItemActionPerformed(evt);
fileMenu.add(exitMenuItem);
menuBar.add(fileMenu);
editMenu.setText("Edit");
cutMenuItem.setText("Cut");
editMenu.add(cutMenuItem);
copyMenuItem.setText("Copy");
editMenu.add(copyMenuItem);
pasteMenuItem.setText("Paste");
editMenu.add(pasteMenuItem);
deleteMenuItem.setText("Delete");
editMenu.add(deleteMenuItem);
menuBar.add(editMenu);
helpMenu.setText("Help");
contentsMenuItem.setText("Contents");
helpMenu.add(contentsMenuItem);
aboutMenuItem.setText("About");
helpMenu.add(aboutMenuItem);
menuBar.add(helpMenu);
setJMenuBar(menuBar);
pack();
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
jTable1.removeColumn(jTable1.getColumnModel().getColumn(Integer.parseInt(jTextField1.getText()))); // <========
private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
System.exit(0);
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
* @param args the command line arguments
public static void main(String args[]) {
new TableTest().show();
// Variables declaration - do not modify
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JMenu fileMenu;
private javax.swing.JMenuItem exitMenuItem;
private javax.swing.JButton jButton1;
private javax.swing.JMenuItem saveAsMenuItem;
private javax.swing.JMenuItem saveMenuItem;
private javax.swing.JMenuItem copyMenuItem;
private javax.swing.JMenuItem pasteMenuItem;
private javax.swing.JMenuItem cutMenuItem;
private javax.swing.JMenuItem openMenuItem;
private javax.swing.JMenuBar menuBar;
private javax.swing.JMenu editMenu;
private javax.swing.JMenuItem aboutMenuItem;
private javax.swing.JMenuItem contentsMenuItem;
private javax.swing.JMenu helpMenu;
private javax.swing.JTextField jTextField1;
private javax.swing.JMenuItem deleteMenuItem;
private javax.swing.JTable jTable1;
// End of variables declaration
} -
Interactive report, conditional display of column link
Hello,
We have requirement to disable editing in case that status of field is 1 (1=Closed).
Is there any way to disable it on interactive report.
case when status=1 column link should be disabled (not visible) in order to prevent future edits on payroll.
SELECT payroll_no, status
FROM hr_payroll
ORDER BY payroll_no DESC;
I tried link below, but it's not working in my case.
http://nerd.net.au/24-apex-application-express/report-layout/92-conditionally-show-report-link-column-based-on-value-of-…
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
Application Express 4.2.2.00.11
Thank you in advance,
Regards, FMCASE WHEN status = 'ACTIVE' then
<a href="f?p=&APP_ID.:60:&SESSION.::&DEBUG.::P60_EMPLOYEE_ID:'||employee_id||'"> </span><br /><span class="Moobi_Code"><img src="#WORKSPACE_IMAGES#deactivate_button.png"></a>'</span><br /><span class="Moobi_Code">ELSE NULL END deactivate_employee,
from
EMPLOYEES
What exactly is the error you get? What HTML is showing in the HTML source?
Just by looking at this I would say you need to remove the "/" in front of the f?p
Keep in mind this way could cause problems if you start to use checksum, then you might want to look into using APEX_UTIL.PREPARE_URL to create your URL. -
I'm using Numbers 3.2 and would like to count the names in a column which satisfy a condition in a different column. There are 3 "streams" through which these names have come to me, and I would like to easily identify how many have come from each stream. Any help?
Hi DirtyDawg,
COUNTIF is your friend here.
If your source is in column C and your streams are 1, 2 and 3:
=COUNTIF(C,"=stream1")
=COUNTIF(C,"=stream2")
=COUNTIF(C,"=stream3")
These need to be in a footer or header row or in a different column than C.
hope this helps,
quinn
Maybe you are looking for
-
Connecting N97 to PAL TV, bad quality
Hi there, I use the original 3 wired Nokia cable to connect my N97 to our PAL TV. But image quality is pretty poor. Is there any way to improve it? Is there a HDMI cable for the N97?
-
"Your disk could not be partitioned" error in bootcamp
I'm attempting to load Windows 7 home premium 64-bit on an early 2011 15" MBP with Bootcamp 5.0.2 and am getting the error "Your disk could not be partitioned. An error occurred while partitioning disk." No other information leads me to understand th
-
Adjustment Brush/Saturation
Normally I can reduce the color saturation to zero in parts of my photo by using the adjustment brush with the amount set to -100. Today this is not working...I'm not sure if I've changed some settings but if someone could please help me get it back
-
"Day limit" in terms of payment
hi all, can someone explain me the purpose of the below fields in terms of payment, preferably with scenario ? day limit fixed day additional months Regards, Surya
-
Hi the status of Condition type is inactive in my item .. How to activate this condition type.. Thanks in Advance..