How can I show the current system time?

After talking to Epicor support I did find an answer to my question and figured I'd post it. The quick explanation is that a TIME statement works by default with Vantage8 in Progress as well as E9 in Progress and SQL.

Having said that, you can trick it into working in Vantage 8 on SQL by putting a FIRST or LAST selection in your BAQ criteria (instead of an EACH). This forces the query to run with Progress syntax rather than SQL. Once you've got that in there a TIME command will work just fine!

For my BAQ calculated field I used this format to return the current time:

expression: STRING(TIME,"HH:MM:SS")
format: x(8)
data type: Character


Hope it helps someone some day!


Eric

--- In vantage@yahoogroups.com, sysadmin@... wrote:
>
> Hello Len,
>
>
>
> The "4GL reference guide" would be Progress-related and of questionable
> value to you for your SQL implementation. But, if you are still interested,
> you can check out one or both of the following web pages:
>
>
>
> OpenEdge 10.1C: http://communities.progress.com/pcom/docs/DOC-15987
>
>
>
> OpenEdge 10.2A: http://communities.progress.com/pcom/docs/DOC-15972
>
>
>
> Near the top of both pages, you will see a link to download the entire
> OpenEdge documentation set for the respective version, or you can download
> individual documents.
>
>
>
> Regards,
> Scott
>
>
>
> _____
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
> Len Hartka
> Sent: Wednesday, February 03, 2010 5:45 PM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] How can I show the current system time?
>
>
>
> Good Day Eric:
>
> Is the 4GL book you refer to something from\within Epicor or from a
> third party?
>
> Sun Is on M2K (Informix) but,
> Going to: Epicor 9, 9.04 ( maybe 9.05), SQL (live 7/1/2010- maybe
> 8/1/10)
>
>
> len.hartka@sunautom <mailto:len.hartka%40sunautomation.com> ation.com
>
> ________________________________
>
> From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> [mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com] On
> Behalf
> Of precisionwirecomponents
> Sent: Wednesday, February 03, 2010 5:36 PM
> To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> Subject: [Vantage] How can I show the current system time?
>
> We have a number of BAQs and dashboards that use the TODAY function to
> filter data. Is there a similar command for getting the current system
> time into a dashboard filter or calculated BAQ field?
>
> The 4GL reference guide mentions TIME and DATETIME but I can't seem to
> get them to work in a BAQ.
>
> Just wondering if anyone has tackled this before?
>
> Thanks,
> Eric
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
We have a number of BAQs and dashboards that use the TODAY function to filter data. Is there a similar command for getting the current system time into a dashboard filter or calculated BAQ field?

The 4GL reference guide mentions TIME and DATETIME but I can't seem to get them to work in a BAQ.

Just wondering if anyone has tackled this before?



Thanks,
Eric
Good Day Eric:

Is the 4GL book you refer to something from\within Epicor or from a
third party?

Sun Is on M2K (Informix) but,
Going to: Epicor 9, 9.04 ( maybe 9.05), SQL (live 7/1/2010- maybe
8/1/10)


len.hartka@...






________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of precisionwirecomponents
Sent: Wednesday, February 03, 2010 5:36 PM
To: vantage@yahoogroups.com
Subject: [Vantage] How can I show the current system time?




We have a number of BAQs and dashboards that use the TODAY function to
filter data. Is there a similar command for getting the current system
time into a dashboard filter or calculated BAQ field?

The 4GL reference guide mentions TIME and DATETIME but I can't seem to
get them to work in a BAQ.

Just wondering if anyone has tackled this before?

Thanks,
Eric






This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.


[Non-text portions of this message have been removed]
Len, it's a PDF called "OpenEdge Development: Progress 4GL Reference" that I downloaded from the Progress web site a while back. Honestly I can't say it's ever given me a clear answer on anything to date, but I still give it a shot from time to time if I'm really stumped on something (like displaying the current time).

I'm hoping the BAQ calculation tools in E9 are more helpful than those in Vantage 8!


Eric



--- In vantage@yahoogroups.com, "Len Hartka" <len.hartka@...> wrote:
>
> Good Day Eric:
>
> Is the 4GL book you refer to something from\within Epicor or from a
> third party?
>
> Sun Is on M2K (Informix) but,
> Going to: Epicor 9, 9.04 ( maybe 9.05), SQL (live 7/1/2010- maybe
> 8/1/10)
>
>
> len.hartka@...
>
>
>
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of precisionwirecomponents
> Sent: Wednesday, February 03, 2010 5:36 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] How can I show the current system time?
>
>
>
>
> We have a number of BAQs and dashboards that use the TODAY function to
> filter data. Is there a similar command for getting the current system
> time into a dashboard filter or calculated BAQ field?
>
> The 4GL reference guide mentions TIME and DATETIME but I can't seem to
> get them to work in a BAQ.
>
> Just wondering if anyone has tackled this before?
>
> Thanks,
> Eric
>
>
>
>
>
>
> This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.
>
>
> [Non-text portions of this message have been removed]
>
Hello Len,



The "4GL reference guide" would be Progress-related and of questionable
value to you for your SQL implementation. But, if you are still interested,
you can check out one or both of the following web pages:



OpenEdge 10.1C: http://communities.progress.com/pcom/docs/DOC-15987



OpenEdge 10.2A: http://communities.progress.com/pcom/docs/DOC-15972



Near the top of both pages, you will see a link to download the entire
OpenEdge documentation set for the respective version, or you can download
individual documents.



Regards,
Scott



_____

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Len Hartka
Sent: Wednesday, February 03, 2010 5:45 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] How can I show the current system time?



Good Day Eric:

Is the 4GL book you refer to something from\within Epicor or from a
third party?

Sun Is on M2K (Informix) but,
Going to: Epicor 9, 9.04 ( maybe 9.05), SQL (live 7/1/2010- maybe
8/1/10)


len.hartka@sunautom <mailto:len.hartka%40sunautomation.com> ation.com

________________________________

From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
[mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com] On
Behalf
Of precisionwirecomponents
Sent: Wednesday, February 03, 2010 5:36 PM
To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
Subject: [Vantage] How can I show the current system time?

We have a number of BAQs and dashboards that use the TODAY function to
filter data. Is there a similar command for getting the current system
time into a dashboard filter or calculated BAQ field?

The 4GL reference guide mentions TIME and DATETIME but I can't seem to
get them to work in a BAQ.

Just wondering if anyone has tackled this before?

Thanks,
Eric






[Non-text portions of this message have been removed]
Good Day Eric:

Thanks for the response.

Our E9 is SQL not Progress.

Sorry, I lost track of what you were running; or, since Progress is
still the 'middleware", I may still need it.


len.hartka@...


________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of precisionwirecomponents
Sent: Wednesday, February 03, 2010 6:02 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: How can I show the current system time?




Len, it's a PDF called "OpenEdge Development: Progress 4GL Reference"
that I downloaded from the Progress web site a while back. Honestly I
can't say it's ever given me a clear answer on anything to date, but I
still give it a shot from time to time if I'm really stumped on
something (like displaying the current time).

I'm hoping the BAQ calculation tools in E9 are more helpful than those
in Vantage 8!

Eric

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Len
Hartka" <len.hartka@...> wrote:
>
> Good Day Eric:
>
> Is the 4GL book you refer to something from\within Epicor or from a
> third party?
>
> Sun Is on M2K (Informix) but,
> Going to: Epicor 9, 9.04 ( maybe 9.05), SQL (live 7/1/2010- maybe
> 8/1/10)
>
>
> len.hartka@...
>
>
>
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
> Of precisionwirecomponents
> Sent: Wednesday, February 03, 2010 5:36 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] How can I show the current system time?
>
>
>
>
> We have a number of BAQs and dashboards that use the TODAY function to
> filter data. Is there a similar command for getting the current system
> time into a dashboard filter or calculated BAQ field?
>
> The 4GL reference guide mentions TIME and DATETIME but I can't seem to
> get them to work in a BAQ.
>
> Just wondering if anyone has tackled this before?
>
> Thanks,
> Eric
>
>
>
>
>
>
> This e-mail and any attachments may contain proprietary and/or
confidential information. If you are not the intended recipient, please
notify the sender immediately by reply e-mail or at 410-472-2900 and
then delete the message without using, disseminating, or copying this
message or any portion thereof. With e-mail communications you are urged
to protect against viruses.
>
>
> [Non-text portions of this message have been removed]
>






This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.


[Non-text portions of this message have been removed]