User Exit - Get Select Item from ME22n
Hi
I need get the select in me22n
is there any u-exit /badi with a parameter like actua_item or select_item?
thks and regards
Luis
Edited by: Luis Constantino on Sep 7, 2009 2:07 PM
Hi Margaret,
There are a few things in this form that may help. Look at the exit event of the dropdown.
https://acrobat.com/#d=khu3Ik*9LUz60afNWuCUsA
Hope that helps,
Niall
Similar Messages
-
How to get selected items from a tree in backing bean without adfbc
Hi ADF Experts,
Below is my code for af:tree. My question is how can I get selected Items from the selectionListener (without adf bc) this uses formation of tree from backing bean.
Using Jdev 11.1.1.7.0
<af:tree var="node" value="#{pageFlowScope.MerchandizeBean.model}"
binding="#{pageFlowScope.MerchandizeBean.treeModel}" id="tree" immediate="true" autoHeightRows="0"
styleClass="AFStretchWidth" rowSelection="multiple"
selectionListener="#{pageFlowScope.MerchandizeBean.treeNodeSelection}">
<f:facet name="nodeStamp">
<af:commandLink text="#{node.classDescription}"
actionListener="#{pageFlowScope.MerchandizeBean.createListManyItemForMerchandise}" id="displayTable" partialSubmit="true">
</af:commandLink>
</f:facet>
</af:tree>
public void treeNodeSelection(SelectionEvent selectionEvent) {
// Add event code here...
RichTree tree = (RichTree)selectionEvent.getSource();
TreeModel model = (TreeModel)tree.getValue();
//get selected value
Thanks
RoyHi,
in a multi select case, try
RowKeySet rks = tree.getSelectedRowKeys();
Iterator iter = rks.iterator();
while(iterator.hasNext()){
Object aKey = iterator.next();
tree. setRowKey(aKey);
Object rowData ? tree.getRowData();
.... do something with the data here ...
Frank -
Getting selected item from combobox itemrenderer and storing in object
Hi Guys,
Can anyone help me in this regard. Its very urgent.
I have a combo box itemrenderer in datagrid column. I want to get the user selected item from the dropdown of the row(s) (User may select values from combo box from multiple rows of datagrid) and corressponding values of all other columns of the rows and store it in an object . Then pass this object to database to update only those rows that user has changed.
I am able to get the selected item from combo box using "event.currentTarget.selectedItem" and corressponding values of all other columns of the rows using "valueSelect.ID", etc where valueSelect is object which contains data for datagrid. But am stuck up with, how to store the selected item value of the combobox and corressponding values of all other columns of the rows into an Object ?.
Can anybody help me with sample to store selected item from combobox and its corressponding values of all other columns into an object which i can send to db...?
Kindly help me in this regard.
Thanks,
Anand.Hi!
Are you using a collection of VO or DTO as the dataprovider of the combobox component?
If so, have you created some attribute there to control the user's selection in the combobox?
For instance:
private var selected:Boolean = false;
If your solution fits this approach, you may create a new collection that contains just the objects that were selected by the user, it means you can loop through the datagrid's dataprovider and only insert in this new collection those objects that have the attribute "selected" set to true.
For instance:
private function getSelectedRecords(datagridDataProvider:ArrayCollection):ArrayCollection
var newCollection:ArrayCollection = new ArrayCollection();
for each (var item:Object in datagridDataProvider)
if (item.selected)
newCollection.addItem(item)
return newCollection;
Afterwards, you may serialize this new collection with your back-end.
Hope it helps you!
Cheers,
@Pablo_Souza -
Get Selected Items from ListBox
Hi,
How do I get the Selected items of a List in Flex.
I am using a multi-select List.
ThxNever mind..I got it.
it as simple as that:
Alert.show (lst.selectedItem.fieldname);
;) -
How to get select items from multi select in an array or list in jsp
i have the following multi select which is basically an array coming from the database how can select couple of them and put them in an array in jsp and then save them in the session so when i click the next button they continue till i reach the last finish button of my wizard:
<SELECT MULTIPLE SIZE=5>
<OPTION VALUE="o1">Option 1
<OPTION VALUE="o2">Option 2
<OPTION VALUE="o3">Option 3
<OPTION VALUE="o4">Option 4
<OPTION VALUE="o5">Option 5
<OPTION VALUE="o6">Option 6
</SELECT>
Option 1Option 2Option 3Option 4Option 5Option 6Hi,
As you are tracking changes in ALV data you must define a event handler for ALV evenr ONDATA_CHECK.
On defining an event handler you will be getting a structure called t_param.
It contains an element called t_deleted rows.
See this code to have an idea.
method ONDATACHECK .
DATA: x_delete_row LIKE LINE OF r_param->t_deleted_rows.
" i_addr_factr TYPE STANDARD TABLE OF ycot_addr_factr,
" x_addr_factr LIKE LINE OF i_addr_factr.
TYPES t_proj_constr TYPE ycot_proj_constr.
FIELD-SYMBOLS: <fs_row> TYPE t_proj_constr.
IF wd_comp_controller->ya_optyp = 'DELETE'.
LOOP AT r_param->t_deleted_rows INTO x_delete_row.
"x_addr_factr ?= x_delete_row-r_value.
ASSIGN x_delete_row-r_value->* TO <fs_row>.
DELETE FROM ycot_proj_constr WHERE plant = <fs_row>-plant
AND yr_nbr = <fs_row>-yr_nbr
AND period = <fs_row>-period
AND billback_pr_fmly = <fs_row>-billback_pr_fmly
AND prd_nm = <fs_row>-prd_nm.
ENDLOOP.
I hope it helps.
Regards,
Sumit Oberoi -
How to get selected item from AutoSuggestBox in Windows Phone 8.1
In CS File "SelectedItem" is not working what is the alternative to "SelectedItem" for AutoSuggestBox in WP8.1
In XAML File:
<AutoSuggestBox x:Name="tblkpersonname" Width="380" Margin="0,-7,0,0" ItemsSource="{Binding}" TextChanged="tblkpersonname_TextChanged">
<AutoSuggestBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"
Tag="{Binding PersonID}"/>
</DataTemplate>
</AutoSuggestBox.ItemTemplate>
</AutoSuggestBox>
In Cs File:
private void tblkpersonname_TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args)
try
if (tblkpersonname.SelectedItem != null)
tblkdes.Text = ((values)tblkpersonname.SelectedItem).Description;
persononlineimg.Source = new BitmapImage(new Uri(((values)tblkpersonname.SelectedItem).FlickrPersonImageUrl, UriKind.RelativeOrAbsolute));
catch (Exception ex)
Exceptions.SaveOrSendExceptions("Exception in tblkpersonname_SelectionChanged_1 Method In AddCast.cs file.", ex);
Devi Prasad.PHi
Not sure about the code you have mentioned here, there is no property named selecteditem in msdn. Please refer
https://msdn.microsoft.com/en-us/library/windows.ui.xaml.controls.autosuggestbox.aspx
<AutoSuggestBox x:Name="suggestions"HorizontalAlignment="Left" Margin="52,62,0,0"
ItemsSource="{Binding }"VerticalAlignment="Top"
Width="296" TextChanged="suggestions_TextChanged"
SuggestionChosen="suggestions_SuggestionChosen"/>private void suggestions_TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args)
if (args.Reason == AutoSuggestionBoxTextChangeReason.UserInput)
Suggestions.Clear();
Suggestions.Add(sender.Text + "Tea");
Suggestions.Add(sender.Text + "Tatt");
private void suggestions_SuggestionChosen(AutoSuggestBox sender, AutoSuggestBoxSuggestionChosenEventArgs args)
suggestions.Text = "Choosen";
Something like this can be used
Regards
Varun Ravindranath Please 'Mark as Answer' if my post answers your question and 'Vote as Helpful' if it helps you. -
Getting multiple items from a Jlist
hi i am trying to get selected items from a Jlist to print out
but can only seem to get one item at a time using getSelectedValue()
when i try and use getSelectedValues().toString(); i get
the following print out [Ljava.lang.Object;@ed783f68 can anyone show me
where i am going wrong and tell me why i get that print out
cheers
submitdetails.addActionListener(
new ActionListener() {
public void actionPerformed( ActionEvent e )
String data = privilegesList.getSelectedValue().toString();
Object data2 = privilegesList.getSelectedValues().toString();
System.out.println(data);
System.out.println(data2);
The getSelectedValues(...) method returns and ARRAY of OBJECTS. You have to loop through the array to get each object separately:
Object[] values = privilegesList.getSelectedValues();
for (int j = 0; j < values.length; j++)
System.out.println ( values[j].toString() ); -
How to get the selected items from listbox
Regarding listbox i have two questions
1) I want to get the selected items as per the order in which ihave selected.Presently i'm getting in the ascending order.For example after selcting the 1,2,6 if i select 3 then its giving 1,2,3,6.But i want it in the order 1,2,6,3
2)I want to select items from a single list box to many other listboxes.(ie) my first selection should goto first,second one to the second listbox and like this.How should i write the logic.
please give me a suggestion.In order to have the selected items line up in accordance to the selection order, please do it one at a time. (That's the limit for that VI)
If you need more than that (i.e. to regconize which item clicked first and which one comes later), you may have to figure it out ya
Wish you good luck. Perhaps, someone else has a already made vi.
Cheers!
ian.f
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com -
How to get selected values from selectManyCheckbox ?
Hi,
I am a SOA developer and using 'Auto generated adf form' of Human Task. I did some customization in the form. I need to show one dynamic list (contains multiple string values) on a form, from which user will select desired values. For this I have used <af:selectManyCheckbox> adf component.
It has generated code as follows...
<af:selectManyCheckbox value="#{bindings.Response.inputValue}"
label="#{bindings.Response.label}"
id="smc1">
<f:selectItems value="#{bindings.Response.items}" id="si9"/>
</af:selectManyCheckbox>
I am able to show list on a form and can select multiple values also.
Now, I want the multiple selected values back in my BPEL process. I need only those values which are selected by user.
Currently I am getting complete list as it is back in BPEL process.
Please help me out..!
Thanks..
SurajUnwinding ADF: How to retrieve Selected Items from selectManyCheckbox using ValueChnageListener
-
How to get selected value from SelectOneChoice
Hi,
I'm facing a problem to get selected value from SelectOneChoice. I have valueChangeListener event on a (SelectOneChoice)item. After user makes a choice I want to store selected value in a bean property to pass it to a method.
For example List item shows dname from dept table after user makes a choice I want to get deptno and populate into bean which I use to pass into my method.
If I use valueChangeEvent.getNewValue() I always get negative value instead I want deptno selected. Sample code pasted below.
public void setDeptno(ValueChangeEvent valueChangeEvent) {
BindingContainer b = getBindings();
OperationBinding oB = b.getOperationBinding("setDeptno");
//Checking instance of because same method is called from another text inputText item.
if (valueChangeEvent.getSource() instanceof CoreSelectOneChoice){
CoreSelectOneChoice cN = (CoreSelectOneChoice)valueChangeEvent.getSource();
if (columnName.getId().toString().equals("deptDname")){
JSFUtils.setManagedBeanValue("dept.deptDeptno",valueChangeEvent.getNewValue());
}if your selectOneChoice has value equal to #{bindings.deptno} bound to the iterator Dept1Iterator,
then the backing code will look more like
public void setDeptno(ValueChangeEvent valueChangeEvent) {
BindingContainer b = getBindings();
OperationBinding oB = b.getOperationBinding("setDeptno");
//Checking instance of because same method is called from another text inputText item.
if (valueChangeEvent.getSource() instanceof CoreSelectOneChoice){
CoreSelectOneChoice cN = (CoreSelectOneChoice)valueChangeEvent.getSource();
if (columnName.getId().toString().equals("deptDname")){
FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
ValueBinding bind = app.createValueBinding("#{bindings.Dept1Iterator.currentRow}");
Row row = (Row)bind.getValue(ctx);
JSFUtils.setManagedBeanValue("dept.deptDeptno", row.getAttribute("deptno"));
} I haven't tested it, so it could perfectly not work at all -
How to get selected value from OADefaultListBean.
Hi All,
How to get selected value from OADefaultListBean ?
Thanks,Hi,
To identify the user's selection(s) when the page is submitted, you would add the following logic to your processFormRequest() method:
OADefaultListBean list =
(OADefaultListBean)webBean.findChildRecursive("positionsList");
String name = list.getName();
String[] selectedValues = pageContext.getParameterValues(name);
To retrieve all the values in the list box, call list.getOptionsData().
--Prasanna -
User exit to change item level data in purchase order
Hi,
Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked). now i cant use ME_PROCESS_PO_CUST because process_item wont get triggered if there is no change in itemlevel data.
Regards,
RahulHi Rahul,
Probably EXIT_SAPLMEKO_002.
hope it helps,
Edgar -
Help - User exit to change item level data in Purchase Order
Hi,
Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirement is For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked). now i cant use ME_PROCESS_PO_CUST because process_item wont get triggered if there is no change in item level data.
Thanks,
RahulHi Rahul,
Probably EXIT_SAPLMEKO_002.
hope it helps,
Edgar -
Hi all....
I need a user exit which is applicable at line item level.
The field 'first date' in line item, is same as first line in scehdule line.If i update 'first date in line item, the schedule line gets updated automatially. According to my requirement, i need a user exit at line item for date field.
Thaks
AleemHi,
You can try this.
USEREXIT_MOVE_FIELD_TO_VBEP
Use this user exit to assign values to new fields at the level of
the sales document schedule lines.
The user exit is called up at the end of the FORM routine
VBEP_FUELLEN.
Thanks
Krishna. -
User exit transfer SO changes from CRM to R3
Dear All,
I want to add enhancement by using user exit to do item changes check and to change order delivery block when Sales Order changes are transferred from CRM to R/3.
According to SAP docs, the user exit is CRM_GENERIC_R3_IN , but there is no further documentation on how to insert the modification .
Could anyone provide me a sample of this enhancement ? Or is there another way to do this ?
Thank you before,
TS WinedyaDear Friend,
What type of exit is this?Is it a FM or BADI or any subroutine?
Maybe you are looking for
-
I bought a new Photosmart 5520 for my MacBookPro running OS 10.6.8. It stopped working after a few days. documents hang up in print queue, which says "printing page 1, 33% complete..." and below that it says "idle". I tried the various restart scheme
-
Re-installing Snow Leopard OEM
Hi, I've recently decided to use bootcamp to install Windows 7, but cannot partition the drive due to the space being used. So I'm going to reinstall Snow Leopard, I am wondering when I reinstall, will I need a serial number and if so where do I find
-
How can i get my music on iTunes, on my new IP5?
Can som one tel me, how i can tranfer my music from ITunes to my new iphone5?
-
How to create forms runtime installable
hi i am using forms delevloper 6i and backend oracle 8i enterprise edition, wanted to know is there a way wherein while distributing the application at the client side you can bundle your application and required runtime as an installable is this pos
-
Dear friends, i am getting following error while doing PGI for a matl which is managed in HU sloc. Material H84-1000 BP01 YD05: Quantity difference document line item for HUs I packed 50 nos in 2 HU one is for 30 and another for 20 nos. pl reply how