Linking Format To Database? 追蹤

0
Avatar
Legacy Poster

Hi and merry christmas!

 

Is there a way to fill variable format fields (supstrings) via .Net SDK which are nomaly filled by ODBC database?

 

Best regards

 

 

7 意見

0
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.)

 

 

登入寫評論。