TR_Field params syntax

what's wrong with my assumed syntax here?

fields = ek.TR_Field('TR.BSPeriodEndDate(IncludePartial=No)', {'Period': 'FI-1'})

as after this, get_data throws an error.

Thank you

---> Please work on the documentation of your otherwise fantastic program.

Best Answer

  • vlscout
    vlscout Explorer
    Answer ✓

    solved it.

    You can enter parameters in 2 different ways.

    either

    fields = ek.TR_Field('TR.BSPeriodEndDate', {'Period': 'FI-1','IncludePartial': 'No'})

    or

    fields = ek.TR_Field('TR.BSPeriodEndDate(Period=FI-1,IncludePartial=No)')

    BUT you cannot match the two...

    QUESTION: Why was the syntax for the function created in such a way? Are there any params that require one way or the other? thank you

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.