46. How to embed a visaulflow in a visualforce page ?
Ans: Use this syntex to embed flow in vf page : <flow:interview />
Ans: Use this syntex to embed flow in vf page : <flow:interview />
47. How to enable inline editing in visauflorce page ?
Ans You can enable inline editing in visualforce page by using <apex:inlineEditSupport> component.
Ans You can enable inline editing in visualforce page by using <apex:inlineEditSupport> component.
48. What is trigger.new in trigger ?
Ans: trigger.new is a list of records that are in the context of trigger or becuase of these records(modification,Creation, deletion) the trigger has been called
Ans: trigger.new is a list of records that are in the context of trigger or becuase of these records(modification,Creation, deletion) the trigger has been called
49. How do we bulkify the trigger ?
Ans: Bulkfification requires iterating over all the records in trigger context
for example : for(account ac: trigger.new){
// your logic here
}
Ans: Bulkfification requires iterating over all the records in trigger context
for example : for(account ac: trigger.new){
// your logic here
}
50.How can we get the old value in trigger ?
Ans: use trigger.old map for getting previous values of fields.
Ans: use trigger.old map for getting previous values of fields.
51. Can we modify records directly in trigger.new ?
Ans: trigger.new is a read only list, but field values can be changed in case of before trigger
Ans: trigger.new is a read only list, but field values can be changed in case of before trigger
52. What does the error "list has no rows for assignment" mean?
Ans: it means the list you are trying to access has no values in it.
Ans: it means the list you are trying to access has no values in it.
53. Why should we not write select query within for loop?
Ans: Writing select query within for loop may hit the governer limit of 100 select queries.
Ans: Writing select query within for loop may hit the governer limit of 100 select queries.
54. What should we do to avoid view state error in visualforce page?
Ans: Clear unused collections, define variable as transient.
Ans: Clear unused collections, define variable as transient.
55. What is a sandbox org?
Ans: It is the exact copy of your production org.
Ans: It is the exact copy of your production org.
No comments:
Post a Comment