How do i hide a tablix based on 3 conditions
I have a tablix that I need to set the visibility to hide if the following any of the following conditions are true
1 Field accountName = TESTAccount
2 Field InvoiceType = 1
3 Field TFiles = 0
Dont ask me .. i dont know
Hi Pete,
Per my understanding that you want to hide an tablix based on three different values from three different columns, right?
Could you please help to provide more details information to help us more effective to provide an solution:
If the three values of the three columns are in the same number of rows of in different row or the tablix just have one row?
Did the three fields in the tablix you want to conditional hide or in a different Tablix
It is better you give us some snapshot of the report in both design and preview mode and some sample data.
Please find the details information below about some possible situation i assumed:
You can modify the query to get the rownumber to add in the report, then use expression as below:
=IIF(
MAX(IIF(Fields!ROWNUMBER.Value =1,Fields!AccountName.Value,Nothing))="TESTAccount"
or MAX(IIF(Fields!ROWNUMBER.Value =2,Fields!InvoiceType.Value,Nothing))=1
or MAX(IIF(Fields!ROWNUMBER.Value =3,Fields!TFiles.Value,Nothing))=0 ,true,false)
If the three values in different columns and different rows, you can create three hide parameters (AccountName,InvoiceType,TFiles)for each fields and find the correct index (begin with 0)to put in the parameter to get the correct value(TESTAccount,1,0):
for example:
Parameters!AccountName.Value(0)="TESTAccount"
Parameters!InvoiceType.Value(1)=1
Parameters!TFiles.Value(2)=0
Using below expression to hide the tablix:
=IIF(Parameters!AccountName.Value(0)="TESTAccount" or Parameters!InvoiceType.Value(1)=1 or Parameters!TFiles.Value(2)=0, true, false)
Note: make sure the order of the value in the parameter dropdown list is the same as that in the report.
If the three values are in the same row of different column, you can reference to similar thread below:
Change Column Header / Column Background
color based on a value in a specific row in the same column
You can use the expression:
=IIF(First(Fields!AccountName.Value, "DataSet2")="TESTAccount" or First(Fields!InvoiceType.Value, "DataSet2")=1 or First(Fields!TFiles.Value, "DataSet2")=0, true, false)
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support
Similar Messages
-
How to Visible/Hide an Item based on the value of another Item
Hi
I need to visible and hide a textitem based on the value of another item.This form has 3 blocks, and the both item is in the first Master Block.
My code is:
if :RECORDTYPE=7 then
Set_Item_Property('BLOCK.ITEM',VISIBLE,PROPERTY_TRUE);
Set_Item_Property('BLOCK.ITEM',ENABLED,PROPERTY_TRUE);
ELSE
Set_Item_Property('BLOCK.ITEM',VISIBLE,PROPERTY_FALSE);
Set_Item_Property('BLOCK.ITEM',ENABLED,PROPERTY_FALSE);
:BLOCK.ITEM:=NULL;
end if;
I wrote the code in the Validate Trigger, but not working when moving Next Record & Previous Record
Thanks in advance
RizlyRead the 'Propagation of Property Changes' section towards the end of the page for Set_Item_Property in the online help. I'm not sure what you mean by locking automatically but perhaps it's because of this.
You should also ensure the item you're setting to invisible is not the current item (check :system.cursor_item and go to a different item if necessary). -
Show or Hide empty table based on If condition
I want to show or hide empty table based on condition. The table will be empty with 5 rows,2 cols and should display if <?Rout_Information1_id1?> is blank or null or when XML field is not present. Actually the JDEdwards report will generate XML file. In the XML file if <?Rout_Information1_id1?> is present it will have definitely value like 'PULL' or 'Cut' otherwise sometimes XML field itself will not be present. Need to display the empty table when the <?Rout_Information1_id1?> is not present. I am trying to do as below but the table is not displayed. Can someone tell me how to resolve this.
<?if:Rout_Information1_id1=' '?>
5 rows,2 cols table
<?end if?>
Thanks,
Vijay VattiproluOk. I used the below syntax from other post and it resolved displaying empty table issue.
<?if:not(XML_TAG_NAME)?>
<?end if?>
Thanks,
Vijay -
How to secure access of Report based on a condition
Hello Experts,
My project requirement is to secure BW Reports based on a condition. For e.g a user should be authorized to access the Report if:
1. He is the WBS Manager of the selected WBS Element
OR
2. If he is authorized to access the Profit center Hierarchy Node which is the parent of the selected WBS Element.
I think this may be achieved by using a Customer exit in the Analysis authorization but i don't know how.
Do you have any idea, whether it is possible to achieve in BI7 Security Model? Any help will be highly appreciated.
Thanks
RajatHi Tomer,
There will be a selection variable for WBS in all BW reports. If the user selects a particular WBS Element then he can only see the result of the report if he fulfill EITHER of the following conditions:
1. If he is the WBS Manager of the selected WBS Element
OR
2. If he is authorized to access the Profit center Hierarchy Node which is the parent of the selected WBS Element.
WBS managers will keep on changing so it is not possible to maintain the users in one role.
Secondly, according to the second condition, even if the user is not WBS Manager but he is authorized to access Profit center Hierarchy Node, which is the parent of the selected WBS Element, he should view the report.
Please let me know if don't understand the question.
Thanks
Rajat -
How to make a region mandatory based on some conditions using CO Extension?
Dear All,
I want to make Attachments region in a seeded page mandatory, based on some conditions. I am able to make fields mandatory using CO Extension, but i am not able to make the attachments region mandatory. Please help.
Thanks
RajRaj,
I have not tried but check if you could get the rowcount which shows how many attachment are upload or not. Then by checking this throw exception if the rowcount is o.
Thanks
--Anil
http://oracleanil.blogspot.com/ -
How to declare cursor in procedure based on if condition?
Hi Experts,
In sql server I have eprocedure in which I declare cursor like this:
IF (@int_cntCondition = 1 )
BEGIN
DECLARE Date_Cursor CURSOR FOR select HolidayCcy,HolidayDate from Definition..HolidayCalendar WITH (NOLOCK) where
HolidayCcy in (@Deposit_Currency,@Alternate_Currency)
AND CONVERT(SMALLDATETIME,CONVERT(VARCHAR(25),HolidayDate,106)) >=
CONVERT(SMALLDATETIME,CONVERT(VARCHAR (25),@T_Date,106))
END
ELSE
BEGIN
DECLARE Date_Cursor CURSOR FOR select HolidayCcy,HolidayDate from Definition..HolidayCalendar WITH (NOLOCK) where
HolidayCcy in (@Deposit_Currency,@Alternate_Currency,@Bank_Base_Currency)
AND CONVERT(SMALLDATETIME,CONVERT(VARCHAR(25),HolidayDate,106)) >=
CONVERT(SMALLDATETIME,CONVERT(VARCHAR(25),@T_Date,106))
END
I have to declare same cursor in oracle based on 'if' condition.
But in oracle stored procedur cursor has to declare outside of Begin statment of procedure, so how can I declare This cursor in Orracle?
if anyone know about it, Plese help or send any link to refer.
Thanks.Digambar wrote:
I have to declare same cursor in oracle based on 'if' condition.The simple answer is to use a reference cursor data type. E.g.
SQL> create or replace procedure GetObjects( cur in out sys_refcursor, objType varchar2 ) is
2 begin
3 case
4 when upper(objType) = 'EMP' then
5 open cur for select * from emp;
6
7 when upper(objType) = 'DEPT' then
8 open cur for select * from dept;
9
10 end case;
11 end;
12 /
Procedure created.
SQL>
SQL>
SQL> --// define a host refcursor variable in client
SQL> --// (e.g. VB, .Net, Java, etc)
SQL> var c refcursor
SQL>
SQL> --// make the stored proc call
SQL> begin GetObjects( :c, 'EMP' ); end;
2 /
PL/SQL procedure successfully completed.
SQL>
SQL> --// process cur reference in client
SQL> print c
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 1980/12/17 00:00:00 800 20
7499 ALLEN SALESMAN 7698 1981/02/20 00:00:00 1600 300 30
7521 WARD SALESMAN 7698 1981/02/22 00:00:00 1250 500 30
7566 JONES MANAGER 7839 1981/04/02 00:00:00 2975 20
7654 MARTIN SALESMAN 7698 1981/09/28 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 1981/05/01 00:00:00 2850 30
7782 CLARK MANAGER 7839 1981/06/09 00:00:00 2450 10
7788 SCOTT ANALYST 7566 1987/04/19 00:00:00 3000 20
7839 KING PRESIDENT 1981/11/17 00:00:00 5000 10
7844 TURNER SALESMAN 7698 1981/09/08 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 1987/05/23 00:00:00 1100 20
7900 JAMES CLERK 7698 1981/12/03 00:00:00 950 30
7902 FORD ANALYST 7566 1981/12/03 00:00:00 3000 20
7934 MILLER CLERK 7782 1982/01/23 00:00:00 1300 10
14 rows selected.
SQL>
SQL>
SQL> --// make the stored proc call
SQL> begin GetObjects( :c, 'DEPT' ); end;
2 /
PL/SQL procedure successfully completed.
SQL>
SQL> --// process cur reference in client
SQL> print c
DEPTNO DNAME LOC
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
SQL> -
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 -
How to hide the buttons based on some conditions
Dear all
Good morning
i have three pages
when ever user directly go to third page i want to hide the button "backtofirstpage"//button name
when user go to third page via first page i mean first page i want to visible the button "backtofirstpage"/button name
what is the procedure
at least hiding is not posible at least disable/enable
Regards
SreekanthHi,
In the if condtion read the value of parameter [[You need to send it from first page]] and get it in process Request Method of controller of third Page and based upon it set the render property of that button & in the else condition set the render property to false.
You need to create a PVO & also create a Boolean attribute.
Set the render property in Property window like ${oa.xxPVO1.setRender} -- ${oa.viewInstanceName.viewAttributeName}.
Read more in dev guide & search through the forums.
Thanks
--Anil -
How to change users' initial page based on a condition
I'm using SSO on my application, and have two types of users who will be logging on - I want one set (admins) to go straight to one page, and the other set (users) to go to a another page after logging in. These two sets of users are stored in the database, so I can want to use that to check against.
I get the impression this would be easy enough if my users went via the 101-login page, but as I'm using SSO I don't think they do. I can change the default starting page, with the home link setting in the application's security attributes, but you can only set one of those.
I don't mind having it all default to one page, and then redirect away from that if the username meets a particular condition, but can't see how I can do that.
Can anyone suggest how I can work this to achieve what I need?Tim,
First I would create a HOME_PAGE application item. Then I would create an application computation on new instance that sets that item accordingly. something like this:
with user_table as(
select 'TIM' user_name, 'ADMIN' user_role from dual
select case
when exists(select *
from user_table
where user_name = :APP_USER
and user_role = 'ADMIN')
then
102
else
103
end
from user_tableI would make a landing page all people go to. Page 150. On that page i would make a branch before header which references your HOME_PAGE application item.
Cheers,
Tyson Jouglet -
hi all.
i have a requirement where i need to make a set of regions alter based on which field we select....
i have a LOV input and based on that the input the respective region has to be displayed..
suppose i have 5 regions.....
if i give 1 then the 1st region has to displyed.....similarly 2nd and 3rd......
any help..........????????
DEVHi,
Check the code snippet from Dev Guide:
if (pageContext.isLovEvent())
// Form was submitted because the user selected
// a value from the LOV modal window,
// or because the user tabbed out of the LOV input.
// Find out which LOV input triggered the event.
String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
// Find out the result values of the LOV.
Hashtable lovResults =
pageContext.getLovResultsFromSession(lovInputSourceId);
if (lovResults != null)
// Update the page depending on the value chosen by the user.
It explains what you need.
niranj -
"How do you build a filter based on the conditions of two columns?"
Hi all,
line desc Period Amount1 Amount2
jan feb 0 10
jan mar 0 20
jan jan 0 30
jan apr 0 40
I have a report like this with four columns
Line Descr is from one table and period from other table and amounts 1 and amounts 2 are respective amounts.
now i need to see the only one column in the Result i,e. jan jan 0 30
I need to write a sql in the column formula so that i need to get this Result
Any suggestions like what sql do i need to write
thanks
Xavier.
Edited by: Xavier on Jul 1, 2011 12:03 PM
Edited by: Xavier on Jul 1, 2011 12:04 PM
Edited by: Xavier on Jul 1, 2011 12:05 PM
Edited by: Xavier on Jul 1, 2011 12:05 PM
Edited by: Xavier on Jul 1, 2011 12:06 PM
Edited by: Xavier on Jul 1, 2011 12:07 PM
Edited by: Xavier on Jul 2, 2011 11:37 AMDavid,
Thank you very much for your Reply.I was looking,who could understand my situation and guess "YOU DID'
I'll tell my situation David.
We used to have a sql filter for this Report .In 11.1.1.3 version it used to work ,but in 11.1.1.5 we have a bug .if you have a sql filter in the Report it is not allowing us to use navigation links on that report it is saying some "Assertion Error".
We are using this Report on Dashboard .If we use the report on Dashboard and if that Report contains the Sql Filter than it's throwing the "ASSERTION ERROR".
but if i open the same Report from the catalog then the navigation links works fine
Can you help me out with this one .
Thanks
Xavier -
How to show/hide total based on selected column in column selector
Hello,
Is there a way to show/hide the total based on what column is selected in the column selector? Or alternatively to hide the total based on the column selected? I'm using OBIEE 10g.
Basically, I have a pivot table with a handful of row variables and one measure. Then I allow the user to select the column variable. The default is to have nothing, which I have achieved using the hidden/dummy column trick (Re: How to add new columns by using Multiselect However, if my pivot table is set to have a total, I now get 2 columns that are the same. When the user selects any other choice (e.g. gender), I would want to see Male, Female and the total. Something like this:
Default:
Count
East 10
West 20
Total 30
Gender:
Male Female Total
Count Count Count
East 6 4 10
West 14 6 20
Total 20 10 30
Any thoughts?
Thanks!I recommend using view selector instead of column selector
-
How can hide the buttons based on condition
Dear all
I have to hide the button based on condition
When I open the third page directly I want to hide that button
When I open the third page via first and second page I need to visible that button
I pass spell parameter from first to second and second to third
In third page I get the value using pagecontext
I write the code in third page co
If I go directly third page it is null
If I go to third page via first the value is Y
If(“Y”.equals(pmode))
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(!btn=null)
btn.setrendered(true);
else
btn.setrendered(false);
but the button is not hiding
Regards
SreekanthHi Srikanth,
I have modified ur method:
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(btn !=null)
If(“Y”.equals(pmode))
btn.setrendered(true);
else
btn.setrendered(false);
Thanks,
'Kumar
Edited by: Kumar Kovela on Aug 3, 2009 5:53 AM -
How to hide table column based on country molga value
Hi Experts,
I am doing some enhancement in ess application. I want to hide table column based on country code i.e. Molga value.
I want to hide coulm for only Japan country reset of them i need to be show those coulmn.
Could you please provide me a sample code.
Regards
ChakriHi Chakri,
Your setting the table value that time you will get the Country Code.
1.Create the attribute like Country_Column_Visible Data Type bind the com.sap.ide.webdynpro.uielementdefinitions.Visibility this value you need to bind the table country column.
2.In Table You need to check the country code Japan is available you need follow this below sample code.
for(int i=0;i<tablesize;i++)
tablesithValue=wdContext.nodeTable().getTablenode(i);
if(null != tablesithValue.getcountrycode)
if(tablesithValue.getcountrycode.equalsIgnoreCase("Japan"))
wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.NONE);
}else
wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.VISIBLE);
Use the above code you condition it will work.I hope it will help you.
BR,
Durga -
SSRS 2008 - hide chart lines based on parameter selected
How to control visibility of chart lines based on Params selected by user?
By default, my report display last 3 years worth of data (including current) with Month on the x axis and Counts on the y axis. I have two Boolean parameters:
TwoYrs? T/F
ThreeYrs? T/F
if False is selected for TwoYr and ThreeYr parameters then I want to hide chart lines corresponding to last year and the year before.
What I've tried: Created 3 Series groups with filters. eg. YearSeries1 to return only current year data and applying an expression to display it if params TwoYrs and ThreeYrs = False. and so on for YearSeries2 to return current + last
years data if param TwoYrs is True and ThreeYrs = False. But I don't see where to add expression to control the display of the individual series groups. I am open to any way of doing this, but this seemed most logical.Hi Ok-Hee,
In your Source Query just need to filter the series data based on the Parameters.
I have written sample query below:-
select * from
select 1 monthnumber , 'Jan' MonthName, 2013 year,100 amount
union
select 1 monthnumber , 'Jan' MonthName, 2014 year ,200 amount
union
select 1 monthnumber , 'Jan' MonthName, 2015 year , 300 amount
union
select 2 monthnumber , 'Feb' MonthName, 2013 year, 300 amount
union
select 2 monthnumber , 'Feb' MonthName, 2014 year, 350 amount
union
select 2 monthnumber , 'Feb' MonthName, 2015 year,200 amount
union
select 3 monthnumber , 'Mar' MonthName, 2013 year, 380 amount
union
select 3 monthnumber , 'Mar' MonthName, 2014 year, 100 amount
union
select 3 monthnumber , 'Mar' MonthName, 2015 year, 500 amount
)t
where year in (
select distinct FilterYear from
select case when @TwoYrs=1 then year(getdate())-1 else year(getdate()) end FilterYear
union
select case when @TwoYrs=1 and @ThreeYrs =1 then year(getdate())-2 else year(getdate()) end FilterYear
union
select year(getdate()) FilterYear
) t
I have created one post in my blog , you can check the result.
https://msbitips.wordpress.com/2015/03/12/ssrs-2008-hide-chart-lines-based-on-parameter-selected/
Thanks
Prasad
Maybe you are looking for
-
How to authorise a computer that's not connected to the internet?
i use my the computer in my studio to watch dvd's all the time - who needs a tv when you've got a cinema display? the thing is, i recently purchased some tv episodes from itunes to watch on my studio computer - however, when i try to play them, i get
-
New major release of Sun Storage 7000 software is available
I noticed a new major release of the Sun Storage 7000 software is available at the website below. http://wikis.sun.com/display/FishWorks/Sun+Storage+7000+Series+Software+Updates.
-
My desktop version and chrome resolve this site but Firefox for android won't http://www.reserveamerica.com/unifSearch.do Any help would be appreciated
-
File Size Improvements in CS4?
I have found someinteresting things in CS4. Doing the same project as last year my total file size seemed much smaller. I opened my catalog from last year. 32 pages/tons of images 1.5 gigs. I saved that file as another name which trims size. The sie
-
Security guidelines in switches.
Hello to everybody. This is my first post and I don´t know if it is the right place. I would like to know what are the security guidelines that you set up in your switched lan, I mean, do you block unused ports? do you use 802.1x with RADIUS? do you