Replace 2 from the list
hi,
I was trying to get 2 replaced from the list i've from
database.
<cfquery name="test" datasource="test">
SELECT *
FROM test_new.backyard
WHERE weID = 2 OR meID = 2
</cfquery>
#ValueList(test.weID,",")# <br>
#ValueList(test.meID,",")#<br>
<cfset value1 = #ValueList(test.myID,",")#>
<cfset value2 = #ValueList(test.profileID,",")#>
<cfset valueCombined = value1 & "," & value2>
<cfset replacedList =
#ReplaceList(valueCombined,"2","")#>
Replaced: #ReplaceList(valueCombined,"2","")#
<br>
ListChange: #ListChangeDelims(replacedList,"",",")#
At last, i end up having plain numbers 34556376 without any
delimeters. But, i would like to have comma seperated list for
further useage of numbers. I'm not sure which function to use to
add comma's after every number.
Thanks for any help!
Note: I've got my user name changed, my previous screen name
was Syed.
try using ListDeleteAt. Use the code below
<cfset posInList = listfind(valueCombined,"2")>
<cfif posInList GT 0>
<cfset replacedList =
#ListDeleteAt(valueCombined,posInList)#>
<cfelse>
<cfset replacedList = valueCombined>
</cfif>
Similar Messages
-
How to get multiple values from the list
I've a list of an item which I queried it from the database. I also created a button that will takes a selected items from the list when it was clicked. I used javabean to get the data from database.
<% // clicked on Select District Button
Vector vselectedDistrict = new Vector();
Vector vdistrictID = new Vector();
String tmpSelectDistrict = "";
tmpSelectDistrict = request.getParameter("bSelectDistrict");
if(tmpSelectDistrict != null)
// get multiple values from the list
String[] selectedDistrict = request.getParameterValues("usrTDistrict");
vselectedDistrict.clear();
vdistrictID.clear();
if((selectedDistrict != null) && (selectedDistrict.length != 0))
for(int i=0;i<selectedDistrict.length;i++)
vselectedDistrict.addElement(selectedDistrict);
vdistrictID = dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
for(int i=0;i<vdistrictID.size();i++)
out.println("district = " + selectedDistrict[i]); out.println("district ID= " + vdistrictID.get(i).toString());
%>
// get vdistrict from the database here......
<select name="usrTDistrict" size="5" multiple>
<% for(int i = 0; i< vdistrict.size(); i++)
%>
<option value="<%=vdistrict.get(i).toString()%>"><%=vdistrict.get(i).toString()%></option>
<%
%>
</select>
<input type="submit" name="bSelectDistrict" value="Select District">
Lets say the item that i selected from the list is 'Xplace' and I clicked on the Select District button,
what I got is this error message:
org.apache.jasper.JasperException: Unable to convert string 'Xplace' to class java.util.Vector for attribute usrTDistrict: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
So where is going wrong and what the message means?. Any help very much appreciated. ThanksThese are just guesses that might hopefully steer you in directions you haven't looked in yet.
I presume you used triangle brackets (< >) to avoid having the Jive Forum think it was the "italics" tag?
Are you certain this: dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
expects a Vector as its second parameter? And returns a Vector?
I don't believe you've shown how you use the javabean, or its code? Perhaps it should be rewritten to accept an array of strings instead of a Vector? -
Delete file from the list & as well as from file upload
I have come across a situation where there is a sap.ui.unified.FileUploader & user is free to upload as many file selected. then there is a button to display the list of added files as list(deleteable list). list delete is possible by using the standard function provided in the explored of SAP UI5 SDK document. but how to bind both the controls?? do that at the time of deleting the list it will also delete the files added in FileUploader. attaching the screenshot for better understanding...
SAP UI5 Version 1.24.3Hi,
you can use the setValue() method when you delete a file from the list:
oFileUploader.setValue("");
Kind regards,
RW -
Delete file from the list.
How can I delete the PDF from the list.
See the FAQ: http://learn.adobe.com/wiki/display/readermobile/iOS+FAQ
-
The problem here is i am not able to get the data from the list
hi all,
i have the following code
EnrichedProductCatalogue enrichedProductCatalogue1 = new EnrichedProductCatalogue();
enrichedProductCatalogue1.setAssetCount(2);
enrichedProductCatalogue1.setBlockingProduct("Weekend Freebee");
enrichedProductCatalogue1.setBlockingReason("Compatability");
ArrayList<String> availableActionsList = new ArrayList<String>();
availableActionsList.add(EnrichedProductConstants.ADD.toString());
availableActionsList.add(EnrichedProductConstants.REMOVE.toString());
enrichedProductCatalogue1.setAvailaibleActions((ArrayList<String>)availableActionsList);
BundleProduct bundleProduct = null;
Product product = new Product();
product = new Product();
product.setProductName("International");
product.setProductClassName("International");
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory);
bundleProduct = new BundleProduct();
bundleProduct.setCommercialProduct(product);
enrichedProductCatalogue1.setBundleProduct(bundleProduct);
listOfEnrichProducts.add(enrichedProductCatalogue1);
listOfEnrichProducts.add(enrichedProductCatalogue1);
here i have an list called listOfEnrichProducts.
here i am adding two objects of enrichedProductCatalogue.
which contains a object called BundleProduct.
which has a reference for Product class.
here this product class has a list which contains objects of another class called UiCategory.
the problem here is i am not able to get the data from the list which contains UiCategory objects .
the following is the UI
<af:table var="row" rowBandingInterval="0" id="t1"
value="#{pageFlowScope.sample1}"
binding="#{pageFlowScope.sampleManagedBean.dataTable}"
partialTriggers="apimethods ::apimethods">
<af:column sortable="false" headerText="ProductName" id="c2">
<af:outputText value="#{row.bundleProduct.commercialProduct.productName}" id="ot15"/>
</af:column>
<af:column sortable="false" headerText="ProductClass" id="c12">
<af:outputText value="#{row.bundleProduct.commercialProduct.productClassName}" id="ot19"/>
</af:column>
<!--
<af:column sortable="false" headerText="UICategoryName" id="c32">
<af:forEach var="item" items="#{row.bundleProduct.commercialProduct.uiCategory}" >
<af:outputText value="#{item.categoryName}" id="ot119"/>
</af:forEach>
</af:column>
-->
<af:column sortable="false" headerText="AssetCount" id="c22">
<af:outputText value="#{row.assetCount}" id="ot1"/>
</af:column>
<af:column sortable="false" headerText="blockingReason" id="c3">
<af:outputText value="#{row.blockingReason}" id="ot2"/>
</af:column>
<af:column sortable="false" headerText="blockingProduct" id="c4">
<af:outputText value="#{row.blockingProduct}" id="ot3"/>
</af:column>
<!--<af:column sortable="false" headerText="availaibleActions" id="c1">
<af:commandButton text="#{row.availaibleActions}" id="cb1"
actionListener="#{pageFlowScope.sampleManagedBean.callAction}"
partialSubmit="true">
<af:setPropertyListener from="#{row.availaibleActions}"
to="#{pageFlowScope.avalibleaction}" type="action"/>
</af:commandButton>
</af:column>-->
</af:table>
Can anyone pls give some solution ...Hi Frank,
value="#{pageFlowScope.sample1}"
here sample is
Map<String, Object> flowScope1 =
ADFContext.getCurrent().getPageFlowScope();
flowScope.put("sample1", listOfEnrichProducts);
this is not the problem . i am able to get all the values except the following .
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory); -
How to remove available downloads from the list
how to remove available downloads from the list without it resuming when i open itunes or check for available downloads?
There is not a way to remove them from the list. Just let them download, and then delete them from your library when they are done.
-
I am trying to stop programs from opening automatically when I turn my computer on. I tried system preferences>users and groups>login items...then I deleted them itunes and emial from the list but it did nothing. They continue to open up every time I turn on my Macbook Pro.
Hi r,
It sounds like you're running Lion?
Have you tried running Verify and/or Repair Disk?
Have you tried running Repair Permissions?
Do you have at least 15% free space available on your HD? -
How to delete items from the list of "auto-open" tabs that load whenever FF4 opens?
When I recently downloaded FF4, I was asked if I'd like to have FF automatically open the same tabs as were set in my IE. Great! Worked perfectly until I set those tabs as App Tabs. Now both the App Tabs and the original IE set of tabs open whenever I open FF -- essentially each tab loads twice -- as app tab and large tab. How can I delete tabs from the list of "auto-open" tabs? In addition, for some reason, every time I try to set my home page, it's not working -- I keep getting the same home page regardless of how many times I have tried to set a new one.
You can close a tab with a middle-click or with a left click on the close X on the tab or via the right-click context menu of that tab.<br />
Do those tabs come back if you close then and lose Firefox? -
I am trying to reinstall CS3 from a download I bought several years ago, and it is saying my serial number is invalid. I am taking the serial number directly from the list of products on my Adobe account. Please advise
Uninstall and try the Adobe Creative Suite Cleaner Tool before reinstalling - it helps resolve installation problems for CS3 thru CS6 and for Creative Cloud
http://www.adobe.com/support/contact/cscleanertool.html -
Hi. I'm trying to make my guest network disappear from the list of network choices that appears to everyone in the neighborhood. Even though I followed the great suggestions on how to delete the network, it's still appearing in the list that everyone sees. It has my name and would prefer to get rid of it.
Please help! Many thanks!Thank you for not only the tip but also especially the research showing that for anybody other that those using Wi-Fi for the first time the network wouldn't disappear. I wanted it to disappear for everyone so.....I finally solved it by resetting the Airport Extreme to the factory settings and starting over from scratch! It worked! Yay!!!!!
So, for everyone that has had this problem (and I've read many of the same complaints in different places on the Internet), you must go into Airport Utility and check the box stating that you want to reset it to the factory settings. Do not do it with a paper clip and the reset button on the box; I tried that first and it did not work. You must reset it via the Airport Utility. Then just start over and you will have the choice to NOT check the box to Enable Guests. If you want to enable guests, just be sure not to use your name or you're back to the same problem. Apple is so great with everything...wouldn't it have been so easy for them to just put this in the manual somewhere????? Thanks for all your help. Hope this helps others! -
Is there a way to remove an app from the list of previously installed apps?
Is there a way to remove an app from the list of previously installed app?
The list that comes up when you click on the Purchased icon when updating apps.
The list is becoming quite large after I installed and tried out a few apps.nvm. I found it.
-
I would like to know, on the ringtone page, where you can select songs out of your music library, is there a way to remove a song from the list after its selected? I would thin there would be a way to "delete" the songs from the list. (Clock app)
Let me explain:
In the clock app for ios 6.0.2 I am a little confused. It allows you to go into your music library, and create a ringtone using any songs you choose. However, I cannot find a way to remove a song from this list, just like I cannot delete one of the preset ringtones (which I'm not trying to do, but just as an example)
Thanks for your time! If you need more information just ask.
(I believe both my iPod and iTunes are up to date)I believe you just are able to delete them from iTunes.
Hope it will be helpful -
When clicking on a lookup, firefor does not allow me to select from the list
When I use firefox, the website I am on has lookup fields located on it, firefox does not allow me to select my preferred option from the list. also when I slect another lookup from a list it displays the message 'invalid lookup value located in field ......'
This does not happen in IEStart Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
* [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") -
'''I can not eliminate ASK engine from the list. It came back by itself. Please, tel me how I can eliminate this problem.
Another problem, this browser is no longer compatible with some institutions. .'''Step by step, how did you arrive at seeing this agreement?
-
Replacement from the Value of an Attribute*
Replacement from the Value of an Attribute
With formula variables you can set the processing type Replacement from the Value of an Attribute and create a reference to the reference characteristic for the variable. The attribute Reference to Characteristic (Constant 1) is a dummy attribute that is available with each characteristic. It serves to create a reference to the characteristic, by which it does not need to be aggregated. By choosing this attribute, you can influence the aggregation behavior of calculated key figures in a targeted way and can improve performance during calculation.
1)what does this do in the query?
2)what is the value of the variable created ?(like 1,2 etc {i.e.} it changes or is a constant value like 1)?
E.g. i have created a formula variable zvar , (replacement path type) ref. char is wbselement, then what will be the value of the zvar if its used in a formula
eg. Formula 1 = kef1 kef2zvar.
what will be the value(s) of the variables in the these cases
1. project = 1000,1000.30.
2.project = 2000,2000.30.01
3.proect = 3000,3000.30.01,3000.30.02.
3.) as per the def. its a number which refer to a wbs, then in the FORMULA , will it consider the zvar as a VALUE or what would happen?
Edited by: jumboash on Oct 23, 2009 7:25 PMHi,
ZVAR is not considered as value in the calculation. It is used only to calculate the formula correctly without aggregation of the operands.
For example there are two materials m1 and m2 . total amount has to be calculated for these materials whose quantitys are 10 and 20 and whose prices are 200 and 300 respectively.
Case1:- if ZVAR is not used then the calculation of the fromula will be as follows
qty Price amount
10 * 200 = 2000
20 * 300 = 6000
30 * 500 = 15000 -> The total amount shows is 15000 which is not correct
Case 2: - if ZVAR is used in the calculation of the formula
qty Price amount
10 * 200 = 2000
20 * 300 = 6000
8000 -> The total amount shows is 8000 which is correct
so using the ZVAR in the formula shows the correct result without considering the aggregation . This is useful in the case if the material is not part of rows.
Maybe you are looking for
-
Windows - No Disk Exception Processing Message on iTunes start-up
Every time I start up iTunes I get this annoying Windows Error Message. Windows – No Disk Exception Processing Message c000001e Parameters 75b6bf9c 4 75b6bf9c 75b6bf9c Cancel Try Again Continue If I click any combination of the three buttons many tim
-
Connecting iMac to an existing network using AirPort Extreme
Ok, I've just switched to Macs having used PCs for years. I have an Intel iMac with a built in AirPort card but cannot connect to my wireless network. AirPort can detect that the network is there, I have the 20something didgit 128-bit Hex WEP code an
-
Changes to Dynamic JDBC Credentials for JDev10g
Does anyone have an update to the site at http://otn.oracle.com/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html . The site has not been updated since April 2002. The sample code works great in 9.0.3... but bombs in 10g. I used the code at the link
-
Please help, I want to install broadcom bcm70012 to my hpmini. what should i do? please help. need and answer
-
How to see the abap code in sql language.
hello gurus, very simply put,i dont know sql,but have to write some basic select queries to talk to oracle db... i would like to see the SQL transaltion of the ABAP code which i cant write. for eg: SELECT SINGLE * FROM MARA WHERE MATNR = 'XXXX'. Ho