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.  is it possible to dynamically update a graph-level parameter within a graph?

    Employee
    Posted 10-04-2013 13:44

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

    Originally posted by: MountainSteve

    I've searched your forum for an answer, but so far haven't found anything like this.

    I've defined output directory, file name, and file extension as graph-level parameters, and using them my graph builds the file name correctly. I then execute an email node, attaching the file to the email. This too works fine.

    I now want to dynamically append a date/time stamp to the file name (i.e. "file.name.20131004120000.txt"). I build the file name correctly with the date/time stamp, but how do I get that new file name to the email node so that it sends the correct file?

    I've tried passing the new file name into the email node, but it doesn't seem to recognize it. I also tried updating the file name parameter but get a compile error. I also tried using the system variable CurrentDate, but it only has the date (I need the time as well).

    Do you have any suggestions on how I can pass the dynamically-named file name to the email node? Thanks.

    Steve


  • 2.  RE: is it possible to dynamically update a graph-level parameter within a graph?

    Employee
    Posted 10-08-2013 10:11

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

    Originally posted by: MountainSteve

    quick update: I realized this morning that I can rename the file after I send the email with a 'move()' function. The email won't contain the correct file name for the spreadsheet that's attached, but that's okay for now. I'd still like to find out if there's a way to update parameter values dynamically, though!


  • 3.  RE: is it possible to dynamically update a graph-level parameter within a graph?

    Employee
    Posted 10-27-2013 07:04

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

    Originally posted by: Tim Meagher

    Hi,

    Which email node are you using?
    I don't think that the experimental "Send Email" node that is shipped with the product comes with attachment support.
    I believe that there have been several variations to the node published to the forums and potentially in the prototype libraries but am not sure of the specific library and version you are using.

    Currently, there is no {{^CurrentTime^}} or {{^CurrentDateTime^}} parameter, therefore it isn't possible to substitute in the current date and time into a node parameter directly from within a graph when running it through the BRE client.

    There is an enhancement request already in our bug tracking system to add this feature, although I can't say when that will be added.

    However, if you are running this graph in an automated manner, via a BRX (requires a enterprise or workgroup license) then you can pass arguments to the BRX to execute & have these substituted into parameter values.
    Similarly, if you are using the Execute BRX node (which I believe requires one of the aforementioned licenses or I *think* a LD Professional Plus license), then you can provide the current date and time in an input field to the Execute BRX node and have these substituted for parameter values in the compiled BRX graph that the node is trying to execute.

    Regards,
    Tim.