Problem in showing combo box in the table
Hello guys i just add up the combo box in the table but the problem is when i change the line in the table the combo disappear. i want it to be visible even if it is not in the selected row. i want that user can see the combo box in the table without clicking on it.
Please help;
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
Look in the page bottom !
Similar Messages
-
Problem rendering a combo box in the data grid
Hi,
I am rendering a combo box in the data grid control using an
item renderer. When I click on it to select a value from the drop
down, the combo box immediately closes giving no time to even click
on the dropdown. This doesn’t happen every time the combo is
clicked, although it happens frequently. What I think is that the
problem arises because the data grid tries to refresh the renderers
and during this process, the existing combo is removed, thereby
getting closed automatically. Please let me know of a work around.
Thanks,
Chereehi hiwa,
i have to add combo box in datagrid dynamically.
it should append as and when i add the data in the above text boxes.
thanks in advance. -
Problem with combo boxes and the reset button in certain situations
Hi Everyone,
i have a problem to make the reset-button function properly in an what-if analysis dashboard.
The dashboard uses two combo boxes that are not visible at the same time. In my application the second combo box only appears when a dedicated menu (label based menu button) has been activated.
So i have combo box 1 when menu A is active an dand combo box 2 when menu 2 is active.
After starting the dashboard initial values are fine. If you then directly change to menu 2 (seeing combo box 2 with
the correct default value) and press the reset button, the dashboard returns to the initial view, showing
the menu 1 with the correct default value. If you now switch back to menu 2, you will see, that the combo box 2
is empty (i.e. nothing selected).
I also tracked the destination cells for the combo box value results as well as the source cells for the "selected item" and the
destination cells for the "Insert Selected Item". All this values seem to be correct. Therefore i assume that
this is an issue of event handling. Maybe the combo box 2 does not refresh its selected value because it is already
invisible when the values are restored.
This case can easily be simulated by placing two combo boxes and a push button (that changes the visibility of
the combo boxes) and the reset button on the canvas.
Maybe someone can help. I am able to provide a test xlf, if neccessary.
Thanks,
Oliver
P.S. I am using Xcelsius SP4 (Version 5.4.0.0)Hello Debjit_Singha_86,
thank you for your support. At the moment i have the following setting:
label based menu
- General: Insertion Type "value" from a list of ID's for the menu-items to a dedicated cell (current menu ID, say tab1!$A$1)
- Behavior: Selected item (position) fixted to item 1
hidden combo box
- General: Insertion Type "position" to a dedicated cell with the current choice (say tab1!$B$1)
- Behavior: Selected item (position) to the same cell (tab1!$B$1)
Can you give me a hint on how to connect the two components according to your solution, so that the label based menu sets the default for the hidden combox box only in case, that the reset button is pressed?
Thanks,
Oliver -
Using Combo box at the backend
Hi,
I am using combo box at the backend to filter rows to a particular destination.
The problem is the labels are going to populate at the runtime and the selection of item in combo box is also going to populate at the run time. I have an icon which inserts eg: country in a cell, then this cells is used by combo box as a item selection(label) to filter rows from source. But unfortunately the comb box is not selecting any value i.e no item is selected dynamically. But if i manually drill down it is working but the label is not changing dynamically based on the changes in label by icon.
For eg my data:
Country and profit populate at run time
Country Profit
India 5000
Germany 4000
Now i have icon which selects country (hard coded in excel) upon clicking the mouse on it and inserts in A1 suppose the value hardcoded is "India". Now this A1 is used as a "selected item" for combo box. the source to combo box is the above country and profit which populates at run time.
Now when i execute the dashboard. The value is inserted in A1 after clicking the icon but it is not picked up by combo box as "item selected" and hence combo box does not filter any data.
Can any pls help.
Thank you. I will award full points for correct solution.Hi Monammed,
The said functionality should work. Please check your logic one more time. Also, try using some spreadsheet components mapped to the cells in question and understand how the data is flowing during run-time. This will help you test things. Delete spreadsheets when you are done with identifying the issue.
Lets check the combo box mapping one more time : Map the source of the combo to the entire range; labels in the combo box ONLY to the country column in the source range(typically this may be the left most column in the range); selected item should be mapped to the cell that has the destination for the icon and the type for default selection may be dynamic. Well, if there is any hard-coding of values involved anywhere, do check the spellings and other trivial things.
Do let me know if this was helpful and if you need any more help.
Thanks,
Prasanna -
HI
We r assuming " freezing = Absent"
When we select " freezing" in the combo box in the system form, "Absent" should be displayed in the matrix for the particular row in the user form.
Freezing should be displayed as Absent
Working should be displayed as Present
what is the coding for this process . can anyone help me...
Regards
Bhuvana
Edited by: bhuvana eshwari on Jul 30, 2008 6:45 AMHi Bhuvana,
In the combo Select Event, get the user form and then get the matrix then set the value. The code sample is as follows.
Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
If oCmbBox.Selected.Value = Freezing Then
oForm = getForm("UserFormID")
objMatrix = oForm.Items.Item("UID").Specific
objedit = objMatrix.Columns.Item("V_14").Cells.Item(pVal.Row).Specific
ObjEdit.String = Absent
ElseIF oCmbBox.Selected.Value = Working
'Use same logic
EndIF
Reward with points if helpful.
Regards,
Vasu Natari. -
Problem with editable combo box and creating dynamic table values using js
Hai
I have used jquery.jec.js to make my dropdown list as editable... I need to create dynamic table values on the onChange event of dropdown using javascript.
Now am facing the problem in it...
I am getting duplicate rows in the table... think(assumption) this jquery.jec.js is calling the dropdown again creating duplicate values...
Please help me out.... Any help is appreciable... Thanks in advanceThanks elOpalo, for your valuable response....
I have found the correct way of doing.
Before i had my code like this,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.jec.js"></script>
<script type="text/javascript">
$(function(){
$('#list').jec();
function giveAlert(){
alert('hello');
</script>
</head>
<body>
<form>
Combo Box:
<select id="list" name="list" onChange="giveAlert();">
<option value="1">one</option>
<option value="2">two</option>
</select>
</form>
</body>
</html>
Now i have changed as the following,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.jec.js"></script>
<script type="text/javascript">
$(function(){
$('select.combo').jec();
$('select.combo')
.change(function() {
alert($(this).val());
}).change();
</script>
</head>
<body>
<form>
<table>
<tr>
<td>Combo Box:</td>
<td><select class="combo"><option value="b">banana</option><option value="a">apple</option></select></td>
</tr>
</table>
</form>
</body>
</html>
The problem is with the function i have called on the onChange Event.. Now i have defined it inside the jquery function of dropdown to make it as editable... -
I have created a form with Adobe Acrobad Pro 9.
There are a few "drop-down" boxes for people to choose options from. I created them with the "Combo box" option. They work perfectly fine on my laptop (Lenovo T500 windows 7, with all updates up to date.) I sent the file to another exact same computer and that's when the problem came up. When you click on the drop-down, the list will quickly appear and then disappear. Then if you click it again it will stay open so you can choose your option. However this only happens on "some" computers but not everyone's. I emailed the exact same form out to other people in my office and they do not have any problems with the form. There is no need to double click the drop down, it will just open up properly for them.
Has anyone come across this? And if so, is there maybe a setting on these specific laptops that is preventing the "combo box" to not work properly? I need to use this specific laptop as a "Kiosk" like a "check out" station for users to fill out the form to check out equipment. I will be running in Reader so people can not make changes to the form. (both the Acrobat Pro 9 version and the (most up to date) Reader version of the PDF form does the same "double-click" problem) I need a date drop down and an equipment type drop down.
Any suggestions would be greatly appreciated !
Thanks !I've got this kind of problem with a form of mine (designed with LCD) :
- combo boxes with font-color changing event handlers on :enter
- on Acrobat 9 Pro : no problem
- on Reader 8.3 :
- first click seems to execute the event handler but stops the combo's opening
- second click does open the combo
Do you have event handlers on combo:enter ?
Could the difference between comps where it works and comps where it doesn't be Acrobat's version ? -
I have dragged and dropped one of my view objects as a table on a JClient form. Is there a way I can show one of the columns as a combo box?
MilosURGENT!!!!!!!! Using a topic title like "URGENT" followed by exclamations is one sure way to not get an answer from people on the forum.
This is urgent... Not for us it isn't. Implying that your question is any more important than any other question on the forum is another way to not get a response.
Anyway your question is like big run on sentence and I have no idea what you are asking or what your problem is or what your code looks like.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting. -
Problems with a combo box in dynpro
Hi guys, im creating a combo box in a dynpro, but is not showing anything.
the code is the following:
AT the screen painter..
MODULE USER_COMMAND_0100.
PROCESS ON VALUE-REQUEST.
FIELD TI_COMBO MODULE create_dropdown_box.
*then the module in the main program.....
module create_dropdown_box input.
TYPES: BEGIN OF type_carrid,
op1(20),
ID TYPE N,
END OF type_carrid.
DATA ti_combo TYPE STANDARD TABLE OF type_carrid WITH HEADER LINE.
ti_combo-op1 = 'Not processed'.
TI_COMBO-ID = 1.
append ti_combo.
ti_combo-op1 = 'Duplicated.
append ti_combo.
ti_combo-op1 = 'For Payroll'.
append ti_combo.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'ID'
DYNPPROG = SY-REPID
DYNPNR = '100'
DYNPROFIELD = 'TI_COMBO'
VALUE_ORG = 'S'
TABLES
value_tab = ti_combo
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
endmodule.
Edited by: javier santana on May 7, 2008 5:47 PMHi,
Check the below code.
TYPE-POOLS: VRM.
DATA:V_NUM TYPE I.
DATA:NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
DATA:I_WORKPATTERN LIKE ZWORKPAT OCCURS 0 WITH HEADER LINE.
DATA:ZPATTXT(60).
MODULE WORKPATTERN_LISTBOX OUTPUT.
NAME = 'P9434-ZWORKPATTERN'.
IF V_NUM IS INITIAL.
CLEAR I_WORKPATTERN.
REFRESH I_WORKPATTERN.
SELECT *
FROM ZWORKPAT
INTO TABLE I_WORKPATTERN.
IF NOT I_WORKPATTERN[] IS INITIAL.
LOOP AT I_WORKPATTERN.
VALUE-KEY = I_WORKPATTERN-ZWORKPATTERN.
VALUE-TEXT = I_WORKPATTERN-ZWORKPATTERN.
APPEND VALUE TO LIST.
ENDLOOP.
ENDIF.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
CLEAR SY-SUBRC.
ENDIF.
V_NUM = V_NUM + 1.
ENDIF. -
1. i have one html page - in that two combo boxes are there
2. first one called--> Bank Name and second one called-->Main Branch
3. i have a database table like BANK_MASTER(MAIN_BRANCH,BANK_NAME)
i am giving here some data for the above table:
(sbi-kurnool, sbi),(sbi-cadapah,sbi),(sbi-chittor,sbi),(ab-rangareddy,ab),(ab-varangal,ab) ..like that every bank has its own main branch in different location.
MY PROBLEM:
In HTML page, in the first combo box ie., Bank Name will display all the bank name using the table BANK_MASTER ie.,sbi,ab,cb,sbh ...... (its ok - i too get )
main Problem: Whenever i select a particular bank name in the first combo box, the second combo box ie.,Main Branch has to display the main branches using the table Bank_Master depending on the Selected bank name from the Bank Name Combo box ( ie., if we select the sbi, it has to display all main branches of sbi's only, but not other bank's main branches)Hi friend,
I had a similar situation and i tried to solve it by using XmlHttpRequest Object(used in AJAX).
U can checkout the below example just for further reference delete
UserForm.jsp:
==========
<head>
<script>
var xmlHttp
function showState(str)
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
alert ("Browser does not support HTTP Request")
return
var url="getState.jsp"
url=url+"?count="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChange
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
function stateChange()
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
document.getElementById("state").innerHTML=xmlHttp.responseText
</head>
<body>
<select name='country' onchange="showState(this.value)">
<option value='india>india</option>
</select>
<br>
<div id='state'>
<select name='state' >
<option value='-1'>pickone</option>
</select>
</div>
</body>
getState.jsp
============
<%@page language="java" import ="java.util.Hashtable" import ="java.util.Set" %>
<%
String country=request.getParameter("count");
response.setContentType("text/html");
response.setHeader("Cache-Control","no-cache");
try{
Hashtable ht = (Hashtable)session.getAttribute("<ATTRIBUTE_NAME>");
String buffer="<select name='state'><option value='-1'>Pick One</option>";
Set s=ht.keySet();
Object keys[]=s.toArray();
int size=keys.length;
for(int i=0; i < size;i++){
buffer=buffer+"<option value='"+ht.get(keys).toString()+"'>"+ht.get(keys).toString()+"</option>";
buffer=buffer+"</select>";
response.getWriter().println(buffer);
catch(Exception exp){
response.getWriter().println(exp);
%> I think u may go upon replacing country with your Main Branch and vice versa -
I have 2 combo boxes If I have data table like below
TableA
ID NAME
1 A
2 B
3 C
4 A
I make "TableA" as data source of "combobbox1" and "combobox2" like
combobox1.datasource = TableA
combobox1.displaymember = "ID"
combobox2.datasource = TableA
combobox2.displaymember = "Name"
I want when combobox2 select index at "A" , Combobox1 show only the items at ID = 1 And ID = 4
ThanksThis is not actually a question to be posted in SQL Server. Here is a link for ASP.NET forum.
http://forums.asp.net/
It looks like there is a filter that can be applied in .NET dataset and populate the results in your combobox1. You may get better help from .NET forums for this question. -
Incomplete Data on report (report does not show all records from the table)
Hello,
I have problem with CR XI, I'm running the same report on the same data with simple select all records from the table (no sorting, no grouping, no filters)
Sometimes report shows me all records sometimes not. Mostly not all records on the report. When report incomplete sometimes it shows different number of records.
I'm using CR XI runtime on Windows Server 2003
Any help appreciated
Thanks!Sorry Alexander. I missed the last line where you clearly say it is runtime.
A few more questions:
- Which CR SDK are you using? The Report Designer Component or the CR assemblies for .NET?
- What is the exact version of CR you are using (from help | about)
- What CR Service Pack are you on?
And a troubleshooting suggestion:
Since this works on some machines, it will be a good idea to compare all the runtime (both CR and non CR) being loaded on a working and non working machines.
Download the modules utility from here:
https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip
and follow the steps as described in this thread:
https://forums.sdn.sap.com/click.jspa?searchID=18424085&messageID=6186767
The download also includes instructions on how to use modules.
Ludek -
Linking combo boxes to a table
I have made a set of combo boxes that allow the user to input a home and away football team and their scores. I have also setup a table with 4 teams in it. How can i link the combo boxes so that EG:
If Arsenal 2 - 1 Chelsea is a result inputted how can i link it to a table so that Arsenal will go top with 3 points, 2 goal for, 1 against etc
Basically i need to update the table from the info supplied by the combo boxes???we don't tolerate that attitude either....
besides I gave u guidelines, check the other thread, but u can be sure that nobody will help you if u keep this attitude...
READ the links I posted in that other thread, work on the issue then come back with questions and post your code so that we know how to help you based on your code..that's how it works here.. -
JSP problem - drop down combo boxes
Hi,
I want to load a database table value into my HTML form's dropdown combo box.
Actually I want to do this. I need to change employee information. To do this there is a form to enter empNo. Then it will display a .jsp page with the relevant fields of that employee. In this .jsp page, it has a drop down combo box for title. In my db the required title of that employee is Miss.
But how could I display this value in this dropdown combo box. Then the user can change it as she wish.
I try it like this way, but it isn't work.
<select size="1" name="title" style="border: 1px solid #0000FF">
<jsp:getProperty name="candidate" property="title" />
</select> Can anybody tell me hoe to solve this?
Thanks.Hi,
Thanks for your help.
I have change that code, as follows.
<select size="1" name="title" style="border: 1px solid #0000FF">
<option value="" ><jsp:getProperty name="candidate" property="title" /></option>
</select> Now it displays the correct title. But how can I display the other 2 options below this? that is Mr. and Mrs. Because the user must have the facility to select Miss. or Mrs. if there any changes she wish to apply.
Note:
If a user has a title - Mr. , then the other 2 titles (Miss,Mrs) should be display below it.
How to solve this?
Thanks -
Facebook on Firefox doesn't show chat box on the left
Hey!
Many times I opened facebook to find it blank(a white page with only text - such as facebook, find friends etc.). In addition, I never see the boxes on the left(profile pics of friends) of the page from which you can access the chat(not the right bar!!!)
How can I fix these problem?
Please note that I already tried to disable all my addons.The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us!
Maybe you are looking for
-
Calling adobe form from Web Dynpro ABAP
Hi Friends, This is the following error, which i got when i tested my application. Calling adobe form from Web Dynpro ABAP. WebDynpro Exception: ADS: Request start time: Tue Nov 16 14:00:22 YEKT 2010(200,101).
-
Can I hide the "read only" posts
Can I hide the "read only" posts? that always appear at the top of other threads because it's a pain having to scroll down past them each time to get to the normal threads. Regards, Frogman
-
Smart Zoom in Numbers 1.4 for iPhone 4
Just downloaded Numbers 1.4 for iPhone 4. I created a spreadsheet without problems. My question concerns Smart Zoom. How does one activate this feature or is it automatic? Each time I double-tap on a field to edit it, the cell information doesn't zoo
-
Batch Numbers Skipping in Internal Number range Assignment
Dear Gurus, We have Batch Management at Material Level. For a Material, we are facing an issue in Internal Batch Number Assignment. Systems Skipping 15-20 numbers buffer in Internal Number Assignment, we want it to be in a sequence. In OMAD for BATCH
-
When installing Photoshop CS4 I get the following error: Adobe Photoshop CS4 International English Language Pack Error: Error 2. Adobe Photoshop CS4 International English Language Pack_x64 Error: Error 2. Selecting continue tells me that CS4 and CS4