dynamic columns selection based on login in BI answers
HelloI have a dimension with manager level 1 to 10, based on the user login, I want to display the table with the column (level 1 or level n) dynamically (ex: If the user is in the n level manager, display the level n with other data column in the table). P.S. There are over 10000 + users, so I can not customize each user.
can you please let me know if this is possible and how?
Thank you very much
You can use the function indexcol to that effect.
http://download.Oracle.com/docs/CD/E12096_01/books/AdminTool/admintool_SQL15.html
In the document, you have an example of hierarchy.
Success
Nico
Tags: Business Intelligence
Similar Questions
-
OBIEE dynamic column headings based repository Variables
Hello
How can we provide variable name of the repository (from RPD) as column headings in reports (presentation Services).
Can you please suggest me how to do it?
Thanks in advance...
RAM
Hello
You can use the following link.
Oracle Business Intelligence 11g: OBIEE 11 g dynamic column headings
I used the variable presentation here, you can substitute the variable repository. The difference is that you don't need to create variable presentation, instead you use repository variable there.
If you are not clear with this, pleas come back. I'll write a new message on your problem.
-
Dynamic columns based on the user login
Dear Experts,
Is it possible to display the columns dynamically according to the connection of the BI Publisher user?
For example, if the report of RTF model has 10 columns in total and if I connect with a user named "abc", I should be able to see, say 6 columns containing information about the user "abc".
And if I have connection with "xyz", I should be able to see, say 7 columns containing information about the user "xyz".
I will be able to assign to which column should be displayed to the user who?
If there is a way to achieve this scenario, please let me know as soon as possible, since there is an urgent need.
Your help will be very appreciated.
Thanks in advance!
Yes, using: xdo_user_name in the SQL data model, you can get the details for user identification.
Then use this model column RTF for display of the dynamic columns.
Example:
Select: xdo_user_name as USER_ID of the double
In RTF
Column header Column data -
Hi all
Suppose I have table, whose structure changes frequently on a daily basis.
For example. / / desc my_table gives you after the name of the column the day 1
SQL > my_table DESC;
Output
Name
Age
Phone
Day 2, two other columns are added, viz, address and salary.
SQL > my_table DESC;
Output
Name
Age
Phone
Address
Salary
Now, I want to create a Dynnamic RTF report which made extracting data from all columns from my_table daily. For this, I have defined a simultaneous program with XML output type and include in annex a data/definition of data model that takes XML as input and gives the final result of the conc program in EXCEL layout. I am able to do that for a constant number of columns, but don't know how to do it when the number of columns to display dynamically changes.
For 1 day my XML file should be like this.
<?xml version="1.0" encoding="UTF-8"?> <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0"> <dataQuery> <sqlStatement name="Q2"> <![CDATA[ SELECT Name ,Age ,Phone FROM my_table ]]> </sqlStatement> </dataQuery> <dataStructure> <group name="G_my_table" source="Q2"> <element name="Name" value="Name" /> <element name="Age" value="Age" /> <element name="Phone" value="Phone" /> </group> </dataStructure> </dataTemplate>
And my day 1, EXCEL output RTF model should be like this.
Name age phoneSwapnill 23 12345
For 2 days my XML file should be like this. With 2 new columns selected in the SELECT clause.
<?xml version="1.0" encoding="UTF-8"?> <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0"> <dataQuery> <sqlStatement name="Q2"> <![CDATA[ SELECT Name ,Age ,Phone ,Address ,Salary FROM my_table ]]> </sqlStatement> </dataQuery> <dataStructure> <group name="G_my_table" source="Q2"> <element name="Name" value="Name" /> <element name="Age" value="Age" /> <element name="Phone" value="Phone" /> <element name="Address" value="Address" /> <element name="Salary" value="Salary" /> </group> </dataStructure> </dataTemplate>
And my day 2, exit EXCEL model RTF should be like this.
Name address telephone pay23 12345 Madrid 100000 Swapnill
Now, I don't know below things.
- Make the dynamic XML as we did in the day 1 there are 3 columns in the SELECT statement and the day 2, 5 columns. I want to create a dynamic XML which must not be changed if the new columns are added into my_table. I don't know how to create this query and also create their corresponding items below.
- Make the RTF model dyanamic as day 1 there are 3 exit EXCEL columns and the day 2, 5 columns. I want to create a dynamic RTF model that would display all the columns selected in XML dynamic. I don't know how the RTF will create new XML tags and how it will know where to place them in the report. Means, I can create model RTF day 1, by loading the XML data for 3 columns and place 3 tags XML in the model. But how he will create and place the tags for the new columns the day 2?
Hope so, you got my requirement, it's difficult. Please let me know how I can implement the necessary solution using the RTF dynamically without any manual intervention.
Kind regards
Patricia K.
Post edited by: SwapnilK
Hi guys,.
I was able to solve above the requirement.
I created a procedure that would create & update (attached to the data definition) XML file dynamically for each race. This dynamic XML contains the SQL statement for the data query that is built dynamically. I am updating this XML file using XDOLoader utility to the definition of data. Then run my program customized to generate the excel output.
Exit excel retrieves correct number of columns dynamically (3 on Day1 and Day2 5), with corresponding data records.
Kind regards
Patricia K.
-
I use
DB 10g Release 10.2.0.1.0
Oracle 6i 6.0.8.8.3 reports
in the table below.
How can I have the dynamic columns 'fault' in reports in the order of its highest value of occur_times.
and a view that gives me no reports (formats below).
CREATE TABLE dem
(trid NUMBER (9.0),)
tr_date DATE,
point VARCHAR2 (10),
failure VARCHAR2 (5).
occur_times NUMBER (9.0))
/
INSERT INTO dem
VALUES
(1, 26 - JAN 2016', 'MC', 'AB', 3)
/
INSERT INTO dem
VALUES
(2, 26-JAN 2016', 'MC', 'FM', 2)
/
INSERT INTO dem
VALUES
(3, 26 - JAN 2016', 'MC', 'SO', 5)
/
INSERT INTO dem
VALUES
(4, 27 - JAN 2016', 'MC', 'AB', 8)
/
INSERT INTO dem
VALUES
(5, 27-JAN 2016', 'MC', 'FM', 2)
/
INSERT INTO dem
VALUES
(6, 27-JAN 2016', 'MC', 'SO ', 1).
/
Commit
/
example1
"Report of input parameter: count 26 January 2016 ' to 26 January 2016"
Output format of report
point defects Total SW AB FM
------- ---------------- ---- ----- -----
MC 10 5 3 2
e.g.2
"Report of input parameter: count 26 January 2016 ' January 27, 2016"
Output format of report
point defects Total FM SW AB
------- ---------------- ---- ----- ----- 21 11 6 4 MC
in example1 in date range, the flaws in the order of its value max occur_times is FM SW, AB,
but in e.g.2. in view of the date range default by order of its value max occur_times is AB, SW, FM
THE FAULT of MAX VALUE should take precedence i.e. dynamically in the reports.
concerning
teefu
Lahore, pakistan.
You must create the parameter in the oracle reports. When the report of the form calling create the parameter list and then pass the required parameter.
SELECT the item,
fault,
Sum (occur_times) tot_times,
ROW_NUMBER() over (ORDER BY SUM (occur_times) DESC) rn
DEM
WHERE the fault ("AB", "FM", "SW")
AND tr_date BETWEEN TO_DATE(:p_dt1,'dd-Mon-yyyy') AND TO_DATE(:p_dt2,'dd-Mon-yyyy')
GROUP BY item, fault
;
-
Dynamic columns to fit the APEX 4.2 screens
Hello
I developed an interactive report in APEX 4.1 that displays data as a table with three columns (see query below). I want to dynamically set the number of columns depending on the size of the screen. For example, a smart phone should probably only display a single column and a 20 "+ monitor could hold five or six columns."
As you can see, I'm currently hardcode the number of columns using the decoding functions and mod. thanks for the help!create table photo (id number, last_modified date); select trunc(last_modified, 'hh') hour_modified, -- Groups rownumbers into 3-columns-per-row max(decode(mod(rn, 3), 1, last_modified, null)) modified1, max(decode(mod(rn, 3), 2, last_modified, null)) modified2, max(decode(mod(rn, 3), 0, last_modified, null)) modified3, max(decode(mod(rn, 3), 1, id, null)) id1, max(decode(mod(rn, 3), 2, id, null)) id2, max(decode(mod(rn, 3), 0, id, null)) id3 from (select p.id, p.last_modified, row_number() over (partition by trunc(p.last_modified, 'hh') order by p.last_modified) rn from photo p) group by trunc(last_modified, 'hh'), -- Groups rownumbers into 3-columns-per-row ceil(rn/3) order by hour_modified, modified1;
Yes
I don't think you can use an instance of interactive report in this situation.
In addition to needing a different report for each #columns you want to host.
A lot of the interactive report features must be switch of.
For example the column selection. Do not want users of the column Photo1. Because then the photo 1, 4, 7 are not shown.The column break actualy breeze your go see [url http://apex.oracle.com/pls/apex/f?p=VANBAREN_FORUM_TRY_OUT:FLUENTIR & c = VANBAREN] this example
The report should be ordered on the family name and DepartmentI've implemented for examples that shows grouped by Department employees where the number of employees next to each other depends on the room that is available.
[url http://apex.oracle.com/pls/apex/f?p=VANBAREN_FORUM_TRY_OUT:FLUENTGENERIC & c = VANBAREN] The first uses a generic and breaking definend by the report model.
[url http://apex.oracle.com/pls/apex/f?p=VANBAREN_FORUM_TRY_OUT:FLUENTNAMED & c = VANBAREN] The second one uses a named column model and uses the condition of models for breaking.This approach allows you to control not only on your go. You can display more information. It becomes possible screen time that the picture was taken under the photo by simply adding the column to the statement select source.
And you have more control over the design, because decide you the used attributes and CSS classes.Nicolette
Published by: Nicolette on 15-dec-2012 22:06
Change the url of the demo application. After the alias of application not being not only more. -
Dynamic columns in dashboard prompt
Hi all
I have to 'TOP' dispay & dynamic value 'BOTTOM' in the drop-down list of the dashboard invites the creation of a dynamic column value in the drop-down list prompt dashboard? I'm trying to create in writing view sql result but not getting does not correctly according to the selection of HIGH and low, I must make a report changesSELECT CASE WHEN 1=0 THEN ExistedPresentationColumn ELSE 'TOP' END FROM SubjectArea
UNION ALL
SELECT CASE WHEN 1=0 THEN ExistedPresentationColumn ELSE 'BOTTOM' END FROM SubjectArea
-
Help by calling the dynamic columns in anonymous blocks
my code:
DECLARE
col1 VARCHAR2 (20): = "City";
BEGIN
I'm in (select * from xbd.cus_ord where rownum < 10)
LOOP
- I would call col1 dynamically here in my outings DBMS.
DBMS_OUTPUT. Put_line (i.col1);
END LOOP;
END;
/
The code above I tried to call a dynamic column. How can I do that.
I Heve been tried differently using EXECUTE IMMEDIATE. It still does not work.
THX,
VIDECLARE col1 VARCHAR2(30) := 'object_name'; TYPE REF_CURSOR IS REF CURSOR; refCursor REF_CURSOR; text VARCHAR2(4000); BEGIN OPEN refCursor FOR 'SELECT ' || col1 || ' FROM all_objects WHERE ROWNUM < 10'; LOOP FETCH refCursor INTO text; EXIT WHEN refCursor%NOTFOUND; DBMS_OUTPUT.PUT_LINE(text); END LOOP; END; /
-
Extraction of dynamic columns in table
I have table with 1000 rows and 200 columns. The columns have additional suffix IE
Table = 'X '.
Columns = ID, A, B, C, D1, D2, D3... D200
I would like to get the values of each column so that I can treat them accordingly.
OPEN c1 to SELECT * FROM X
LOOP
C1 FETCH BULK COLLECT INTO l_dies;
FOR indx IN 1... l_dies. COUNTY
LOOP
FOR indx to 0... 200
LOOP
colStr: = l_dies (indx). || » D'|| INDX; <-trying to dynamic column of concat name, but it gives an error.
Dbms_output.put_line ('indx =' | indx |) 'col = value' | colStr);
END LOOP;
END LOOP;
END LOOP;
Maybe it's not the right way, but just an example of what I want to achieve.
Thanks in advance.http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1035431863958
Visit this link especially the very first post of Tom (Proc print_table).
I hope this helps.
Concerning
REDA
-
LabVIEW can find location of row/column selected in the open worksheet?
Instead of asking user to LabVIEW manually to input data (location of the row/column you want for data entry in the spreadsheet open), can read LabVIEW that the location of the row/column selected in a worksheet open, selected by the user?
If so, LabVIEW now has a starting location for the user to launch inputing data without having to ask the user LabVIEW!
Any ideas on how to achieve this would be very appreciated!
Thank you!
Barry
For what you want to do here, read and write in the cell current. This example shows you the basics...
-
In 2009 of LV, if you double-click an implementation in the dynamic distribution selection dialog and VI is already open, it will not be credited toward the front. It worked correctly in earlier versions.
Have a look at the attached draft for an example.
Please try to drop the VI attached on top of program NIUninstaller Instruments\LabVIEW XXXX\resource\Framework\Providers\LVClassLibrary\ChooseImplementation\CLSUIP_OpenImplementations.vi and let me know if it works for you.
-
Excel 2007 column Selection colors
It's a bit complicated to explain, but here go us. I have excel 2007 and since we moved to this new version when I am selecting a column and then run the search function in this column of the cell that has the information I'm looking for is almost in the same color as the column of highloghted all that makes it VERY difficult to see. How can I change the color of the column selected to be darker so then white blood cells stand out? Hope that makes sense. Thank you
Please post on forum of MS Office Excel. (you are the Vista forum)
http://answers.Microsoft.com/en-us/Office/Forum/Excel?page=1&tab=no -
cord cable fiber type selection based on different types of SFP connectors?
need help with fiber patch cable cord type selection based on the different types of SFP connectors, y at - it links online or any documents that will be useful...
The type of connector, usually (but not always) follows the form factor of the transceiver. For example, most SFP and SFP + transceiverss use dual LC.
However, always check the Datasheet on the link I provided above to confirm if there is any doubt.
Please indicate your question as answered if it was.
-
OBIEE 11 g dynamic column headings
Thank youHow to achieve this and is for the column headers!I doubt I should do some dynamic column headings in OBIEE 11 gbut in the report I want column header to be something as if showing 1 do Jan...I have guest months (1,2,3...)
NK
I fixed that with a dummy work around
created a new prompt and pass values of the previous message and put this quick as a filter on the dashboard (dashboard properties).
and used this new prompt variable as a header for the report
He worked
Thank you
NK
-
Command tab selected, based on navigation
Hello
I have a jsf (jspx) page with a navigation pane, which has three navigation elements. Now by clicking one of the navigation feature a different jsf page will appear in a new window. This page has three tabs. Now, I want to show a tab is selected, based on the navigation point clicked. I have a managed bean where I put the disclosed ownership of the retail show based on the clicked point navigation. But it is throwing null pointer exception.
public void firstitemClicked() {}
this.getTab1 () .setDisclosed (false); This line is an error
this.getTab2 () .setDisclosed (true);
this.getTab3 () .setDisclosed (false);
}
And this method is called the navigation item that is located on the first page.
Mallaury,
Make the Boolean type as "static".
In your DemoBackingBean, do the "static" variable that we were missing before.
Private static boolean first = false;
Tip: I prefer to use "af:setActionListener" instead of writing code for such requirement
Thank you
SAIF
Maybe you are looking for
-
MY son was given to iPod touch for Christmas a few days after Christmas. I did not notice immediately that I had not seen it & seven was asked if it was sold. There are many ways our teenagers can listen to free music, I thought that nothing about it
-
The cursor engine may be hidden? The software is Labview 8.5. The cursor engine is diamond shaped control that appears when 'visible elements, legend of cursor' are selected after right-clicking on a xy chart. I reformatted the appearance of the res
-
icons will not access the software and pc won't let me download the software
Ive had 1 - error rundll32 2. type of executable file exe extension installation file for use in a Setup library
-
What support to wait without having to buy a package of support for laptop?
I bought a HP Envy 360 (with core i7) laptop as a gift for my son at Best Buy. It will be able to call with a question to the initial assistance? The standard warranty cover this? Or do I have to buy a package of support for this? He had a HP lapt
-
Classic view of the Start Menu in Windows 7
How to change the Windows 7 Start Menu to Classic view like in Windows XP?