Maintaining a selection order without refresh
Hello, I have a SelectManyListBox on screen where the user can select many rows at a time and add them to another list box. However, I would like to maintain the order in which each row is selected so that when I add them to the listbox, they are added in the order they were selected. However I do not want to refresh the screen each time the user selects a row. Is there a way I can maintain this order on the JSP and then send it to the bean in one refresh?
i thought about using Javascript to set a hidden value on the page, but I don't know the syntax to obtain the row from the SelectManyListBox that is being selected.
Add this extra code.....
here is some test code..
-- java script code , do this on click()
if you want to copy FROM list box to TO list box
var from = document.getElementById('formname:nameof FROMcomponent');
var to = document.getElementById('formname:nameof TOcomponent');
var ht = document.getElementById('formname:hiddentext');
//your hidden text will have a storing template
//Selectedtext|selectedvalue*Selectedtext|selectedvalue*.................
if(from.length>0){
var j=to.length;
for(var i=0; i<from.length; i++){
if(from.options.selected){
var temp = new Option();
temp.value = from.options[i].value;
temp.text = from.options[i].text;
to.options[j] = no;
j++;
ht = ht+from.options[i].text+'|'+from.options[i].value+'*'
//check for the addition of the duplicates
Similar Messages
-
Dynamic select list without refreshing.
Hello,
There might be some other people having the same problem as me and I do apologise if the solution is already posted in the forum.
I have a select list with it's LOV as a select query from say table A and next to this, i have a link which call a popup and allow user to enter a new entry to table A. My question is how can i see my newly created item in the select list without manually refreshing the page?
Any help would be greatly appreciated.
VenusHi Venus,
You can call a bit of javascript that will append the new value to the end of the options list:
function addNewItem(itemValue, itemText)
var list = document.getElementById("SelectListID");
var listsize = list.length;
var opt = new Option;
opt.value = itemValue;
opt.text = itemText;
list.options[listsize] = opt;
Then you just need to call the addNewItem function and pass it the value and text to be added onto the select list options.
Regards
Andy -
Re: Creation of sales order without material master
Hi All,
Is it possible to create sales Order, without material master. In case if so please provide the details.Hi,
It is possible to save order without any material.
But if you want to restrict it, go to VOV8 and select your Sales Document Type and see if any incompletion procedure is assigned.
Now go to SPRO - SD - BASIC FUNCTIONS - LOG OF INCOMPLETION ITEMS - SALES ORDER ITEM -
and for your incompletion procedure maintain VBAP under table and MATNR under field name. Also you can tick on warning message, if user now tries to save the order without any material.
So now you can restrict saving order without having any material.
I am sure this will help you, if it does, please dont forget to reward points for contribution.
Regards
Ravi -
Hi,
Please tell me we have creating Production order without BOM(Bill of Material) & post the BOM Component of Production Order Manually. when developing the report Material Number wise then BOM not found in the report. So, i want to know that how to relate BOM Component with Material Number & which will be table to use in this report.
AmAnHi Aman,
which report?
If you don't select the BOM, then certainly there is no BOM component.
Furthermore, BOM are not referenced in the production order, but the components copied into the order, i.e. these are saved in table AFPO.
But if the components are not maintained manually in the production order (same table), and only the consumption posted directly as unplanned consumption, then you will have trouble getting a link. Possibly only in MSEG by identifying the production order number as the cost collector.
Regards,
Kay -
UIX validation in editable table without refreshing
I have an editable table in a UIX page and I want to validate some fields against the DB (when the focus of each textInput is lost) without refreshing the table (to keep in the textInputs the data previously introduced by de user). To obtain that I pass the value that I want to validate to a second form (using javascript) which is submitted using the javascript function submitForm.
How can I do to keep the table without refreshing?
Here is the code:
<?xml version = '1.0' encoding = 'windows-1252'?>
<document>
<metaContainer>
<!-- Set the page title -->
<head title="Maestro Ficheros"/>
</metaContainer>
<contents>
<script>
<contents>
<![CDATA[function foco(){
var n = document.form0.nombrefi.value;
document.form1.param1.value = n;
submitForm(document.forms[1],0,{'event':'Validar'});
} ]]>
</contents>
</script>
<body>
<contents>
<form name="form0">
<contents>
<table model="${bindings.Gccintt001View1}"
id="Gccintt001View11"
partialRenderMode="multiple"
partialTargets="_uixState"
nameTransformed="false">
<contents>
<column>
<columnHeader>
<sortableHeadermodel=
"${ctrl:createSortableHeaderModel (bindings.Gccintt001View1, 'Nombrefi')}"/>
</columnHeader>
<contents>
<switcher childName=
"${uix.current.Nombrefi.inputValue==
bindings.Nombrefi.inputValue ?
'selected' : 'notselected'}">
<case name="selected">
<textInput id="nombrefi"
model="${bindings.Nombrefi}"
readOnly="false" columns="15"
styleClass="OraBGAccentLight"
onChange="javascript:foco()"/>
</case>
<case name="notselected">
<textInput model="${uix.current.Nombrefi}"
columns="15" readOnly="true"/>
</case>
</switcher>
</contents>
</column>
<column>
<columnHeader>
<sortableHeader model=
"${ctrl:createSortableHeaderModel (bindings.Gccintt001View1,'Descfichero')}"/>
</columnHeader>
<contents>
<switcher childName=
"${uix.current.Nombrefi.inputValue== bindings.Nombrefi.inputValue ?
'selected' : 'notselected'}">
<case name="selected">
<textInput id="descfichero"
model="${bindings.Descfichero}"
readOnly="false" columns="15"
styleClass="OraBGAccentLight"/>
</case>
<case name="notselected">
<textInput model=
"${uix.current.Descfichero}"
columns="15" readOnly="true"/>
</case>
</switcher>
</contents>
</column>
</contents>
</form>
<form name="form1" method="post">
<contents>
<formValue name="param1" value="vacio"/>
</contents>
</form>
</contents>
</body>
</contents>
</document>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
<event name="Validar">
<method class="view.EventHandler" method="pruebaEventHandler"/>
</event>
</handlers>
</page>
Thanks Gari.I found a solution. Using a hidden form inside a iFarame and passing the values between forms with javascript, I can post the hidden form maintaining the changes in the table.
Gari -
How can we get a value in a drop down box without refreshing the page
In my application i am having 14 drop down boxes. On selcting a particular value in a drop down box i am doing its corresponding functionality. I would like to get these values without refreshing the page each and every time i select a text box, Is it possible to get these values without refreshing the page each and every time.
RaghuThere is a new hype going on called AJAX. It is either that, or dumping a lot of information in javascript arrays and reading the information from there when you make selections. I would choose AJAX.
-
In mail how do we stop the e-mail's showing as read when you select them without opening the full e-mail? I want to click on a mail and read this in the preview pane only without showing it as read.
Not possible. In order to read an email in the preview pane requires opening the message. You can mark a message that you've read as unread after reading it.
-
Creating Job Order without Assembly Routing
How can you prevent Users from Creating Job Order without creating routing to the Assembly used
RegardsHi Laxmikant
Please note the steps
Create a BOM Application in OS30
Create a new BOM ID in OS31 with BOM Usage as Production
Assign this BOM ID in BOM Application
Ensure that ID is responsible for Production planning alone.
Then in that ID maintain a BOM alone without any items.
Assign this BOM Application in Order type dependent parameters in OPL8
Now u can create a production order w/o BOM
Rgds -
Error while creating Production order without BOM
Hi Guys,
While creating production order without a BOM i am getting the following error in the error log.
Error: BOM for material xxxxxx does not contain any valid items
Message no. CO636
Kindly help.
Regards,
SidDear customer,
could you check in the master data screen of the order if one BOM has been selected?
please coudl you check your customizing the following transactions:
OPJM
OPJI
what do you have in 'BOM slection field' MRP4 view of the header material?
Please check if with this info you can find the missing data to explode the BOM
regards
Maria -
Profit center for purchase order without account assignment
I've requirement to include profit centers in purchase orders without account assignment category.
The trouble is when there is no profit center maintained in material master.
Is there a way to determine profit center in purchase order for such cases?Dear Abinash,
Define substitution in GGB1 at line item level as shown below:
Prerequisite : BSEG-WERKS = Maintain plant
Substitution : BSEG-PRCTR = maintain profit centre as constant value
After define it, assign to the co.code.
Regards,
Mukthar -
Creation of Process Order without assigning master recipe
Hi,
I want to create a process order without having default master recipe for the given material or default operation for the given order type. I want the user to select the master recipe manually in process order. We do not want to use production version also.
We can define the default operation for the order type (OPJG) so that we can create a process order. I do not want a default operation in the process order but the user should select a valid master recipe. If we have default operation in the process order, it serves no purpose as it is never used anywhere.
Is there any way we can achieve this?
Regards,Hi,
Please find the required details and conditions for creating process orders without master recipe.
http://help.sap.com/saphelp_47x200/helpdata/en/89/a42cb3461e11d182b50000e829fbfe/frameset.htm
Regards
Kannan -
Hi
i want to generate a report without refresh of the page.
Eg. If i enter the student_id 1 in text field then student_id 1's personal information should display in report without refresh of the page.
there are 5 field in student table
first name
last name
roll no
class
section
Thanks
NishaHi Br, Jari,
can i use the text field in place of select list.
as in given link. we are selecting the value from select list after that report display without refresh of the page.
i want to replace the select list with the text field.
if this Possible Please Suggest me.
Thanks & regards
Nisha -
SLA for service request\service order without create a service contract
Hello Experts,
We are using CRM 7
Is there a possibility to determine SLA for service request\service order without create a service contract?
We have defined:
1. Trasaction Code: CRMD_SERV_SLA- Response Profile / Response Times
2. In Customizing we have defined our date profile with the relevant duration
3. In Customizing for transaction types we defined SLA Prof. Det. Proc= IT000001
4. we assign the Service Profile and Response Profile to BP (from "service levels" block) .
Everthing seems ok but the SLA time is not determined automatically.
Hope you can help me out.
Thanks,
TalHi Tal Tal
Your steps are correct and i hope you did these too
a) In the SLA determination procedure ,you have defined the access sequence for service product item or org
b) If service product item ,take any service product for ex INVESTIGATION assign the two Service and response profile in the service tab
c) if org the above two profiles can be assigned to org attributes.
d) In my opinion the date profile you should have assigned it to item category as I think the SLA date calculation is done at the item level
e) You should assign the SLA det prof to the transaction type in the service process business category - customizing header.
f) when you create a transaction type sla dates will be determined as follows
a) you have to enter service product entered in the item ,then dates will be visible,and also if your access sequence is based on service product,the respons profile and service profile will be determined.
b) if you have given indicators as all these three "category,priority,codes' in your response profile, then you have to enter all three and then hit enter
c) After hitting enter,the response profile determined above,will use the above 3 inputs of category,priority etc and determine the duration times ,which should be maintained in your date profile.hence the durations determined will be used in the dates calculation.
Let me know if you have any other questions. -
HOW DO I CROP WITHOUT APERTURE RE-SIZING THE PHOTO? CAN I MAINTAIN THE SELECTED CROP SIZE (VERY SLIGHT EDGE TRIM) WITHOUT
DRASTICALLY AFFECTING THE MEGAPIXEL SIZE BEING SENT TO ONLINE PRINTING SITE?Note the "Size" read out on the crop popup this tells you the size your cropped image wil be. eg. The image here is a 21 megapixel image, cropping the image like so reduces the file size to 5MP, your exported file size can only be a max of this 5MP.
Hope this Helps, (HTH)
Tony -
Can we issue purchase order without price info
Hi,
We had issued purchase orders to a vendor, but we come across that price info has not been maintained for the same. It seems that this is exceptional case. Can we issue purchase order without price info ??
Regards...Hi,
In general case while creating purchase order price is picked up from purchasing info records which are valid , if the info record is not maintained it is picked up from last purchase order.
But as you said it is purcahse order without info records.
Options available are;
You can manually enter the price in the item overview and details will automatically get calculated in item detail of purchase order
You can mark free delivery indicator in the item overview.
Thanks,
Tushar Patankar
Maybe you are looking for
-
Connecting Data Federator to SAP R/3
Hi! I am trying to create a universe based on an infoset. I found the following procedure to connect to SAP R/3 using Data Federator in order to create a universe based on an infoset, : http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uu
-
URGENT!!! Vertex Functionality with SAP
Hello All, My company is planning to implement Vertex for Sales and Use tax. They need to know functionalities porvided by vertex, with SAP for approval. So I need 15 to 20 points proving importance of Vertex. Urgent response would be really apprecia
-
I've lost my the url space at the top of safari
Any suggestions about how to add it back in? I've gone to "View" but don't see the right option. Also, I cannot get the "customize toolbar" to work; I can't type anything into the space "Search Google or enter an address." Thanks for your help!
-
I deleted all of the songs from my paused downloads/syncs and tried again but it didnt work. Does someone know how to help?
-
Get DNG Date Created from dng sdk
I have successfully compiled the dng sdk and the validate app and I wondered what is a simple way to just get the date created out?