Extra Space coming while looping through Hash Set in JSP: URGENT
Hi,
I have to loop through the Hash Set in jsp, and display the contents with a comma seperated list.
I am able to display the values withing the set, however.. after every value,
i am getting an extra space and then a comma. How do i get rid of this extra space?
Below is the code snippet
<% Set tagSet = new HashSet();
tagSet = (Set)request.getAttribute(PhotoConstants.REQ_RELATED_TAGS);
Iterator i = tagSet.iterator();
while(i.hasNext()){
String tagName=(String)i.next();
%>
<a href="/outlook/photo/keywords?keywords=<%=URLEncoder.encode(tagName)%>"><%=tagName%></a>
<%if(i.hasNext()==true){%>,<%}%>
<%}%>
I am getting following output:
NY , sky , Sports & Recreation , clouds , New York City , New York
Expected Output:
NY, sky, Sports & Recreation, clouds, New York City, New York
I want space after a comma, not befor comma...
Any help is really appreciated..
Thanks
Deepti
<% while(i.hasNext()) {
String tagName=(String)i.next(); %>
<a href="/outlook/photo/keywords?keywords=<%=URLEncoder.encode(tagName)
%>"><%=tagName%></a><%if(i.hasNext()==true){ %>,<% } %>
<% } %>I think this is an html whitespace thing... try moving your code around to look like what's above (ie move the end of line to inside your scriptlet tag)
Code looks OK...
Similar Messages
-
Problem while looping through record set and tem table for matching data
hi I am using one record set and ane temp table and looping through both to find the match between dates.
If date matches then it shud do some processing otherwise it will return default values(null values).
FOR i IN student_rec .FIRST..student_rec .LAST /*student_rec.school_date has 01-MAR-2012,02-MAR-2012,03-MAR-2012,04-MAR-2012,05-MAR-2012*/
LOOP
l_return_out.school_date := student_rec(i).school_date;
l_return_out.marks_obtained := student_rec(i).marks_obtained;
FOR i IN selected_dates .FIRST..selected_dates .LAST /*selected_dates has 02-MAR-2012,03-MAR-2012,05-MAR-2012*/
LOOP
DBMS_OUTPUT.PUT_LINE(selected_dates(i));
IF selected_dates(i)=student_rec(i).sett_date
THEN
EXIT;
end if;
---------call procedure P1
-----------get output as ret_val1 /*getting ret_val1 as 10 for 02-MAR-2012,03-MAR-2012,05-MAR-2012 */
----------call procedure P2
---------get ouput as ret_val2 /*getting ret_val1 as 20 for 02-MAR-2012,03-MAR-2012,05-MAR-2012 */
if ret_val1>0 0r ret_val2>0
then
l_return_out.has_csts := yes;
l_return_out.cst_present := 10;
l_return_out.cst_absent := 20;
else
l_return_out.has_csts :=No;
l_return_out.cst_present:= 0;
l_return_out.cst_absent := 0;
end if;
end loop;
l_return_out.has_cst := student_rec(i).has_csts;
l_return_out.cst_missing := student_rec(i).cst_present;
l_return_out.cst_existing := student_rec(i).cst_absent;
PIPE ROW(l_return_out);
END LOOP;
RETURN ;
I am expecting this as result
school_date marks_obtained has_csts cst_present cst_absent
01-MAR-2012 20
02-MAR-2012 30 yes 10 20
03-MAR-2012 40 yes 10 20
04-MAR-2012 70
05-MAR-2012 60 yes 10 20
but this as result
school_date marks_obtained has_csts cst_present cst_absent
01-MAR-2012 20
02-MAR-2012 30
03-MAR-2012 40
04-MAR-2012 70
05-MAR-2012 60
Can anybody please highlight the mistake i am doing while processing the logic??
Edited by: 942390 on Jul 13, 2012 8:44 PM
Edited by: 942390 on Jul 13, 2012 8:45 PMI am getting a set values from a record set....student_rec
and on pipelining this record set from 1st till last
i am getting this
school_date marks_obtained has_csts cst_present cst_absent
01-MAR-2012 20
02-MAR-2012 30
03-MAR-2012 40
04-MAR-2012 70
05-MAR-2012 60
so initially has_csts, cst_present and cst_absent is null for all dates.
now have a temp table of selected_dates(which contains these dates 02-MAR-2012,03-MAR-2012,05-MAR-2012)
now I am want to populate has_csts, cst_present and cst_absent with data only for those dates which is present in selected_dates temp table(02-MAR-2012,03-MAR-2012,05-MAR-2012) and that too has_csts, cst_present and cst_absent will be populated with some condition (based on the values from procedure got from P1 and P2).
so want result set to look like
school_date marks_obtained has_csts cst_present cst_absent
01-MAR-2012 20
02-MAR-2012 30 yes 10 20
03-MAR-2012 40 yes 10 20
04-MAR-2012 70
05-MAR-2012 60 yes 10 20
so what could be the possible solution to obtained this.... -
Hello, I am experience a heapdump while looping through a result set from a query I amr unning.
Our system creates an instance of a transfer object representing one row in the result set for each row as it loops through. The result set brings back 36000 rows, so it is creating 36000 objects. As a result, a heapdump is occurring. What can be done to fix this error?even if it holds 360000 rows,
I still think [zadok] idea is a great idea.
you can get, for example first 1000 rows, cacluate it save result, and then get the next 1000 rows, is it make sense?
if you still want to get it by one time, extend your vm mem, normal setting is 64M(I am not sure) -
Strange problem - Extra space coming before period.
I have a strange problem with CR 2008 SP2. I tried in SP3 also . Same problem exists.
Consider a text like "Configuration.". If I add this text in designer and use a preview is shows like "Configuration.". But when I run the report , it displays like "Configuration .". Note the extra spaces coming before period. I am using win xp . And using win form application. The font used Times New Roman. This issue is common to any text shown in report. Where ever a period is displayed , extra space is coming . How to solve this issue.There is an "fix" which has been intentionally not documented in release notes as itu2019s a new hidden API added in XIR2 SP4 and XI3.1 that could cause problems with rendering of other fields. To activate the fix, a configuration file has to be added to the project, called "app.config" (.NET 2.0) and it contains the following information. Then rebuild the solution. Please test thoroughly...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<crystalReportViewer>
<add key="AntiAlias" value="true"/>
</crystalReportViewer>
</crystalReports>
</businessObjects>
</configuration>
Ludek -
How do I go about this? Creating table while looping through dates?
How do I do this? Creating table while looping through dates?
I have a table with information like:
ID---Date---Status
1-------04/23-----Open
1-------04/25-----Open
2-------04/24-----Closed
3-------04/26-----Closed
What I want to do is create another table based on this per ID, but have all the dates/statuses on the same line as that ID number (as additional columns). The problem is that the number of columns needed is to be dynamically decided by the number of dates.
To illustrate my example, I'm looking to achieve the following:
ID---04/23 Status---04/24--Status---04/25--Status---04/26--Status
1----Open--------------<null>-------------Open---------------<null>
2----<null>------------Closed-------------<null>-------------<null>
3----<null>------------<null>-------------<null>-------------Closed
What would be the best way to go about this?
Can someone please point me in the right direction?
Would I need to do some looping?
Thanks in advance!thedunnyman wrote:
How do I do this? Creating table while looping through dates?
I have a table with information like:
ID---Date---Status
1-------04/23-----Open
1-------04/25-----Open
2-------04/24-----Closed
3-------04/26-----Closed
What I want to do is create another table based on this per ID, but have all the dates/statuses on the same line as that ID number (as additional columns). The problem is that the number of columns needed is to be dynamically decided by the number of dates.
To illustrate my example, I'm looking to achieve the following:
ID---04/23 Status---04/24--Status---04/25--Status---04/26--Status
1----Open--------------<null>-------------Open---------------<null>
2----<null>------------Closed-------------<null>-------------<null>
3----<null>------------<null>-------------<null>-------------Closed
What would be the best way to go about this?
Can someone please point me in the right direction?
Would I need to do some looping?
Thanks in advance!I hope you are asking about writing a query to DISPLAY the data that way ... not to actually create such a massively denormalized table .... -
Hi All,
I'm new to Powershell and recently wrote a script that used the system.directoryServices class to bind to Active directory and pull out a bunch of info I need. Problem is that once I have this stuff, I have it in a hash table and I can't seem to pull
out just the pertinent info. As you can see from the pic below, I have a bunch of blank fields....and when I wrote a for to cycle through these and ignore the $null values...i just got back a bunch of system.collectionhashtable system.collectionhashtable system.collectionhashtable...over
and over again. I was hoping someone could help me get out the values I need...do I need to convert this hash table into some other sort of object to work with it? I'm not to sure were I've gone wrong.
This is what I started with to produce the below:
$objDomain = new-object system.directoryServices.directoryEntry
$strTopDomain = $objDomain.distinguishedName
$strTopLDAP = "LDAP://OU=Something,OU=else,OU=other,$strTopDomain"
$objTopOU = new-object system.directoryServices.directoryEntry("$strTopLDAP")
$strTopOU = $objTopOU.distinguishedName
$topFilter = "(&(computerlink=*)(iwstemplatelink=*))"
$topObjSearcher = New-Object System.DirectoryServices.DirectorySearcher($topFilter)
$topObjSearcher.searchRoot = $objTopOU
$topObjSearcher.searchScope = "subtree"
$topObjSearcher.propertiesToLoad.add("computerlink")
$topObjSearcher.propertiesToLoad.add("iwstemplatelink")
$topObjSearcher.propertiesToLoad.add("vpslocation")
$objTopList = $topObjSearcher.findAll()| foreach-object { @{n='Name';e={$_.vpslocation}}, @{n='Value';e={$_.iwstemplatelink}}}
Then I tried a while loop...something along these lines:
$x = 0
$y= $objTopList.count()
while ($x -lt $y){
if($objTopList -ne $null){
write-host $objTopList[$x]
x++
But as I said above....I just got the Sytems.collections repeated over and over. Any help would be appreciated. Really not much of a scripting guy. ThanksWhy are some people bent on being so annoying.
Here is how to unwind the property wrappers on the searchresults collection of searchresult objects.
$objDomain = new-object system.directoryServices.directoryEntry
$strTopDomain = $objDomain.distinguishedName
$strTopLDAP = "LDAP://OU=Something,OU=else,OU=other,$strTopDomain"
$objTopOU = new-object system.directoryServices.directoryEntry("$strTopLDAP")
$strTopOU = $objTopOU.distinguishedName
$topFilter = "(&(computerlink=*)(iwstemplatelink=*))"
$topObjSearcher = New-Object System.DirectoryServices.DirectorySearcher($topFilter)
$topObjSearcher.searchRoot = $objTopOU
$topObjSearcher.searchScope = "subtree"
$topObjSearcher.propertiesToLoad.add("name")
$topObjSearcher.propertiesToLoad.add("samaccountname")
$topObjSearcher.propertiesToLoad.add("computerlink")
$topObjSearcher.propertiesToLoad.add("iwstemplatelink")
$topObjSearcher.propertiesToLoad.add("vpslocation")
$objTopList = $topObjSearcher.findAll()|
foreach-object {
$p=@{
Name=$_.Properties['name'][0]
SamAccountName=$_.Properties['samaccountname'][0]
VPSLocation=$_.Properties['vpslocation'][0]
LWSTemplateLink=$_.Properties['iwstemplatelink'][0]
New-Object PsObject -Property $p
We must use the "Properties" collection as the properties loaded are NOT exposed on the object. THey are also all included as elements of a collection so we need to use the [0] to remove them.
We can use select-object -expand properties to see the properties but the will all be wrapped and delivered as a collection of hashes. See:
PS C:\scripts> $s.FindAll()|select -expand properties
Name Value
ridsetreferences {CN=RID Set,CN=SBS01,OU=Domain Controllers,DC=TESTLNET,DC=local}
logoncount {65535}
codepage {0}
objectcategory {CN=Computer,CN=Schema,CN=Configuration,DC=TESTLNET,DC=local}
iscriticalsystemobject {True}
operatingsystem {Windowsr Small Business Server 2011 Standard}
localpolicyflags {0}
Notice Name/Value pairs and the little squigglies: {}. Not very useful until we unwrap them.
This is one thing that always confuses the unwashed and unlevened of the computer trade. It goes totally against everything they have come to believe. Even I am surprised at how MS executed these bits. It is a big inconvenience until you
program active directory in C or C#...then it all starts to make sense...sort of.
¯\_(ツ)_/¯ -
Loop through result set and delete row
so here is what I need -
I have a query that pulls rows from the Database through a stored procedure.(these are properties in an area)
Before I start looping through the query, I need to check the distance between my current location and the property. If it less than 5 miles, only then should I display that property. The distance in miles will be chosen while submitting the search form.
So is there a way to delete rows from the result set based on the criteria? Or
Is there a better way to accomplish this? I am using the the google api to get the latitudes and longitudes. The other issue to keep in mind is the load time.
ThanksYou can do this the easy way or the hard way. Depends on whether your condition that needs to be checked can be expressed in the form of a SQL where clause. If it can, then do what BKBK suggested, and use a query of query to create a new resultset that only has the rows from the original resultset that don't meet your condition.
If the calculation of the condition is more complex, then do a CFLOOP over the query and examine each row to see if you want to keep it or toss it. if you want to toss it, the delete that row - there is a function in CFLIB.ORG called querydeleterow that should help you. Or, you could just clear out the row's contents and then do the query of query as described in BKBK's post to create a new resultset that doesn't include the blank rows. -
Calculations while looping through dataset
Hi
I've just started using spry which I'm really enjoying. It's
a really great and powerful framework.
I have been able to display a dynamic region and its content
looping through the rows of the dataset.
My problem now is that according to the data in the data set,
I have to make some calculations for each row. I can't seem to find
a way to do it, and don't actually know if it is possible.
this is how my xml looks like:
var xmlStr = "<?xml version=\"1.0\"
encoding=\"iso-8859-1\"?> \
<portfolios> \
<portfolio id=\"12345\"> \
<portfolio_name>Test1</portfolio_name> \
<investment>500000.0000</investment> \
<current_value>513475.7260</current_value> \
</portfolio> \
<portfolio id=\"67890\"> \
<name>Test2</portfolio_name> \
<investment>100000.0000</investment> \
<current_value>103574.6610</current_value> \
</portfolio> \
</portfolios>";
var dsPortfolios = new Spry.Data.XMLDataSet(null,
"/portfolios/portfolio");
var xmlDOMDocument = Spry.Utils.stringToXMLDoc(xmlStr);
dsPortfolios.setDataFromDoc(xmlDOMDocument);
and the display for the data set:
<div spry:region="dsPortfolios"
class="SpryHiddenRegion">
<table>
<tr><th>Name</th><th>Investment</th><th>Current
Value</th><th>Gain</th><th">Pct
Gain</th</tr>
<tr spry:repeat="dsPortfolios">
<td>{name}</td><td>{investment}</td><td>{current_value}</td><td>GAIN_CALC</td><td>GAIN_PE RCENT</td>
</tr>
</table>
</div>
basically, where it says GAIN_CALC and GAIN_PERCENT in the
table, these should be calculation (i.e. GAIN_CALC = current_value
- investment and GAIN_PERCENT = ((current_value -
investment)*100)/investment )
can anybody help me there (if it's possible to do such things
of course)?
ThanksIf you register a post load observer on your data set, you
can perform the calculations on each row and add custom columns
that you can then refer to from your region as data references:
var ds = new Spry.Data.XMLDataSet("portfolios.xml",
"/portfolios/portfolio");
var obs = {};
obs.onPostLoad = function(notifier, data)
var rows = ds.getData();
for (var i = 0; rows && i < rows.length; i++)
var investment = parseFloat(rows[ i ][ "investment" ]);
var currentValue = parseFloat(rows[ i ][ "current_value" ]);
rows[ i ][ "gain_calc" ] = currentValue - investment;
rows[ i ][ "gain_percent" ] = ((currentValue -
investment)*100) / investment;
ds.addObserver(obs);
<div spry:region="dsPortfolios"
class="SpryHiddenRegion">
<table>
<tr><th>Name</th><th>Investment</th><th>Current
Value</th><th>Gain</th><th">Pct
Gain</th</tr>
<tr spry:repeat="dsPortfolios">
<td>{name}</td><td>{investment}</td><td>{current_value}</td><td>{gain_calc}</td><td>{gain_ percent}</td>
</tr>
</table>
</div>
--== Kin ==-- -
seq | id| Name| TotalPc
1 | 22| ABA | 20
1 | 23| ABB | 20
2 | 24| ABC | 20
3 | 25| ABD | 20
3 | 26| ABE | 20
3 | 27| ABF | 20
4 | 28| ABG | 20
5 | 29| ABH | 20
6 | 30| ABI | 20
6 | 31| ABJ | 20
6 | 32| ABK | 20
6 | 33| ABL | 20The above result is returned in a resultset. What i would like to achieve is store these rows in an object that is structured as shown below
public class Name{
String seq
String name;
Arraylist namePcs = new ArrayList()
public class NamePcs{
String id;
String totalPcs;
}Now as you can see in the data, some of the rows belong to the same element. For example, all those with seq=6 should be stored in the same object because they below to the same group i.e. 6.
I tried several combinations of approaches but i always seem to either miss the last one, duplicate them or exhaust the resultset.
Here are some examples of what i tried to do.
Example 1 - This example copies every name into every element.
while(rs.next()){
Name name = new Name();
name.seq = rs.getString("seq");
name.name = rs.getStrign("name");
NamePcs namePcs= new NamePcs()
namePcs.id = rs.getString("id");
namePcs.totalPcs = rs.getString("totalPcs")
name.namePcs.add(namePcs);
seq_no = rs.getString("seq");
}Example 2 - In this example i try to save the child elements only if the seq number is the same but i still get duplicates.
String seq_no = "";
while(rs.next){
if(!seq_no.equals(rs.getString("seq_no"){
Name name = new Name();
name.seq = rs.getString("seq");
name.name = rs.getStrign("name");
if(seq_no.equals(rs.getString("seq_no");{
NamePcs namePcs= new NamePcs()
namePcs.id = rs.getString("id");
namePcs.totalPcs = rs.getString("totalPcs")
name.namePcs.add(namePcs);
seq_no = rs.getString("seq");
}I also tried an inner while loop with an inner rs.next() but that exhausts the resultset. Is there a better way to do this? Thansk in advanc.e
Edited by: ziggy on Sep 23, 2008 9:10 AMHi,
Sorry for not being clear enough. The above was just a quick example to try and show what i am trying to achieve.
What i am trying to achieve is to store the data in objects. The data itself has a one to many relationship. This means that many names will be related to the same sequence number. I would like to store the common names (i.e. those with the same seq no) in the same object in an arraylist.
Maybe this data structure makes more sense
public class seq{
String seq
Arraylist namePcs = new ArrayList() //will contain all names with the same sequence
public class NamePcs{
String id;
String name;
String totalPcs;
}What im hoping to achieve is the following
- The seq object will contain one seq row (either 1,2,3,4,5,6)
- Array list in the seq object should contain all the rows for each individual seq.
- As an example if seq[3].seq = 6, the seq.namePcs() should contain all NamePcs objects tha t have id's (30,31,32,33).
Here is what i am hoping to achieve as the end result (for the first 6 rows)
seq[0]
seq = 1
namePcs[0]
id = 22
name = ABA
TotalPcs = 20
namePcs[1]
id = 23
name = ABB
TotalPcs = 20
seq[1]
seq = 2
namePcs[0]
id = 24
name = ABC
TotalPcs = 20
seq[2]
seq = 3
namePcs[0]
id = 25
name = ABD
TotalPcs = 20
namePcs[1]
id = 26
name = ABE
TotalPcs = 20
namePcs[1]
id = 27
name = ABF
TotalPcs = 20 I hope that made it a bit clear.
Thanks
Edited by: ziggy on Sep 23, 2008 9:41 AM -
Custom pll to disable form messages while looping through block records
I need to loop through block records in CUSTOM pll to check for if one check box is checked or not. But in that process the messages written at the forn level are popping up which are of no use to the user. I want to disable the messages for my looping. I would enable it after the processing in CUSTOM PLL
Regards,
SSHello,
Here is the Forms forum, and you would increase chances to get an answer by posting in the EBS forum.
Francois -
Looping through javabean array in jsp?
Hello,
In my servlet, I created an ArrayList of objects and pass these to a jsp page using:
req.setAttribute("bean", uploadList);
The ArrayList contains objects of the FileBean class, with a getIndex, and getDate methods.
Could any possibly demonstrate how to loop through the ArrayList in the jsp and display the FileBean object values in a html table?
To display the values of a javabean in jsp pages I normally have to use for example, requestScope.bean.getMethod();
ThanksNo, that would be requestScope.bean.attributename, if your getter method has the same name as the attribute you are getting.
To loop through an array you have to use the c:forEach tag. Check google for "jstl foreach example", there are loads of examples. -
Space coming while using address- end address
hi abapers,
i m using address and endaddress to display address and while preview a space-line coming in address.
please tell me how to remove this space.
thanks,hai Sandeep,
For Compressing Leading Spaces Use C Option.
Syntax:
&symbol(C)&
Hope this Will Solve U r Problem.
Regards.
Eshwar. -
Need a Firefox script to loop through a set of web pages
Hi all,
I was wondering if anyone had come across a script for this purpose?
I need to power on a PC of mine, have it automatically start Firefox on startup (easy so far) then load a "loop" of predefined internal web pages that it keeps up on-screen for, say 5 seconds each webpage (5 pages in total that it would flick through)
Is it also possible to script or force Firefox to open in Full screen mode?
Thanks in advance,
ChrisSounds more like you want a slide show, the only difference is if any of those web pages change. Quick check of addons: '''slide show seconds'''
'''[http://example.com Tab Slideshow]''' (13.3 KB) :: Add-ons for Firefox
-- Cycles through tabs as a slideshow. A minimalist extension that offers a configurable time to automatically switch to and display the next tab (and wrap around from the last to the first tab). The slideshow can be customized to auto-refresh tabs, as well as go into slideshow immediately when you open the browser. Extension offers a configurable time to automatically switch to and display the next tab (and wrap around from the last to the first tab).
Quick HOW TO: To start and stop the slideshow, find the "Start Tab Slideshow" menu item under the "Tools" menu (or with Firefox 4 on recent Windows versions, the orange Firefox app button). To change delay and refresh settings, go to the Add-ons Manager, find the extension in the list, and click the Options button (or "Preferences" on a Mac).
When in full screen, you can start/pause the slideshow by pressing ALT+T, and then T. (ALT+T: Open "Tools" menu; T: Start Tab Slideshow)
https://addons.mozilla.org/firefox/addon/tab-slideshow/ -
Hi,
I am quite new on labview, I just started to use it roughly a month ago.
I am trying to simulate impedance measurement (not connected to any load units yet).
I am struggling to find a proper way to change the frequency of the sinwave, after a certain length of time, to make it describe a full spectra of frequency. I don't want to change it at every iteration, but like every 80 seconds, after the start/stop button has been pressed.
To be more clear, I want to set a Max frequency, a Min frequency, and have the program dividing the frequencies by two (10000, 5000, 2500... Assuming the Max is 10000 for example) every 80 seconds. And stopping at the min frequency.
Here is the vi attached.
If you think of better way to run my .vi, please let me know.
Kentmey.
Kentmey
Attachments:
Sin wave start stop.vi 97 KBThe frequency is set by the 'w' parameters in your sine wave function.
So basically, you want a function that reads in the current time and outputs a frequency value starting at 10000 and decreasing by 50% every 80 seconds.
Here is a simple VI that will do exactly that. It takes the data from Elapsed time (s) and delivers a frequency to w.
Right now, it's set to start at 10,000 but you can wire Fmax instead.
Attachments:
Untitled 1.vi 6 KB -
i have a for loop inside of while loop.when i press stop for while loop, i also would like to stop for loop.how can i solve this problem?thanks
Hi fais,
Following through with what JB suggested. The steps involved in replacing the inner for loop with a while loop are outlined below.
You can replace the inner for loop with a while by doing the following.
1) Right-click of the for loop and select "Repalce" then navigate to the "while loop".
2) Make sure the tunnels you where indexing on with the for loop are still indexing.
3) Drop an "array size" node on your diagram. Wire the array that determines the number of iterations your for loop executes into this "array size".
4) Wire the output of the array size into the new while loop.
5) Set the condition terminal to "stop if true".
6)Drop an "OR" gate inside the while loop and wire its output to the while loops condition terminal.
7) C
reate a local of the boolean "stop" button, and wire it into one of the inputs of your OR gate. This will allow you to stop the inner loop.
8) Drop a "less than" node inside the inner while loop.
9) Wire your iteration count into the bottom input of the "less than".
10) Wire the count (see step 4 above) into the top input of the less than. This will stop the inner loop when ever the inner loop has processed the last element of your array.
Provided I have not mixed up my tops and bottoms this should accomplish the replacement.
I will let others explain how to takle this task using the "case solution".
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Maybe you are looking for
-
Arabic text in my web application using iText..
Hey Guys, I'm using the iText library to produce PDF reports in my web application; platform (ADF 11g and Weblogic 10g). I'm having a problem with rendering arabic text on the page, is there a way to print arabic text outside of a PdfPTable ?? I need
-
hi, In subcontracting scenorio , how to maintain the transportion charges . so please give some details . Regards Muthuraman.d
-
HT4259 Airport Express that were part of another network
I have two Airport Expresses that were part of another network and I am now trying to configure them on a new network to wirelessly extend it, but can not discover them on the AirPort Utility and I factory reset them as well and still they are not be
-
Custom Buttons in WebHelp Skin
Hi all, I am trying to add a button to my WebHelp version of my project to enable readers to print the current topic. In my skin editor, I managed to add a custom button, Print, with an image entered window.print() in the JavaScript onClick field tha
-
Less Outputs means no support for multiroom A/V users
Currently using an AppleTV over a 12 room system that uses a 8x8 Component Matrix Switch for video and sends the sound via RCA audio to audio only rooms.....new AppleTV with HDMI only is a joke to the high end users....bad enough the original AppleTV