Does component af:table support auto resorting when click on column head?
or further, could we customize the resorting principle, just like java api Comparable/Comparator does.
Thanks you.
Kevin.
Hi,
the table supports sorting, yes. The sorting is defined in the table model and not changeable without changing the model. However, you can setup a sort listener and use the event notification to re-query the data with a condition of you choice
Frank
Similar Messages
-
Swing JTable error when clicking on column header
Hi I'm using ADF Swing in JDev 10.1.3 linking a UI JTable to a ADF viewobject, when clicking on the column header i get the follwing:
[ConditionalEventPump] Exception occurred during event dispatching:
oracle.jbo.InvalidObjNameException: JBO-25005: Objektnavn 1 for type Variabel er ugyldigt
at oracle.jbo.common.VariableImpl.validateName(VariableImpl.java:234)
at oracle.jbo.common.VariableImpl.setVariableKind(VariableImpl.java:301)
at oracle.jbo.server.ViewRowSetImpl.defineNamedWhereClauseParam(ViewRowSetImpl.java:3390)
at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:10374)
at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:10180)
at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:3955)
at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:3794)
at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:3782)
at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:6991)
at oracle.adf.model.bc4j.DCJboDataControl.setCurrentRowInRSI(DCJboDataControl.java:930)
at oracle.adf.model.bc4j.DCJboDataControl.setCurrentRowWithKey
(DCJboDataControl.java:881)
at oracle.jbo.uicli.jui.JUTableBinding$1$1.run(JUTableBinding.java:222)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)Hi,
in this case the bind variable name comes from the viewLink definition. What is the m/d, is it based on e.g. Departments/Employees pushing the ADF BC wizard? I need to understand how to build a testcase that allows me to reproduce the issue. Do you show both , master and detail on the Swing form, or only the detail?
Frank -
Why does my form data gets cleared out when clicking on the back button.
Can someone explain why does my form selections get cleared out when clicking on the back button.
I have a JSP page that displays a form with some selections and text boxes. I populate the page and submit the request. The action on the submit call another jsp page, which processes the data and displays the results via a <jsp:include> statement which calls the results page. When clicking on the back button from the results page, it returns me to the form page, but the selections are cleared out.
1. Is there something in my calling of the pages that causes this behavior and can I prevent it?
I notice that the behavior is different when using the IE 6.0 version Netscape 7.1. IE clears the page Netscape 7.1 retains the settings.
If I cannot prevent this behavior does that mean I will have to save the state of the form data. And if I have to save the form data, what would be the easiest method of doing this. I'm a beginner to JSP and Java, but have some ASP experience. I don't understand why the back button in a JSP request clears the form data but a regular HTML page does not can someone explain?
THANKS.the browser doesn't have to remember what you submitted and fill that back in.
you can't prevent it unless you can ensure a new request to the server in which you can fill the default values in there. -
Why does black astrisk appear on some photos when clicked ?
why does a black astrisk appear on some photos when clicked ?
Are you talking about an exclamation point? "!"
If so that is an indication that your library has damage - what version of iPhoto do you have?
LN -
Does the 790GX-G65 Support the new UEFI / Click-Bios
Hey Everyone! Does anyone know if the MSI 790GX-G65 supports the new UEFI / Click BIOS? I presume that if it does, I could use the forum's bios flashing tool to update it
Quote
Does anyone know if the MSI 790GX-G65 supports the new UEFI / Click BIOS?
No.
The board uses old-style AMIBIOS8 coded BIOS releases. There will be no UEFI (AMI Aptio coded) releases for this board.
Still, for BIOS Updates, >>Use the MSI HQ Forum USB flasher<<. -
Acrobat XI does not export tables like Acrobat X when "Save As" to MSWord
I have some pdfs that clearly have tables in them. Acrobat X can save them to MSWord just fine. Acrobat XI does not.
I've tried all combinations of the layout settings ("Retain Flowing Text"/"Retain Page Layout") and image settings (Include Images on/off) and MSWord versions (.doc/.docx) and none of them result in tables like what X does.
Is there a way to make XI behave like X when saving as MSWord documents?Make sure you apply all updates to Acrobat 11.
-
If I copy something and then put the pointer on a location where pasting is possible (navigation bar for instance) the right mouse just pastes whatever is in there without my clicking on paste. Very annoying and I will quit using the browser if it does is stop. Here is an example. I will misspell the next word and then right click on it to correct and you can see what happens. It will paste whatever I have copied previously and not fix the error. Speling It is also possible to copy text by double-clicking it and holding down the mouse button until the
That is it. All the text after Speling is pasted when I tried to correct. Same thing if I high lighted text and tried to right click to copy....just more pasting of the same thing. Help please.Another user reported that this is a feature of the FastestFox add-on. Can you check its Options or, if necessary, Disable it and see whether that is the cause in your case?
orange Firefox button (or Tools menu) > Add-ons > Extensions category -
Firefox no longer receives clicks on links in e-mail and others. No response at all. When I click on URL links in Windows, I receive "Windows cannot find http://<an address>. Make sure you typed the name correctly ...". When I click on e-mail links in Thunderbird, I do not get an error but nothing happens.
This problem disappeared after a few days by itself but the last significant change in my PC prior to noticing normal Firefox link behaviour was MS Vista update KB2607712 & restart. This may or may not be the solution to the problem.
-
How to stop finder auto slide when click subfolder in columns view
Hi
when i use finder in the columns view and click something in the next level at right, the finder will slide right and relocate with the subfolder. how can i stop it.You can't. It has to slide over to display the contents of the selected folder or the preview info.
As long as there is room in the window, nothing will shift.
You can always use List view if you don't want it to move. -
Ordering JTable rows when you click a column header
Hi! Maybe i want something impossible, maybe not.
I have a JTable and i want it to be ordered depending on the column header you click (similar to any explorer files)
Can anybody give me a hint?
Thanks in advance!.thanks. Anyway, i have another problem. I add the 3 lines of code just like the Java Tutorial said, and then it throws a NullPointerException in paint() method. I know it�s not much information about it, but i thought someone could give me a hint.The only difference is these 3 lines, and it worked properly.
Thanks again! -
How to set title/text for ALV table column header in WD ABAP
Hello,
I am working in WDA using SALV_WD_Table to display data in table. I need to change the column header text, the obvious way is to get the column header and call the method SET_TEXT to set new text / title. However, this method does NOT work, it does not change the column header text. I also tried the SET_TOOLTIP, this one works, but SET_TEXT does not work. Anyone has idea why this not working and do you find any go-around solution?
My version is NW 7.0
Thank
JaysonHi jason ,
For setting Heder text for your ALV table
ip_confing type ref to CL_SALV_WD_CONFIG_TABLE.
"set alv table header
ip_config->if_salv_wd_table_settings~r_header->set_text( 'Test ALV Header functionality' ).
first you have to hide the DDIC text and then try to set your own text .
"modify columns
LOOP AT lt_columns INTO ls_column.
lr_column = ls_column-r_column.
CASE ls_column-id.
WHEN 'MANDT'.
"hide this field
lr_column->set_visible( cl_wd_abstr_table_column=>e_visible-none ).
WHEN 'SEQNR'.
"set header to different string
lr_column->r_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none )." use this line to hide ddic text
lr_column->r_header->set_text( 'Position' ).
endcase.
endloop.
Regards
Chinnaiya P -
Focus stays on cell when I select column in JTable
Hi,
I am using a JTable and I have defined a function key cntrl-D to perform a function on a selected column. This works fine if I have not yet edited one of the cells in the column, but if I edit any cell and then click the column header and hit cntrl-D, then the column is deselected, the top cell enters edit mode, and my function is called with only one cell selected (always the top cell) instead of the whole column.
When I debug this, I find that my function is called first, and processKeyEvent in the cell editor is called later. The editor doesn't handle it and calls super().
I think that somehow the cell is keeping the focus even though I try to deselect it when the column is selected in my column header listener. Any suggestions welcome.
Here is the code I use to select the column in the column header listener. I have verified that it is called when I click the header:
public void mouseClicked(MouseEvent e)
table.requestFocusInWindow();
Point thePoint = e.getPoint();
int theColumnIndex = table.columnAtPoint(thePoint);
int theLastRowIndex = table.getRowCount() - 1;
if (theLastRowIndex > 0 && theColumnIndex > 0 && theColumnIndex < table.getColumnCount() )
if ( e.isShiftDown() && table.getSelectedRowCount() == table.getRowCount() )
table.editingStopped(null);
if ( table.isEditing() )
return;
if ( theColumnIndex <= mColumnStart )
table.setColumnSelectionInterval( theColumnIndex, mColumnStart);
else if ( theColumnIndex >= mColumnStart )
table.setColumnSelectionInterval( mColumnStart, theColumnIndex );
else if ( e.isControlDown() && table.getSelectedRowCount() == table.getRowCount() )
table.editingStopped(null);
if ( table.isEditing() )
return;
if (table.isColumnSelected(theColumnIndex))
table.removeColumnSelectionInterval(theColumnIndex, theColumnIndex);
else
table.addColumnSelectionInterval(theColumnIndex, theColumnIndex);
else
table.editingStopped(null);
if ( table.isEditing() )
return;
table.clearSelection();
table.setEditingRow(-1);
table.setEditingColumn(-1);
table.setRowSelectionInterval(0, theLastRowIndex);
table.setColumnSelectionInterval(theColumnIndex, theColumnIndex);
mColumnStart = theColumnIndex;
SampleManager.getInstance().setupMenus();I found the answer. This is a feature that worked in 1.3.1 but broke in 1.4.1. It turns out that there is a new feature in JTable that jumps into edit mode when a key event is detected, and that causes the column selection to be canceled. To inactivate this feature I put the following line into the constructor of my JTable subclass:
putClientProperty("JTable.autoStartsEdit", Boolean.FALSE); -
Dynamic table with multilevel column header
Hi all ,
Can u please tell me how to create dynamic internal table and display which has two level column header using alv.
For example : | amount | year | Month |
in $
in #
oct
nov
Thanks in advance ,
SAHi SA,
For your first question - Creating dynamic table refer code below...
PARAMETERS: p_input TYPE i OBLIGATORY.
START-OF-SELECTION.
DATA: v_fieldname TYPE char30.
DATA: v_char TYPE numc4.
DATA: it_fldcat TYPE lvc_t_fcat.
DATA: wa_it_fldcat LIKE LINE OF it_fldcat.
DATA: gp_table TYPE REF TO data.
FIELD-SYMBOLS: <gt_table> TYPE table.
DO p_input TIMES.
v_fieldname = 'COL'.
v_char = sy-index.
CONCATENATE v_fieldname v_char INTO v_fieldname.
CONDENSE v_fieldname.
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = v_fieldname.
wa_it_fldcat-datatype = 'CHAR'.
wa_it_fldcat-outputlen = 5.
wa_it_fldcat-intlen = 5.
APPEND wa_it_fldcat TO it_fldcat .
ENDDO.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING it_fieldcatalog = it_fldcat
IMPORTING ep_table = gp_table.
ASSIGN gp_table->* TO <gt_table>.
Now you can use <gt_table> ..
2. It is not possible to have multiple format column for ALV..
Hope this solves ur prob..
Enjoy SAP.
Pankaj Singh. -
Why is sortCompareFunction called when clicking checkbox on non-sortable column?
Hello,
I have a datagrid that contains three static DataGridColumn columns. The first column uses a checkbox item renderer whose sortable property is set to false:
<mx:DataGridColumn
width="100"
sortable="false"
itemRenderer="com.mycomponent.CheckBoxItemRenderer" />
On creation complete, a fourth column is added dynamically to the datagrid, through ActionScript, and several of its properties are set, like so:
var dgc : DataGridColumn = new DataGridColumn();
dgc.headerText = someAttribute.name;
dgc.itemRenderer = new ClassFactory(ProductResultItemRenderer);
dgc.sortCompareFunction = attributeCompareFunction;
Everything is rendered just fine. If I sort the datagrid items by clicking the column header of the second or third columns (these are the static columns that use Flex's default sort function) and then click on any of the items' checkboxes, there are no issues. However, if I sort the items by clicking on the header of the dynamically-added fourth column and then click on any of the items' checkboxes, the results are partially re-sorted. Setting a breakpoint in my attributeCompareFunction method, any time I click a checkbox in this use case, this compare function is called.
Can someone shed some light on why this function is invoked in this last use case, especially when performing a non-sortable event (clicking on a checkbox)?
Thanks,
-JoseHi Alex,
I set a breakpoint in the sortCompareFunction, but I'm unable to determine what is calling it. Here is the call stack:
Main Thread (Suspended)
Function/<anonymous>
mx.collections::SortField/http://www.adobe.com/2006/flex/mx/internal::internalCompare
mx.collections::Sort/internalCompare
mx.collections::Sort/findItem
mx.collections::ListCollectionView/http://www.adobe.com/2006/flex/mx/internal::findItem
mx.collections::ListCollectionView/addItemsToView
mx.collections::ListCollectionView/moveItemInView
mx.collections::ListCollectionView/handlePropertyChangeEvents
mx.collections::ListCollectionView/listChangeHandler
flash.events::EventDispatcher/dispatchEventFunction [no source]
flash.events::EventDispatcher/dispatchEvent [no source]
mx.collections::ArrayList/internalDispatchEvent
mx.collections::ArrayList/itemUpdateHandler
flash.events::EventDispatcher/dispatchEventFunction [no source]
flash.events::EventDispatcher/dispatchEvent [no source]
com.my.package.models::ProductVO/dispatchEvent [no source]
com.my.package.models::ProductVO/set compare [no source]
com.my.package.components::CheckBoxItemRenderer/onChange
com.my.package.components::CheckBoxItemRenderer/___CheckBoxItemRenderer_CheckBox1_change
flash.events::EventDispatcher/dispatchEventFunction [no source]
flash.events::EventDispatcher/dispatchEvent [no source]
mx.core::UIComponent/dispatchEvent
spark.components.supportClasses::ToggleButtonBase/buttonReleased
spark.components.supportClasses::ButtonBase/mouseEventHandler
The event dispatched by "ProductVO/dispatchEvent" is of type "mx.events.PropertyChangeEvent", which is OK since the "compare" property was updated. However, later in the call stack, the "ArrayList" object fires an "internalDispatchEvent" of type "mx.events.CollectionEvent", which is an "update" event. Looking at the rest of the call stack, this is the event that leads to the re-sort.
Is there any way to prevent this CollectionEvent event from firing and, if so, how?
Thanks,
-Jose -
Get the arrow on column header data table
<t:commandSortHeader columnName="spclMngmtAreaNm" arrow="true"
immediate="true">i am using <t:commandSortHeader with t:dataTable ,
when form intialize this arrow on datatable not showing.
when i click on column header only showing arrow .
how to show arrow on datatable column by form inilize.
thanks
sivaThe easiest way to do this: set a default value for the sort column in your backing bean.
Example:
private String sortColumn="firstName";
public String getSortColumn() {
return sortColumn;
<t:dataTable sortColumn="#{yourBean.sortColumn}" ... />On page load, the arrow is set by default to the firstname column.
Best Regards,
Dimi
Maybe you are looking for
-
After "updating" it still tells me that my Flash Player is out of date.
Hello, I'm hoping you can help. My MacBook notified me to update my Flash Player. However, After I did complete the update it still says Flash Player Out of Date. Can you please help me?
-
Dreamweaver CS4 Questions/Issues
I just uploaded CS4, and I noticed some strange things within Dreamweaver (DW). I'm hoping that someone can help me to figure out how to solve them: 1) When I minimize DW, the cursor acts strange when trying to use DW( i.e. scrolling, clicking on fil
-
Table name for the AMOUNT field in header details of costomer invoice
hi experts, I need the table name for the field AMOUNT(wrbtr) which is in header details in fb70 tcode .I have checked many tables like bseg bsid, there its showing the amount but at item level.
-
Hello, let me try here, I ordered broadband a month ago, and from that time till now, the first order was not the correct one i ordered, they said well we will have to cancel that one and create a new one, new one did not go through, phoned up again
-
I just can't use the "align tool", why?
So, I am creating a logo, but after Illustrator change (now is a lion showing when start the app) I just cannot align my objects on the stage, how could I fix it?