StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Enhancement Requests
»
BOM enhancement for custom type fields
BOM enhancement for custom type fields
Post Reply
Like
0
BOM enhancement for custom type fields
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Kirk M Sherhart
Kirk M Sherhart
posted 14 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 41,
Visits: 259
Hi All
I'm using SF in an Oracle environment, which converts all numeric values returned from the database into a. Net decimal type. Many times I want to use the value as an int, so I set the BOM to use a custom type of "int" which generates the following code...
return (int)this.CurrentRow["OBJECTID"];
which causes a runtime cast violation (i.e. unboxing from a decimal to an int is not allowed.)
If instead, BOM would generate the following...
return (int)((decimal)this.CurrentRow["OBJECTID"]);
all would be well.
I'd like BOM to generated custom type fields using the following template...
return (custom-type)((native-db-type)this.CurrentRow[fieldName]);
Thanks!
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
BOM enhancement for custom type fields
Kirk M Sherhart
-
14 Years Ago
Actually instead of changing the BO Mapper, I recommend getting the...
Trent L. Taylor
-
14 Years Ago
Hi Trent
Yes, I currently have to use Custom Code overrides...
Kirk M Sherhart
-
14 Years Ago
Why are you trying to convert this into an integer in the first place....
Trent L. Taylor
-
14 Years Ago
Hi Trent
I use integers for the same reason anyone uses...
Kirk M Sherhart
-
14 Years Ago
This could actually require a very significant change to the BO...
Trent L. Taylor
-
14 Years Ago
Hi Trent
Thank you for considering the change.
...
Kirk M Sherhart
-
14 Years Ago
Well, you are basically asking me how the partial class dynamically...
Trent L. Taylor
-
14 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search