Advertisement
stefmerino

Be.as multi-select: Workorders window

Mar 24th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. windowevent postopen
  2.  
  3. addbutton=example=example()=design=button=Example
  4.  
  5. end event
  6.  
  7.  
  8. global function example
  9.  
  10. dw_1.multiselect=true
  11.  
  12. setvar=ll_count=0
  13.  
  14. for=ll_loop=1=<rowcount>
  15.  
  16. if <dw_1.isselect:[ll_loop]> = true then
  17.  
  18. setvar=ll_count=%numadd(<ll_count>,1)
  19. setvar=myarray[ll_count]=<ll_loop>
  20.  
  21. end if
  22.  
  23. next
  24.  
  25.  
  26. for=ll_loop=1=<ll_count>
  27. setvar=ll_row=<myarray[ll_loop]>
  28. messagebox=belnr_id: <dw_1.item.belnr_id:[ll_row].value>, Name:<dw_1.item.ckndname:[ll_row].value>
  29. next
  30.  
  31.  
  32. end global
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement