LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Error saving as LXA

    Employee
    Posted 08-19-2014 21:03

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Patman

    When I'm creating an LXA file this error is prompted. It's saying that there's something wrong with the "{" character but I'm using it just to refer to a parameter. The node runs without an error. Any thoughts?

    error.jpg



    node:Get_Date_Range_to_Process
    bretype:core::Filter
    editor:Label=Get Date Range to Process
    editor:sortkey=53a241e979e1764e_2
    input:@40fd2c74167f1ca2/=Date_Range_Headers_2.40fd2c7452fa204a
    output:@40fd2c7420761db6/=
    prop:Script=<<EOX

    START_DATE = dateAdjust(date(), {{^StartDateOffset^}}, "days")
    END_DATE = dateAdjust(date(), {{^EndDateOffset^}}, "days")

    S_START_DATE = format("%02d/%02d/%d",START_DATE.day(),START_DATE.month(),START_DATE .year())

    S_END_DATE = format("%02d/%02d/%d",END_DATE.day(),END_DATE.month(),END_DATE.year( ))


    emit S_START_DATE as DateFrom, S_END_DATE as DateTo
    EOX
    editor:XY=300,110
    end:Get_Date_Range_to_Process


  • 2.  RE: Error saving as LXA

    Employee
    Posted 08-19-2014 21:15

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    Try this:

    START_DATE = dateAdjust(date(), long("{{^StartDateOffset^}}"), "days")
    END_DATE = dateAdjust(date(), long("{{^EndDateOffset^}}"), "days")


  • 3.  RE: Error saving as LXA

    Employee
    Posted 08-19-2014 22:22

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Patman

    That did the trick! Thanks!