Product: LABELVIEW, CODESOFT
Version: LABELVIEW Gold & CODESOFT Enterprise 2014 and later
|
1. The first thing that needs to be created is the Shared List. Go to Tools, choose Shared data source management and then choose Lists.
2. Create a list and give it a defined name, in this example test. Then add values to the list. (To add a list name and values click on the green plus sign)
3. Next a When Printed field needs to be created. Go to Data sources, select When Printed and then choose Add.
4. With the When Printed field properties open go to the When Printed tab. (The field can be named on the Input tab if you would like for future reference)
5. In the lower left hand corner look for the Pick list drop down. Select test, which is the list created earlier.
6. Underneath the Pick list drop down, make sure the check box for Force data to come from the list is checked.
7. Now go to the Visual Basic Scripting tab.
8. Check the box that states Activate event cell. Enter sample data as listed below, in order to add information to the Shared List:
Application.SharedOwner.Lists.Item("test").AddValue("3")
Application.SharedOwner.Lists.Item("test").Write()
NOTE: This is just sample data. In this example the script will add the value 3 to the drop down. If looking to add more values additional lines would need to be entered.
9. Once the Visual Basic Scripting has been added click OK.
10. Now when going to the Pick List on the Form tab of the Print window, the first two values that were manually entered will appear plus the value of 3 added by the Visual Basic Scripting.
|