How to add field to table dynamically

mallikarjunmallikarjun Member Posts: 29
edited 2006-11-17 in Dynamics AX
Hi,
How to add a field in Table or form dynamically(Using code)
if some one knows the code reply me
thanks in advance,
mallik

Comments

  • WaldoWaldo Member Posts: 3,412
    Sorry man, this is a "no-go".

    You can add it using SQL and Automation.
    This is not enough though. You have to add it in Navision as well ... in the Object (BLOB) ... and this seems to me quite impossible... .

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • WaldoWaldo Member Posts: 3,412
    Wow, I'm posting into the AX forum ... sorry guys, ignore my post, I don't know anything about AX ... (That's what you can have when using RSS feeds ...)

    :oops: :oops: :oops:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • krikikriki Member, Moderator Posts: 9,112
    Waldo wrote:
    Wow, I'm posting into the AX forum ... sorry guys, ignore my post, I don't know anything about AX ... (That's what you can have when using RSS feeds ...)

    :oops: :oops: :oops:
    Waldo,
    it is possible to create a feed per forum.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • WaldoWaldo Member Posts: 3,412
    I will look into that

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • ara3nara3n Member Posts: 9,256
    Actually it is possible to in Navision to create field dynamically. All you have to do is insert records into the field table. :!:

    I have done this once to change the data type of a field from option to CODE.
    I created a temp field in the table transfered the data. changed the data type, and moved the data back. Then deleted the new field. ALL through a report.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • krikikriki Member, Moderator Posts: 9,112
    ara3n,
    You made the same mistake as Waldo, this is a Dynamics AX (formerly Axapta)-topic. :wink:
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • WaldoWaldo Member Posts: 3,412
    I think he just wanted to correct my mistake :oops: ... may be you can move this thread to tips&tricks?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • MikerMiker Member Posts: 105
    Hi, guys.
    I am not MVP, but it seems impossible to add field to table dynamically(Using code).
    But on form you can do it.

    MikeR
    going to Europe
  • mallikarjunmallikarjun Member Posts: 29
    I dont know what you guys are talking about,Any how i found the solution for my question with the help of my friend.
    thanks,
    Mallik
  • mallikarjunmallikarjun Member Posts: 29
    it is possible to add fields in form dynamically
    thanks,
    mallik
  • MikerMiker Member Posts: 105
    Hi, mallik.

    Yes, you can do it. Here is a cod that will help you.
    If your control links to the datasource table
    control = element.design().sectionName(#Detailed).addRealControl(tableId, fieldId);

    MikeR
    going to Europe
Sign In or Register to comment.