Skip to main content

Search

Search

Integration by New Database Record - Receiving PO

Comments

6 comments

  • Avatar
    Peter Thane

    Hi Terry,

    Yes you can run integrations on individual machines, I have just had to deploy one like this where I need to use dedicated printers for different computers/users but the printer names are not linked to the ERP system and so this coold not be supplied as a variable in the trigger file.

    You could try

    1. Add a VB Event Controlled Field to the side of the label and give it a name and set it to OnNewRecord that divides the total number by the number per bag and always rounds up (the simplest way I could think of doing this was multiplying the result of the division by -1 then using the Int command and multiply it back again by -1). 

    2. Then add a second text field (which will be a label count in reverse), again given a name for ease and set to serialise and decrement wist a reset after Each Job. Using the Transforms VB set the value to equal the name of the field from 1 above and this will become the starting number of the field. (I called this field labelcount

    )3. On the File>Print screen set the number of Serialised labels to to be set by a Data Source and link this to field in 1 again

    4. For the number of items field, set this to Event Controlled VB and OnIdenticalCopies. For the value of this field use an If...Then...Else statement something like this where bagqty is the items per bag (500 in your example) whilst toteqty is the total number of items

    Value = Format.NamedSubStrings("bagqty").Value

    Value1 = Format.NamedSubStrings("lblcount").Value
    Value2 = Format.NamedSubStrings("toteqty").Value

    If Value1 = 1 then
    Value = Value2 Mod Value

    else Value = Value

    end if

    Value = Value

     

    Pete

    0
  • Avatar
    Terry Teter

    Hi Pete,

    Your example matches very closely with what I have done in one of my tests.  Something odd happens with using the field set to Data Source Serialized, it gives an error message when running in automation.  Works fine when printing statically. Even when I added code for setting the line to equal 1 then update it to the actual count, and even when I set the minimum value to at least be 1 never zero. I wish sharing formats was possible. I wondered if this was a side effect from moving the format from a test sandbox to the live environment?

    0
  • Avatar
    Terry Teter

    Hello Again Pete,

    First message still pending approval so of course I have another question.  How does prompting a user for more data work with your integrations?  Is it reliable, ever go to the wrong person, who do you direct where it goes?  Anything you can give me helps, as I am setting up my first one. Thanks!

    0
  • Avatar
    Peter Thane

    Have you tried setting the OnAutoSelected value to Value = "1" if that is not already set?

    I am yet to use the "Prompt for Data Input" option, but I believe that will just open the BarTender Data Entry form on the computer where the integration is running although I am not sure what happens if specific user credentials are being used on the For Each Database Record 

    0
  • Avatar
    Terry Teter

    I did get it to work once running locally on my test bench with a sandbox SQL.  I shut it down at the end of the day and it never came back on. To that end, other things are now showing up that make me wonder, such as the record picker is now running so slow it is useless.  It would take 1.45 seconds to change the visibility of a single column and the mouse cursor will blink very quickly from normal to busy as long as this format is open.  I created a new format and the cursor was fine until I got deeper into the setup of the format and then experienced the same problem with background usage.  Time to scrub the machine! When tests go wrong.

     

    Thanks for the input.  If I do ever get this running maybe I can do a synopsis of the project for others.

    0
  • Avatar
    Peter Thane

    I am in a bit of a similar boat with Integration Builder, it was working fine, then after a lovely Windows update it only works intermittently. Everything else works and the integrations work on other computers just not on mine so I need to find the time to do a full removal and reinstall of BarTender as that should resolve things

     

    0

Please sign in to leave a comment.