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.  Parm Issue

    Employee
    Posted 05-14-2010 15:22

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

    Originally posted by: ehoeger

    I have a RecordCount graph parm as type string. When I substitute this parm into the NumberOfRecords value in the Dummy Input node and value the Run parm to 1000 it executes and generates 1000 dummy input records. However, when I try to deploy the graph as a brx I get a BRX Validtion Error:
    NumberOfRecords not integer

    Integer is not a selectable type in the Parameter Declarations dialogue. Is there a workaround to allow paramater substitution in the Dummy Input node for the NumberOfRecords parm?


  • 2.  RE: Parm Issue

    Employee
    Posted 05-17-2010 09:22

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

    Originally posted by: ltolleson

    You are correct, there is no integer type parameter. The value of a parameter that is defined as a string is interpreted by the scripting language as a String value if the value is enclosed in double quotes. If the parameter value is numeric and there are no double quotes then the value will be interpreted as either an integer or double depending on the value.

    In your case I have not been able to reproduce the error if there is an actual number in the parameter value. If I put an O instead of 0 then I get the error you describe. You might check to make sure there are no spaces, tabs, or non-numeric characters in the parameter value.

    Also, what version of BRE are you using?

    Thanks,

    Larry


  • 3.  RE: Parm Issue

    Employee
    Posted 05-17-2010 12:29

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

    Originally posted by: ehoeger

    I get the same error for all integer parameter values. I have used 0 and 2 with no spaces to make sure. I am using v 4.1.4.2 Build 266.


  • 4.  RE: Parm Issue

    Employee
    Posted 05-18-2010 07:58

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

    Originally posted by: ltolleson

    Erik,

    I just found out this is a known current limitation of the software that will not allow a run parameter to be saved as a BRX without having quotes around the parameter. Because the node is expecting an integer value this does not work. We would need to convert the RecordCount parameter to an int(), but the single line parameter in this node does not parse and execute BrainScript code, so that does will not work for this node.

    Once we fix this limitation, you should be able to use the functionality the way you have it today.

    To get around this limitation I have created a node in the attached graph that gives you not only the functionality of the DummyInput node, but I took it a step further. You can now define the dummy data you want in the DummyData parameter and the node will create an output the size of the RecordCount parameter for each row in the DummyData parameter.

    The DummyData parameter works just like the Static Data node where it accepts comma separated data. The content should be standard CSV-formatted data, with a proper header line (name:type), and data properly separated and escaped. The Dummy Data node will execute once per row in this parameter.

    Enjoy,

    Larry
    Attachments:
    testDummyInput.brg
    testDummyInput.brp


  • 5.  RE: Parm Issue

    Employee
    Posted 05-18-2010 10:02

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

    Originally posted by: ehoeger

    Thanks for the node. It gives me a base to work around the original issue!


  • 6.  RE: Parm Issue

    Employee
    Posted 05-17-2016 05:19

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

    Originally posted by: SteveTaylor

    Is anyone able to download the attachments above. Clicking the link for me downloads the attachment.php file rather than the brg
    If anyone can download, please could you post them as a quote instead so I can copy-paste? Much appreciated.


  • 7.  RE: Parm Issue

    Employee
    Posted 05-17-2016 07:57

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

    Originally posted by: awilliams1024

    This may be an issue that relates to using IE11 (at least my IE 11 downloads the files as attachment.php) You can just download and rename the each of the files to a sensible name with the .brg extension and .brp extension and you will be able to open the graph in BRE.


  • 8.  RE: Parm Issue

    Employee
    Posted 05-17-2016 12:21

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

    Originally posted by: SteveTaylor

    Great, thanks - that worked