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.  Changing the value of data in a field?

    Employee
    Posted 05-17-2007 16:19

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

    Originally posted by: cbs

    I have a field that I want to change the data value of. When i do this:

    emit surname.trim() as surname

    it gives me an error that says:
    ERROR initializing expert output:
    1 field definition errors occurred while initializing output, unable to continue.

    Installing log (05/17/2007 12:21:04) ...
    2007-05-17 12:21:04; Level: 2; Type: 0; Desc: "Explicit definition of output field 'Surname' at line 2 conflicts with the following implicit field definitions: 1:Surname (line 2)"; File: "\\src\\tip\\ra_dev\\code\\source\\brain\\ExprTabl eOutput.cpp"; Line: 853; Context: "ExprTableOutput::finishFieldDefinition()"
    2007-05-17 12:21:04; Level: 2; Type: 0; Desc: "1 field definition errors occurred while initializing output, unable to continue."; File: "\\src\\tip\\ra_dev\\code\\source\\brain\\ExprTabl eOutput.cpp"; Line: 872; Context: "ExprTableOutput::finishFieldDefinition()"
    2007-05-17 12:21:04; Level: 2; Type: 0; Desc: "...exception seen"; File: "\\src\\tip\\ra_dev\\code\\source\\brain\\ExprTabl eIo.cpp"; Line: 152; Context: "ExprTableIo::finalizeOutputs()"
    2007-05-17 12:21:04; Level: 2; Type: 0; Desc: "...exception seen"; File: "\\src\\tip\\ra_dev\\code\\source\\brain\\NodeCont rol.cpp"; Line: 977; Context: "Salmon::NED::NodeControl::initializeExpert()"
    Uninstalling log (05/17/2007 12:21:04) ...


  • 2.  RE: Changing the value of data in a field?

    Employee
    Posted 05-17-2007 16:21

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

    Originally posted by: bsmith

    All you need to do is this:

    override emit *, surname.trim() as surname

    notice the "override" keyword. this tells brain that you want to override the value of the data in an existing column