Control the display of an image from a checkbox

Hi all

I created a data map specific to drawing files (drawing); This provides information on the dates of approval and validation and allows the recipient(s) of the document and the date of distribution to be recorded.
In order to visually show the fact that the document or its latest version has not yet been distributed, I want to show/hide an icon according to:
- a checkbox associated with the variable "ActivDiffusionDest1"
- the comparison of 2 date variables respectively associated with the variables "DiffusionDestDate1" and "DateAccordQualité"

The control logic associated with the image is as follows:
Hide If
      Or
            And
                  ActivDiffusionDest1 - Equal Number - 1 (checkbox is checked)
                  Or
                        DiffusionDestDate1 - the text contains - Ø (no date is entered)
                        DiffusionDestDate1 - date is less than - ??? (I want to refer here to the value of the variable "DateQualityAccord")
      ActivDiffusionDest1 - Equal Number - 0 (check box is unchecked)

The first difficulty encountered is the comparison with the state of the "ActivDiffusionDest1" checkbox; whatever the comparison used (text = No, text = Ø or number = 0), it doesn't work, my image is not hidden.

The second is the comparison of the 2 date variables: Is it even possible?

Thank you in advance for the help you can give me.

Hi, it's really very technical and the expert contributors in epdm are not too present lately If you have a support ask them directly the question 

1 Like

Hello

First, is the variable ActivDiffusionDest1 of type "Yes or no"?

For date comparisons it's the same, the variables must be of the date type.

However, after testing on the pro 2014 version the command logic does not work on the images (on the rest it works correctly).

Ask the support but it smells like a bug.

 

2 Likes

@cyril.fourrier

 

The variable ActivDiffusionDest1 is of the "YES or NO" type.

The date variables are indeed of the "Date" type.

I made the request to the support, I'm waiting for an answer.

Support Response:

These are 2 bugs under the references:

  • SPR 382762: SOLIDWORKS PDM – Cards: Cannot hide Icon (bmp,ico,avi) images using Control Logic on cards. Planned correction for 2017 a1
  • SPR 532184 : Add ability to compare dates to a variable in control logic rather than static dates. No correction date.

A workaround for whether or not to display an image would be to put the image in a tab and control the display of that tab.

Thanks to Elodie RIFFAUD from AXEMBLE support.