How to apply 'disableColumnReordering="true"' at column level.
Hi Experts,
I am using jdev 11.1.1.5.0.
I have a requirement, not to move(drag) the column within a table. I got succeeded to apply this on table level so that all columns are fixed, but not able to fix it at column level.
So, is there any way or a property to fix this at column level.?
Please help out me.
Thanks & Regards,
Bittu..!
Hi
You can use at column level frozen="true" but this will not disable reordering. This specifies whether the column is frozen. In the table columns until the frozen column are locked with the header and not scrolled with the rest of the columns. Frozen attribute is honored only on the top level column,since it is not possible to freeze a child column by itself without its parent being frozen
See if this helps to your requirements.
Reference: http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_column.html
Nikolay
Similar Messages
-
How to lock the statistics in column level.
Hi All, i am using 10.2.0.1.0 version of oracle.
I have gathered freuency histogram manually on one of my column of a table to provide more information to optimizer for better calculation of cardinality.
Now i have my weekend job runs for gathering stats on schema level with method_opt as 'For all column size repeat'. But i dont want the stats of above column to be overridden by the stats job. I dont want to lock the statistics of whole table, but i just want to lock the column level stats for this table.
how the above can be achieved?
Below is the details.
Code for manual histogram , i have eliminated many buckets purposely, as there are 194 buckets.
DECLARE
m_distcnt NUMBER := 916714; -- num_distinct (As it is there in dba_tab_columns)
m_density NUMBER := 0.00000109031397771616; -- density (As it is there in dba_tab_columns)
m_nullcnt NUMBER := 0; -- num_nulls (As it is there in dba_tab_columns)
m_avgclen NUMBER := 8; -- avg_col_len (As it is there in dba_tab_columns)
srec dbms_stats.statrec;
n_array dbms_stats.numarray;
BEGIN
srec.epc := 3; -- no of end points
n_array := dbms_stats.numarray(3870 ,
3891 ,
3945
srec.bkvals := dbms_stats.numarray(25000 ,
55000 ,
100000 ,
dbms_stats.prepare_column_values(srec, n_array);
dbms_stats.set_column_stats('Schema1', 'USERS_HIST_TEST', 'COMPANYPK',
distcnt => m_distcnt,
density => m_density,
nullcnt => m_nullcnt,
srec => srec,
avgclen => m_avgclen,
force => TRUE);
END;
-- Weekend job which will override above histogram
DBMS_STATS.GATHER_SCHEMA_STATS (
ownname => 'Schema1',
estimate_percent => dbms_stats.auto_sample_size,
block_sample => FALSE,
method_opt => 'FOR ALL COLUMNS SIZE REPEAT',
DEGREE => dbms_stats.default_degree,
granularity => 'DEFAULT',
CASCADE => TRUE,
options => 'GATHER STALE'
Edited by: 930254 on Jul 4, 2012 9:08 AMPl do not post duplicate threads - How to lock the statistics in column level.
-
How to apply business rule over report level
Hi All,
I have a column name AAA over which i have to apply a business rule/filter like
COUNT(“X Fact”." ID") WHEN “X Fact”.”Time to Issue Policy” <= 2 days at report level.How to apply that?any idea?
Regards,
SonalHi,
Thanks for responce.
Yes my AAA col is measure column coming frm Order Fact table (i.e AAA= "Order Fact"."Number of Order") & below is Business rule which I have to apply there
COUNT(“Order Fact”."Order ID") WHEN “Order Fact”.”Time to Order” <= 3 days.How Can I apply this logic there at report level.Plz help?
Regards,
Sonal -
How to apply =Hyperlink() to entire column
I created the following formula: =HYPERLINK("http://www.somewhere.com/search.aspx?kw="&C2, C2), where C2 is relative to the cell in which apply the formula. So in effect I am attempting to create relative Hyperlink URLs down a column. Here's my problem, I cannot copy-and-paste this formula to entire column because the cell I need to copy is now a hyperlink.
Open the hyperlink inspector:
and check the box "Make all hyperlinks inactive". Now copy and paste the formula, then select the whole column and paste -
How to apply styles to a column in a datatable based on a condition
It is like, if some condition is satisfied, i want to apply some style to a column else i have to apply some other style to that column
HI ,
Use el expressions to reolve this problem.........
http://abakalidis.blogspot.com/2007/09/adf-tables-changing-colour-of-negative.html
go through this link ....it may be usefull to you ......
Regards
HAri -
Grand Total not displaying correctly on Column level security.
Hi All,
I have implemented the Column level security for three columns. But in dashboard report. The grand total is not displaying correctly. The grand total values are still displayed for the hidden columns.
Is there any work around for this.
The sample how my report looks like after column level security is.
ColumnA Metric1 Metric2 Metrics3(to be hidden)
A 100 200
B 150 100
GrandTotal 250 300 400( this includes the value of A = 300, B = 100).
Regards,
BhavikAny pointers please.
-
Hi how to apply Chronological sort for a month column?
Hi All,
I am struck with how to apply Chronological sort for a month column that contains values like January, February, March, April, May, June.... December. If we apply normal sorting then we can arrange the column values either in ascending order or descending order. But i want the column values to be in this format like jan, feb, mar,apr....dec. Is it possible???
If this is possible then pls tell me the way in a step wise manner for my better understanding..
Thanks in Advance
ThenmozhiHi Deva,
I tried with the below formula :
CASE WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='January' THEN 1 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='February' THEN 2 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='March' THEN 3 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='April' THEN 4 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='May' THEN 5 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='June' THEN 6 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='July' THEN 7 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='August' THEN 8 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='September' THEN 9 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='October' THEN 10 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='November' THEN 11 WHEN
"Order Booked Date Calendar"."Full Month Name (Order Booked)"='December' THEN 12 ELSE '' END
But it is showing the error like this:
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 604, message: ORA-00604: error occurred at recursive SQL level 1 ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 8 ORA-00932: inconsistent datatypes: expected NUMBER got CHAR at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
What it is problem? Please help me...
Thanks -
I am working on a research project using Numbers 09 and have columns for values that require me to use formulas using values in other columns. Becuase I am lazy and have 180 rows of data, I would like to find a way to have a formula apply to an entire column so that I don't have to go row by row inputting the formula.
Essentially, I want to be able to have N(X)=F(X)+G(X). Where X is the row number. Is this possible?
The real formula I want to have is (4*(F(X))^2)/G(X)
Thanks!Place this formula in your chosen column in the first row containing data in columns F and G.
=(4*F^2)/G
Press enter to confirm the entry. The result will appear in the cell.
Click (once) on the cell containing the formula.
Shift Click on the cell in the same column on the last row containing data in F and G to select all cells between. .
Go Insert > Fill > Fill down.
Done.
Regards,
Barry -
Row and Column Level Select Permission
Hello Friends,
I am using Oracle Oracle9i Enterprise Edition Release 9.2.0.1.0 and Windows XP. I have two questions. How to set :
1. Row Level Select Permission?
2.Column Level Select Permission?
1. I have a table having 100 records in it. I don’t want to allow all the user to see them; means, if user1, user2 and user3 are going to select * from mytable then only they can get all the rows; while other users (including sys) should not able to get all rows, they should be capable of from 11th record.
Though it can be managed by using another table, but I am just finding the other solution.
2. Likewise, if I don’t want to allow to fetch all the columns; suppose column4 is having confidential info and only be visible by user1,user2 and user3 only, not by any othr user; what should I do?
Please guide and help me.
RegardsYou would need to use Virtual Private Database (VPD)/ row level security (RLS) to apply row-level security policies to the table. The DBMS_RLS package is used for this
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_rls.htm#sthref6168
Unfortunately, column-level security wasn't available in 9.2. You would need to upgrade to Oracle 10g to get that functionality. Before that, you would have to create views that selected appropriate subsets of columns and grant permissions on those views to different users.
Justin -
OBIEE - How to selectively hide or disable columns on a dashboard prompt?
Hello! I need some help with OBIEE dashboard Prompts. Any help will be highly appreciated!
Question 1. How to selectively hide or disable columns on a dashboard prompt or the entire prompt? There seems to be no "hide" or "dsable" options on
prompts.
Question 2. How to synchronize 2 different prompts on the same dashboard?
The application is this: There are total of 2 tabs on a dashboard ("tab_1" and "tab_2"). Each tab uses different prompts ("pr_1" and "pr_2"), having just one first drop down column in common ("Product_id").
The desired functionality is this: user selects "Product_id" on the first tab's prompt, which filters its reports (on "Go") and also propagates to the second tab. When user clicks on the second tab, the reports there are already filtered (or begin filtering) by "product_id", selected on the first tab.
Question 3. How to prevent the reports from retrieving when switching to a different tab on a dshboard? Specifying dummy default values in the prompt does
not seem to preven reports from retrieving, which still takes time.
Thank you very much!
RogerRegarding Question 2:
What you need to have is a Dashboard scope dashboard prompt for Product_ID (i.e., Don't use the column prompt from the prompt tab within the Request.)
1) Create the dashboard prompt, put it on tab1 and save the prompt to a presentation variable, say prmtProdID. Set the scope to "dashboard." (This is the default, by the way.) If you create a dashboard prompt and set the scope to "dashboard," then the prompt values selected will hold true across dashboard pages.
2) On tab2, go to your report and in Criteria mode, apply a filter to the Product_ID column making it equal to the PV. (Click the filter icon, Add>Variable>Presentation Variable and type prmtProdID. Save.)
When the user selects a Product_ID on tab1 of your dashboard and hits "Go," not only will it filter your report on tab1, when you go to tab2 the report here will be filtered with the same value selected in the prompt on tab2.
Regarding Question 3:
If you implement 2, you cannot implement 3. You can't have it both ways. Not for the same scenario. But if you want to know how to do it in general, read this:
http://obieeone.com/2009/08/24/how-to-stop-queries-to-automatically-fire-off-once-entering-dashboarddashboard-page/ -
How to apply List box for multiple selection of rows in ALV report ?
Hi Exprots,
1: How to apply List box for multiple selection of rows in ALV report ?
Thanking you.
Subashhi,
check the below program.
REPORT zalv_dropdowns.
*Type pools declarations for ALV
TYPE-POOLS : slis.
*data declarations for ALV container,ALV grid, Fieldcatalogues & layout
DATA: g_grid TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container,
gt_fieldcat TYPE lvc_t_fcat,
gs_layout TYPE lvc_s_layo.*INTERNAL TABLE AND WA DECLARATIONS FOR t517 A table
DATA: gt_outtab TYPE STANDARD TABLE OF t517a INITIAL SIZE 0,
wa_outtab TYPE t517a.
START-OF-SELECTION.*Call to ALV
CALL SCREEN 600.*On this statement double click it takes you to the screen painter SE51.
*Create a Custom container and name it CCONT and OK code as OK_CODE.
*Save check and Activate the screen painter.
*Now a normal screen with number 600 is created which holds the ALV grid.
PBO of the actual screen , Here we can give a title and customized menus
Here we also call the subroutine for ALV output.
MODULE PBO OUTPUT *
MODULE pbo OUTPUT.
PERFORM alv_output.
ENDMODULE. "pbo OUTPUT
MODULE PAI INPUT *
MODULE pai INPUT.
ENDMODULE. "pai INPUT
*& Form BUILD_FIELDCAT
FORM build_fieldcat.
DATA ls_fcat TYPE lvc_s_fcat.
*Build the field catalogue
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'T517A'
CHANGING
ct_fieldcat = gt_fieldcat.
To assign dropdown in the fieldcataogue
LOOP AT gt_fieldcat INTO ls_fcat.
CASE ls_fcat-fieldname.
WHEN 'SLART'.
*is the first list box
ls_fcat-drdn_hndl = '1'.
ls_fcat-outputlen = 15.
MODIFY gt_fieldcat FROM ls_fcat.
is the second list box
WHEN 'ABART'.
ls_fcat-drdn_hndl = '2'.
ls_fcat-outputlen = 15.
MODIFY gt_fieldcat FROM ls_fcat.
ENDCASE.
ENDLOOP.
ENDFORM. "build_fieldcat
*& Form ALV_OUTPUT
FORM alv_output .*Create object for container
CREATE OBJECT g_custom_container
EXPORTING container_name = 'CCONT'.
*create object for grid
CREATE OBJECT g_grid
EXPORTING i_parent = g_custom_container.
Build fieldcat and set column
*Assign a handle for the dropdown listbox.
PERFORM build_fieldcat.
*Build layout
PERFORM build_layout.
Define a drop down table.
PERFORM dropdown_table.
*fetch values from the T517A table
SELECT * FROM t517a INTO TABLE gt_outtab.
*Display ALV output
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
is_layout = gs_layout
CHANGING
it_fieldcatalog = gt_fieldcat
it_outtab = gt_outtab.ENDFORM. "ALV_OUTPUT
*& Form dropdown_table
text
--> p1 text
<-- p2 text
FORM dropdown_table.*Declarations for drop down lists in ALV.
DATA: lt_dropdown TYPE lvc_t_drop,
ls_dropdown TYPE lvc_s_drop.
First SLART listbox (handle '1').
ls_dropdown-handle = '1'.
ls_dropdown-value = '01 Primary school'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '1'.
ls_dropdown-value = '02 Lower Secondary'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '1'.
ls_dropdown-value = '03 Upper Secondary'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '04 Professional School'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '05 College'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '06 University'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '09 Other Establishment'.
APPEND ls_dropdown TO lt_dropdown.* Second ABART listbox (handle '2'). ls_dropdown-handle = '2'.
ls_dropdown-value = '10 Primary School certificate'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = '20 Lower secondary/Junior high'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '30 High school diploma(B-levels)'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = '31 Vocational'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '32 Matriculation'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '40 Specialist vocational certificate'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '50 College degree Level1'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '51 College degree Level2'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '52 Masters degree'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '60 Univ Degree level1'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '61 Bachelors degree'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '62 Masters degree'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '63 Licenciate'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '64 Doctors Degree Ph.D'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '89 None'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '90 Unknown'.
APPEND ls_dropdown TO lt_dropdown.*method to display the dropdown in ALV
CALL METHOD g_grid->set_drop_down_table
EXPORTING
it_drop_down = lt_dropdown.ENDFORM. " dropdown_table
*& Form build_layout
text
*layout for ALV output
FORM build_layout . gs_layout-cwidth_opt = 'X'.
gs_layout-grid_title = 'ALV DROPDOWN LISTS'.
gs_layout-no_toolbar = 'X'.ENDFORM. " build_layout
endform.
Edited by: S.r.v.r.Kumar on Jun 1, 2009 2:48 PM -
Column level filter at RPD level - OBIEE 11g
Hi all,
How do i add a filter at the column level in logical layer for one of the metric , it has the following calculation
case when id in (1,2,3,4,5,5) and category='AS' then case when points=10 or points=9 then 1 else 0 end end
I want the metric to reused for other id's as well... so i want to put case when id in (1,2,3,4,5,5) in filter of the column. how do i achieve it? plz help
Thanks,
LonaYour question is not clear, I assume you want points to be reused for other ids, so try this
case when id in (1,2,3,4,5,5) and category='AS' then
case when points in (10 ,9) then 1
else 0
end
else points
end
if helps mark
~ http://cool-bi.com -
How do I get and set column attributes in a table or a treetable with Java?
Using 11.1.1.4.0
Hi,
How do I get and set column attributes in a table or a treetable with Java? For a simple example, say I have a table and want certain roles to see all columns (including address), and other roles can see only certain columns (no address). In a Java method, I want to test if a table's column visible attribute is true and if so, set it to false before rendering it.
Thanks in advance,
TroyHi,
this use case would be a perfect example for using seeded MDS customization. Instead of checking what users are allowed to see or not upon rendering time, you have a customization class and thus the framework doing this for you.
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/31-mds-sample-169173.pdf
In this paper and sample, specific users see different layouts. It also contains a customization class that shows how this can leverage ADF Security
Frank -
How to apply different CSS styles to different table cells?
I have an h:dataTable table and I would like to apply different CSS styles to different table cells depending on their content. If I were doing JSP I would probably have a <c:if> test on the cells, and give them a style name depending on contents, and then define the styles in a separate style sheet. Is there a way in JSF to do the equivalent? Thanks.
mitchgart wrote:
BalusC wrote:
How to achieve a cell-specific style is already answered in my 1st reply of this topic.That tells how to apply a style to the text (or other content) inside a cell but not how to apply a style to the <td> as a whole. It would work for something like text font or text color but not cell border.
I'm thinking I can mark the content somehow and then have javascript traverse the DOM, find marked content, and traverse outward to the enclosing <td>. Is there a better way?BalusC already spoke about rowClasses and columnClass attributes, I assume those are insufficient.
The Tomahawk dataTable component has the rowStyleClass and rowStyle attributes for assigning CSS to the HTML tr tag. One is allowed to reference the row data variable when assigning values to these. However, see https://issues.apache.org/jira/browse/TOMAHAWK-523 for workarounds to bugs in some implementations.
The Tomahawk column component has the styleClass and style attributes for assigning CSS to the HTML td tag. These also may reference the row data variable. -
How to create Presentation variable for columns and to use it in Narrative?
Hi All,
Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
Thanks in Advance
ThenmozhiHi Satya,
I just want to create a table that should horizontally display the values like below:
SUID Tag # :123456 Year Mfg: 2007
Description: computer corporation FA ID#: 4576
Model Number: 4569 hESC: #ert
Serial Number: 78945 Flags: c
Department: Hematology
User: thenmozhi
Database: OLAP
I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
Then the first value for example 123456 and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
SUID Tag # :678901 Year Mfg: 2008
Description: Computer Manufacturing FA ID#: 4577
Model Number: 4570 hESC: #eth
Serial Number: 78946 Flags: G
Department: Hematology
User: Rehman
Database: OLAP
Thanks
Thenmozhi
Maybe you are looking for
-
Get a List of Invoice Name Field
Due that our one time sales process not being done the standard way, our invoices allow to change the name of the sold to party. Now we need a list of sold to party name with Invoice number. Is there some report where I could get it? Thank you and Ha
-
PDF files created in Preview won't open in Adobe Reader
I consider Preview to be a swiss army knife when it comes to working with PDF and graphic files. Lately (since the last OS update?) PDF files created in Preview won't open in Adobe Reader. Reader either crashes or just becomes unresponsive. I've been
-
My Iphone 4 wont show pictures or video using composite original cable
Im using the latest software and it still wont work! I have a LG 2011 model TV and I have tried diffrent other TV`s. But it wont work! And yes, the colours match and I am using the right connections. The sound is workin though. The setting are set t
-
Hello Experts, I am preparing a ALV report in that i want to display fields in a such a way that under a heading i need to have two sub headings ie, for example under a material heading i need to display material no and code
-
[Flash Pro CS5/.5] Debugger Launch Failed
When I press Shift+Ctrl+Enter, I get this message: Happens with: Adobe Flash Professional CS5 and CS5.5 (I have both, happens with both)Happens with fresh installs of either - I haven't set any weird settings Actionscript 3 (any functional AS3 script