Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
iterating through array to display in dynamic text box
Divya Ahuj
hi,
I have stored my data set values in 1 array i want to retive them and print them in dynamic text box.
I need to itrate through the array till end..
can ny1 help me for ths..
Find more posts tagged with
Comments
mwilliams
You just want to display them in a comma separated string? Or what? Can you explain more? What is the reason for doing it this way? Why not use your dataSet and a table?
Divya Ahuj
Hi Michael,
I had did with table and dataset but the problem there is box property of css is not getting applied.
But when i use the same box property of css with tags of HTML it is getting applied and result is dislapyed as per my requirements.
Due to the i want to use text box with HTML and Dyanamic text options selected from drop down and in that need to iteratre through the array..
mwilliams
So, you're just unsure of how to step through the array and format the data to display in your report in a HTML text box? If so, you'd just need to check the size of your array and set up a while loop to loop through your array til the end. Inside your while loop, you'd add your HTML for each element of your array to a variable that is storing your HTML string. After the while loop is finished, you'd then, simply output your newly made HTML string. If this is what you're wanting to do, let me know if you need an example.