|Siebel Open UI Architecture|
Question 4 : What is Physical renderer or PR?Answer: PR layer is reponsible for builing the user interface, it binds events and data from PM layer to physical controls. Just like PM, PR can also be extended. Focus in PR should be to change representation(look and feel) of UI elements and manipulating data and doing validations.
Question 5: What is Plugin Wrapper? How it is different from PR?Answer: PW or plugin wrapper js files are control specific PR . PW helps to build and use HTML 5 widgets in Siebel UI. PW should be used to change the behaviour of specific control in Open UI. Example for use of PW would be the slider control, map control etc..
Question 6: How to update manifest for a new PR layer?Answer: To create new PR layer for Siebel developer has to follow following steps
- First place the new file in custom folder of web server.
- Go to Administration - Application > Manifest Files and create new record for the new file created.
- Go to Administration - Application > Manifest Administration and create new record for Applet and Type = Physical Renderer. Create condition for the manifest record and pick the in file name created in step 2.
Question 7: What is the difference between Init() and Setup() of Open UI framework?Answer: Both Init() and Setup() method are called when object is initialized. It is recommended that Init() method should be used to attach event listeners and overriding methods. Setup Method additionally receives property set containing data and metadata(system properties and user properties) from server and it should only be used if there is a need to change the property set.
Question 8: How can we provide different UX/UI in Siebel Open UI for certain group of users?Answer: Create a new responsibility for the group of users and use this reponsibility in Manifest Condition to call Physical Renderer file which changes the UI.
Following syntax can be used to achieve functionality.
IIf(InList(“Junior Sales Representatives”,GetProfileAttrAsList(“User Responsibilities”)))
Question 9: Where does Siebel Open UI CSS files located on web server?Answer : CSS and images files are by default placed on web server PUBLIC\enu\files folder.
Open UI achieves dependency injection by AttachEventHandler method in PM layer to attach function to execute when specified event is executed in PR layer.
PR creates dependency by AttachPMBinding method, this helps executing PR code in case property of PM changes.
Bonus jQuery Tips/Questions
Question 1. How would you hide an div element with specific class in jQuery?
Answer: jQuery lets you hide any element in HTML by using .hide method. Syntax could look like:
Question 2: What is the difference between jQuery methods hide() remove()?
Answer: Hide method set the visibility of method to false and element still remains in the current DOM. On other hand remove() method deletes the element from DOM there is no way to bring back the same element back if it has been removed.
Question 3: How can we add new HTML elements in DOM using jQuery?
Answer: New Elements can be added at run time by using jQuery .add() .append() .prepend() and .insertAfter() methods
== only compares values
=== compares values + type
var check1 = '10',
check2 = 10;
check1 == check2 // true
check1 === check2 // false
Answer: debug; statement can be inserted in code to halt the normal execution of script. With help of developer tools, execution can be resumed.
Question 6 : How can we change look and feel of element using jQuery?
Answer: jQuery can be used to add inline CSS . This is possible by using .CSS() method.
For example to to increase the font one can use following syntax:
Guys, to receive more questions like this be email subscribe to blog.
If you like this post and would like see more like this in future please +1 this post below. dont forget to leave your comments below to get specific answers.