22
Apr
2009
Siebel – Make a field Required, conditionally
by Madhvi AroraThere was a requirement in our project to make Account Field required in Quote entity conditionally. Had it not been optional, we would have done this by the setting the ‘Required’ property to TRUE for the field in the applet. But, then it would not be conditional, and would always be required.
So, we used an BC field level User Property, ‘Required’. We created an expression which conditionally evaluated to TRUE or FALSE as per our requirement, and we used this against the Required User Property.
Thus, we were able to set the field to required successfully. Though this solved our problem initially, it brought with itself another set of problems which I will discuss in the posts to come.
Related posts:
- Siebel – Showing red asterisk on a conditionally required field In Siebel vanilla Application, we see a red asterisk (...
- Siebel – Make MVG Field required Siebel supports the concept of Multi Valued Fields, or the...
- Siebel – Make MVG Field required – II Hi friends, This is a follow-up post of the post...
- Siebel – HTML Code displayed in Error Message There was a requirement in our project to make Account...
- Siebel – Admin Mode Flag In my last project,we had a requirement of Admin Views,...
- Query on the Long Column or Field A typical problem in any EAI project. Others too!! One...
- Siebel – Autosave Opportunity data – The concept Requirement: System should have capability to automatically save opportunity(RFPs) data...
Before reading this, following is what I would have done:
if (this.GetFieldValue(“Product Id”)== “Dummy Id” && this.GetFieldValue(“Account Id”) IS NULL )
TheApplication().RaiseErrorText(“Account is a required field”);
on the PreWrite Event. Silly me!!
Nice Siebel tip for newbies.
why ur not usedrequired field user property ?
@ Visnu
That is exactly what has been used Visnu. Please read the article carefully.
Use of this user property does not show the red (*) on the corresponding field in the applet. Please read the article below to see how you can show the red (*) on the field made Required using User Property:
http://geeksbloggingat.com/2009/04/23/siebel-showing-red-asterisk-on-a-conditional-required-field/
Hi, good post. I have been wondering about this issue,so thanks for posting. I’ll definitely be coming back to this site for more.