Found Table name for Propriety TextBox for BindingField


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Dustin Taylor (08/20/2008)
You guys do know about the StrataFrame.Tools.Common.KitchenSink(yourDishes) method, right?



That one always seems to get overlooked...




DOH! And I just did the dishes by hand! Wink
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Bill Cunnien (08/20/2008)
...like MicroFour.StrataFrame.Tools.Common.GetEnumDisplayValue(yourEnum)...




Tongue



I seem to recall that when I coded that method, I remember looking at the code to populate a combo in SF source to figure out how to do it. It appears that that code still doesn't use their own method (handles the attributes directly). In any case, I got a bit of experience learning to handle attributes BigGrin
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (660 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
You guys do know about the StrataFrame.Tools.Common.KitchenSink(yourDishes) method, right?

That one always seems to get overlooked...

Edhy Rijo
E
StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Well, I can not agreed with Bill more Smile  all the time I am re-designing my stuff with the new things posted in the forums.

As a matter of fact, the first project I stared with StrataFrame took me a couple of weeks to have it in a decent stage, after the training class I decided to start it over based on the StrataFlix logic and in a matter of days I have this project in a much better stage inside and outside (good looking Tongue).

Edhy Rijo

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
Greg, that's perfect!  Wow, nearly every day I am amazed at what lurks in this framework (like MicroFour.StrataFrame.Tools.Common.GetEnumDisplayValue(yourEnum), eh? BigGrin w00t )!!  Good stuff!

Bill

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

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?
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
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
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

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