Get the Calcformula of a Field

ToloTolo Member Posts: 6
Hi,

Someone knows how to get the calcformula of a flowfield as string (variable) programatically, exist any function?

Thanks.

Comments

  • garakgarak Member Posts: 3,263
    Not possible with RecRef, FieldRef or field Table.
    The only way is to read the BLOB in Table Object.
    But this is an bad idea.

    Why do you need this?
    Do you make it right, it works too!
  • ToloTolo Member Posts: 6
    The idea was the automatic display of a form with the fields relationshipped with that flowfield in order the user can fill them. The user choose the field (field reference -class flowfield) and the 'filter' form is presented.

    Yes, it doesn't seem a good idea deal with the Blob Reference.
    So, maybe exporting the object (table) as text. But...

    Thanks.
  • WaldoWaldo Member Posts: 3,412
    Exporting to text in code is a no-go.
    Only way to do it (that I see) is with SendKeys (Object Designer, File, blablabla ... ).

    Once you have your textfile, you can search for your CalcFormula... .

    :-k
    Good luck :wink:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • garakgarak Member Posts: 3,263
    Waldo, this is also an bad idea ;-)
    Do you make it right, it works too!
  • WaldoWaldo Member Posts: 3,412
    An idea is only bad when it has been replaced by a better one :wink: .

    but still ... you're right :mrgreen:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • DenSterDenSter Member Posts: 8,305
    Waldo wrote:
    An idea is only bad when it has been replaced by a better one :wink:
    I can think of endless possibilities for ideas that are bad completely on their own merit though :-k
Sign In or Register to comment.