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)
Does the exression builder support a "while" statement?
kevinshih
Would like to do something like the following:
while(dataSet.nasNext()){
if(dataSetRow==1) {
"Yes"
}
}
Thanks!
Find more posts tagged with
Comments
mwilliams
Hi kevinshih,
Can you explain exactly you're tying to achieve?
kevinshih
I was pulling data from a meta-table to retrieve a bunch of name/value pairs to display various properties of an object. Then I wanted to cycle through the name/value pairs to display the appropriate property in the proper table cell.
What I ended up doing is telling the data set to grab all of the name/value pairs. Then in each display table cell, I added a new table and bound it to the data set, but with a filter set on a particular name/value pair. Then I just added the value field to the new table to display the data.
Not sure if this was the best way, but it kept me from writing a lot of script and has the added benefit of only touching the database once.
mwilliams
kevinshih,
Glad you got something to work for you. Let us know whenever you have questions.