Design Issues for filtering a JTable
Hi,
I'm interested in any suggestions on how I should implement a JTable with filtering.
I have a JTable, which also sorts, so it is associated with a FilterModel as well as a TableModel.
I have a filter panel with a bunch of controls where a user can type in a name or date range or any number of other fields. This creates a Filter object and I pass this Filter object into my table model.
Basically the way I thought would be best is if there are two collections within my tableModel. A Filtered collection and a Complete collection. When filtering the filtered collection is filtered and used to display.
I just can't seem to get it to work yet.
Does anyone have any ideas for a better approach, or is my approach the standard pattern for doing this kind of thing?
cheers,
Oliver
actually I just had a thought. Within the panel code I could have two data models. One for the filtered stuff and one for the complete stuff :
table.setModel(completeModel);
//if user filters
table.setModel(filteredModel);
is that a better design?????????
Similar Messages
-
Select list null value issue - for filtering the tabular form report
hello,
I have a tabular form created on emp table and in the table their are entries for the employees who don't have a location, like it is null for some of the employees.
Now I have created a select list item - for filtering the results based on location.
my select query for select list item is
select distinct location_name d,location_id r from emp order by 1
-- so my select list contains all the distinct location_name including the null on my tabular form.
so based on the selelcted value(in the select list), I am able to filter the results in my tabular form.
but the thing is that when i try to select an null value from my select list - i am not able to filter my report - like its displaying all the records, its not filtering.
can anyone help me out with this.
thanks.Hi
Try below select for LOV
select distinct nvl(location_name,'No Location') d,nvl(location_name,'No Location') r from emp order by 1 And then change tabular from select where clause also use nvl(location_name,'No Location') like
SELECT *
FROM emp
WHERE nvl(location_name,'No Location') = :Px_YOUR_ITEMBr, Jari -
Design issue for Download Results!
Hi All,
In my application, i am calling two download links which has two different process as shown below:
htp.p{'table border=1'};
htp.p{'tr td b a href="f?p=&APP_ID.:70:&SESSION.::NO:YES:P70_DFILE:WXZ">{ Download Results}</a></td></tr>'};
htp.p{'tr td b a href="f?p=&APP_ID.:70:&SESSION.::NO:YES:P70_DFILE:customer"> {Customer Version Results}</a></td></tr>'};
htp.p{'/table '};
When i run this page you will find the download links one benit the other like as shown below:
Download Results
Customer version results
Now there are asking me to change UI design for downloads in such a way that
Download Results Customer Version results
I mean they main intension is to have both in single a line having borders separtely and also space between them
Hope you have understnad my problem, since i was not able to show you with borders, so i have shown as dotted lines.
Thanks,
Anoo..
Edited by: Anoo on Dec 16, 2009 9:28 PM
Edited by: Anoo on Dec 16, 2009 9:29 PM
Edited by: Anoo on Dec 16, 2009 9:29 PM
Edited by: Anoo on Dec 16, 2009 9:30 PM
Edited by: Anoo on Dec 16, 2009 9:30 PM
Edited by: Anoo on Dec 16, 2009 9:31 PM
Edited by: Anoo on Dec 16, 2009 9:38 PMAnoo,
Looks like the forum software has messed-up your post. You should use code tags when you are posting any code. This improves the readability!
See 'Formatting options' in this link
Cheers,
Hari -
RTF template design issue for header and body section
Hi All,
I have a RTF template having header and body sections.
in header section i have order number, customer number etc.
in body part i am displaying details for the respective order.
But the problem is in header part my query is returning multiple row , so my requirement is for each row i.e order, i need to display the details accordingly.
Ex: Header query returns order number : 1,2,3
in my page i need below way:
Order number :1
a,b,c
order number :2
c,d,e
order number :3
g,h,g
I tried to use loop in header section , but it is repeating only for header part not body part please help me on this.
Thanks
DebAvinash thanks for your help,
Actually in my requirement the header level and line level invoice numbers are different, in header level i have different invoices and for each invoice i need to display some other invoices along with some data.
I have sent you the respective RTF file and Sample XML file to your mail, could you please help me on this, i am struggling whole day on this.
the link between the header and line section is header_id.
Thanks in advance
Deb -
I have the 2 ODS having data like below
ODS1:
Customer Trans Type quotation status
1000 zuss Approved
1002 zuwq Approved
1003 zuss Accepted
ODS2:
Customer Plan Date
1000 15.06. 2008
1002 25.09.2008
1003 30.12.2008
If I stored into above two ODS data into basic cube, can I get below format or shall I get through for Multiprovider.
Customer Trans Type quotation status Plan Date
1000 zuss Approved 15.06. 2008
1002 zuwq Approved 25.09.2008
1003 zuss Accepted 30.12.2008
Thanks,
MannevHi,
If u laod both of these into a further ODS ..
U will get that int format u specified..
But with Cube,.U will have a separate entry for each record...
SO In cube u may not be able to see that format..
Multi provider will also show the way u wante..
So go for Multi Provider or ODS..
Hope this helps u..
Best Regards,
VVenkat... -
Report design issue for discussion
I'm going to generete several reports using JSP--session EJB,session bean
retrieve database,return result to JSP and show in browser.
I like resultset,but resultset is not Serializable, so can't send one across
the wire.
if I turn the ResultSet into a Vector,send vector to JSP,I'll have to build
diffrent structure classes for each reports.I like the resultset becuse it
seems "consolidate" for diffrent tables
JDBC2.0 provides cachedrowset,but it seems only good for small set of
data,for report,I need to return alot of data
do you have any sugguestionsSuggestion:
Unless you have a good reason, don't use EJB for this.
1) It is non-transactional (probably)
2) It is not distributed (ejbs are probably local)
3) Were it distributed, it would suck (high cost of transmission with
report-scale data)
4) You are fighting something ... if it doesn't seem natural, it probably
aint.
Peace,
Cameron Purdy
Tangosol Inc.
<< Tangosol Server: How Weblogic applications are customized >>
<< Download now from http://www.tangosol.com/download.jsp >>
"John Zhang" <[email protected]> wrote in message
news:3c080711$[email protected]..
I'm going to generete several reports using JSP--session EJB,session bean
retrieve database,return result to JSP and show in browser.
I like resultset,but resultset is not Serializable, so can't send oneacross
the wire.
if I turn the ResultSet into a Vector,send vector to JSP,I'll have tobuild
diffrent structure classes for each reports.I like the resultset becuse it
seems "consolidate" for diffrent tables
JDBC2.0 provides cachedrowset,but it seems only good for small set of
data,for report,I need to return alot of data
do you have any sugguestions -
Data mart from two DSOs to one - Loosing values - Design issue
Dear BW experts,
I´m dealing with a design issue for which I would really appreciate any help and suggestions.
I will be as briefly as possible, and explain further based on the doubts , questions I received in order to make it easier go through this problem.
I have two standard DSOs (DSO #1 and #2) feeding a third DSO (DSO #3), also standard.
Each transformation DOES NOT include all fields, but only some of them.
One of the source DSO (let´s call it DSO #1) is uploaded with a datasource that allows reverse type of records (Record Mode = 'R'). Therefore some updates on DSO #1 comes with one entry with record mode 'R' and a 2nd entry with record mode = 'N' (new).
Both feeds are delta mode, and not the same entries are updated through each of them, but the entries that are updated can differ (means an specific entry (unique key values) could be update by one of the feeds, but no updates on the 2nd feed for that entry).
Issue we have: When a 'R' and 'N' entries happen in DSO #1 for any entry, that entry is also reversed and re created in the target DSO #3 (even being that not ALL fields are mapped in the transformation), and thefore we loose ALL the values that are exclusively updated through DSO #2, becoming blank.
I don´t know it we are missing something in our design, or how should we fix this issue we have.
Hope I was more or less clear with the description.
´d really appreciatted your feedback.
Thanks!!
GustavoHi Gustavo
Two things I need to know.
1. Do you have any End Routine in your DSO? If yes, what is the setting under "Update behavior of End Routine Display"....Option available right side of Delete Button ater End Rouine.
2. Did you try with Full Load from DSO1 and DSO2 to DSO3? Do you face the same problem?
Regards
Anindya -
Design issue using JFrame, JPanel, JLabel
I have been working on this problems for several months now and I and nearly finished.
I have a design question I hope others from this forum can provide some incite to the best approach.
The problem space is a 8 X 8 Chessboard. I have designed a board using JPanels and JLables sitting inside a JFrame. In each square on the chessboard is a JLabel with an image. The "board" sits in the DEFAULT LAYER of a JLayeredPane. As the user clicks a specific square, a queen is placed in the square (8-queens problem). The only thing I do is swap out the image. All this works well--thanks to several of you from this forum. :-)
When I add a new queen to the board, the application goes through the evaluation of attack positions. Next, the application should display the new chessboard with only the queens not threaten by other queens. I keep up with the chessboard using an boolean array internally. I build a second boolean array for the new or refreshed chessboard.
What I want to do is build a second chessboard and "swap" it out with the one in the default layered pane. Can someone be so kind and shine some light on this design issue for me?
Thank you for taking the time to read my post.I don't understand this approach. Swing is by default 'double buffered' and will not flicker. You will get this be default since this is one of the things the Swing painting model gives over AWT.
You should look at just using JComponent and the paintComponent() method for drawing what you need.
What I've done in the past is have a simple XML JDoM model. Have components that render themselves based on this model.
Changing the model then I just issues a call to repaint() at the top level container.
You can also add and remove items from the parent container. Then issue validate() or repaint(). Can't remember now but I think validate() hits the layout manager logic and then repaints.
I'm pretty sure the Romain guy posted an example of how to easily draw a background chess board in a panel. ;-)
The tree concept might really prove useful for a 'gaming tree' approach at the AI also.
If you look at the Java3D API you will see they use a tree to represent what is rendered and the details about it. Really nice until you change something in the tree that cause the renderer to blow up. ;-)
I guess the moral is always make small simple changes and test.
Hope this is helpful. -
Since the previous computer crashed without my Adobe CS3 Design Standard for Macintosh applications being uninstalled, I'm having issues with the CS3 on my new Macintosh laptop. Please help, I've tried using the online "contact us" with no success, unable to get in contact with a tech support agent that can assist me.
CS3 is too old to run on a new Macintosh laptop, sorry. You'll have to purchase CS6 or a Creative Cloud subscription.
-
Design issue with the multiprovider
Design issue with the multiprovider :
I have the following problem when using my multiprovider.
The data flow is like this. I have the info-objects IobjectA, IobjectB, IobjectCin my Cube.(Source for this data is s-systemA)
And from another s-system I am also loading the masterdata for IobjectA
Now I have created the multiprovider based on the cube and IobjectA.
However, surprisingly join in not workign in multiprovider correctly.
Scenario :
Record from the Cube.
IObjectA= 1AAA
IObjectB = 2BBB
IObjectC = 3CCC
Records from IobjectA =1AAA.
I expect the record should be like this :
IObjectA : IObjectB: IObjectC
1AAA :2BBB :3CCC
However, I am getting the record like this:
IObjectA : IObjectB: IObjectC
1AAA :2BBB :3CCC
1AAA : # :#
In the Identification section I have selected both the entries for IobjectA still I am getting this error.
My BW Version is 3.0B and the SP is 31.
Thanks in advance for your suggestion.May be I was not clear enough in my first explanation, Let me try again to explain my scenario:
My Expectation from Multi Provider is :
IObjectA
1AAA
(From InfoObject)
Union
IObjectA IObjectB IObjectC
1AAA 2BBB 3CCC
(From Cube)
The record in the multiprovider should be :
IObjectA IObjectB IObjectC
1AAA 2BBB 3CCC
Because, this is what the Union says .. and the Definition of the multiprovider also says the same thing :
http://help.sap.com/saphelp_bw30b/helpdata/EN/ad/6b023b6069d22ee10000000a11402f/frameset.htm
Do you still think this is how the behaviour of the multiprovider.. if that is the case what would be the purpose of having an infoobject in the multiprovider.
Thank you very much in advance for your responses.
Best Regards.,
Praveen. -
hi, i am a littl confused as I logged into creative cloud and bough the in design plan for a year but i cant seem to donwload it... there is a window that pops up and it says its downloading but its taking forever? any advice?
Hi Dima,
Please refer to the help documents below:
Troubleshoot Creative Cloud download and install issues
Error downloading, installing, or updating Creative Cloud applications
Regards,
Sheena -
Financial reporting 11 1 2 2 Access issue for a user
Hi All,
I have a report designer group for Financial reporting 11.1.2.2. I have created a group called FR_GROUP in HSS and provide them the report designer access and added three MSAD users.
Now as admin we have a created a folder in workspace called FR and gave the group FR_GROUP Full acces to this folder FR.
Now the issue is the MSAD user who created the repot in FR folder can see the reports and open them and also the admin user but the other two MSAD users cant see the reports.
Any ideas how to fix this access issue?
Thanks,Hi,
Try provisioning the FR_GROUP with Explorer role. Just in case here is the whole list of Reporting and Analysis Roles:
http://docs.oracle.com/cd/E17236_01/epm.1112/hss_admin_1112200/apas04.html
Cheers,
Mehmet -
Print layout - Goods issue & Issue for Production
I designed two print layouts separately 1 in Goods issue for Goods issue in inventory module
and 1 in Issue for production for Issue for production in production module.
If i take a print preview or print in Issue for production , it will reflects the print layout designed in Goods issue.
regards
kavitha SHi Kavitha,
I think, are you duplicate the Goods issue PLD Template to Issue for Production PLD Template on Duplicate Layout Template.
Best, Try to create a New PLD from Issue for Production(System) PLD.
Regards,
Madhan. -
Design issue with sharing LV2 style global between run-time executables
Hi,
Just when I though that I had everything figured out, I ran into this design issue.
The application that I wrote is pretty much a client-server application where the server publishes data and the client subscribes data using data sockets. Once the client gets all the data in the mainClient.vi program, I use LV2 style (using shift registers) to make the data global to all the other sub-vi’s. So the LV2 is in initialize mode in the mainClient.vi program and then in the sub-vi’s the LV2 is in read mode. Also, I had built the run time menu for each sub-vi that when an item is selected from the menu, I would use the get menu selection to get the item tag which will be the file nam
e of the sub-vi and open the selected sub-vi using vi server. This all worked great on my workstation where I have labVIEW 7.0 Express installed. But the final goal is to make exe’s for each of these sub-vi’s and install runtime on the PC’s that do not have labVIEW installed. Of course when I did that only the mainClient.exe program was getting the updated data from the server but the sub-vi’s were not getting the data from the mainClient.exe. I did realize that the reason for this is due to the fact that I had compiled all the sub-vi’s separately and so the LV2 vi is now local to each executable (i.e. all executables have their own memory location). Also, the run-time menu did not work because now I am trying to open an executable using vi server properties.
To summarize, is there a way to share LV2 style global's between executables without compiling all of the sub-vi’s at one time? I tried using data-sockets (local-host) instead of LV2 st
yle gloabls to communicate between the sub-vi’s but I ran into performance issues due to the large volume of data.
I would really appreciate it if anyone can suggest a solution/alternative to this problem.
Thanks
Nish> 1) How would I create a wrap-around for the LV2.vi which is
> initialized in my mainClient.vi and then how would I use vi server in
> my sub-vi to refer to that LV2.vi?
> You mentioned that each sub-vi when opened will first connect to the
> LV2.vi via via-server and will keep the connection in the shift
> register of that sub-vi. Does this mean that the sub-vi is accessing
> (pass-by-reference) the shared memory of the mainClient.vi? If this
> is what you meant I think that this might work for my application.
>
If the LV2 global is loaded statically into your mainClient.vi, then any
other application can connect to the exe and get a reference to the VI
using the VI name. This gives you a VI reference you can use to call
the VI. Ye
s, the values will be copied between applications. That is
why you need to add access operations to the global that returns just
the info needed. If you need the average, do that in the global. If
you need the array size, do that in the global. Returning the entire
array shouldn't be a common operation on the LV2 style global anyway.
> 2) Just to elaborate on my application, the data is
> transferred via DataSockets from the mainServer.vi on another PC to
> the client’s PC where the mainClient.vi program subscribes the
> data (i.e. 5 arrays of double type and each arrays has about 50,000
> elements). The sub-vi’s will have to access these arrays
> located on the mainClient.vi every scan. Is there any limitation on
> referencing the mainClient.vi data via vi-server from each sub-vi?
Your app does need to watch both the amount of data being passed across
the network, and the amount being shared between the apps. You might
want to consider puttin
g the VIs back into the main app. What is the
reason you are breaking them apart for?
Greg McKaskle -
Can i get a new serial number for Adobe CS6 Design Standard for Students and Teachers?
I have had to re-install my Adobe CS6 Design Standard for students and teachers after having problems with my computer (MacBook Pro)
I am wondering if there is a way to access my old serial number from when I originally installed CS6, or do I have to start over again and get a new serial number?
Help is greatly appreciated!!You normally use the same serial number that you are first issued. If you registered your product when you first installed it then you should be able to find your setial number available thru your Adobe account online.
Maybe you are looking for
-
On a Lenovo laptop, completed the download and restart and got the video which proceeds very slowly because this is Africa! I have learned never to watch videos here because it blows all my modem credit in a short time. Now I don't seem to have Firef
-
How do I get App Store to install items that it says are on my Mac, but are not?
I recently changed hard drives on my iMac. Now the AppStore says I have apps installed that I did indeed purchase, on my old hard drive. How do i get AppStore to install them on my NEW hard drive?
-
Is there a firmware upgrade to take USB 1.1 to USB 2 to run Egalato Video Capture
We are running OS version 10.5.8 7 are using Elagato vidoe capture software. The USB requirements are USB 2.0 however our USB port is USB 1.1. We have all the required Apple software upddates. Does anyone know of a how to upgrade the USB ports fro
-
I love my Apple toys but, I am totally frustrated. Everytime I try to sync my ipad or my ipod touch I get the following message: This Ipad/Ipod cannot be used because the required software is not installed, run the installer to remove ITune, then in
-
Hi Everybody, Can i know how to see the list of outgoing excise invoice? Now the problem is in GL a/c the excise amount showing for the month is different & the excise amount which we are getting from sales report is different. even in utilization, t