Skip to main content

B1 Validation Item trigger - Pass row number to Macro

Completed

Comments

12 comments

  • Official comment
    Rasmus Jensen

    This is already possible using the $[ROW] or $[CURRENT_ROW] keywords

    In general, you can see all the special keywords that you can use here: https://help.boyum-it.com/B1UP/special-keyword.html

     

     

  • SSP Automation
    Thank you for your request.
    The development team have now added it to our internal planning-system for evaluation.
    [Internal Id: 27441]
  • Oliver Syner

    Thanks Rasmus, 

     

    How do you use that in conjunction with a SET statement in a Macro?

     

    Thanks

    Oliver

  • Rasmus Jensen

    Not 100% sure I understand but if it is to be used as part of a dynamic syntax then you should use the .row dynamic syntax extension. You can learn more about that here: https://youtu.be/sQgN-qb-hvg

    If it is not what your talking about then please give me a bit more context on what you are trying to do here.

  • Oliver Syner

    Hi Rasmus, 

    Sorry, that was a bit vague of me. I have a B1 Validation that triggers when leaving the Item Code field. What I would like to do is then set the values of a couple of UDF's on the same row. I was trying to do this by calling a macro once the validation had been triggered that did a couple of calculations and then used the SET function to set the UDF's value.

    e.g. SET($[$38.U_CUSCODE.0.$[ROW]]|<Value to Set>);

     

    Thanks

    Oliver

  • Rasmus Jensen

    If you want to set them on same row then you do not need to do anything special

     

    Just

    SET($[$38.U_CUSCODE.0]|<Value to Set>);

     

    ...because if the event happens on line level the dynamic syntax will assume that everything you do on the same Matrix will happen on the same line. 

    It is only if the event happens on header level or you want to anything on non-current lines you need to do something special

  • Gopal Rathore

    Hello Rasmus,

    How can I select the current row in a line loop. I'm trying to auto select batches of all lines items in a picklist in a function button click.?.

  • Rasmus Jensen

    In a Line Loop, each loop will automatically use the currently looped line when using the normal $[$item.col.type] syntax (it reacts as if you were on the line) ... 

  • Gopal Rathore

    My problem is I want to auto-select the next row in sequence at the end of the allocation of batches for the current line item. We have syntax for FIRST, LAST, LAST-1., SELECTED but not PREVIOUS or NEXT. I'm looking for PREVIOUS and NEXT options.

  • Rasmus Jensen

    Hi Gopal

    I'm afraid that is not something we have :-(

  • Gopal Rathore

    On the Batch Selection screen, we have to select the next item row to Auto Select the batches and for this purpose, I was looking for a macro command of this kind. It will enhance macro functionality if you can introduce these two options also in the Item, column, row command.

  • Gopal Rathore

    For your information, I was trying to use DoubleClick(Item.RowHeader.0.NEXT) command. Since it didn't work, I have to simulate this functionality by writing a Dynamic Code Univeral function.

Please sign in to leave a comment.