Camino: How to concatenate (combine) multiple fields in Camino

Topic

  • Camino

Environment

  • Product Family: Live Product
  • Component: DMP-8000
  • Control System: Show Control
  • Product: Camino
    • User Level: Advanced

Steps

  • Before concatenating, ensure you have a working Schema. See Camino: How to Create A Schema File
  • When concatenating 2 or more data fields in Camino, its recommended to create a dedicated instance of the first data field in your project's Schema file. If you choose not to do this, all instances of the first data field used in your Camino template will be concatenated.

This method combines the jersey number and position of the player for visual clarity. 

For example, a player with the following details:

  • Jersey Number: 23
  • Position: Forward

The formatted string would look like this #23 | FORWARD

This method ensures proper alignment on the graphic, regardless of the length of the jersey number or position.  It provides a consistent and visually appealing way to display player information.  This approach is flexible and can handles varying lengths of jersey numbers (single or double digits) and positions.  It's a smart way to ensure the information fits well in the graphic and is easy to read.  

Five on the Floor_marekup.png

Updating the schema file

  1. Create a backup copy of the working Schema file. Save the backup copy in the event an error is made while editing and the Schema accidently becomes unusable.
  2. Open the Schema for your project. Notepad++ is recommended for editing Schemas. 
  3. Make a copy of the first field to be concatenated.
  4. Name the copy something that best describes what will be the concatenated field 
  5. Save the update to the Schema. 

Figure 1: Sample of the original schema used in this example

Figure1: Original Schema

Figure 2: Sample of the updated schema used in this example

Concatenating two or more fields

  1. In Camino, open the Transitions panel. If this isn't already visible in your Camino workspace it can be opened by: View > Transitions Panel
  2. Select the Data Transitions tab
  3. Select NewTransition button. NewTransition Button.PNG  NewEvent1 will be created on the next available line.
  4. Double-click NewEvent1 and enter a descriptive name in the Event column
  5. Double-click in the Data Field column. This reveals a drop-down list containing all fields in the schema. Select the data field added in the Updating the schema file section above.
  6. Present State Condition column: Don't Care
  7. Next State Condition column: Don't Care
  8. Other Condition column: None
  9. Paste completed line of script/code into the Action column. If there's a typo in a data field name or in the logic, an error box will appear. Camino Error.PNG  You must determine what the error is and correct it.  Refer to Figure 3 below
  10. Rule column: None
  11. Description column: Enter a description of your choice
  12. Check the checkbox in the Event column to enable this concatenation
  13. When you use the first data field in the Data Field panel this field will now always include  the added syntax and 2nd data field

***For completing the Action column, it's often easiest to paste a completed line of script/code from a text application such as Notepad or Notepad++

Figure 3: Example of Action script (created in Notepad and copy/pasted into Action column.

 

KB ID: 000028510


DISCLAIMER: Use of this content may void the equipment warranty, please read the disclaimer prior to performing any service of the equipment.

DAKTRONICS DOES NOT PROMISE THAT THE CONTENT PROVIDED HEREIN IS ERROR-FREE OR THAT ANY DEFECTS WILL BE CORRECTED, OR THAT YOUR USE OF THE CONTENT WILL PROVIDE SPECIFIC RESULTS. THE CONTENT IS DELIVERED ON AN "AS-IS" AND "AS-AVAILABLE" BASIS. ALL INFORMATION PROVIDED IN THIS ARTICLE IS SUBJECT TO CHANGE WITHOUT NOTICE. DAKTRONICS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF ACCURACY, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. DAKTRONICS DISCLAIMS ANY AND ALL LIABILITY FOR THE ACTS, OMISSIONS AND CONDUCT OF YOU OR ANY THIRD PARTIES IN CONNECTION WITH OR RELATED TO YOUR USE OF THE CONTENT. ADJUSTMENT, REPAIR, OR SERVICE OF THE EQUIPMENT BY ANYONE OTHER THAN DAKTRONICS OR ITS AUTHORIZED REPAIR AGENTS MAY VOID THE EQUIPMENT WARRANTY. YOU ASSUME TOTAL RESPONSIBILITY FOR YOUR USE OF THE CONTENT AND ANY LINKED CONTENT. YOUR SOLE REMEDY AGAINST DAKTRONICS FOR DISSATISFACTION WITH THE CONTENT IS TO STOP USING THE CONTENT. THIS LIMITATION OF RELIEF IS A PART OF THE BARGAIN BETWEEN THE PARTIES.

The above disclaimer applies to any property damage, equipment failure, liability, infringement, or personal injury claim arising out of or in any way related to your use or application of the content, whether such claim is for breach of contract, tort, negligence or any other cause of action.