Siebel – Make MVG Field required
by Prachi SharmaSiebel supports the concept of Multi Valued Fields, or the MVF. These generally relate to fields such as Addresses, or Contacts which may possibly be more than one for a particular Account record. You would generally notice an Inter table which would further store the details.
One of the major problems that pops up is to make these fields Required. This does not work if set at Field level or using the Required User Property for these Multi Value fields.
This can really frustrate the developer.
We can implement this by using the script below. I have tried to set this on a field called, “Dummy Field” for demo:
function BusComp_PreWriteRecord ()
{
var DummyField = this.ActivateField(“Dummy Field”);
DummyField = this.GetFieldValue(“Dummy Field”);
if ((DummyField == “”)||(DummyField == null))
TheApplication().RaiseErrorText(“DummyField is a required field.”);
return (ContinueOperation);
}
Replace Dummy Field name above with your field name, and it should work beautifully.
Related posts:
- Siebel – Make MVG Field required – II Hi friends, This is a follow-up post of the post...
- Siebel – Showing red asterisk on a conditionally required field In Siebel vanilla Application, we see a red asterisk (...
- Siebel – Make a field Required, conditionally There was a requirement in our project to make Account...
- Query on the Long Column or Field A typical problem in any EAI project. Others too!! One...
- Siebel – ActivateField() split wide open In Siebel, we generally tend to use the fields on...
- Siebel – Popup Update Only Hi all, I was working with Siebel Multi Valued Links...
- Siebel – InvokeServiceMethod() on Calculated Fields InvokeServiceMethod() is used to invoke Business Services and take values...
[...] post of the post by Prachi yesterday about making an MVG field Required. You can read the post here. Yes, this truly is an issue in development as the straight OOB methods don’t seem to work at [...]
Hi Prachi,
I found a scriptless solution to this. Try this out:
http://geeksbloggingat.com/2009/06/23/siebel-make-mvg-field-required-ii/
Cheers,
this script have a covert bug. when the Field
ummy Field in more mode and the field have not be active. this.ActivateField(”Dummy Field”) will trigger the WriteRecord Event.
Hi Ivan,
If the field is exposed on the UI, it’s already activated. Right ?
Regards ..