"workflow" under navision

OliverTOliverT Member Posts: 37
i try to make a "workflow" under navision (i'm not sure if it's called "workflow" ;) )

all i want to do is to show a bmp (saved in a blob-field of course ;) ) of a record in a picture-box and run codeunit x ... after codeunit x finished i want to read the next record (to show another bmp) and run the next codeunit.

my code looks something like this:
record.find('-');
codeunit.run;

record.next;
codeunit2.run;

record.next;
codeunit3.run;
and so on ...

instead of showing every picture the form just shows the first and the last (but not the step's between the first and the last step) :(

Comments

  • kinekine Member Posts: 12,562
    1)What about calcfield on picture BLOB?
    2)What about CurrForm.UPDATE?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • juanborrasjuanborras Member Posts: 35
    It's just a question... is codeunit.run synchronous?
  • kinekine Member Posts: 12,562
    of course, yes...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • OliverTOliverT Member Posts: 37
    1.) calcfield on a blob-field? :?
    2.) currform.update tries to save the record ;)
    currform.updatecontrols just changes anything :(

    hmm ... :roll:
  • kinekine Member Posts: 12,562
    You MUST call calcfield on BLOB to be able to read that blob (or show it on screen as bitmap).

    CurrForm.UPDATE(false) dont save record... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • OliverTOliverT Member Posts: 37
    in the blob-field is a bmp ... i try to show it in a pictrue box ;)
    (but i tried to make a calcfields anyway - no changes :( )

    "currform.update(false);" changes anything :(
  • kinekine Member Posts: 12,562
    Set Name property on Picture Box and use CurrForm.ControlName.UPDATE.
    (where Controlname is the name of the Picture Box)
    It helps.... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • OliverTOliverT Member Posts: 37
    thanks ... it works :D

    "Picturebox" is the name of my control (it's a pictrue box :p)
    "Picture" is the name of the blob-field in my table
    CodeunitX is a variable (type "codeunit") ;)
    FIND('-');
    CALCFIELDS(Picture);
    CurrForm.Picturebox.UPDATE;
    
    CodeunitX.RUN();
    
    IF NEXT = 0 THEN FIND('-');
    CALCFIELDS(Picture);
    CurrForm.Picturebox.UPDATE;
    
    CodeunitX.RUN();
    
    ...
    
Sign In or Register to comment.