StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Null value as a default value
Null value as a default value
Post Reply
Like
0
Prev
1
2
Jump To Page
Null value as a default value
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Edhy Rijo
E
Edhy Rijo
posted 14 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
dktiong (10/11/2010)
Hi Ehdy,
How do i default my value to topmostvalue if i don't choose anything from that combobox.
please advice
Based on your initial requirement, the value in the database will stay NULL, if you want to assign a default value, then in the Business Object there is a method SetDefaultValues() which you can use to just that. I personally try to avoid NULL values in the database so in my table scripts I have a default value at the table level to avoid getting any NULLs.
It is very important when learning to use SF to invest some time in looking at the help file which is very well structure to be aware of what is available to you and also look at the sample code in the help and then search the forums using keywords like in this case I would use "default values" or something along those lines. The forum is rich with many sample code from the community and the chances that a question from a starter SF developer has already being answer is very high.
Edhy Rijo
Reply
Like
0
Diu King,Tiong
Diu King,Tiong
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 43,
Visits: 264
Hi Edhy,
I did it with your solution and get what you mean, I will invest some of the time to read through the help file.
Thanks alot....
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 14 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
You are welcome dktiong.
Edhy Rijo
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Prev
1
2
Jump To Page
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search