How to create combobox to display more than one columns
I need kind help with the following question. As the combobox includes two pieces--textbox and the combobox list. Then how to create a combo box bean, which is based on table EMP(empno number(6), ename varchar2(40)) records for example, to achieve these features:
1) allow more than one columns to be displayed in its records list--e.g., I need to show these records:
empno (value) ename (label)
103 David M Baker
104 David M Baker
105 Kelly J Volpe
106 Krista F Carpenter
107 Michelle P Silverman
The two 'David M Baker's are different employees, but unfortunately, with the same name.
2) allow combo box list to return the column value 'empno' even though it shows both columns as above. i.e., if user picks the second record above, then the combobox list returns 104 to the textbox in the background, but the 'David M Baker' is displayed on the textbox. Of course the combobox list may return 'David M Baker' if needed when there is only one column in the list as the current standard feature.
3)allow partial match search by typing in some letters. i.e., if user types in the textbox of the combobox letter 'K' or 'k' then the partially matched records
105 Kelly J Volpe
106 Krista F Carpenter
should be automatically displayed in the combobox list, not the whole list as above; then user may double click to choose one of the two or if user continues to type in 'R' or 'r', then the uniquely matched record 'Krista F Carpenter' is displayed in the textbox and the 106 is returned to the textbox.
4) as a bonus if it's doable, allow combobox to return values to different textboxes when its records list has more than one columns.
The reason I need these features is that I am working on the project migrated from Microsoft Access applications to centralized Java version web application. We at beginning promised to users community that Java swing will provide all the GUI user friendly features Microsoft Access has, but now we got stucked--we ate our words and got tons of complains from our users community. This is just the most needed component I posted here. I really hope that Java would add all the default GUI user-friendly features to compete with MS since its Win95 GUI has been accepted as industry standard. And most users are used to it. They claimed that they don't know and don't care what tool you use the newly created application should be more user friendly, not the opposite.
I would be very much appreciated if any one would help me with this item.
Thanks for your comments. I think nobody expects Sun to write everything including special features for its components. But I do think Sun should provide at least those standard user-friendly features for the GUI components because most users have been used to the GUI user-friendly features provided by Win95 and Access/Excel applications. Then this will help us to productively create applications to beat MS applications.
Other wise like me, to get the existing GUI features, existed in old MS Access application, for our migrated Java application, I must re-create the GUI components library first which is a big burden to me at least, for others it might be fun for coding on their own from scratch, but I have to focus on the timing of project.
If you really can pass the request to Sun and push them move a bit, please pass these words: before Sun starts to revise them, please play around window GUI, e.g., Access/Excel applications, then plan what to do, the bottom line is to equally match or better than them in FUNCTIONALITY(Look and feel is not my focus here). Don't ignore the influence of Windows regardless of you hate it or love it, the reality is most users are so familiar with windows GUI features which are accepted as industry standard. Thus the choice is to match or better to beat them. Don't make your car by closing your door, don't assume users will like what you come out in a closed room.
Similar Messages
-
How to create Dynamic Table with more than one column?
Hi,
I'm trying to learn Dreamweaver. I'm trying to display 2 units from my database in the same row then I would like go to next row.
By default DW shows single record in each row. Is it possible to display more than one?
Thank youOf course. You will not name the divs differently, they will all be <div class="RowContainer"> (in the example below) and the reason they will look like
1 2
3 4
5 6
is because they will "stack themselves up". That is, the first will float to the top left, the next will float up next to it. The third will not fit on the top line floating next to two, so it will start a new row. Four will float up next to it, and five will start the new row.
Think of the string of divs (don't put wordspaces between them...) as a continuous ribbon or chain of divs. That is a slightly poor analogy, since the second and third won't be next to each other, as a chain or a ribbon might be. But you should be able to have as many divs as you have records... you define the div in the CSS and in your page markup really only show one div.
Here's a modified example from one of my files:
<div spry:region="ds1" class="...">
<div spry:repeat="ds1" class="RowContainer"> <!--this is the div that you would style to float -->
{category} {title} {medium}<br>
{price} {sold} {date}<br>
{sold_to_purchase_price}
</div>
</div>
Beth -
How to display more than one column with for each
Hi guys,
how to display more than one column with for each like below?
for each
Item1
Item2
Item3
Item4
Item5
Item6
Item7
Item8
Item9
Item10
End for each
for each
Item1 Item2 Item3
Item4 Item5 Item6
Item7 Item8 Item9
Item10
End for eachTake a look at this to see if the solution provided would work for you: https://blogs.oracle.com/xmlpublisher/entry/multi_column_row_woes
Won't you have more than 10 records in your data file ? If you are going to have only 10 items then you may be able to use position() function to limit it to 3 each..
Take a look at this: https://blogs.oracle.com/xmlpublisher/entry/turning_rows_into_columns
Thanks,
Bipuser -
Displaying more than one column in TreeControl
Hi,
I have three tables ( LaborOperation, LaborIndex, LaborData). In TreeControl, i am displaying the following table columns,
LaborOperation ->operationid,
LaborIndex -> indexid,
LaborData -> date, value.
i want to be like this.
+ Operation Id(Single Column)
+ OperationIndex(Single Column)
-OperationData(Multiple Column)
I can able to display single column values in tree control by setting the nodedifinition property in tree control. i can't able to display more than one column in tree control.
any idea about this problem
thanks in advance.
-NainarArun Prasath wrote:
I want to display more than one row in a multiple columns of a single row.
For example,
In oracle apps, there are multiple tax lines for a single invoice. Each tax lines having their own entry in tax detail table.
When i try to display a single invoice's details in a single row i found the difficulty.Hmm did you see the title of the forum? Oracle Database » General Questions !
May be you want to check the Oracle Apps forum?
Aman.... -
How to create a theme with more than one master-slide size defined?
I would like to create a Keynote theme that has more than one size of page defined - for example one for on-screen show, and one for printing.
I noticed that the stock themes, and those from theme vendors, come with multiple page dimensions, and that the master slide layouts for the 'same' master slide appear to be designed differently for the different sizes.
How do I create themes like this in Keynote? I cannot find any information about this in the Keynote manual. I have worked out how to change the master slide dimensions, but not how to tell Keynote that the layout I've created for a slide is for a particular set of dimensions. So when I look at my theme in the theme browser, I only see the dimensions I had selected last time I saved my theme showing.
Any help most appreciated.The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated -
How to create a template for more than four column conditions?
Hi
I want to create a report template for a tabular form should have more than 4 column template conditions (more than 12 conditions i need) to get the coloring for row based on the conditions.
so, please tel me how to do a template to meet my requirements.
APEX VERSION: 4.2
Database :11gR2.
Cheers
Tulasi.Tulasi 1243 wrote:
Hi
I want to create a report template for a tabular form should have more than 4 column template conditions (more than 12 conditions i need) to get the coloring for row based on the conditions.
so, please tel me how to do a template to meet my requirements.
VC wrote:I don't think it is possible using the template column conditions...try using some jQuery code that runs on page load.
I am sure this has been discussed here before. Search the forum...good luck.It is possible using a template, and it has been discussed many times...
The trick is to combine classTyler's conditional <tt>class</tt> technique with a custom named column report template.
Determine a class for the row in the query:
select
empno
, ename
, sal
, case
when sal < 1000 then 'low'
when sal between 1000 and 2000 then 'medium'
when sal > 2000 then 'high'
end sal_class
from
empCreate a custom named column report template, referencing the class in the row template:
<tr class="#SAL_CLASS#"><td>#EMPNO#</td><td>#ENAME#</td><td>#SAL#</td></tr>Then create a style sheet to apply the required backgrounds:
tr.low td { background-color: yellow; }
tr.medium td { background-color: white; }
tr.high td { background-color: red; } -
How to create new user with more than one default folder
hi
A new user created in OCS has only one default folder(Inbox).
I want to create new user with customized default folder.
for example:
a new user has more than one default folder(Inbox,Outbox,Draft,Dustbin...)
And also I want to automaticly enable the functions:
When sending messages, place a copy in Outbox
Keep message drafts in Draft
Move deleted messages to Dustbin
who know that?
thanksThe same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated -
Creating Scatter chart for more than one column
Hi,
I have 2 columns of sorted numbers, when I select one column at a time and create a Scatter type chart, every thing is OK,
But I want a chart with both columns in it, and when I select both columns and select a Scatter chart, Numbers takes the Group1 column as X axis and Group2 column as Y axis and draws me this chart whiich is not what I want!
When I try this type of chart the chart is something like I want, but not with connected lines.
How can I draw a Scatter chart with 2 columns of data in one chart?
Thanks in advance,
Regards,
HadiThanks Jerrold, The problem was the first column, on the left of Group1. that column should not be as header. I created another table like this and the Share X Values command worked like a charm. I really don't know why!?
-
How to create an index from more than one pages document?
I have 10 different pages documents. Each document is a book chapter. Now I would like to create one index for all of these chapters in a new pages-file without copying all files into one single file. How does this work?
Thanks for your answer. Than this is a real deficit of pages. Have you got any ideas for an alternative solution, that doesn´t force me to work with Microsoft? I have a document of 300 pages, having this in one document is neither practical nor stable. Thank for supporting!
-
How to create Single Queue for more than one interfaces(XI)
Hi Experts,
I want to set up a separate queue for 3 interfaces which all are outbound IDOC to FTP.
Please let me know ' Hhow to create a queue for multiple interfaces with Quality of Service 'EO''.
Thanks,
Srinivas P.The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated -
How to retrieve unique records with more than one column
I have a table sps_prod as described below -
POGNAME VARCHAR2(1500)
INDEX#VERSION VARCHAR2(200)
POG_MODEL_STATUS VARCHAR2(100)
POG_LAYOUT_TYPE VARCHAR2(500)
POG_MARKET_SPECIFIC VARCHAR2(500)
POG_CONTACT_NUMBER VARCHAR2(100)
AREA_SUPPORTED VARCHAR2(500)
POG_COMMENTS VARCHAR2(1500)
POG_FOOTER_COMMENTS VARCHAR2(1500)
POG_ELECTRICAL_LIST_1 VARCHAR2(1500)
POG_ELECTRICAL_LIST_2 VARCHAR2(1500)
POG_CARPENTRY_1 VARCHAR2(1500)
POG_CARPENTRY_2 VARCHAR2(1500)
INSTALLATION_INSTRUCTION_1 VARCHAR2(1500)
INSTALLATION_INSTRUCTION_2 VARCHAR2(1500)
FIXTURE_REORDER_NUMBER VARCHAR2(200)
FIXTURE_ID VARCHAR2(200)
FIXTURE_NAME VARCHAR2(500)
FIXTURE_IMAGE VARCHAR2(500)
PART_REORDER_NUMBER_9 VARCHAR2(500)
PART_FIXTURE_ID_9 VARCHAR2(500)
PART_FIXTURE_NAME_9 VARCHAR2(500)
PART_FIXTURE_IMAGE_9 VARCHAR2(500)
UPC VARCHAR2(50)
ITEM_NUMBER VARCHAR2(50)
DESCRIPTION VARCHAR2(700)
MERCH_TYPE VARCHAR2(20)
HEIGHT VARCHAR2(100)
WIDTH VARCHAR2(100)
DEPTH VARCHAR2(100)
CREATE_TS DATE
There are 4 millions records in it and many with the same combination of POGName,Index#Version,POG_Model_Status,POG_Layout_Type,POG_Market_Specific, POG_Contact_Number and Fixture_Name. How do I retrive records with all the columns above but with unique fixture_name and reorder_number combination. There are no keys defined on the table.
I guess this is a simple problem but the fact that I am trying to retrieve all the columns is stumbling me.
Thanks in advance.Hi,
Sanders_2503 wrote:
... There are 4 millions records in it and many with the same combination of POGName,Index#Version,POG_Model_Status,POG_Layout_Type,POG_Market_Specific, POG_Contact_Number and Fixture_Name. How do I retrive records with all the columns above but with unique fixture_name and reorder_number combination. I don't see a column called reorder_number. Do you mean fixture_reorder_number or part_reorder_number_9?
So you want only one row for each distinct combination of fixture_name and some other column (I'll assume that's fixture_reorder_number). Does it matter which row? They won't necessarily have the same values for the other columns.
The query below returns the one with the first pogname (in sort order):
WITH got_r_num AS
SELECT pogname, index#version, pog_model_status, pog_layout_type
, pog_market_specific, pog_contact_number, fixture_name
, ROW_NUMBER () OVER ( PARTITION BY fixture_name
, fixture_reorder_number
ORDER BY pogname
) AS r_num
FROM sps_prod
SELECT pogname, index#version, pog_model_status, pog_layout_type
, pog_market_specific, pog_contact_number, fixture_name
FROM got_r_num
WHERE r_num = 1
;If there happens to be a tie (that is, two or more rows with the same fixture_name, fixture_number, and first pogname) then one of the will be chosen arbitrarily.
Instead of "ORDER BY pogname", you can ORDER BY any other columns or expressions, but you must have an analytic ORDER BY clause. You can make it "ORDER BY NULL" if you really want to pcik an arbitrary row.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data (or a couple of examples of acceptable results).
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using. -
Select distinct('more than one column') from ....
Why does this sql statement not work:
select distinct(column_a, column_b, column_c), empno
from emp;
How can I 'select distinct' using more than one column.Actually, DISTINCT applies to all columns in the result.
Distinct is not a function, you cannot do distinct(column1, column2, ...).
As a matter of fact it doesn't make sense to expect distinct applies to only one column, because you do not specify any criteria on how to select the values for the second column.
A final note: you can do distinct(column1), column2, but this will still apply to both columns!
Here're some examples that will all return both rows from the set, where set is: (1,1), (1,2):
select distinct val1, val2
from
select 1 as val1, 1 as val2 from dual
union all
select 1 as val1, 2 as val2 from dual
select distinct val1||'-'||val2
from
select 1 as val1, 1 as val2 from dual
union all
select 1 as val1, 2 as val2 from dual
select distinct(val1), val2 -- this is very misleading. distinct still applies to both columns
from
select 1 as val1, 1 as val2 from dual
union all
select 1 as val1, 2 as val2 from dual
Edited by: user4010726 on Dec 1, 2009 11:06 AM
Edited by: user4010726 on Dec 1, 2009 11:07 AM -
How do I display more than one region as a modal popup?
Hello all!
I have a popup that displays a report region. I now want it to display more than one region, say a report region and another report region underneath it.
Here's the code that I currently have (and this one can popup one region):
$.fx.speeds._default = 1000;
$( function(){
$('#ModalForm').dialog(
modal: true,
autoOpen: false,
width: 650,
height: 450,
buttons:{ Calculate: function(){calculateTotal();},
Close: function(){closeForm();}
function openForm(pFoodTemplateId, pMealTypeId)
var getone = new htmldb_Get('shiny',&APP_ID.,"APPLICATION_PROCESS=DUMMY", &APP_PAGE_ID.); // initialize get
getone.add('P24_TEMPLATEID', pFoodTemplateId);
getone.add('P24_MEALID', pMealTypeId);
gReturn = getone.get();
getone = null;
$('#ModalForm').dialog('open');
function closeForm()
{$('#ModalForm').dialog('close');}
$(document).ready(function()
{$('a.temppop').click(function() {openForm();});
});The class of the button (or in my case, the link in another region that's not displayed as a popup) is temppop.
QUESTION:_
How do I edit my existing code, so that it can now display another region?
The ID of the region it displays now is ModalPopup. I would like to add another region, with another ID off course. Pick any ID, as long as you can explain to me how.Magali wrote:
Hello all!
I have a popup that displays a report region. I now want it to display more than one region, say a report region and another report region underneath it.
Here's the code that I currently have (and this one can popup one region):
$.fx.speeds._default = 1000;
$( function(){
$('#ModalForm').dialog(
modal: true,
autoOpen: false,
width: 650,
height: 450,
buttons:{ Calculate: function(){calculateTotal();},
Close: function(){closeForm();}
function openForm(pFoodTemplateId, pMealTypeId)
var getone = new htmldb_Get('shiny',&APP_ID.,"APPLICATION_PROCESS=DUMMY", &APP_PAGE_ID.); // initialize get
getone.add('P24_TEMPLATEID', pFoodTemplateId);
getone.add('P24_MEALID', pMealTypeId);
gReturn = getone.get();
getone = null;
$('#ModalForm').dialog('open');
function closeForm()
{$('#ModalForm').dialog('close');}
$(document).ready(function()
{$('a.temppop').click(function() {openForm();});
});The class of the button (or in my case, the link in another region that's not displayed as a popup) is temppop.
QUESTION:_
How do I edit my existing code, so that it can now display another region?
The ID of the region it displays now is ModalPopup. I would like to add another region, with another ID off course. Pick any ID, as long as you can explain to me how.First build your dialog for new ID (please replace NEWREGIONID with your region static id)
$( function(){
$('#NEWREGIONID').dialog(
modal: true,
autoOpen: false,
width: 650,
height: 450,
buttons:{ Calculate: function(){calculateTotal();},
Close: function(){closeForm();}
And now you could open or close the dialog
$('#NEWREGIONID').dialog('open'); -
How to display more than one documents on windows 8 desktop?
how to display more than one documents on windows 8 desktop?
Adobe Reader Touch doesn't show more than one file on screen and doesn't show them on the desktop. Apparently these are very old fashioned things that Microsoft doesn't think we'll want to do any more and calls them "legacy" to make them sound antiquated.
If you want to do these things use the legacy Adobe Reader, a much more powerful and flexible app (and not obsolete in the slightest). http://get.adobe.com/reader . There are no legacy apps in the Windows App Store. -
How to display more than 60 columns in a report
I have a table defined as follows
id
column_name
column_value
data sample
id col_name column_value
1 col1 val1
1 col2 val2
1 col3 val3
2 col1 val1
2 col2 val2
2 col3 val3
now I want to display the data in a report as follows
id col1 col2 col3
1 val1 val2 val3
2 val1 val2 val3
I was able to generate output using pivots [http://technology.amis.nl/blog/1197/pivot-dynamic-data]
the problem is that I can have more that 60 columns retrieved in each row, the pivot solution will retrieve them correctly but I can't display more than 60 columns in apex reports, why this restriction in apex, any solutionHello:
In the Source section of the report definition choose 'Use Generic Column Names (parse query at runtime only)' and then specify a suitable value for 'Maximum number of generic report columns:'
Varad
Maybe you are looking for
-
IPad AiO app: Sharing multiple files/docs at one time?
iPad AiO remote app: I cannot share more than one file or doc at a time to Cloud storage, even though you can 'select all' the app does not seem to allow you to share a group at one time. Is there a work around for this?
-
Work flow in error when executed with a user decision.
Hi, I am executing a workflow for notification of absence. It has a user decision step to Revise the request or to withdraw it when the absence request is rejected by the approver. When I am executing this the workflow is going into error state. User
-
Passing parameter/variable values to containers
What options are available to pass a value assiged as a prompted variable/parameter in a plan to a container to resolve a value for a variable/parameter defined in a container which is called by the plan? Supposed the plan is defined as: <?xml versio
-
Error message on Sprint Treo 755P AirSAMStatemachine.c 1913 14721
keep getting the following error message when I try and sync to my email. I have checked with my IT person and have all the correct settings. Any help for this? Post relates to: Treo 755p (Sprint)
-
Cursor jumping when typing in browser - cured by opening pages
Hello, When typing in a browser window (Chrome, Safari, and Firefox) my cursor was jumping around. This made all my words jibberish. If I typed extremely slowly, I could get it to work. Did a restart with no success. Unplugged my computer from the in