%SI_STARTTIME% Question

 7 Replies
 0 Subscribed to this topic
 22 Subscribed to this forum
Sort:
Author
Messages
Cindy
Basic Member
Posts: 16
Basic Member
    Is there a way to make this statement exclude the time?

    %SI_STARTTIME%

    I only want the date and no time on it.

    Thank you.

    Cindy
    <!-- / message -->
    Matthew Nye
    Veteran Member
    Posts: 514
    Veteran Member
      try ToText({MYFIELDNAME }, "dd-MMM-yyyy")
      If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
      Char
      Veteran Member
      Posts: 62
      Veteran Member
        I've used %SI_STARTTIME% in Enterprise within the email subject or filename when scheduling a report to distribute via email but I've never used it within LBI; is this what you're attempting to do? If you have a full copy of CR Server or Enterprise, you can go to the query builder and "SELECT *" where your "SI_ID = X" - for X go to a historical instance and click the sucess; it will show you the SI_ID within the path right after all of the file folders are finished displaying and right before the ~xxxxxxx.rpt. This will show you every field that is exposed and available through the SDK. Even then, I"m not sure they built the hooks to allow the use of every field available from the SDK within the SMTP interface. Sorry it's not a direct answer but it should put you on the path to find the answer. I'll be attaching to an Enterprise environment later today so if you can confirm your exact goal, I'll be happy to do the query to get the available fields from the CMS
        Cindy
        Basic Member
        Posts: 16
        Basic Member
          Yes, I'm trying to use it in Enterprise within the filename when scheduling a report to distribute via email. Thanks for the tips. I will try both suggestions.

          Cindy
          Char
          Veteran Member
          Posts: 62
          Veteran Member
            Okay, that makes sense - I didn't think that was available in LBI. That should do it for you then, you might also look at the SI_ID of a scheduled instance going to email - you'll find different properties within differnt object types report vs. instance for example. Also, a report scheduled to Excel will have different properties than one going to just history so looking at different instance types will be important to finding what you're after.
            Cindy
            Basic Member
            Posts: 16
            Basic Member
              Char, where would I find the query builder in the Crystal Management Console? Thanks.
              Char
              Veteran Member
              Posts: 62
              Veteran Member
                I'm telling you from memory so I may not have it exact - go to the Admin Launchpad and on the left side of the screen there are either two or three windows; I think one says "admin tools" - you'll see links to things like the Instance Manager there - one link will say somelthing like Query Builder or something similar.
                Cindy
                Basic Member
                Posts: 16
                Basic Member
                  OK, thanks