Hidden column in the ADF table
Is there any way to make a collumn as hidden?
I would like use it to store recordId values and get selected record id programmatically.
hah, they aren't completely useless.
TableColumn[] tcA = new TableColumn[2];
tcA[0] = jTable1.getColumnModel().getColumn(x);
tcA[1] = jTable1.getColumnModel().getColumn(y);
jTable1.removeColumn(tcA[0]);
jTable1.removeColumn(tcA[1]);
jTable1.addColumn(tcA[0]);
jTable1.addColumn(tcA[1]);
if you're hiding the columns, and not bringing them back why don't you just do:
panelBinding.findIteratorBinding("WhateverIterator").getCurrentRow().getAttribute("Column") to find whatever you need.
Similar Messages
-
Issue with the last column stretching in ADF table
There is an issue wherein when I try stretching the last column of the ADF table to reduce its width it does stretch. But whenever I try stretching it back to this original position it doesn't despite having columnstretching attribute set to multiple and assign widths in percentages to columns . When I set the columnstretching attribute to none, the last column does stretch back and forth but on page load the table does not stretch to its full width despite having styleClass="AFStretchWidth". Now I dont want to be assigning fixed width in pixels to the columns. I would want the last column to stretch back and forth with columnstretching="multiple" and styleClass="AFStretchWidth". I see the same issue on components demo page as well. Tag Guide
If you are trying that each column gets equally stretched based on the browser, its not possible as adf doesn't supports that.
If your table is not stretching use styleClass="AFStretchWidth".
But if all your columns are not stretching you can only try setting column widths + columnStretching property (where you can specify which column to stretch to fill all the spaces)
Amit -
To display the columns in a adf table dynamically
hi,
i want to display 999 no of columns in a adf table. since it is not a better way to show all the columns in the adf table at a time, we want to show 10 columns at first and by using the next and previous links the user can see the according columns. i dont know how to do this. please help me.
parameswaranrepost
-
How to show next set of columns in a adf table
hi,
i want to display 999 no of columns in a adf table. since it is not a better way to show all the columns in the adf table at a time, we want to show 10 columns at first and by using the next and previous links the user can see the next and previous set of columns. i dont know how to do this. please help me.
parameswaranYou have to put table name in Capital letters
Like
SELECT COUNT(1)
FROM user_tab_columns
WHERE table_name = 'EMP';
or
SELECT COUNT(1)
FROM user_tab_columns
WHERE table_name = UPPER('Emp');Regards
Arun -
LOV Values not reflecting in the ADF table
Hi,
I created to VO's one for the LOV and one which uses the LOV. When I select a value from the LOV three columns in the ADF Table needs to be reflected with the selected value, But the Only one column is reflecting the value.
When I manually refresh the jsp page the second value and the third value is getting reflected.
I tried adding Refreshing the ADF table VO using VO Iterator in a managed bean and also added Auto submit , but nothing works.
The ADF Table is in Page fragment.
Jdeveloper Version:11.1.2.3.0
Please help me in resolving the issue.
Thank you.
Regards,
Manigandan RHi,
set the LOV property "autosubmit" to "true" and then PPR the table (use the PartialTriggers property on teh table to reference the LOV component Id)
Frank -
How to CREATE SUBQUERY in ADF or generate the ADF table consisting of colum
hi,
I have to generate the ADF table consisting of columns from different database tables depending on some criteria.. kindly help me in generating the subquery or retrive the columns from different database tables......hi, i m using adf bc, toplink . i have got 3 row of data in a table now i wnt to pass these values one by one in the query to fetch the coloumn from the different database table and place the result obtained in the third new coloumn... can u give me the detailed answer
-
Search for any text in column filter on adf table
Hi,
I have column filter on adf table where I can search for any text starting with by default.
For e.g. you have data my name is sam you can search on table column filter by my and you get the results my name is sam
but I want to search by any word let's say sam and I want to display same result.
Thank you,
Savan Shah.You probably can use wildcards (% and _ )
for example %my%
Dario -
Hiding a column in the quote table
Hello,
Please i need to hide a column in the quote table (Oracle quoting: Quotes ). How can this be done ? I am not able to get the JSP pages to do the customization ? how to get the name of the JSP in order to get it from the server and modify it?
Please reply ,
Thanks,easiest way to find out the jsp to be modified.
do the view source of the page, search for the item you want to hide and go back upwards in the file, you will find the jsp that renders the field.
customize that jsp.
Thanks
Tapash -
How do I change the order of columns in the responses table?
How do i change the order of columns in the responses table in FormsCentral? The default setting puts them in reverse order!
Hi,
The issue with the default ordering of columns in the response table is something that we hope to address in the next update to FormsCentral. In the meantime, you can reorder the columns by selecting them then click/drag using the gray area above the column name. As shown below, an orange marker will show you where the columns will be placed when you release the mouse button.
Sorry for the inconvenience.
Regards,
Brian -
How to sum different column in the same table
Hi everyone
I would like to know how can I make the sum of different column in the same table using apex
exple:
TR_PROJ_BIL_TRIM.ENTPIDFISC as ENTPIDFISC,
TR_PROJ_BIL_TRIM.EXEANNEE as EXEANNEE,
TR_PROJ_BIL_TRIM.PROJBILTRIMT1PREV as PROJBILTRIMT1PREV,
TR_PROJ_BIL_TRIM.PROJBILTRIMT2PREV as PROJBILTRIMT2PREV,
trunc( TR_PROJ_BIL_TRIM.PROJBILTRIMT1PREV)+(TR_PROJ_BIL_TRIM.PROJBILTRIMT2PREV)
from TR_PROJ_BIL_TRIM TR_PROJ_BIL_TRIM
group by TR_PROJ_BIL_TRIM.ENTPIDFISC,TR_PROJ_BIL_TRIM.EXEANNEE
but while trying to run this script i get this error message:"ORA-00979: not a GROUP BY expression"
thanks for reading me and I hope to hear from you soonHi,
Your question do not have anything do with APEX.
It is pure SQL question and you will get better answer this kind questions from SQL and PL/SQL forum
You need have GROUP BY when you use aggregate functions like SUM.
I assume you like just add two columns.
Try
SELECT ENTPIDFISC
,EXEANNEE
,PROJBILTRIMT1PREV
,PROJBILTRIMT2PREV
,trunc(PROJBILTRIMT1PREV) + (PROJBILTRIMT2PREV)
FROM TR_PROJ_BIL_TRIM
Regards,
Jari -
Two columns in the same table that are foreign keys to the same master key
i want to create a table let say X, which have two columns that are foreign key that reference the same column in the master table, so does this count as bad database design.
here is the full ddl for the two table, where in the second table there are two columns that represent the primary key and they are also two foreign keys to the same columns in the master table (items)
Desc item table;
Item_id
Item_name
Item_price
Item_quantitiy
Create table item_recommendation ( item_id varchar(20), recommended_item varchar(20),
CONSTRAINT recom_primary PRIMARY KEY (item_id, recommended_item),
CONSTRAINT F1 FOREIGN KEY (item_id) REFERENCES items(item_id), ),
CONSTRAINT F2 FOREIGN KEY (recommended_item) REFERENCES items(item_id)); -
Hi Guys,
I have a With CTE table expression ,this cte gets the value from startdate and enddate
I need to insert this startdate and enddate into a table ,while inserting into table,i got the below error,
Derived table 'Datematrix' is not updatable because a column of the derived table is derived or constant.
below is the query i used,
declare @StartDate date='01/01/2013'
declare @EndDate date='12/31/2013'
;WITH Datematrix(AllocationDate)
As
SELECT @StartDate AS AllocationDate
UNION ALL
SELECT DATEADD(D,1,AllocationDate) AS AllocationDate
FROM Datematrix WHERE AllocationDate<@EndDate
Insert into Datematrix(AllocationDate)
select * from Datematrix
any guys update this solution.
Thanks
Bhupesh.R;WITH Datematrix(AllocationDate)
As
SELECT @StartDate AS AllocationDate
UNION ALL
SELECT DATEADD(D,1,AllocationDate) AS AllocationDate
FROM Datematrix WHERE AllocationDate<@EndDate
Insert into Datematrix(AllocationDate)
select * from Datematrix
Hello,
Your CTE bases only on fix value = @StartDate , not on a table/view; here do you want to insert data to? This don't work in any way.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Nsert/Update and Add Column at the same Table and at the "same" Time
Hello,
I want Insert/Update and Add Column at the same Table and at the "same" Time but in different sessions.
Example:
At first the "insert/update" statement:
Insert into TestTable (Testid,Value) values (1,5105);
After that the "add" statement:
Alter table TestTable add TestColumn number;
- sadly now I get the message: ORA-00054: resource busy and acquire with NOWAIT specified
"insert/update" statement:
Insert into TestTable (Testid,Value) values (2,1135);
After that the execute commit.
I don't know when the first session set the commit statement so I want that the DB the "Alter Table..." statement execute if it's possible.
If it's possible I want to save a repeat loop with the "Alter Table..." statemtent.
Thanks for ideasWell I want to walk in the rain without and umbrella and still stay dry, but it ain't gonna happen.
You can't run a DDL statement against a table with transactions pending. Session 2 has to wait until session commits or rollbacks (or until the session is killed). That's just the way it is.
This makes sense if you think about it. The data dictionary has to be consistent across all sessions. If session 2 was allowed to change the table structure whilst session 1 has a pending transaction then the database is in an inconsistent state. This is easier to see if you consider the reverse situation - the ALTER TABLE statement run by session 2 does a DROP COLUMN TESTID rather than adding a column: now what should happen to session 1's INSERT statement? You have retrospectively invalidated a statement that was perfectly legal when it was executed.
If it's possible I want to save a repeat loop with the "Alter Table..." statemtent.Fnord.
Cheers, APC -
Need to add 2 new columns to the existing table control of C223 transaction
Hi ABAP Gurus,
I have to do a screen enhancement for transaction C223.
Below is the requirement:
need to add 2 new columns to the existing table control of C223 transaction.
there is no customer exits, screen exit or user exit present for this transaction C223, i have found one enhancement spot for this transaction.
i dont have any idea how to do this in standard transaction C223, the table control in C223 saves the data to MKAL table and the table control uses the structure MKAL_EXPAND in the screen program.
i have created an append structure for the 2 fields to the standard table MKAL.
Can anyone please suggest me how this can be done in standard screen C223, will the enhancement spot can be used to do this....
please sugest...
Thanks & RegardsHi Santosh,
Thanks for the reply. I have looked into this Enhancement Spot CPFX_SCREEN_SET , inside this there is only one method INPUT_DISABLED having below parameters
IM_MKAL Importing Type MKAL Production Version
EX_MSGID Exporting Type SY-MSGID Messages, Message
EX_MSGTY Exporting Type SY-MSGTY Messages, Message
EX_MSGNO Exporting Type SY-MSGNO Messages, Message
EX_MSGV1 Exporting Type SY-MSGV1 Messages, Message
EX_MSGV2 Exporting Type SY-MSGV2 Messages, Message
EX_MSGV3 Exporting Type SY-MSGV3 Messages, Message
EX_MSGV4 Exporting Type SY-MSGV4 Messages, Message
EX_INPUT_DISABLE Exporting Type CHAR1 Display Only if X Was Set
the BADI definition present here is a SAP internal so we cant implement the BADI , but we can created a enhancement spot implementation for this. as per my understanding on this the enhancement spot is only for making the table control fields display / change . i dont think this can be used to add two new coloumns to C223 table control.
I am not sure thats why seeking your help/valuable sugestion on this.
Please provide your sugestion on this , so that i can come to conclusion on this issue.
Thanks & Regards
Siddhartha Mishra -
Knowing the primary key columns of the given table
Hi,
How can I get the primary key columns of the given table?
Regards,
Sachin R.K.You can find the constraint_name from all_constraints/user_constraints for constraint_type = 'P' (which is the primary key constraint).
And then see which columns are in for the constriant_name
in all_cons_columns/user_cons_columns view.
Below is the example
select acc.column_name from
all_cons_columns acc, all_constraints ac
where acc.constraint_name = ac.constraint_name
and acc.table_name = 'DEPT' AND acc.owner = 'SCOTT'
and ac.constraint_type = 'P'
Hope this helps
Srinivasa Medam
Maybe you are looking for
-
Unable to Load the images Required by Classroom in a Book
Just purchased Adobe Photoshop Elements 12. I am trying the follow the lessons in the above book. When I create the files and download the images, I am unable the import the files and images into the Photoshop Organizer. Some images will import bu
-
How can I open my email without opening a new window with ad?
When I open Firefoxand the first email I try to open, a new window opens with an ad. I have tried eliminating the same by deleting the cookie pertaining to the address in the window but to no avail. The address in thar window is: http://nym1.ib.adnxs
-
There is no 'open in' button in mail on my iPhone 4s so cannot open a file still, what do I do next?
-
Putting Adobe Forms (Response Files) Online
I have created an online application form. Though the location of my form resides on my computer (I also uploaded the form to a website). The response file is located on my home computer. When people fill out the form and click submit, it only works
-
REQUEST: UEFI GOP VBIOS FOR MSI R9 270X HAWK Edition
I am having problems with my 270X HAWK which I am hoping a new vbios can fix: MSI R9 270X Hawk 2GB S/N: 602-V303-02SB1310008582 Card features two switchable BIOS for the LN2 profile. First BIOS ***https://www.dropbox.com/s/l22sbuh080vv2xr/Pitcairn%20