Display a sortable icon on table column in the ADF.
HelloI'm working on ADF with jdev 10.1.3.3. I have 2 column sortable table. My requirement is to show an icon of sort on the column header.
I need help.
When I click on the sortable column
a small ^ come. Can I increase the size of this «^» What can be done for this. Any help will be appreciated.
Vinay,
You must create a custom look.
[url http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html] This can be useful
John
Tags: Java
Similar Questions
-
How to get the names of the table columns in the quick dashboard
How to get the names of the table columns in the quick dashboard
Thanks and greetings
------------------------
Kishore PMake a prompt like:
SELECT case when 1 = 0 then 'D0 time. " "" T02 by month name "other" 'D2 market' '. "" M04 region' ' the end 'Sample Sales' UNION ALL SELECT case when 1 = 0 then 'D0 Time. " "" T02 by month name ' else ' 'Time D0. "" T02 by month name ' ' the end 'Sample Sales.
Put the name of column in single quotes.
Make your rank as a function:
Rank ('F1 income'. "" Recipes 1-01 (after all) "by @{pColumn} {'D0 time'. ({"" T05 annually name '})It works fine for me
concerning
John
http://obiee101.blogspot.com
-
I am trying to create a function that returns the distinct value and counts of a user defined schema/table/column.
The code below defines a [stats_on_column_obj] object type and creates a single table of this type [stats_on_column_tab].
The function is supposed to take three input variables: p_schema_name, nom_table_p, p_column_name and return an array (above).
I can hardcode a select into (the)... but once I try to convert it into settings & immediate exec I'm stuck. The red section is where the problem is (I think).
Oracle 10g.
Stats_on_column_obj CREATE TYPE IS OBJECT (
COL_VAL VARCHAR2 (500),
NUMBER OF COL_VAL_CNT (7)
);
CREATE TYPE Stats_on_column_tab IS TABLE OF stats_on_column_obj;
FUNCTION to CREATE or REPLACE get_STATS_ON_COLUMN
(
p_schema_name IN varchar2,
nom_table_p IN varchar2,
p_column_name IN varchar2
)
RETURN STATS_ON_COLUMN_tab
IS
l_STATS_ON_COLUMN_tab STATS_ON_COLUMN_tab: = STATS_ON_COLUMN_tab ();
n INTEGER: = 0;
str_select_tbl varchar2 (5000);
BEGIN
str_select_tbl: = 'SELECT'. p_column_name |' as col_val, count (*) as col_val_cnt FROM ' | p_schema_name |'. ' || nom_table_p: ' group of ' | p_column_name;
FOR r IN (str_select_tbl)
LOOP
l_STATS_ON_COLUMN_tab. EXTEND;
n: = n + 1;
l_STATS_ON_COLUMN_tab (n): = STATS_ON_COLUMN_obj (r.col_val, r.col_val_cnt);
END LOOP;
RETURN l_STATS_ON_COLUMN_tab;
END;
/
[Error] PLS-00103 (124:4): PLS-00103: encountered the symbol "LOOP" when expecting one of the following numbers: * & - + / at rem rest mod.. < an exponent (*) > | multiset year DAY_
[Error] PLS-00103 (126:9): PLS-00103: encountered the symbol "=" when expected in the following way: constant exception < an ID > < a between double quote delimited identifiers > double Ref table Fedya Chariot of time timestam
[Error] PLS-00103 (127:29): PLS-00103: encountered the symbol "
[Error] PLS-00103 (128:4): PLS-00103: encountered the symbol "END" when waiting for one of the following numbers: begin function package pragma procedure subtype type use < an ID > < a double quote delimited identifier > form
SELECT * FROM TABLE (get_STATS_ON_COLUMN ('SCHEMAS_X', 'TABLE_X', 'COLUMN_X'));
Scott@ORCL > CREATE OR REPLACE
FUNCTION get_STATS_ON_COLUMN () 2
3 p_schema_name IN varchar2,
4 nom_table_p IN varchar2,
5 p_column_name IN varchar2
6 )
7 STATS_ON_COLUMN_tab of RETURN
8 EAST
9 v_STATS_ON_COLUMN_tab STATS_ON_COLUMN_tab: = STATS_ON_COLUMN_tab ();
10 v_n INTEGER: = 0;
11 v_str_select_tbl VARCHAR2 (5000);
BEGIN 12
13 v_str_select_tbl: = ' SELECT stats_on_column_obj (' | p_column_name |) ', Count OF ' |
14 p_schema_name | '.' || nom_table_p | "Group of" | p_column_name;
15 v_str_select_tbl EXECUTE IMMEDIATE
COLLECTION IN BULK 16
17 IN v_STATS_ON_COLUMN_tab;
18 RETURN v_STATS_ON_COLUMN_tab;
END 19;
20.The function is created.
Scott@ORCL > select *.
2 from table)
(3 get_STATS_ON_COLUMN)
4 'SCOTT',
5 'EMP',
6 'JOB'
7 )
8 )
9.COL_VAL COL_VAL_CNT
-------------------- -----------
CLERK 4
SELLER 4
PRESIDENT 1
MANAGER 3
ANALYST 2Or better change function in the pipeline.
SY.
-
How to upgrade a table column using the values in the Oracle collection
On the "BOLD" line, I don't know how I should move the values of the collection of name I said without which are set all the values in the table supplier_16 = 'Saral.create or replace procedure test_coll IS CURSOR upd IS SELECT CONTACT_NAME FROM Supplier_16; TYPE dept IS TABLE OF upd%rowtype; cur_var dept; Type List Is table Of varchar2(20); Name List:= List('Shilpi','Sunil','Shreyas','Saral'); BEGIN OPEN upd; LOOP FETCH upd BULK COLLECT INTO cur_var; -- EXIT WHEN upd%NOTFOUND; FORALL i IN cur_var.FIRST..cur_var.LAST UPDATE supplier_16 ** SET Contact_name= name(i); *** COMMIT; END LOOP; CLOSE upd; END;
Help, please.Aashish S. wrote:
Thank you very much...Yes, I slide collections and was trying to reach somwthing on similar lines to which you provided the code example...
My essay is equipped to take a collection: initialized with values of say 3-4...
Take other tables... A column... and update the column in the table (not PK, FK anything) using the values of the initialized collection...
However, I am stuck between the two on how the UPDATE clause should be...
OK, if it's just because you want to practice with collections, you might do something like this...
SQL> set serverout on SQL> create table supplier_16 as 2 select 'Frederick' as contact_name from dual union all 3 select 'Robert' from dual union all 4 select 'Jeremy' from dual union all 5 select 'Simon' from dual 6 / Table created. SQL> create or replace procedure test_coll is 2 CURSOR upd IS 3 SELECT CONTACT_NAME 4 FROM Supplier_16 5 FOR UPDATE; 6 Type List Is table Of varchar2(20); 7 Name List := List('Shilpi','Sunil','Shreyas','Saral'); 8 v_contact_name varchar2(30); 9 v_idx number := 1; 10 BEGIN 11 OPEN upd; 12 LOOP 13 FETCH upd INTO v_contact_name; 14 EXIT WHEN upd%NOTFOUND; 15 UPDATE supplier_16 16 SET contact_name = name(v_idx) 17 WHERE CURRENT OF upd; 18 DBMS_OUTPUT.PUT_LINE(v_contact_name||' update to '||name(v_idx)); 19 v_idx := v_idx + 1; 20 END LOOP; 21 CLOSE upd; 22 COMMIT; 23 END; 24 / Procedure created. SQL> exec test_coll; Frederick update to Shilpi Robert update to Sunil Jeremy update to Shreyas Simon update to Saral PL/SQL procedure successfully completed. SQL> select * from supplier_16; CONTACT_N --------- Shilpi Sunil Shreyas Saral
Of course, there is treatment rank by rank and is not best for performance, but it allows you to access your collection that you created names.
-
SetActionListener in Access table column of the row
I use JDev 11.1.1.6.
I use a group header form. In the form, I have a menu and a read-only table.
The measure has multiple columns and multiple rows of data. The menu has a command link in which I need to pass parameters through the scope of the request to the stubborn workflow I call. In the command link I am trying settings requestScope with a setActionListener. The settings are currently hardcoded and validated in the corresponding requestScope settings. Based on the parameters that I'm passing hardcoded called and page rendering workflow are correctly.
I would like to switch dynamically from the properties of one of the columns for a given row selected in the table. Because the menu with the command link is not included into the table, I can not access the variable 'row' of the table.
The question I have is how can I access a column value for a given line in the table when you use the setActionListener in my menu. I also read that I might want to use setPropertyListener instead, but I think I have the same problem to access the data in the row.You have to use actionListener for this.
Text = "..." »
actionListener = "#{.onMenuClick}" "
action ="" / > ".{} public void onMenuClick (ActionEvent actionEvent)
Add the code in the event here...
Learning purposes - view select a clicked button
System.out.println ("navigate to the clicked link page');
Get the links associated with the current scope, and then access that we assigned to our table - for example OpenSupportItemsIterator
DCBindingContainer links =
(DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding = dcItteratorBindings
bindings.findIteratorBinding ("OpenSupportItemsIterator");
Gets an object that represents the table and which can be chosen that it contains
ViewObject voTableData = dcItteratorBindings.getViewObject ();
Get the selected line
Line rowSelected = voTableData.getCurrentRow ();
print
System.out.println ("Number of DC" + rowSelected.getAttribute ("DcNum"));
ADFUtil.setEL ("#{requestScope.DcNumber}", rowSelected.getAttribute ("DcNum"));
} -
related fact table column reference the same table dim
In my analytical field, my fact table related reference column the same dim table, but in a physical schema, between two tables can have a join, so I create a copy of the Sun table, then finish the join in physics. This method can solve this issue, but not very good, someone at - it a perfect solution?You must create aliases for table dim, not just a copy. Why does it resolve the issue?
-
It is possible to reach the column of the table pagination in the ADF?
I have this huge table of important data and want to have some "frozen" a table and beside him several pages of groups of columns that I can see with a 'next' button, "previous", similar to this site:
Regular season standings | MLB.com: Standings
is this possible in ADF 12 c?
Thank you in advance,
Nik12c
Hello
You might have a property defined in the bean and set the visible property for the columns according to its value. Set the required values in the actionListener to the buttons.
For ex: here's an example using the Emp table.
JSPX source:
Backing bean:
package view.backing; import javax.faces.event.ActionEvent; public class ColPaginationBean { private int visColGroup=1; public void setVisColGroup(int visColGroup) { this.visColGroup = visColGroup; } public int getVisColGroup() { return visColGroup; } public ColPaginationBean() { } public void prevCols(ActionEvent actionEvent) { // Add event code here... visColGroup--; } public void nextCols(ActionEvent actionEvent) { // Add event code here... visColGroup++; } }
Arun-
-
How to get the use of database tables/columns in the table of edge/analysis?
Hi allAnyone has an idea on how to get the tables in DB/colomns usaged in edge/analysis table in OBIEE 11 G?
Thanks in advance!
Anne
You can try to generate a report of Catalog Manager for analysis / SA want to create the line and your RPD you can go to utilities > documentation of the repository and get the domain you want to and get all the mappings in Excel format.
I hope this helps.
SVS
-
Total of the values of the columns in the adf
Hello
I use JDev 11.1.2.4.
I put in place a total of a column (order amount) in my OrderDetailVO this link posted by ADFInsiderEssentials (to implement a total using Oracle ADF - ADF Essentials Insider)
http://www.YouTube.com/watch?v=HnxtkInjv6c
by creating a temporary variable, value TotalAmount defining the expression groovy as OrderDetail1.sum("OrderDetailAmount==null?0:OrderDetailAmount")
But my requirement is a little different. In fact, I want to save this value in the Order_Header database table.
I tried to overried Commit method as follows
ADFUtils.setBoundAttributeValue ("Amount", OrderDetailAmount.getValue ()); BindingContainer links = getBindings(); OperationBinding operationBinding = bindings.getOperationBinding ("Commit"); Object result = operationBinding.execute (); but I am getting following error when I save the recording a couple of times.
oracle.jbo.RowInconsistentException: Houston-25014: another user has modified the line containing oracle.jbo.Key [1 primary key].
any ideas?
Thank you
HI Emmar
so you can go back on the same line, after validation and run
and Yes also think that suggests, Timo Hahn
Thank you
-
How do I display values skyrocket in the IR filter for the joined table columns?
Hello
I have a problem in the IR the query is based on a table, joined with other tables. I would like to provide users the ability to use IR filter search bar in the joined table columns. The problem facing on this filter, the Expression field, by pressing the arrow button displays values for the fields in the primary table, but not for fields that come from joined tables. Have you experienced this behavior in your reports? Is this normal?
TIAHello
Correlated subqueries can improve performance - but it does not depend on the involved tables, the number of columns and the existence of indices. As far as I know, the optimizer has problems with them. You could try to explain the Plans on the two statements to verify that.
In any case, I created a new test page with the SQL for IR:
SELECT E.EMPNO, E.ENAME, D.DEPTNO, D.DNAME, E2.EMPNO "EMPNO2", E2.ENAME "ENAME2" FROM EMP E, EMP2 E2, DEPT D WHERE E.EMPNO = E2.EMPNO(+) AND E.DEPTNO = D.DEPTNO(+) AND E2.PRIMARY_EMPLOYEE(+) = 'Y'
http://Apex.Oracle.com/pls/OTN/f?p=267:226
As far as I can see, it works properly - except that if I do a filter on the ename column, when I try to create a second filter, drop-down lists ename all the values, while the other columns list only the available values after having applied the first filter. Which seems strange that the filters are applied as ANDS. But it does the same thing for other areas - IE, the field used in a filter is not filtered for the second filter - so I guess this is normal, but only a person in Apex could probably explain why it is so.
Otherwise, everything seems to work as I expect and the above page works the same as my test page, which uses external joins http://apex.oracle.com/pls/otn/f?p=267:224
Andy
-
Put a % sign in a label (Table column)
Hi all
I created a very basic dashboard of the percentages of availability for the service display. The default (medium) label appears as availability average reference (%):
I changed it has something a little more meaning to our customer:
However, it would be good to put in something like percentage of availability of Service (target 99%), but I can't get the % symbol to display. I tried to use the backslash % (-%) to comment out a special meaning, but it does not work and the default label is displayed instead. Does anyone know how to display a "%" symbol in a table/column label? I also tried a double backslash, double percentage, single and double quotes, brackets...
Thank you
Brian
I took an additional screen shots. It is the foglight 5.6.7 version. Note the label for the column.
-
Table column widths is not consistent
I specify the width of the table columns in the first row of the table. Him are displayed fine in FireFox, but not in IE6. An easy way to fix this?Thank you! Isolved my problem.
-
DROP TABLE TWO.
DROP TABLE ONE;
CREATE TABLE 'A
(
ACTIVATE THE 'ID' NUMBER NOT NULL,
ACTIVATE THE "SERIAL" VARCHAR2 (10 BYTE) NOT NULL,
ACTIVATE THE "FIRST NAME" VARCHAR2 (30 BYTE) NOT NULL,
ENABLE 'PK_ONE' CONSTRAINT PRIMARY KEY ('ID', "SERIAL")
)
TABLESPACE 'USERS ';
CREATE TABLE "TWO"
(
ACTIVATE THE 'ID' NUMBER NOT NULL,
ACTIVATE THE "SERIAL" VARCHAR2 (5 BYTE) NOT NULL,
ACTIVATE THE "DEGREE_CODE" VARCHAR2 (10 BYTE) NOT NULL,
'TEST_NAME' VARCHAR2 (20 BYTE),
ACTIVATE THE KEY PRIMARY CONSTRAINT 'PK_TWO' ('ID', 'SERIAL'),
"FK_TWO' FOREIGN KEY ('ID', 'DEGREE_CODE') CONSTRAINT REFERS TO 'ONE' ('ID', 'SERIAL') MAYBE DEFERRED ENABLE
)
TABLESPACE 'USERS ';
If we use the above sql scripts to create the tables and create the ADF BC using the above 2 tables, all 4 columns in table 2 are reported as the primary key.
User, tell us your version of Jdev, please!
You should file an SR with support.oracle.com for this.
As a work around you can change the area of occurrence, and remove the check mark key pirmary on the unwanted columns. After that, it should work.
Timo
-
nested in the column in the table table
Hello
I created the following parts for a table column in the nested table:
CREATE OR REPLACE type muenz_bilder AS object ( nummer NUMBER, bild BLOB, member FUNCTION bild_suchen ( nummer IN NUMBER, bild IN BLOB ) RETURN BLOB ) instantiable NOT final; / CREATE OR REPLACE type body muenz_bilder AS member FUNCTION bild_suchen ( nummer IN NUMBER, bild IN BLOB ) RETURN BLOB IS BEGIN RETURN self.bild; END bild_suchen; END; / CREATE type muenz_bilder_tab AS TABLE OF muenz_bilder; / CREATE TABLE muenzen ( muenz_id NUMBER NOT NULL , muenz_text VARCHAR2 ( 200 ) NOT NULL , muenz_beschreibung CLOB , muenz_bild muenz_bilder_tab , muenz_ersteller VARCHAR2 ( 30 ) NOT NULL, muenz_erstell_datum DATE NOT NULL , muenz_aenderer VARCHAR2 ( 30 ) , muenz_aend_datum DATE , CONSTRAINT muenz_pk PRIMARY KEY ( muenz_id ) ) nested table muenz_bild store as nested_tab; / CREATE OR REPLACE TRIGGER MUENZE_BRIU BEFORE INSERT OR UPDATE ON MUENZEN FOR EACH ROW BEGIN IF inserting THEN IF ( :NEW.MUENZ_ID IS NULL ) THEN SELECT MUENZEN_SEQ.NEXTVAL INTO :NEW.MUENZ_ID FROM DUAL; :new.muenz_ersteller := NVL ( v ( 'APP_USER' ) ,USER ) ; :new.muenz_erstell_datum := sysdate; END IF; ELSE :new.muenz_aenderer := NVL ( v ( 'APP_USER' ) ,USER ) ; :new.muenz_aend_datum := sysdate; END IF; END; /
Then I tried to test with the following anonymous block:
DECLARE v_muenz_bilder muenz_bilder_tab := muenz_bilder_tab(); v_max number; BEGIN v_muenz_bilder.extend; v_muenz_bilder(1).nummer := 1; INSERT INTO muenzen ( muenz_text, muenz_bild ) VALUES ( 'Test', v_muenz_bilder ) ; select max(muenz_id) into v_max from muenzen; SELECT muenz_bild INTO v_muenz_bilder FROM muenzen WHERE muenz_id = v_max; dbms_output.put_line ( v_muenz_bilder(1).nummer ) ; END; /
I got this error:
Fehlerbericht - ORA-06530: Nicht initialisiertes zusammengesetztes Objekt referenziert ORA-06512: in Zeile 6 06530. 00000 - "Reference to uninitialized composite" *Cause: An object, LOB, or other composite was referenced as a left hand side without having been initialized. *Action: Initialize the composite with an appropriate constructor or whole-object assignment.
Please, help me to properly initialize the object.
Thank you
Siegwin
DECLARE
v_muenz_bilder muenz_bilder_tab: = muenz_bilder_tab();
number of v_max;
BEGIN
v_muenz_bilder.extend;
v_muenz_bilder (1) .nummer: = 1;
INSERT
IN
Convert in the
DECLARE
v_muenz_bilder muenz_bilder_tab: = muenz_bilder_tab();
number of v_max;
BEGIN
v_muenz_bilder.extend;
v_muenz_bilder (1): = muenz_bilder (1, null);
INSERT
IN
-
I am able to add a column to a table through SQL Workshop Object Explorer. The column is added at the end of the table.
However, I don't see any way to move the column added to a position in the table. It is possible to move a table column in the Apex, or do I have to use another tool?Hello
You can't change order of column in the tables. New columns always comes last. And it's not Apex, the Oracle database operation.
If you rearrange the columns, change the name of the table.
Create the new table with the old order of columns name and correct.
Insert the new renamed table table data and then drop a renamed table.Kind regards
Jari
Maybe you are looking for
-
HelloI have a portege m200 and because he doesn't any device (floppy drive, dvd) top, I want to be able to boot from an sd card. For that I need the most recent BIOS version v1.70win, but to intall, it requires the common Module. I have instaled (the
-
WLAN signal lose every 3 seconds
Hi, can someone help me? I m not technical at all had a laptop bought me for Christmas, have a wireless router of the Virgin and tried too raise the computer laptop and received running, after many attempts with the help of virgins that they told me
-
Satellite L505 Windows 7 startup error screen
I had a problem on my Satellite L505 a few weeks ago and it keeps occurring during each startup.Windows starts as usual, but instead of loading blue screen, where you can choose username and password to type I get only a black screen with nothing on
-
Upgrading RAM on Satellite L555-10R
Hello I have a satellite L555-10R, Win 7 64 bit, main Board TOSHIBA KTWAA Intel GM45/GM47 chipset, 1.9 BIOS, CPU Intel COre 2 duo P7450; I want to upgrade ram 2x2gb (SAMSUNG) to 2 x 4 GB (CORSAIR). Only the ram that I put in the location #1 is recogn
-
At the start of Vista does not display user accounts
The blue screen is displayed before the list of user accounts where it says Windows Vista Home Premium, but no account username to display to select where it should be two. If I hit CTRL, ALT, DEL, after a few seconds, he will say: "could not connect