Interview Questions - 2
1. Can we convert the lookup relationship to Master detail relationship?
A: Yes, we can convert the lookup relationship to master detail relationship if and only if all the existing record has valid lookup field.
2. In how many ways we can invoke the Apex class?
A: 1. Visualforce Page 2. Trigger 3. Web Services 4. Email Services
3. Can we create Master Detail relationship on existing records?
A: No, first we have to create the lookup relationship then populate the value on all existing record and then we have to convert it.
4. What is the Difference in render, reRender and renderas attribute of visualforce?
A: render: It works like "display" property of CSS. Used to show or hide element.
reRender: If we want to refresh partial page in visualforce page we have to use reRender.
renderAs: By using this we can convert entire visualforce into PDFand doc. The Syntax is Render as ="pdf"
Note: If you want to convert into Excel or Ms-word use ContentType as a component.
5. How to get the Picklist Value in Apex class?
A:Using Dynamic apex, we can achieve this. On object of field type picklist, call getDescribe().
Then call the getPicklistValues() method. Iterate over result and create a list and bind it to <apex:selectOptions>
6. What is the custom Controll?
A: Custom Control: A custom control is a class Written in Apex that implements all of a page's logic.
any functionality that was already provided in a standard controller.
A: Yes, we can convert the lookup relationship to master detail relationship if and only if all the existing record has valid lookup field.
2. In how many ways we can invoke the Apex class?
A: 1. Visualforce Page 2. Trigger 3. Web Services 4. Email Services
3. Can we create Master Detail relationship on existing records?
A: No, first we have to create the lookup relationship then populate the value on all existing record and then we have to convert it.
4. What is the Difference in render, reRender and renderas attribute of visualforce?
A: render: It works like "display" property of CSS. Used to show or hide element.
reRender: If we want to refresh partial page in visualforce page we have to use reRender.
renderAs: By using this we can convert entire visualforce into PDFand doc. The Syntax is Render as ="pdf"
Note: If you want to convert into Excel or Ms-word use ContentType as a component.
5. How to get the Picklist Value in Apex class?
A:Using Dynamic apex, we can achieve this. On object of field type picklist, call getDescribe().
Then call the getPicklistValues() method. Iterate over result and create a list and bind it to <apex:selectOptions>
6. What is the custom Controll?
A: Custom Control: A custom control is a class Written in Apex that implements all of a page's logic.
any functionality that was already provided in a standard controller.
Comments
Post a Comment