Trying to retrieve the editValue of a list box selection with multiple selections
I have a requirement to display the text and the value of a multiple choice list box but as soon as there are multiple selections the value displayed is the rawValue.
My code is something like this:
verifSubTaskDescID.addItem(this.editValue);
verifSubTaskDesc.addItem(this.rawValue);
When "this" which is a list box with ["a","first"],["b","second"] is set to a or b it works perfectly, displaying "a" in the ID and "first" in the Desc as follows:
a first
OR
b second
but when I select both this list looks like this:
first first
second second
Any ideas on how to preserve the letters without making the code too complex or hard to maintain??
Thanks!!!
Hi,
you can use a for loop to get all selected values from a choice list.
This could look like this.
This sample script goes to the exie event of the choice list.
It refers to the dataNode which holds the multiple values.
The for loop the then extracts the selected values and their associated display items.
var r = ""
for i = 0 upto $.dataNode.nodes.length - 1 do
r = Concat(r, $.dataNode.nodes.item(i).value, " ", $.getDisplayItem(i + 1) )
endfor
Textfield1 = r
Similar Messages
-
How To Enable a List Box To accept Multiple Selection
Dear all,
How can I enable a List box to accept multiple selection.If any body can please help me.
Thanks a bunch in advance
Regards
RakeshThe only problem is, the XML form data only contains the first selection made. All others are discarded. This is the first thing I've ever done with the Life Cycle Designer but the product seems somewhat in a version 1 state. Lots of features but no depth. Any suggestions about the XML?
-
Error while trying to retrieve the task: EventId(complete) does not belong
Hi Experts,
I have created a process composer DC in which i have created a process with two human tasks.
Each tasks is binded with web dynpro Iviews (means followed all the steps neccesary).
I deploed the DC successfully. now i started the process and got a task in my UWL but on click of the task i got the below error.
Error while trying to retrieve the task: EventId(complete) does not belong to referenced component interface of ComponentUsage(com.sap.tc.bpem.wdui.appcontainer.containercomp.ContainerComp:com.infosys.mdm.LoadRepositoryComp, createOnDemand=false, childComponent=com.infosys.mdm.LoadRepositoryComp)
[EXCEPTION]
java.lang.IllegalArgumentException: EventId(complete) does not belong to referenced component interface of ComponentUsage(com.sap.tc.bpem.wdui.appcontainer.containercomp.ContainerComp:com.infosys.mdm.LoadRepositoryComp, createOnDemand=false, childComponent=com.infosys.mdm.LoadRepositoryComp)
I have rechecked the event that i have created in the component controller and Interface controller.
Can you please help me in debunging the error.
thanks
NarendraHi,
sounds like an program error. That is an problem which occurs if one or multiple components try to lock the same galaxy object at the same point in time. Did you configured something special on the given task? e.g deadlines?
My proposal is to open an Customer Message so that we can have a detailed look onto the system. If this is not possible could you please provide the complete trace file and some more details about the modeled task?
Best Regards
Andreas -
BPM throws: "Error while trying to retrieve the task"
Hi,
<br><br>
When clicking on a task(WD-UI) in UWL, BPM throws an error message:<br>
Error while trying to retrieve the task<br><br>
Though, I am able to open up the task when I restart the server ( CE 7.1 EHP1 SP04 patched).
<br><br>
Anyone an idea?
<br><br>
Regards,
<br><br>
Wesley
<br><br>
The log file presents the following information (partially):
<br>
Caused by: java.lang.IllegalStateException: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
at com.sap.bpem.tm.adapter.core.TaskAdapter$TicketSynchronization.beforeCompletion(TaskAdapter.java:581)
at com.sap.engine.services.ts.jta.impl.SynchronizationWrapper.beforeCompletion(SynchronizationWrapper.java:27)
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:234)
... 86 more
Caused by: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:544)
at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
at com.sap.bpem.tm.adapter.core.TaskAdapter$TicketSynchronization.beforeCompletion(TaskAdapter.java:579)
... 88 more
Caused by: com.sap.glx.core.kernel.trigger.TriggerLockingException: Cannot acquire lock for update <Context_0_TaskAttributes_ac33d162fa908f8198b3c740708bb6c5{919e4f4b-1581-11df-c72f-02004c4f4f50}(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(?),Scope_13_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f4a-1581-11df-94e6-02004c4f4f50}(?),3,true)|Context_0_TaskAttributes_ac33d162fa908f8198b3c740708bb6c5(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(Instance_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{0d4c2925-157b-11df-b84e-02004c4f4f50}(?),null,Token_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{917829a3-1581-11df-b6e0-02004c4f4f50}(?),false),Scope_13_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f4a-1581-11df-94e6-02004c4f4f50}(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(?)),4,*true)>
at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.process(LockingTreeJoinNode.java:638)
at com.sap.glx.core.kernel.trigger.core.BFSController.update(BFSController.java:173)
at com.sap.glx.core.kernel.trigger.impl.TriggerNetworkManagerImpl$SequentialController.update(TriggerNetworkManagerImpl.java:550)
at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_trigger(AbstractTransaction.java:199)
at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:170)
... 90 more
Caused by: com.sap.glx.core.kernel.trigger.TriggerLockingException: Cannot acquire read row lock for after image (key = Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(Instance_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{0d4c2925-157b-11df-b84e-02004c4f4f50}(?),null,Token_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{917829a3-1581-11df-b6e0-02004c4f4f50}(?),false), name = JOIN_CompletionDeadlineWithRealDelayConditionalSequenceConnector_context_join_0_69)
at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.lockAfterRow(LockingTreeJoinNode.java:308)
at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.process(LockingTreeJoinNode.java:636)
... 94 moreHi,
sounds like an program error. That is an problem which occurs if one or multiple components try to lock the same galaxy object at the same point in time. Did you configured something special on the given task? e.g deadlines?
My proposal is to open an Customer Message so that we can have a detailed look onto the system. If this is not possible could you please provide the complete trace file and some more details about the modeled task?
Best Regards
Andreas -
SQL Server Import Export Wizard fails while trying to retrieve the data from FastObjects Database
When trying to import data from FastObjects database to SQL Server 2008 R2 using import/ export wizard we get the following error message :
"Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider."
Clicked on View button, the source data is retrieved correctly.
Clicked on Edit Mapping button, the Import Export Wizard failed with the below error message:
===================================
Column information for the source and destination data could not be retrieved.
"Test" -> [dbo].[Test]:
- Cannot find column -1.
(SQL Server Import and Export Wizard)
===================================
Cannot find column -1. (System.Data)
at System.Data.DataColumnCollection.get_Item(Int32 index) at System.Data.DataRow.get_Item(Int32 columnIndex) at Microsoft.DataTransformationServices.Controls.ProviderInfos.MetadataLoader.LoadColumnsFromTable(IDbConnection myConnection, String[] strRestrictions)
at Microsoft.SqlServer.Dts.DtsWizard.OLEDBHelpers.LoadColumnsFromTable(MetadataLoader metadataLoader, IDbConnection myConnection, String[] strRestrictions, DataSourceInfo dsi)at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfoFromDB(IDbConnection
mySourceConnection) at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfo(IDbConnection mySourceConnection, ColumnInfoCollection& sourceColInfos)Hi Chennie,
Thank you for the post.
Does the issue persists after you use the "Write a query to specify the data to transfer" option instead of “Copy data from one or more tables or views” option? If so, the issue may occur due to incorrect data type matching between the FastObjects database
data types and SSIS data types. In this condition, I don’t think it is necessary to upgrade the SQL Server version. Since you can open the Column Mappings dialog box, please try to modify the data type mapping manually.
In addition, the issue seems to be the same as the issue described in the following blog:
http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/09/09/sql-server-import-export-wizard-fails-while-trying-to-retrieve-the-data-from-pervasive-database.aspx
Regards,
Mike Yin
TechNet Community Support -
There was an error retrieving the user management project list
Hi All
I created the application profile successfully and try to create the new application but the error message was displayed like " *There was an error retrieving the user management project list . please verify that a project exists"* i didn't give the domain name, i went admin login......
Regards By
NagarajHi Varun,
i started services correct order only, but i am using VMware
Regards
Nagarajan -
Trying to retrieve the serial number required to install software for Elements 12. Answer says wrong redemption code. I have checked & rechecked. What shall I do?
It's pretty convoluted now, but try this page and click where it says "Still need help?"
Contact Customer Care -
DSN's Missing in the ODBC drop down list box
Being new to JDeveloper, I have been running through the
tutorials. I have installed Oracle lite on NT4 SP3 and have
tested out the sample data base 'Polite' using the installed
odbc driver through MS query ...all works fine, however in
tutorial 3 while trying to add the Data Form using Oracle Lite
driver, no dsn's appear on the next screen of the wizard when I
click on the 'ODBC drop down list box'. How do I get Jdeveloper
to bring up the DSN's. I have also tried the 'Sun JDBC-ODBC
driver' route, yet still there is not a single DSN in the drop
down list box.
Thanks
nullMohamed Nosseir (guest) wrote:
: Gavin Higgo (guest) wrote:
: : Mohamed Nosseir (guest) wrote:
: : : Gavin Higgo (guest) wrote:
: : : : Being new to JDeveloper, I have been running through the
: : : : tutorials. I have installed Oracle lite on NT4 SP3 and
have
: : : : tested out the sample data base 'Polite' using the
: installed
: : : : odbc driver through MS query ...all works fine, however
in
: : : : tutorial 3 while trying to add the Data Form using
Oracle
: : Lite
: : : : driver, no dsn's appear on the next screen of the wizard
: : when I
: : : : click on the 'ODBC drop down list box'. How do I get
: : Jdeveloper
: : : : to bring up the DSN's. I have also tried the 'Sun JDBC-
ODBC
: : : : driver' route, yet still there is not a single DSN in
the
: : drop
: : : : down list box.
: : : : Thanks
: : : Would you please give us more information about your
: : : configuration? JDeveloper version, Oracle Lite version,
: : Windows
: : : NT locale setting? Is it US version of Windows NT or local
: : : version?
: : : Thanks.
: : I am using Jdeveloper beta 2 (downloaded from the Oracle web
: : site) against Oracle lite 3.0.6.2.4 on Windows NT 4 sp 3.
: : Is this all the info you require?
: I also want to know if your Windows NT is a US English version
or
: a localized version?
: Thanks,
It is a Windows NT US English version
Thanks
null -
I am trying to change the name in my "from" box
I am trying to change the name in my "from" box. My name has changed and although I have changed the name on the account, I can't figure out how to make the default name in my "from" box change from my previous name to my new name.
You may need to know that (in Snow Leopard at least) you specify multiple possible "From" email addresses as a list separated by commas. Just type them into that little Email Address box*: they'll move over to make room. Then, on your new messages from that point on, a pop-up menu will appear for the From field. Neat, eh?
*-- Notice that you can lie in this box. Your ISP might not let you get away with it, but spammers use this loophole.
--Gil -
I'm trying to create a group call/txt list to communicate with a sports team
I'm trying to create a group call/txt list to communicate with a sports team
What does your question have to do with the topic of this Boot Camp community?
-
Retrieving all options in a list box
I am very new to JSP, though I've done a little with ASP before. I have a page in which users can add and/or delete text concerning levels of discussion. They can also move them up and down to place them between two other levels by using one of two buttons. When the user is done with the form, I then need to update the database table which these levels are in. This is the part I am having trouble figuring out. How do I retrieve all of the items in the list (select with multiple lines) in the order they placed them? Is it just a simple request.getParameter or would this just give me the item that was selected last?
ChrisI think you'll have to create a "hidden" form variable
(like <input type="hidden" id="allList" />)
and upon form submission, do some javascript to append all the list's values to that variable, with a separator between each value (I would recommend the tab character (\t)).
Then when the form is submitted, your request.getParameter("allList") will contain a long string containing all the values, tab-separated, that you can use StringTokenizer on to get each individual value. Make sense? -
I have been unsuccessfully trying to extend the wifi of my Time 2T Capsule with an Airport Extreme 2nd Gen. It works for a while and then loses configuration. I have done everything possible, disconnected it, reset it but it keeps failing, what to do?
What model and firmware is the 2TB TC?
What firmware is the AE?
Does the AE get good signal from the TC in its current location?
Signal can only be extended that is received intact.
Is it extending on 5ghz? As I remember it a Gen2 AE is only single band, although you can choose either 2.4ghz or 5ghz.
I am fairly sure you are going to tell me your TC is AC model..
I would do a couple of things..
1. Fix the wireless name, make it short, no spaces and pure alphanumeric.
2. Fix the wireless channel for 2.4ghz so it is not going to jump around.
3. Get real results from the AE in its current location for signal strength.. this is really only possible on v5 utility. And that is a double pain with Mavericks because you cannot use it.
Apple have removed all the useful diagnostics from the airport utility. There is next to nothing left. So you need to use the computer and its diagnostics to find signal levels in the location.
http://support.apple.com/kb/HT5606 -
How do I populate form fields depending on the value of a list box?
Hi,
Can anybody help me out here?
I'm creating a form where I'm needing to populate a number of fields (first name & last name) based on the value of a list box (values are 1,2,3,4,5,6) ie: if 3 is selected 3 sets of the first name and last name fields populate on the page for the user to fill out.
At this stage it is just a prototype site and there is no database running behind it.
Thanks
HaydenThis can only be solved if you have javascript coding skills. Without knowing more about what you want to do and why, I can only show you a skeleton of how your code should look, but consider this form select field -
<select onchange="populateForm()">
When a value is selected from that list, the "onchange" event will fire, and will call the javascript function called populateForm(). You need to define a function by that name somewhere on the page -
<script type="text/javascript">
//<![CDATA[
function populateForm(value) {
if value >0 { document.getElementById("fieldID").style.display='block' }
if value >1 { .... }
etc.
//]]>
</script>
The page itself would need to have ALL the fields already in the form, but with those that are to be revealed set to a style of display:none.
Obviously, this is a skinny skeleton. Each test in the function would reveal a new field on the page by changing its display style from "none" (which is how they should be set in the code) to "block". You would need a separate function for each type of field that might need to be chosen.
If this is well over your head, then I'm afraid you will be out of luck for this particular approach.... -
How to select value from list with multiple selections ?
HI,
i have a list with multiple selections where i show email address retrieved from database.
what i want to do is to send the selected email address to the invoiceedit.jsp.
please look at the following code which gives you the better idea.
<td class='smalltext'><select name="email" size="3" multiple="multiple">
<%
Connection conn = null;
Statement stmt = null;
Statement stmt_contactperson = null;
Statement stmt_address = null;
try{
conn = getREConnection();
stmt = conn.createStatement();
ResultSet rs = null;
rs = stmt.executeQuery("SELECT PROPERTYID, VALUE FROM PROPERTIES WHERE ENTITYID="+ g_strGroupID+" AND NAME = 'invoice_default_email'");
int numofrows = 0;
while(rs.next())
%>
<option value="<%= rs.getString("VALUE") %>" selected="selected"> <%= rs.getString("VALUE") %> </option>
<%
}//end of while
%>
</select>
<a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&add=1"><font color="#000000">Add</font></a>
<a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&email_to="><font color="#000000"> Edit</font></a> </td>thanksUse a form button instead of a link so that you can send it as a request parameter to the server. In the server side just use HttpServletRequest#getParameterValues() to obtain all values for the given parameter name. If you really need a link rather than a button, then use Javascript to submit the form on click of the link.
That said, your design is bad. Java code belongs in Java classes, not in JSP files. Database access logic belongs in a DAO class. Business and controlling logic belongs in a Servlet class. Only presentation logic belongs in the JSP file. Avoid scriptlets as much as possible and use JSP EL and/or JSTL instead. -
Applescript list with multiple selections
Hello guys, i have h big problem...
i was trying the multiple selections part by the command list, but if i select 2- and more it does nothing (i'm using if x is y then *linebreake* else if ...)
so i tried another way script:
tell application "Finder"
--get folders of me--
set a to get name of folders of folder "Contents:Resources:Versionen" of (path to me) --in this folder i got folders named {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}--
set b to choose from list a with prompt "Choose your Minecraft Version!" with multiple selections allowed
--next step--
count b
set c to result
repeat c times --with this part i wanted to handle every selected folder as an individual to duplicate it somewere else
set ab to b * -1
duplicate folder ab to folder (choose folder)
end repeat
end tell
thanks for helping meThe following script (tested under OS X 10.8.2) should do what you are asking for:
tell application "Finder"
set theSourceFolder to folder "Contents:Resources:Versionen" of (path to me)
set theFolderNames to get name of folders of theSourceFolder
set theChosenNames to choose from list theFolderNames with prompt "Choose your Minecraft Version!" with multiple selections allowed
if result is false then return
set theDestinationFolder to choose folder
repeat with thisName in theChosenNames
duplicate folder thisName of theSourceFolder to theDestinationFolder with replacing
end repeat
end tell
Message was edited by: Pierre L.
Maybe you are looking for
-
Labview 12.0 Crashes while trying to open a VI
Hi, I've got a problem while opening a file. I did not have any problem opening it like five minutes ago. I tried to reboot the computer and shut down labview couple of times. The labview 12.0 crashed and left me a message attached. And the problem V
-
How do I add to my data plan on the iPad once I have run out and no longer have an internet connection? I am working out of the country and got a message that I was running low,followed immediatly by a you're out message.
-
HT201320 i am unable to switch my mail from home screen
Dear All, I am unable to connect my mail. Also email section in home scteen is not supporting
-
Generally positive impression...
After some frustration with Firefox, I decided to try Safari for the first time. I'm a PC user because I like to tinker (in fact, am a professional tinkerer), and demand a computer conforms to me rather than the other way around. Consequently, a Mac
-
InDesign CS6 crashing as it starts up
I have had this problem all day. I have repaired my permissions and repaired my disk already. I've tried reseting the preferences, too. As soon as I hit the yes button to reset, it crashes again. I'm on a Mac so I have this crash report to share. Any