Concatenate Form Field Values Follow

0
Avatar
Legacy Poster

I have a Data Entry Form with three Text Input Box form fields (named "Input Box 1", "Input Box 2", "Input Box 3") and a Label Template with four bar codes (three are Code 128, the fourth is Data Matrix).  I would like, in the OnProcessData event of the Data Matrix field to set its value to a concatenation of Fields 1 through 3 from the Data Entry Form.  I thought that the syntax would be something like:

 

Value = Format.Objects("Input Box 1").Value + Format.Objects("Input Box 3").Value + Format.Objects("Input Box 3").Value

 

but "Value" apparently is not a property of Text Input Box object.  Can someone tell me what object I should refer to and what the proper syntax is for what I am trying to do?

3 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

Each text input box should be related to one data source in your template design. If each input box would be already related to the Code 128 data sources, you would just give these sources a named data source, and then relate the Data Matrix bar code to the named data sources instead (not to the input boxes). Named data sources are created via the "Data Source" tab of a certain BT object or now (in BT v10.1 can also be created separately via the "Data Sources" toolbox.

 

So the idea is to relate your data entry form controls with "Data Sources", and then relate these data sources to your Data Matrix bar code.

0
Avatar
Legacy Poster
Comment actions Permalink

Thanks, that got me half-way there.  What I see now is that when I click the Print icon to print the label the Data Entry Form is displayed and allows my three inputs.  In the OnProcessData event of the Data Matrix bar code on the template I have added the following:

 

Value = Format.NamedSubStrings("HandlingUnitDataSource").Value + "," + Format.NamedSubStrings("MaterialNumberDataSource").Value + "," + Format.NamedSubStrings("NetWeightDataSource").Value + ","

 

However, after I complete data entry and click print, the printed label contains only the Default Reply values in the Data Matrix instead of the actual input values.  I do not see a way to directly link all three Data Sources to the Data Matrix Bar Code because the dialogue allows only one Data Source to be selected.  Suggestions?

0
Avatar
Legacy Poster
Comment actions Permalink

Sorry, discovered that I inadvertently put a Data Entry Control on the field that was inhibiting the event.  Corrected that and it worked like a charm.  Thanks!

Please sign in to leave a comment.