Aspect BC ReadOnly – BC user property
I want to discuss an excellent use of BC user property which lent me a hand to achieve a tricky requirement. The business requirement was to use one applet in two different views. In first view that applet should appear editable while in other it should be Read only. Business did not want to go for cloning the applet as it turns out in making same changes in two different applets and might end up in missing out some changes in either applet. Also the number of fields on the applet was large hence we did not give it a thought of using FieldReadOnly user property in some way.
Finally what came to our rescue was the “Aspect BC ReadOnly” BC user property.
This User Property works with CSSBCBase class.
Steps to configure the requirement:
1. Create a Calculated field lets say “Calculated Read Only” in the respective BC (BC on which the applet is based).The calculated field expression should be such that it always returns value as “Y”, like one can create an expression as IIf ([Id] IS NULL,”N”,”Y”), so that it returns Y for every record available.

2. Create a new record in the Business Component User properties with
Name — Aspect BC ReadOnly: ReadOnly
Value — Calculated Read Only [Name of the calculated field created above]

3. Create a New record in the Applet User Properties of the respective Applet
Name — View Aspect: Account Detail – Orders View [Name of the view in which this applet should appear Read Only]
Value — ReadOnly [This refers to the variable given against the Name of the BC User Property above marked in Bold]

4. Now login to the application and see that in the view mentioned the applet appears to be read only while in other view it is well editable
As can be seen here, in the Account Detail – Contacts View the Applet SIS Account Entry Applet appears editable.

While the same applet SIS Account Entry Applet is entirely Read only in the Account detail – Orders View

If you have any better ideas to achieve this, suggestions are most welcome
Related posts:
- DefaultFocus User Property In Siebel
- Text Length Override User Property
- Business Component User Properties
- Primary Id Field property of Link Object in Siebel
- Named Method Property
- User Property in Siebel

















(1 votes, average: 4.00 out of 5)
Hi,
Instead of this, did you try with one view with the applet mode in view web template item as BASE and in another view the applet mode property value as EDIT (for form applet) or EDITLIST (for list applet) ??? this would do the needful…
This is good stuff. Thanks for posting this tips.
But is there any restriction in the version of Siebel?
Regards
Abhay
Interesting and useful tip
Hi Sendhil
We had thought of using the applet in base mode but then again any UI level cosmetic changes in the web layout to be made had to be made in two different modes and as I said the applet had lot many fields exposed so we did not go for it. Still thanks for putting in your thoughts on the same.:-)
Regards
Neelima
I think that calculated value we can directly put as “Y” ,Instead of that conditon check .(Performance do matters )
Yes, putting “Y” instead of the condition in the calculated field gives the same effect. Thanks for the suggestion TEC !!
Hi Neelima,
This is a very good article about a new user property for me.
But I think using Base mode would have served the purpose.
Meanwhile there is one more solution coming to my mind, we can achieve this functionality by using BC Read Only Field property:
At Application -> PreNavigate method we have to write a small code to set our profile attribute for the view in which we need to show readonly applet.
if (DestViewName == “View Name which requires read only applet”)
TheApplication().SetProfileAttr(“Readonlyapplet”,”Y”);
else
TheApplication().SetProfileAttr(“Readonlyapplet”,”N”);
Now move to BC and create a calculated field :
Name = Calculated ReadonlyApplet
Value= IIf (GetProfileAttr(“Readonlyapplet”) = “Y” , “Y”, “N”)
Now move to BC User Property and create a new user property:
Name : BC Read Only Field
Value: Calculated ReadonlyApplet
This also can serve the purpose.
Yes it is using server side script and some person may not like it as using script is not a good practice.
hi,
I tried this solution but it also makes the child applet read only….
HI..
Suppose 2 views having same applet1
goto Sitemap
Adminstran Appli -> Respons.
make “Read Only View” property TRUE for one of view that will b read only, and other having “Read Only View” property False will editable. You can logoff & login again in case changes nt reflects.
Tyr & lmk in dose it wrk..
Hi
Thansk Guys for Sharing your Knowledge and Amazing Stuff
I have Tested this and Really Works very good
Thanks
Babu Rajendra Prasad
Dears
Does any one has worked on ” EAI Siebel Adapter “, “Execute” Method?
If any of you Guys Worked on Real-Time / Implemenation Methodology please share the same
Thanks in Advance
Babu Rajendra Prasad
Hi,
Thx Author..
I think it will be useful, when we want to override the behavior of NO UPDATE property of applet.
if giving BC Readonly all records get read only, but only one field should be editable how, can any one help me out.
Hi All,
Can somebody through light on one of our req.. I want to me make a field editable for only editable for new recods using config… and its should readonly for the existings records.
Thanks..
Leave your response!
Our Stats
hit counter
Author Spotlight
Neelima Chorbele
Website: http://www.siebeloracle.com/ http://siebeloracle.comJoin us in Facebook !!!!
Donate
If you find this blog useful to you, please consider making a small donation to help contribute to further development. Thanks for your kind support!
Hosted By
SIEBEL BOOKSHELF
Advertise With Us
Place your advertisement anywhere in the website.
[Nominal Rates/Genuine readers]
For details reach us at contact@siebeloracle.com
Training Partner
Advertisement
Advertisement
Recent Comments
Most Commented
Most Viewed
Log in | Entries (RSS) | Comments (RSS) | © Copyrights Siebel Expert Panel 2007-2011
Disclaimer: All information is offered in good faith and in the hope that it may be of use, but is not guaranteed to be correct, up to date or suitable for any particular purpose. Siebel Experts accepts no liability in respect of this information or its use. Siebel Experts is an India based website which is governed by Indian law. By using this website you are agreeing to abide by Indian law. This site is independent of and does not represent Oracle Corporation in any way. Oracle does not officially sponsor, approve, or endorse this site or its content.Product and company names mentioned in this website may be the trademarks of their respective owners.