Object Documentation lines v1.1

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
edited 2008-02-27 in Download section
Object Documentation lines
Functions to get Documentation lines from binary object.

In attached object you can find functions, which get Documentation lines directly from binary object (exported from Object BLOB). You can use this functions to create some versioning tools or autodocumentation.

http://www.mibuso.com/dlinfo.asp?FileID=343

Discuss this download here.

Comments

  • janpieterjanpieter Member Posts: 298
    Very cool! This does create a few possibilities. Thanx!
    In a world without Borders or Fences, who needs Windows and Gates?
  • kinekine Member Posts: 12,562
    I know, it is why I upload it there, I am waiting, that someone create some good tools with it. 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • janpieterjanpieter Member Posts: 298
    Thanks for sharing. You see any chance in reading the C/AL coding as well ? Or C/AL comment lines ? :mrgreen:
    In a world without Borders or Fences, who needs Windows and Gates?
  • kinekine Member Posts: 12,562
    If I have free time, I can try to "decompile" objects, but... :cry:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Timo_LässerTimo_Lässer Member Posts: 481
    janpieter wrote:
    [...] You see any chance in reading the C/AL coding as well ? [...]
    :idea: That would be a very great feature :!:
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • visperasvisperas Member Posts: 31
    i have 28 lines in a table and the process failed.
    this is the error, my english is poor

    It is not left free space in the memory of the C/AL battery to execute this task. There are too many activities you synchronize, produced by recursivas calls of the program. The problem can be solved temporarily closing some of the open activities (but the function follows without being able to execute)
    thanks
  • kinekine Member Posts: 12,562
    I tested with more lines... all is OK...
    limit is only DocText variable length (in this example object). In normal use the lines are stored in a table.

    How much memory do you have on your computer? Which OS :?:

    I tested it on Win XP...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • visperasvisperas Member Posts: 31
    hi,
    I have WXP / SP1
    512 RAM

    This test fail me in table 27

    thanks
    ==============

    ERS INC-0008
    Fecha: 21-Abril-04.
    Descripción: Precios de Compra por Almacén.
    Objeto: Desactivar los campos de Precio de Compra, se utilizará la nueva tabla 50019 - Precio Compra.
    Modificadas funciones para buscar los datos en la nueva tabla.
    Campos:
    Precio coste - OnValidate()
    Precio compra promedio - OnValidate()
    Precio compra estándar - OnValidate()
    % Bfº bruto - OnValidate()
    P. compra promedio div.-adic. - OnValidate()
    Ult. fecha calc. precio coste - OnValidate()
    Valoración existencias - OnValidate()
    % Coste - OnValidate()
    Cálculo precio/bfº bruto - OnValidate()

    Funciones:
    ActlzCostMedioDivAdic()
    ActlzrPCoste()
    BuscarProdProv(VAR ProvProd : Record "Tarifa compra producto";GuardarUdadMed : Boolean;VAR tCodAlm : Code[10])

    Objeto Modificado.

    ERS Manufacturing.
    1. Two new keys added.
    2. Fields above 99000750 added.
    3. Calc. fields Sched. need and receipt changed.
    =================
  • kinekine Member Posts: 12,562
    Tested with your Doc. lines - all OK.

    Please, send me your object exported from Blob (in test object exported into c:\obj.bin). There can be some problem...
    (sacekk@seznam.cz)

    Which version of NA you are using?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • visperasvisperas Member Posts: 31
    fix. thanks
  • StephenGStephenG Member Posts: 99
    Hi Kine

    I have tested this tool and i have found problems if the documentation has
    lines like these

    Version 1
    // this line causing problem
    Added field 1
    Added field 2
    or

    Version 1.01
    ========== // this line causing problem
    Added field 2
    Added code to Ondelete

    I think the problem is that they start with te but they don't end with either control char and e.
    Answer the question and wait for the answer.
  • kinekine Member Posts: 12,562
    Sorry for the long response time... ](*,)

    I forget that I have no watch for this topic...

    The error is repaired in new version of object (1.1) which will be there for download in a short time...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
    Object Documentation lines v1.1
    Functions to get Documentation lines from binary object.

    In attached object you can find functions, which get Documentation lines directly from binary object (exported from Object BLOB). You can use this functions to create some versioning tools or autodocumentation.

    Marks for finding documentation in binary object I found with comparing some objects.
    May be, that it is not exactly, but I did not found case when it will be wrong.

    File export was used but Stream can be used too.

    Attached object is form 99990 with Object table. You can select some object and use Button "Show documentation" - message with Documentation lines from selected object will be displayed (for example on object Form 99990).

    Version 1.1:
    Fixed problem with lines like '
    ' etc.
    Fixed forgotten link to some table...

    http://www.mibuso.com/dlinfo.asp?FileID=343

    Discuss this download here.
  • eromeineromein Member Posts: 589
    Shiiiiiiiiiiiiiiiiiiiiiiit....

    I didn't know objects where saved as blob in the object table. Damn, if only...

    Dude, You've earned yourself a 4 star rating at least!

    Thanks a million for sharing this brilliant info!
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • janpieterjanpieter Member Posts: 298
    haha,

    how did you spend your weekend Emiel? Been working on a version management system based on your knew knowledge? :mrgreen:
    In a world without Borders or Fences, who needs Windows and Gates?
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    When the Documentation Trigger contains only "This is a test" (without "), the button "Show Documentation" displays "This is a te".
    And when the Documentation Trigger contains only "AAA", the button display an empty messagebox.

    I used Navision 4.0, and table 3 for this test.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • kinekine Member Posts: 12,562
    Ok, I will test it more... problem is to recognize end of the coments, it seems, that last 4bytes are lost sometime...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Indeed, sometimes it doesn't call the end-of-comments code, so I get an overflow error.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • kinekine Member Posts: 12,562
    I try to update the objects for better syntax analysis. FB sent me some code that can help... I want to public new version in 2 months...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • TheOrbTheOrb Member Posts: 8
    Hi,

    great stuff done here. Any news about updated version of this tool?

    Thanks in advance.
  • kinekine Member Posts: 12,562
    Sorry, I had no time to update the objects... :-(
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.