Upload
gryta
View
38
Download
0
Embed Size (px)
DESCRIPTION
USER PROPERTIES. Hiiiii. U S E R P R O P E R T I E S. - PowerPoint PPT Presentation
Citation preview
USER PROPERTIESUSER PROPERTIESUSER PROPERTIESUSER PROPERTIES
Hiiiii
USER PROPERTIES
• User properties are object definitions that are added as children to some objects ,to configure specialized behavior beyond what is configured in the parent object definition's properties. These user properties belong to the following Siebel object types:
• Applet • Application • Assignment • Business Component • Business Service • Business Service Method Arg • Control • Field • Integration Component • Integration Component Field • Integration Object • List Column • View • Virtual Business Component
Setting Numbered Instances of a Userproperty
• Several user properties can have multiple instances on single BC.these can be represented as User property Name n.
• Ex: 1) On Field Update Set n• 2)No Change Field n etc.• Note: These Scenarios will produce unwanted
results.• 1)On Field Update Invoke 10, with no
instances with numbers less than 10 .• 2) Deep Copy 9 and Deep Copy 19, with no
instances numbered between 9 and 19
On Field Update Set(BC)
• Def:This user property allows you to set the value of a field in the business component when another field is updated.
• Syntax: Name:On Field Update Set n • The value of the On Field Update Set user
property consists of three quoted parameters separated by a comma and a space, as follows:
• "FieldToCheck", "FieldToSet", "Value", "Condition“• Requirement:If the Value of Request Category is
‘Other’ Specific Item Value should be Specific Item.If the Request Category Value is updated by other than ‘Other’ Value Specific Item Value should be null.
Solution: Create New Record in BC User propertiesName: On Field Update Set 57Value:"CCS Request Category", "CCS Specific Item", "IIf ([CCS Request Category] <> ""Other"", """", [CCS Specific Item])“
DefaultFocus_Edit(Applet)
• Def:This applet user property sets the field or control within an applet that receives focus when the applet is in Base, Edit, or Edit List mode.
• Syntax: Name: DefaultFocus_Edit • Value: Name of a field or control on the
applet, not enclosed in quotes • Requirement: When the user navigates to
Service Request Screen the cursor should be focused on Intake field
Solution: Create New Record in Applet User propertiesName: DefaultFocus_EditValue: Description
DefaultFocus(Applet)• DefaultFocus_New:This applet user property
sets the field or control within an applet that receives focus when the applet is in New mode.
• Syntax :• Name:DefaultFocus_New • Value: Control Name• DefaultFocus_Query:This applet user
property sets the field or control within an applet that receives focus when the applet is in Query mode
• Syntax:• Name:DefaultFocus_Query• Value: Control Name
DefaultAppletFocus(View)• Def:This view user property sets the applet within
a view that receives focus by default—that is, before a user interacts to dynamically change the applet with focus
• Syntax:• Name:DefaultappletFocus• Value:AppletName• Requirement: When the User navigates to
Contacts Home Page Focus should be on Contact Home Search Virtual Form Applet
• Note: If you set default focus to an applet that is off the screen, In this case behavior may be disruptive because user may not know where focus is.
Solution: Create New Record in View UserpropertiesName:DefaultappletFocus (View)Value: Contact Home Search Virtual Form Applet
Deep Delete(BC)• Def: When you delete the Parent Record.
Corresponding Child Records also automatically deleted.
• Syntax:• Name: Deep Delete• Value: Child BC• Requirement: When The Service Request
is deleted Corresponding Activities should be deleted
• Note: Make sure that two BC’s Shoud’t have NoDelete Set to True.
Solution:Add New Record in BusComp User Properties with the following values.Name:Deep DeleteValue:Action
After adding the user property
Deep Copy(BC)
• Def: When you Copy the Parent Record. Corresponding Child Records also automatically Copied to the New SR.
• Syntax:• Name: Deep Copy• Value: Child BC• Requirement: When The Service
Request is Copied Corresponding Activities should be Copied
Solution: Add New Record in BusComp User Properties with the following values.Name: Deep CopyValue: Action
First Record
Second Record
No Delete Field(BC)• Def: It allows you to restrict the deletion of
records based on the value of the specified field.You Can’t Create More than one instance for one BC.
• Syntax:• Name:NoDelete Field • Value:Field Name• Requirement:When the Multi Field is set to
True the user shouldn’t be able to delete that Record
• Note:CSSBCBase
Solution: Create New Record in BusComp User propertiesName:NoDelete Field Value: Component Warranty Flag
No Change Field n(BC)• Def:This user property disallows changing
a field's value after the record is committed.
• Syntax:• Name: No Change Field• Value: Name of a field • Requirement: After saving the record user
should not able to modify the value of URL• Solution: Create New Record in BC User
properties• Name: No Change Field• Value: Homepage (URL)
Before Creating the User property
New Record
Text Length Override(Field)• Def:This user property allows you to
specify that the text length of the field, rather than that of the database column, defines the maximum field length
• Syntax:• Name:Text Length Override• Value:TRUE• Requirement:• Solution:• Name: Text Length Override• Value:TRUE• Note: It will look for Field’s Text Length Value
otherwise it will be determined by the size of DB Column.
On Condition Set Field Value(BC)
• Def:This user property allows you to specify the value of a field to be set under a specified condition
• Syntax: • Name: On Condition Set Field Value• Value: The value for the On Condition Set
Field Value user property consists of three quoted parameters, separated by a comma and a space, as follows:
• "Condition", "FieldName", "FieldValue"• Requirement:if the Contact’s Job Title is
null set his Email address should be “[email protected]”
Solution:Name: On Condition Set Field ValueValue:" [Job Title] IS NULL", "Email Address", "[email protected]
DisableSort(ListColumn)
• Def:This user property allows a Siebel developer to specify whether an end user can sort a result set on a specific list column.
• Syntax:• Name:DisableSort• Value: TRUE/FALSE• Requirement: User shouldn’t sort on
Account Number.
Solution: Create New record in List Column User propertiesName:DisableSortValue: TRUE
DisableSort(Field)• Def:This single-value field user property
allows a Siebel developer to specify whether an end user can sort a result set on a specific field of a business component
• Syntax:• Name:DisableSort• Value:TRUE/FALSE• Requirement:User should not be able to
sort on Location Code irrespective of the Applet.
Solution: Create New record in Field User propertiesName:DisableSort Value: TRUE
• Def:This single-value field user property allows a Siebel developer to specify whether an end user can execute a wildcard query on a particular field.
• Syntax: • Name:DisableSearch • Value:TRUE or FALSE• Requirement: prevent users from, wildcard
searching on the field Status should be disabled.• Note:But exact match searching is allowed. If its
value is FALSE or not specified, searching is allowed on the field.
DisableSearch(Field)
Solution: Create New record in Field User propertiesName:DisableSearchValue: TRUE
Default Applet Method(Applet)• Def:The Default Applet Method user property
specifies the method that is executed when the user presses the Enter key in the applet
• Syntax:• Name:Default Applet Method• Value:Name of a method that is accessible from
the applet. • Requirement:when the User clicks enter in this
Applet DeleteRecord method should be invoked.so that the record should be deleted.
Solution: Create New record in Applet User propertiesName: Default Applet MethodValue:DeleteRecord
Another Scenario(NewQuery)
CanInvokeMethod: Method Name
• Def:It allows you to enable and disable methods, such as buttons, declaratively at the applet level
• Syntax:Name:CanInvokeMethod: Method Name
• Value:TRUE/FALSE• Requirement: Create a Custom
Button and make that button Enabled .
Solution: Create new Control name Button Enable and type is MiniButton method Invoked as Enable.Add Userproperty asName:CanInvokeMethod: Enable Value:TRUE
Aspect UserProperties(CSSBCBase)
• This user property provides a dynamic way to use the CSSBCBase class. When a particular aspect has been set, CSSBCBase changes its behavior based on the aspect-related setting described in the user property
• If Aspect BC ReadOnly: Aspect is defined, and the current aspect is Aspect, the current record becomes read-only when the value of Field Name is Y.
• If Aspect Child BC ReadOnly: Aspect is defined, and the current aspect is Aspect, the current record's child business components becomes read-only when the value of Field Name is Y.
• If Aspect BC NoInsert: Aspect is defined, and the current aspect is Aspect, the user cannot insert new records when the value of Field Name is Y.
Syntax• Field UserProperty• Name: Aspect Default Value: Aspect• Value: Expression
• BC UserProperty• Name
Value
• Default Aspect Aspect
• Aspect BC ReadOnly: Aspect Field Name• Aspect Child BC ReadOnly: Aspect Field Name• Aspect BC NoInsert: Aspect Field Name
Solution• 1)Create New Calculated Field in BC(Class
CSSBCBase)
• Name:Aspect Field• Value:IIF([Status] = "Not Started", "Y", "N")• EX:{IIF([Id] <> " ", "Y", "N") }//Always ‘Y’• 2)Enter User Properties for Calculated
Field• Name:Aspect Default Value: Aspect• Value: Aspect Field
Create New Records in BC UserProperties
“FALSE”Condition
“TRUE” Condition
Before adding (Child) userproperty
Aspect Child BC ReadOnly: Aspect
Named Method(Applet)• Def:This user property allows you to invoke a business component
or business service method, or set a field value. It can be used in place of scripting.
• Syntax:The value you provide for the Named Method user property depends on the action you want to perform.
• 1.For setting a field value, the value consists of three quoted parameters separated by a comma and a space, as follows:
• "Name", "SET", "Field", "Expression"• When Name is called, the value of Field is set using Expression.• 2.For invoking a business component method, the value consists
of four quoted parameters separated by a comma and a space, as follows:
• "Name", "Action", "BusComp", "Method"• When Name is called, Method is invoked on the BusComp business
component based on the defined Action. For a list of actions, see• For invoking a business service method, the value consists of five
quoted parameters separated by a comma and a space, as follows:
• "Name", "Action", "BusComp", "Service", "Method"
• Requirement:When the User Click on Custom Button New.It should take the user to Activity List View.
• Solution:Add Applet User property as
• Name: Named Method: New• Value:'INVOKE', 'GotoView', '"CCS
Activity List View"'
Commonly Used Properties
• On Field Update Invoke• Picklist PreDefault Field n• Named Method n• Active Field• Active Value
THANK YOU