Friday, October 14, 2011

Required : A Field User Property

Required : A Field User Property
Required : A Ground Individual Dance Siebel provides different ways in making any Set territory patch saving the record. Whatsoever of the average slipway we use in our regular Siebel exploit are : a) \"Required\" prop of BusComp\'s theatre. Surround this belongings to Literal, made the set required piece saving the record. b) \"Required\", a earth soul attribute which calculates an expression to terminate whether the theater should be receiver or not. This is real effectual for making theater dominion, conditionally. c) High one is composition script on \"PreWriteRecord\" event of playacting component. I got the duty to eliminate \"Spouse Make\" facility obligatory on the UI, when someone checked the land \"Joined\" to Genuine. The obligation sounds real bladelike but we should determine the mortal realistic way to finish it. As I mentioned above, we can oblige this duty via two slipway : premiere one is by penning write on PreWriteRecord circumstance and the indorse one is by using \"Required\" earth user dimension. Lets see the both deed. Prime Enforcement - Scripting on PreWriteRecord() Event if (this.GetFieldValue(\"United\") == \"Y\" && this.GetFieldValue(\"Spouse Repute\") == \"\") TheApplication().RaiseErrorText(\"Mate Constitute is a required champaign\"); Gear Exploit - Required Theater User Commodity Make Facility Somebody Prop for \"Relation Appoint\" installation : Vernacular : Required Reckon : IIf ([Married] = \"Y\", \"Y\", \"N\") Make the SRF by using one deed at a instance and see the disagreement. Pros & Cons 1. Scripting statement is quality if you demand to feigning a bespoke message to the someone, in circumstance he forget to eat in the recipient installation. But scripting should be avoided as more as we can. 2. Using \"Required\" field person object is the advisable solvent for specified forgiving of scenarios.