Discussions

 View Only
  • 1.  Use a text-formula int IF statement to display a GIF

    Posted 07-09-2017 23:20
    So the deal is that when I select a CHECKBOX, a FORMULA-TEXT field is displayed.  This field is the conversion of a FILE ATTACHMENT field to a FORMULA-TEXT field so I can use it in an IF statement.  I am trying to have a GIF image display when the CHECKBOX is true.  This is a graphic to indicate a Priority project.

    If ([TCF Priority GIF] = null,
    null,
    "<a href='"&URLRoot()&"up/" & Dbid () & "/a/r" & [ImageID#] & "/e6/v0' target='_blank' > " & "<img src='"&URLRoot()&"/up/" & Dbid () & "/a/r" & [ImageID#] & "/e6/v0' height='55'\"/>" & "</a>")
    The above is a field in the IMAGE table that is converting the FILE ATTACHMENT to a FORMULA-TEXT field, and it works.  I have created a relationship to the PROJECT table and it just shows up as a broken link.

    Thoughts?

    Ways to make it work?  I want the image to be stored in the app instead of call to an image storage site -> this is because our company blocks outside links to specific sites and I want to avoid this all together.

    Thanks!


  • 2.  RE: Use a text-formula int IF statement to display a GIF

    Posted 07-10-2017 05:43
    I do something similar but handle it with having a Documents table in the same app, and I store my graphics choices as separate Documents records and reference their hard-coded URL's from the formula text field in my Projects table. So there's no relationship needed.


  • 3.  RE: Use a text-formula int IF statement to display a GIF

    Posted 07-10-2017 12:49
    NICE!!!!!!!!!!!  I know for a fact I over think things.  It's always something obvious that gets me.

    Cheers.