Menu

Export Records with ID

Help
nwessel
2010-10-29
2013-04-29
  • nwessel

    nwessel - 2010-10-29

    Hi,

    we are a happy user of xprocess and thank you for this nice and powerful application.

    We are using custom OGNL Export and would like to add an internal record ID to records we export.
    Does each user story has got an internal ID (like a Primary Key) and if yes, what is the name so we can use it in our script?

    Thanks very much in advance.

    Best regards,
    Norbert

     
  • Tim Shelley

    Tim Shelley - 2010-11-02

    Hi Norbert,

    The method you want to call is getId

     
  • nwessel

    nwessel - 2010-11-02

    Hi Tim,

    thanks very much for the hint. It works fine.
    I post the code in case somebody else is interested:
    #taskReport = :[
    #output = #output +
    '"' + name +'";' +
    closed + ';' + getId() + '\n'
    ],
    #output = '',
    allTasks.{#taskReport(#this)},
    #output

    Best regards,
    Norbert

     

Log in to post a comment.

MongoDB Logo MongoDB