Found Table name for Propriety TextBox for BindingField


Author
Message
Rafael
Rafael
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 216
I Need to know a table name for BindingField.

How i do it ?
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I really don't know what you are asking here.  If you are wanting to know how to use the SF data binding, there are many samples that come with the framework and there is a lot of documentation to this point as well.  Instead of me explaining all of this in a shortened format, please refer to the samples and the documentation.

But in short, you will need to drop a BO on the form, select the BO for the BusinessObject, once this is done, there will b e adrop down populated with the fields that can be bound to the control.  But before you can see any fields, you will have to map that BO within the BO Mapper.

Rafael
Rafael
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 216
Trent L. Taylor, i need to know what table name in Data Base use in Textbox.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Rafael,

I really want to help you, but I am having a hard to understanding your question.  The table name would be whatever table to which you are mapping your business object (BO).  The database would be is not specified at the textbox level, but is part of your connection that is established in the AppMain.vb or program.cs files.  Each BO has a DataSourceKey which is then used to tie itself to the Database Connections setup in the SetDataSources method in your AppMain.vb or program.cs source files.  Again, I think that if you would take a look at some of the samples that many of these questions would be answered for you.

Rafael
Rafael
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 216
I need to know table name because i need to pass for my function in visual studio.

In event Leave for textbox to strataframe, i need to know that a table used and pass for my function
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Rafael,

I don't understand where and what you are referring to.  Can you please give me steps, details, etc.  I really want to help but I am totally lost as to what you are trying to do...sorry Ermm

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Rafael,

Would this do it?  Sorry for the C# if you are a VB guy...

String mTableName = ((MyBO)txtABoundTextBox.BusinessObject).TableName;


Bill
Rafael
Rafael
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 216
preciso em tempo de programação pegar o conteudo da propriedade que msotra o nome da tabela referenciada ao bo atraves do bindingfield



I need in time of programing to know content the property name of table by BO through in BindingField
Rafael
Rafael
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 48, Visits: 216


private void for_cod_Leave(object sender, EventArgs e)

{

String mTableName = ((MyBO)txtABoundTextBox.BusinessObject).TableName;

}





In variable MyBO( name of BO ), how i do for my code to be dinamic?
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Rafael,



Any business object you'd use inherits from BusinessLayer, which has TableName, so:



' VB

Dim tableName As String = DirectCast(Me.txtABoundTextBox.BusinessObject,BusinessLayer).TableName



// C#

String tableName = ((BusinessLayer)txtABoundTextBox.BusinessObject).TableName

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search