Your website has been a great resource to me from the moment I've found it. I
greatly appreciate the time you spend sharing your knowledge and experience
with others. I have found answers to many of my questions on codestore.net.
Thank you again!
I'd like to ask you, or anyone else who may know the answer and familiar with
your sample database. What I am doing now is a few checks within the
ThreadMapDisplay field. When I present a response to comment, I am also
looking to display some additional information about the author of the
comment. So, I have a view, where I do a @DbLookup, and say, depending on
"from" field I can see who the Author is, and then display his location, or his
status, etc.
Here's where I am stuck. As you have shown in your example, I do a @Implode (
x1 + x2 + x3) where x1, x2 and x3 are the HTML code with included fields
displaying who the author is, where he's from etc. What I can't seem to figure
out is how to do a few checks. Say, if the author is anonymous, I don't want
to display x1 in my @Implode, but rather xA. Yet, due to the way @Implode works
I can't seem to run anything of this sort:
@Implode ( @If(author = "Anonymous"; xA; x1) + x2 + x3 ) --- since if I do it,
all the consecutive results use xA whether the author anonymous or not.
I tried to do an @If check right within the x1 html, say like:
x1 :=
< some html here > @If(author = "Anonymous"; "Anonymous"; author) ... etc
and that does not work either.
If you follow my explanation so far, do you think I've made a mistake somewhere
or is it actually a limitation of the recursiveness of the @Implode?
Appreciate your time and possible hint for a direction to fix this!
- Alex
Dear Jake,
Your website has been a great resource to me from the moment I've found it. I greatly appreciate the time you spend sharing your knowledge and experience with others. I have found answers to many of my questions on codestore.net. Thank you again!
I'd like to ask you, or anyone else who may know the answer and familiar with your sample database. What I am doing now is a few checks within the ThreadMapDisplay field. When I present a response to comment, I am also looking to display some additional information about the author of the comment. So, I have a view, where I do a @DbLookup, and say, depending on "from" field I can see who the Author is, and then display his location, or his status, etc.
Here's where I am stuck. As you have shown in your example, I do a @Implode ( x1 + x2 + x3) where x1, x2 and x3 are the HTML code with included fields displaying who the author is, where he's from etc. What I can't seem to figure out is how to do a few checks. Say, if the author is anonymous, I don't want to display x1 in my @Implode, but rather xA. Yet, due to the way @Implode works I can't seem to run anything of this sort:
@Implode ( @If(author = "Anonymous"; xA; x1) + x2 + x3 ) --- since if I do it, all the consecutive results use xA whether the author anonymous or not.
I tried to do an @If check right within the x1 html, say like:
x1 := < some html here > @If(author = "Anonymous"; "Anonymous"; author) ... etc
and that does not work either.
If you follow my explanation so far, do you think I've made a mistake somewhere or is it actually a limitation of the recursiveness of the @Implode?
Appreciate your time and possible hint for a direction to fix this! - Alex