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.  Split Field Error

    Employee
    Posted 03-01-2018 05:55

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

    Originally posted by: LauraLacey

    Hello I'm trying to split a field "21000283 | LEBRUN MAXIME" where the | occurs but I keep getting an error in my node, I'm using:



    a = FIELDNAME.split("|")
    NAME1 = a[len(a)-1]
    NAME2 = a[len(a)-2]


    emit *
    emit NAME1
    emit NAME2


  • 2.  RE: Split Field Error

    Employee
    Posted 03-01-2018 06:09

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

    Originally posted by: jmok

    Hi LauraLacey,

    Thanks for posting this in the forum

    Please try this below:

    a = FIELDNAME.split("|")
    NAME1 = a.getItem(0)
    NAME2 = a.getItem(1)


    emit *
    emit NAME1
    emit NAME2

    If you have any questions, let me know - Janice