RobotStudio event

DataBinder Question (5.08)

Small question,

In the RapidDataBindingSource (RDBS) I have the possibility to have more than one member. Does this mean that I can use one RDBS with bindings to different data, that then are spread out over for example many labels.text ?? 

I haven't found a way to adress a certain member of the RDBS when i'm setting the databindings / advanced for a label.

What I do instead is to have one RDBS for each data connected label.

Does anyone have some thoughts on this?

/PerM

Comments

  • Hi PerM,

    I'm not sure if it works, but..

    RDBS  has a RapidDataList where you can add different RapidDataObjects. So if you fill the list with all the members you wan't to control... you can then just make calls to the RapidDataObejects in the list. right? (see the RAB user guide for 5.08/

    Using the FlexPendant SDK - GUI and CAPI - Building the user interface)

    Is this what you meant?

    Q

  • Hi,

    Well, I manage to get the objects in to the RapidDataList. The question is how to adress a specific index in the list, when I use the data binding in a component, for example a AbbLabel. I use the "data bindings / advanced" for this. But I can not find a way to specify which index to use.

    /PerM

  • Hi,

    Try this:


    this
    .tpsLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this .rapidDataBindingSource1.DataSource.Equals(rapidDataObject1) , "Value", true));

     

    Maybe it works.

    Q




  • hy there
    if i have all my modules placed in a combobox, what code should i use to change the module name of a rapidDataObject ?
     
    Thanks

    Hydron2011-11-22 02:02:48