Skip to main content

Search

Search

Linking Format To Database?

Comments

7 comments

  • Avatar
    Shotaro Ito

    On BarTender's template design, you can name the datasource even though it has database field.

    From .net SDK's LabelFormatDocument.Substrings, you can fill the variables.

     

    If the question is to name data source via SDK code, then there's no such options - you have to do that manually.

    0
  • Avatar
    Legacy Poster

    Can you explane this naming of the datasource in more detail please?

    0
  • Avatar
    Canguita

    You can naming your Data Source in the item properties. Please check the attached screenshot

    0
  • Avatar
    Legacy Poster

    Sorry but there is no screenshot!

    0
  • Avatar
    Legacy Poster

    If I unterstand Shotaro right, I have access to the data field names from the format --> format.DatabaseConnections.UsedDatabaseFieldNames

    but I can not set the values of this field names via sdk?

     

    Am I right??

    0
  • Avatar
    Legacy Poster

    This is our old visual basic code for Bartender 7.10 Enterprise using ActiveX and this is working:

     

    For i = 0 To btFormat.NamedSubStrings.Count -1
        If btFormat.NamedSubStrings.Item(i).Type = BarTender.BtSubStringType.btSubStringDatabase Then ...
    

    Can you help me to unterstand how this works?

    0
  • Avatar
    Shotaro Ito

    Prior to BarTender 10.1, named data source was called named substring. That can (only) be defined from BarTender GUI, on template design view (as attached - finally.)

     

     

    0

Please sign in to leave a comment.