Editable list box
How editable list box can be made in jsp
What do you mean by "editable"?
Do you mean that the contents of the list will change depending on other input from the user, or do you mean that the user can actually change/edit the contents of the list while being displayed?
Similar Messages
-
How to create an editable List box
Hi,
Can any body help me out in creating an editable list box, I mean the options should be editable in the listbox. Thanks in advance.I mean, you have dropdown list box with some options.
They will not be editable in the normal scenario. I want one of the options to be editable, similar to a textbox , when selected.
Is that possible in JSF? If any one could help with Javascript also, its fine for me. -
How to edit the list box items in labwindow/​CVI?
how to edit the list box items in labwindow/CVI?
Listbox items cannot be edited directly in the control: what you can do is to select a line an, transfer its content to a textbox control, edit text there and move text back to the listbox control. Available interactions with the listbox control are listed in the help.
An alternative to it is to use a tree customized to appear like a listbox: tree item labels can be edited directly in the control, at least those in the base column of the tree. You can look at the example \samples\userint\treelist.cws that shows how a tree can be customized this way. I haven't opened it, but this old example too should show the ability to edit tree cells.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
ADF Faces Dependent list boxes in an editable table
Hi,
I'm working with JDeveloper 10.1.3.1.0.
I saw the topic "How to build dependent list boxes with ADF II" on F. Nimphius' Blogbuster.
There it is shown how to handle dependent list boxes in an ADF Faces form. I tried this for an editable table but it doesn't work correctly: If there is more than one row in the resultset of the table, both dependent list boxes have the same content in all the rows though the content in the database is different.
Can anyone help me?
Thanks.Ok - I will try.
I built the listboxes like it is described in "ADF Faces: How to built dependent lists boxes with ADF and ADF Faces Part II", Frank Nimphius' Blogbuster July, 2006.
This is the full code of my ManagedBean:
package asdb.view.backing;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
import oracle.adf.model.OperationBinding;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.view.faces.component.core.input.CoreInputText;
import oracle.binding.BindingContainer;
import oracle.jbo.Row;
import oracle.jbo.ViewObject;
import oracle.jbo.client.Configuration;
import oracle.jbo.uicli.binding.JUCtrlValueBindingRef;
public class AktMitFktEdit {
private BindingContainer bindings;
public AktMitFktEdit() {
public void kategorieWechsel(ValueChangeEvent valueChangeEvent) {
// Add event code here...
BindingContainer bc = this.getBindings();
DCIteratorBinding kategorienIter = (DCIteratorBinding)
bc.get("OrganKategIterator1");
Row rw =
kategorienIter.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
String kategorie = (String)rw.getAttribute("Kategorie");
OperationBinding opBindingOrganeLovIter = (OperationBinding)bc.get("ExecuteWithParams");
opBindingOrganeLovIter.getParamsMap().put("kategorieParam",kategorie);
opBindingOrganeLovIter.execute();
public void setBindings(BindingContainer bindings)
this.bindings = bindings;
public BindingContainer getBindings() {
return bindings;
It works fine, when the user only want to update existing rows. But if he had inserted a new row and afterwards want to update existing rows, the listboxes don't show the correct contents. No error messages are displayed. -
In my application i am using multicolumn list box. Usually while running the program the column width is editable.
in my program i should be able to select or hightlight the row , but should not be able to edit the row or column size.Is there any property node that have to be set so that the multi column list box colum widthshould not be editable while the program is running.
binoyCan't you just right-click and disable column resize?
Message Edited by Michael Aivaliotis on 09-19-2005 11:54 AM
Michael Aivaliotis
VI Shots LLC
Attachments:
multicolumn.gif 10 KB -
List Box Problem In MODULE POOL PROGRAM(EDIT MODE)
I Have Developed A MODULE POOL PROGRAM ,
It Basically Consists Of CREATE EDIT and DISPLAY Modes.
CREATE MODE:
When I am Creating For Example FORM NO 1,it is having Fields With drop down list box with values
A,B and C. if I Choose A then That form will Get Created With A value and Form 1 will be created.
EDIT MODE:
The same form If u want to edit In EDIT Mode ,it is displaying value A and it Showing the list box in the fillowing Manner.A,B,C,and A.(This is what the problem I am Facing Know).It Is Displaying the value two times.How to Avoid this ,PLs Help me in this regard.
Thaks & Regards,
Anuradha.Where ever you are populating the List Box, write a REFRESH statement just before that.
Means Refresh the old content and add new content -
Editable combo box - changing list
hey all,
I have to capture a code, which may be one of many types, and have planned on using an editable combo box, which narrows down the available options as the user types into it - as many programs use.
Problem is that I'm not sure what it is I need to do to make this work. So far I've got my own ComboBoxModel implementation, and I had tried listening to edit changes, and changing the list based on that. Problem is I cant mutate in the middle of the notification, so no luck there.
Anyone have any ideas how to make this work?
cheers
dimttarola:
I'm not sure if I've misinterpreted your advice, but I couldn't get it to work... here's what I've done:
public class TestKeyListener extends KeyAdapter
private int lastItemIndex = -2;
private final JComboBox comboBox;
public TestKeyListener(JComboBox comboBox)
this.comboBox = comboBox;
* Invoked when a key has been released.
* As you are typeing in this field it tries to help you to coomplete the
* expression you are looking for.
public void keyReleased(KeyEvent e)
int keyCode = e.getKeyCode();
JTextField editBox = (JTextField) comboBox.getEditor().getEditorComponent();
String typedText = editBox.getText();
int typedTextLength = typedText.length();
// nothing has been written
if (typedTextLength == 0)
comboBox.setSelectedItem("");
return;
boolean isDelete = ((keyCode == e.VK_DELETE) || (keyCode == e.VK_BACK_SPACE));
if (isDelete || (e.getKeyText(keyCode).length() == 1))
String item;
for (int i = 0; i < comboBox.getItemCount(); i++)
item = comboBox.getItemAt(i).toString();
if (item.startsWith(typedText))
// after deleting the same item is the actual one
if (isDelete && lastItemIndex == i)
return;
lastItemIndex = i;
comboBox.setSelectedIndex(lastItemIndex);
editBox.setText(item);
editBox.setCaretPosition(typedTextLength);
editBox.select(typedTextLength, item.length());
return;
public static void main(String[] args)
final JFrame frame = new JFrame("test2");
frame.addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent ev)
frame.dispose();
System.exit(0);
JComboBox comboBox = new JComboBox();
for (int j = 0; j < 50; j++)
if (j % 10 == 0) comboBox.addItem("A" + j / 10 + "77" + j);
if (j % 10 == 1) comboBox.addItem("B" + j / 10 + "77" + j);
if (j % 10 == 2) comboBox.addItem("C" + j / 10 + "77" + j);
if (j % 10 == 3) comboBox.addItem("D" + j / 10 + "77" + j);
if (j % 10 == 4) comboBox.addItem("E" + j / 10 + "77" + j);
comboBox.setEditable(true);
comboBox.addKeyListener(new TestKeyListener(comboBox));
frame.setBounds(1, 1, 500, 300);
frame.getContentPane().setLayout(new FlowLayout());
frame.getContentPane().add(comboBox);
frame.setVisible(true);
}this doesn't really bother me, as the other poster has solved my problem (see next post)...
cheers
dim
cheers
dim -
How to move up the List Box for para. values in the "Edit Values" window?
Hi,
I am using Crystal Reprots 11.
I create 10 subreports, and each subreport contains a Parameters Field.
The 10 subreports are put in 10 footer sections in increasing order, i.e. subreport1, subreport2, subreport3, ..., subreport10.
When I use "Print Preview" to take a look at the whole report, CR prompts a "Edit Values" window for selecting parameter values.
Maybe because I created subreport3 & subreport4 after I completed other subreports, the List Box with the values required to select for subreport3 & subreport4 were located at the bottom of the "Edit Values" window.
How to move List Box with the values required to select for subreport3 & subreport4 up to the proper location (based on the order of subreports) in the "Edit Values" window?
Thank you in adavance.Hi,
Yes, that is true. The subreport parameters are prompted in the order you insert the subreport.
The only way to fix this is to save subreports from 5 through 10 (Right-click subreport > select Save Subreport as) first.
So, now all you have is Subreports 1, 2 and 3. Go ahead and add the Subreports from 5 to 10 in order and the prompts should be in order too.
-Abhilash -
How do I make the particular column to editable one in the multicolumn list box?
Hi,
I am updating different parameters in the multicolumn list box.I am having four columns.
I want to make 3 columns non editable to user and 4th column is editable one.
How do i do this?
Help me
Regards
MeenatchiMeenatchi wrote:
I want to make 3 columns non editable to user and 4th column is editable one.
Your question title & the message you ve posted are contradictory to each other.
Normally a Multicolumn Listbox is a non-editable one, in that while you run you wont get the labeling tool to type some text.
I think you can instead use a Table to achieve your purpose. Also see the below link.
http://forums.ni.com/ni/board/message?board.id=170&message.id=131631#M131631
Or, the attached VI, modified from that post, of course.
- Partha
LabVIEW - Wires that catch bugs!
Attachments:
Make some columns of a Table only as Editable.vi 32 KB -
How to un-check everything in a Multi-selection list box in SP2013?
When a radio button is selected/un-selected, i would like to clear all the checkboxes that were checked in a MSLB. I created a rule for the condition but in the action, how to create this uncheck action?
Thank youyes, that's what I've done but still not working. I even downloaded the sp,
InfoPath 2013 (KB2837648) 32-Bit Edition
and it still doesn't work. In the screen shot attached, ml prefix is for Multi-selection list box. So, in mlImprovement, if the Communication checkbox isn't checked then set the Multi-selection list box, Communicaiton, to blank so it should
show no selection.
In the preview of Infopath 2013, I would check Communication in mlImprovement and then check a couple of checkboxes in mlCommunicaiton. I then uncheck and check Communicaiton in mlImprovement and those previously checked checkboxes remains.
I have been very frstrated working the MLSB infopath 2013. there are other issues that does't work either. Please advise if I'm missing a step here and there, thank you. -
How to add data into a List box
CS3 SDk:Windows<br /><br />Hi all,<br />I am trying to add data into a basic List box in CS3??<br /><br />// .fr<br />GenericPanelWidget<br /> (<br /> // CControlView properties<br /> kInvalidWidgetID, // widget ID<br /> kPMRsrcID_None, // PMRsrc ID<br /> kBindNone, // frame binding<br /> Frame(0,0,250,90) // left, top, right, bottom<br /> kTrue, // visible<br /> kTrue, // enabled<br /> // GroupPanelAttributes properties<br /> "", // header widget ID<br /> { <br /> <br /> WidgetListBoxWidgetN<br /> (<br /> kWFPListBoxWidgetID, kSysListBoxPMRsrcId, // WidgetId,RsrcId<br /> kBindAll, // Frame binding<br /> Frame(0,0,250,90) // Frame<br /> kTrue, kTrue, // Visible, Enabled<br /> 1,0, // List dimensions<br /> 19, // Cell height<br /> 1, // Border width<br /> kFalse,kTrue, // Has scroll bar (h,v)<br /> kTrue, // Multiselection<br /> kTrue, // List items can be reordered<br /> kTrue, // Draggable to new/delete buttons<br /> kFalse, // Drag/Dropable to other windows<br /> kTrue, // An item always has to be selected<br /> kFalse,// Don't notify on reselect<br /> kFalse, <br /> { <br /> } <br /> <br />),<br />},<br />),<br /><br />//-------ID.h--------<br />DECLARE_PMID(kWidgetIDSpace, kWFPListBoxWidgetID, kWFPPrefix + 2)<br /><br />//observer.cpp-----------WFPDialogObserver::Update<br /><br />//get currently selected/active widget <br />WidgetID theSelectedWidget = controlView->GetWidgetID();<br /><br />// ist it the text edit field? <br />if (theSelectedWidget == kWFPInsertButtonWidgetID && theChange == kTrueStateMessage) <br />{ <br /><br />IControlView* listBox = panelControlData->FindWidget(kWFPListBoxWidgetID);<br /><br />InterfacePtr<IListControlData> listControlData(listBox, UseDefaultIID()); <br /><br />//Insert the string into listbox <br />PMString strText = dialogCtrl->GetTextControlData(kWFPTextEditBoxWidgetID); <br /><br />// obviously there can't be a translation for text entered by user <br />strText.SetTranslatable(kFalse);<br />listControlData->Add(strText,kWFPTextEditBoxWidgetID); <br />dialogCtrl->SetTextControlData(kWFPTextEditBoxWidgetID, ""); <br />break; <br /><br />I am not able to Add items into list box.<br /><br />I tried based on Discussion <br />http://www.adobeforums.com/webx/.3bc43877<br /><br />but not able to locate SDKListBoxHelper file .it is not available in SDK.<br /><br />Please ,<br />Tell me Where I am going wrong.<br /><br />Thanks,<br />Adil
resource VSPDialogWidget (kSDKDefDialogResourceID + index_enUS)
__FILE__,
__LINE__,
kVSPDialogWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Binding
Frame(5,0,491,266) // Frame (l,t,r,b)
kTrue,
kTrue, // Visible, Enabled
kVSPDialogTitleKey, // Dialog name
DefaultButtonWidget
kOKButtonWidgetID, // WidgetID
kSysButtonPMRsrcId, // RsrcID
kBindNone, // Binding
Frame(9,234,89,254) // Frame (l,t,r,b)
kTrue,
kTrue, // Visible, Enabled
kSDKDefOKButtonApplicationKey, // Button text
CancelButtonWidget
kCancelButton_WidgetID, // WidgetID
kSysButtonPMRsrcId, // RsrcID
kBindNone, // Binding
Frame(394,234,474,254) // Frame (l,t,r,b)
kTrue,
kTrue, // Visible, Enabled
kSDKDefCancelButtonApplicationKey, // Button name
kTrue, // Change to Reset on option-click.
WLBCmpListBox //Tree view
kWLBCmpListBoxWidgetID, kPMRsrcID_None, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(299,49,475,170) // Frame
kTrue, kTrue, // Visible, Enabled
kTrue, // EraseBeforeDraw
kInterfacePaletteFill, // InterfaceColor
kHideRootNode | kDrawEndLine, // Options. Display root node
kFalse, // Use H Scroll bar
kTrue, // Use V scroll bar
20, // fVScrollButtonIncrement
20, // fVThumbScrollIncrement
0, // fHScrollButtonIncrement
0, // fHThumbScrollIncrement
2, // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection
kFalse, // Allow children from multiple parents to be selected
kTrue, // Allow discontiguous selection
//The tree view is dynamically created.
// added to support the list elements in the list box
resource LocaleIndex (kWLBCmpListElementRsrcID)
kViewRsrcType,
kWildFS, k_Wild, kWLBCmpListElementRsrcID + index_enUS
resource WLBCmpNodeWidget (kWLBCmpListElementRsrcID + index_enUS)
__FILE__, __LINE__,
kWLBCmpListParentWidgetId, kPMRsrcID_None, // WidgetId, RsrcId
kBindLeft | kBindRight, // Frame binding
Frame(0, 0, 194, 20), // Frame
kTrue, kTrue, // Visible, Enabled
"", // Panel name
// Just a info-static text widget with about-box text view to get white bg.
WLBCmpTextWidget
kWLBCmpTextWidgetID, kPMRsrcID_None, // WidgetId, RsrcId
kBindLeft | kBindRight, // Frame binding
Frame(45,1,194,18) // Frame
kTrue, kTrue, kAlignLeft,kEllipsizeEnd // Visible, Enabled, Ellipsize style
"", // Initial text
0, // Associated widget for focus
kPaletteWindowSystemScriptFontId, // default font
kPaletteWindowSystemScriptHiliteFontId, // for highlight state.
If you still got problems, post you email here - I'll send you the complete project/code then.
-Marc -
How to use value in a drop-down list box as "With these Values" parameter?
Hello, new user.
I have a drop-down list box on Page 1, upon which the user can choose a study number. The List Box is named "P1_STUDY_NBR".
Then I have a list, one entry of which goes to my master-detail form, which is Page 6. I would like it to go to the study number that the user choose on Page 1.
In my target on the create/edit list entry, I put in "Page in this Application", "Page 6", then in Set these items, I put in
P6_STUDY_NBR
My question is what to use in With these values, where I want the contents of the P1_STUDY_NBR. I tried:
&P1_STUDY_NBR
and that does not work. If I put in one of the study numbers, like 336-00, then it does work, but I want it to pass the study number the user chooses in the list box. How do I refer to the contents of P1_STUDY_NBR?
-MaryYes, that does work, thanks. I'm now getting the default value I was putting in yesterday rather than an error message, so there must be something loading it, but I'll hunt around for what process might be doing that, or try re-creating the master-detail form again.
-
Index of Values in the List Boxes on a Selection Screen
Hi,
I have a list box on the selection screen for Month field. It has the values Jan, Feb, Mar....etc in it.
These entries, I added thru the VRM_SET_VALUES.
Now, I want to default the month to current month SY-DATUM+4(2).
Is there any FM to which I can send this SY-DATUM+4(2) as an Index and the corresponding value gets set for the Month field.
As an alternatvie, I could use<b> Case Sy-DATUM+4(2). when '01'. p_month = 'Jan'. etc etc..</b> But I want to avoid this big case statement.
Please suggest.
Thanks,
Suryakiran D.Hi Suryakiran,
Try to use the func <b>MONTH_NAMES_GET</b>.It will
return the month name along with the number.
And also you can directly select from table <b>T247</b>
Thanks&Regards,
Siri.
Message was edited by: Srilatha T -
Is it possible to enter our own value in dropdown list box in Module Pool. How?
Dear Experts,
Being new to ABAP, I am trying my hands on Dropdownlist box on Module Pool.
I want to pull data from Ztable(Custom Table) into Dropdown list box on Screen in Module pool and be able to edit it, delete it and enter new data through it, thus thereby able to manage the Ztable. Is it possible in dropdown.
Looking forward for experts advice.
Regards
DeepikaDear Kannan,
Thanks. But why sud I write an event in Table maintenance generator. My code is in Module Pool and it has no connection with Table Msintenance.
The I/O field Drop down list box is on the Screen in my Module Pool. I am able to pull data in it from Ztable but now I want to edit this pulled data and also want to enter new data in this dropdown list box.
Regards
Deepika -
Bug editing list Items using webpart connections ,group by and inline editing
Hi Everyone. I came across a bug using out of the box features.
Let me explain well the details to reproduce the error. I used :
*2 Lists :
-List one : the consumer list with two columns :
-Number column
-Choice column
-List two :
The sender list with one column :
-Lookup column to gets the number column on the consumer list
*A webpart Page
*2 listviewwebparts in the webpart page
*Connect webparts to filter by the lookup column/number column
*Add inline editing in the consumer webpart
Till now everything works perfectly, inline editing works fine. Let's add some more view details :
*Add a group by in the view of the consumer webpart (group by the choice column)
=> Try to edit list items, you will notice that inside a group, inline editing is OK and inside another group it doesnt work!
If you get the same error, that would be nice to find where is the problem (I already found a similar bug and the problem was the sorting that needs to be in the same way for both connected webparts , ASC or DESC). But this one... ???Hi Static,
According to your description, I create the consumer list and sender list, create a webpart page , add a chioce filter webpart and consumer list webpart. But after I add a group by in the view of the consumer webpart, the inline edit still work fine.
You can have a look at the blog:
https://support.office.com/en-ca/article/Connect-a-Filter-Web-Part-to-a-List-View-Web-Part-4f3f6c10-0a1b-479d-8b4d-c4f1bf49bb3f#bms3
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Eric Tao
TechNet Community Support
Maybe you are looking for
-
Locking and blocking - puzzlement.
I have a table - relatively simple CREATE TABLE Sysstat M_Time DATE, Usr_pct NUMBER(10, 0), Sys_pct NUMBER(10, 0), <a few more NUMBER(10, 0) deleted... CONSTRAINT Sysstat_PK PRIMARY KEY (M_Time) );Issue (From an SQLPlus session) the command
-
Dear team, We are persoanlizing iSupplier Portal . CM file extract tab Our requirement is to add 2 new search conditions to existing search Criteria. PO Need By Date and PO creation Date are the 2 new search conditons. datatype is date Already PO Nee
-
How do I adjust Ken Burns Default when importing Clips?
Creating a slide show in iMovie and dragged a large number of jpeg photos in as clips. iMovie proceeded to render them all with the Ken Burns effect. Unfortunately, the end product displays the zoomed in close up. And it's zoomed to the max (5.00). C
-
Hi friend, I created two sales orders with same SP, SH, shipping point and requested delivery date and i maintained texts in both sales orders. I created one delivery from two sales orders using the t.code VL10A. Now my client requirement is "text" m
-
Sir i wish to maintain subcontracting record .How to maintain this record in standard SAP ? I am online.