Sage 100

 View Only
Expand all | Collapse all

I am using 2014 Visual Integrator. I want to add

Kathryn Scofield

Kathryn Scofield05-28-2015 13:37

  • 1.  I am using 2014 Visual Integrator. I want to add

    Posted 05-28-2015 11:41
    I am using 2014 Visual Integrator. I want to add a where statement to my ODBC SQL statement for Today's date. I have tried WHERE InvoiceDate = now() without success. Any suggestions. I always find date selecting the most difficult.


  • 2.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-28-2015 13:37
    Try InvoiceDate = DAY


  • 3.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-28-2015 13:39
    This is in the SQL query not inside the VI front end. Do I need DAY, DAY(), {DAY} or some other iteration?


  • 4.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-28-2015 13:40
    Or create a calculated field with DAY as the calculation then refer to that in your WHERE clause.


  • 5.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-28-2015 13:50
    Calculated fields can be passed to an ODBC SQL statement?


  • 6.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-28-2015 14:08
    Are you using a SQL query to create the source file?


  • 7.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-28-2015 14:21
    @LarryBradford try select cast (GETDATE() as DATE) to retrieve the today without the time component.


  • 8.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-28-2015 14:23
    There is no Now() in SQL and dates are stored in binary with a time stamp so it's WAY too precise unless you restrict it to examining just the Date portion.


  • 9.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-28-2015 15:27
    I wrote a VI export job that used the following on the record selection for the DateUpdated field to pull only the Sales Orders where the date updated is equal to the current date: EVS(""DTE(0:""""YYYYMMDD"""")"")


  • 10.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-29-2015 10:38
    I found and tried the cast(getdate() as date) and the now() both through ETG (Education Through Google) without success. My problem is the Sales Order number increment when I use the Selection Tab.


  • 11.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-29-2015 13:51
    @LarryBradford I'm still unclear about source file and import or export goal. If


  • 12.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-29-2015 13:53
    Sorry. Message got away from me. If you'd like to give me the big picture by PM, I'll try to help.


  • 13.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-31-2015 19:54
    What I am trying to do is create Purchase Orders from a Sales Order (I know you can use Sage functionality). I do not want to use the Select tab in the import because then numbers get skipped in the sequential assignment and the import runs slower. I was modifying the SQL statement (using an ODBC source). The command to do this in the WHERE statement of the SQL tab is ={fn CURDATE()}. I found it hear. The source does not reference their source. http://sagecity.na.sage.com/support_communities/sage100_erp/f/98/t/77567.aspx


  • 14.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-30-2017 10:53
    Moira (or anyone else that might have an idea) - I am trying to export sales orders through VI with a ship date of ""tomorrow"". I found your EVS(""DTE(0:""""YYYYMMDD"""")"") Select formula in this thread which works great for ""today's"" stuff, but not sure how/if I can edit to add a day. Is this possible? I tried putting a ""1"" and a ""+1"" where you have the 0, but it didn't work. Any thoughts?


  • 15.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-30-2017 12:09
    The EVS is evaluating a string, this is where I got the info http://manual.pvxplus.com/PXPLUS/functions/evs.htm#format1. Prompt for the date at run time is not option for you?


  • 16.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-30-2017 12:11
    Yeah, I'm reading that same article now, but there are no related examples for different days. This will be an automated export, so no, can't prompt. I'm going to check with my development team to see if I can still use this function or not.


  • 17.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-31-2017 07:48
    Amber ... even if you do get '+1' to work, do you really want tomorrow, or is it more like the next business day?


  • 18.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 05-31-2017 08:07
    Luckily, in this case, this will be a 7 day/week export since they deliver every day.


  • 19.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 06-03-2017 17:16
    We got the EVS function to work for ""tomorrow"" with this Select formula: EVS(""DTE(JUL(DTE(0))+1:""""YYYYMMDD"""")"")


  • 20.  RE: I am using 2014 Visual Integrator. I want to add

    Posted 06-05-2017 09:00
    Thanks for posting the resolution @AmberPrayfrock