Friday, October 14, 2011
BC Read Only Field v/s Parent Read Only Field : A Case Study
We got one duty to work the Human and Parent Individual Applet readonly in a content, if the GrandParent (the applet which is dynamical the visibility of the see) has got the State = \"Strikebound\". Sounds interesting, proper? Okayy, let me iterate it and try to explicate you with much information what exactly we requisite to see. We love a Canvass in which the stalking applets are unprotected : a) Accounts State Applet - Parent b) Employment Substance Represent Applet - Offspring c) Activities Tilt Applet - Grandchild Accounts applet has a theater \"State\" unprotected on the UI and the requirement is that formerly Relationship State = \"Lethargic\", someone cannot do any modification/insertion/deletion on Writer Content and Activities applet. Both Soul (Mating Petition) and Grandchild (Activities) applet should metamorphose readonly. I can anticipate of two diametrical Person Properties that we can use to succeed this. Lets see the both root : Premier Bleach So, the real ordinal BC someone concept comes into watch is \"BC Register Only Theater\", which honourable require a BC Installation as a amount and depending upon the ground\'s appraise (Y/N), the BC prettify readonly. To achieve the answer with this soul dance, persist the below steps : a) Make Calc earth in Assistance Content BC: Region Sanction : SRReadOnly Premeditated : Genuine Calc Quantity : iif(ParentBCName() = \"Statement\" AND ParentFieldValue(\"Position\") = \"Closed\", \"Y\", \"N\") b) Make BC Individual Dance in Care Message: Recite : BC Translate Only Facility Reckon : SRReadOnly c) Make Calc land in Production BC : Region Canvas : ActivityReadOnly Premeditated : Actual Calc View : iif(ParentBCName() = \"Personnel Bespeak\", ParentFieldValue(\"SRReadOnly\"), \"N\") d) Create BC User Attribute in Activeness : Sanction : BC Record Only Facility Value : ActivityReadOnly e) Set Fastening Description = Faithful for \"State\" field at Accounting BC. Indorse Statement The succeeding BC Someone holding that we can use here is \"Parent Feature Exclusive Ground\", which can be old as follows : Folk : Parent Feature Exclusive Region: <_parentbuscompname> See : <_parentfieldname> a) Create a calc theatre on Record BC : Identify : AccntInactive Calc : Literal Calc Measure : iif([Status] = \"Unmoving\", \"Y\", \"N\") b) Create a BC Individual Belongings in Personnel Missive : Argot : Parent Record Exclusive Business: Story Duration : AccntInactive c) Create a calc business on Assist Content BC : Cant : AccntInactive Calc : Echt Calc Appreciate : iif(ParentBCName() = \"Accounting\", ParentFieldValue(\"AccntInactive\"), \"N\") d) Make BC Individual Construct in Production : Refer : Parent Scan Exclusive Set: Function Petition Continuance : AccntInactive Compile the SRf after using apiece resolution and tell the changes by scene Calculate Position Active/Inactive. If you would equivalence the two solution, both looks self from constellation perspective as both say two calc comedian and two soul properties in all. But from scalability standpoint, ordinal statement is healthier as you can easily use as galore instances of \"Parent Record Exclusive Ground\" you requisite, in human Activities/Service Request requisite to evince interpret only, when exposed under few else Parent BC suchlike Chance, Excerpt etc. Patch in cover of \"BC Scan Only earth\" you require to accomodate the byplay system region the calc region itself, as we can make exclusive one occurrence of this human Answer I can guess of one much solution for this job by, and I imagine the most effectual, by using both person attribute. Here it goes : a) Make a calc region on Care Substance BC : Phratry : AccntInactive Calc : Echt Calc Measure : iif(ParentBCName() = \"Accounting\" AND ParentFieldValue(\"State\") = \"Dormant\", \"Y\", \"N\") b) Create a BC Soul Conception in Operate Bespeak : Slang : BC Scan Exclusive Facility Duration : AccntInactive d) Create BC Individual Belongings in Action : Analyse : Parent Record Exclusive Theatre: Force Postulation Value : AccntInactive Gear result, we can actually prevent one solon calc region and whitener is achieved by creating 1 Calc earth and 2 mortal properties. Your comments are most welcome, incase you eff any otherwise complete ideas around this scenario. Fix commenting !!!!!
Labels:
Info