Skip to main content

Open work order structure from Assembly List

Comments

5 comments

  • Martin Heigl

    Hi,

    First you need a function in the structure window, which go to defined position
    (fert_struktur_browse.src)

    global function boy_goposition
    dw_1.find=belpos_id=<str_parm.belpos_id>
    dw_1.setrow=<value>
    dw_1.scrolltorow=<value>
    end global

    Then you must add the right mouse click function in the workorder position list

    fert_ftpos_browse_alle.src


    Best event for this is bpopuppredredraw

    global function form_loaded
    create=rightclick=text=Open in structure view,name=boyum_hello,bitmap=bmp\allok.png
    end global

    See http://help.beascloud.com/script/index.html?create.htm

    at last we need the click event for this new menu entry

    global function dw_master_item_button_boyum_hello_click
    openwindow=fert_stuktur_browse.psr<tab>&
    belnr_id=<dw_1.item.ftpos_belnr_id.value><tab>&
    belpos_id=<dw_1.item.ftpos_belpos_id.value><tab>&
    command=post=post=boy_goposition()
    end global

    We send belnr_id and belpos_id
    In the structur view the expand is executed by post
    Means: we must wait and best idea is to send "post=post" and then the new own function

    regards

    Martin

  • Paco Bayer

    Hi Martin,

    Thank you very much!

    You helped me a great deal.

    Greetings

    Paco

  • Paco Bayer

    Hi Martin,

    I still don't know how to expand the work order position.

    The function scrolls to the right position, that is great but I can't find the command to expand it as well.

    It would be great if you could help me with that also.

    Kind Regrads

    Paco

  • Martin Heigl

     

    global function boy_goposition
    dw_1.find=belpos_id=<str_parm.belpos_id>
    dw_1.setrow=<value>
    dw_1.scrolltorow=<value>
    fert:expandall=view=bom
    end global

    (not tested)

  • Paco Bayer

    Hi Martin,

    Works! Thank you very much!

    Greetings

    Paco

Please sign in to leave a comment.