This topic contains 5 replies, has 0 voices, and was last updated by alanvarghese 9 years, 3 months ago.
-
AuthorPosts
-
August 13, 2015 at 1:23 pm #5481
cgieselmanI have a saved transaction search that displays sales order lines given they meet certain criteria. One of the results column is a custom hyperlink (Formula: Text field) that when clicked redirects the user to create a new custom record with the fields populated from that line of the search.
All of this works great however the problem I’m running into is I only want the hyperlink to display if there is no applying transaction (a work order in this case) related to the line item.
In an abbreviated form I’ve tried
Code:
case when {applyingtransaction} is null then html to create link else null end
but this results in the link never being shown despite there not being an applying transaction for many of the lines.Any help is appreciated, thanks.
This is a cached copy. Click here to see the original post. -
August 13, 2015 at 3:06 pm #5482
JCiroccoIf you include {applyingtransaction} in the results, do any appear?
-
August 14, 2015 at 5:28 am #5483
Olivier Gagnon NCMight not be null. Might be equal to ”
-
August 14, 2015 at 6:23 am #5484
cgieselmanOriginally posted by JCirocco
View Post
If you include {applyingtransaction} in the results, do any appear?
Yes, of the (currently) two results one does have an applying transaction and it displays normally. This was already a results column, the idea being that if an applying transaction exists the user would click on it, otherwise they would click my link and I don’t want to show them both options on the same line.
-
August 14, 2015 at 6:26 am #5485
cgieselmanOriginally posted by Olivier Gagnon NC
View Post
Might not be null. Might be equal to ”
I tried changing the formula to
Code:
case when {applyingtransaction} = ” then …
but got the same results, that the link never displays.I also tried
Code:
case when {applyingtransaction} is ” then …
just to see but this resulted in an error as expected. -
August 14, 2015 at 8:11 am #5486
alanvargheseCASE WHEN {applyingtransaction} = ‘ ‘ THEN ‘LINK’ ELSE ‘NOLINK’ END
This should work..
-
AuthorPosts
You must be logged in to reply to this topic.