User Interface Flashcards

1
Q

What action methods are supported by standard controllers?

A

Save, Quicksave, Edit, Delete, Cancel, List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When are setter methods executed?

A

Setter methods are executed prior to action methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the ‘set’ method used for in regards to Visualforce?

A

The ‘set’ method is used to pass values from the Visualforce page to the controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are setter methods named?

A

Setter methods must always be named setVariable where ‘variable’ is the property name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do we associate a standard controller with a Visualforce page?

A

Use the standardController attribute on the tag and assign it the name of any salesforce object that can be queried using the Force.com API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does every standard controller include?

A

Every standard controller includes a getter method that returns the record specified by the id query string parameter in the page URL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the correct syntax for a custom controller named ‘CustomController1’?

A

public CustomController1(){/code here/}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is true about using the ‘transient’ keyword in a custom controller?

A
  • Transient keywords can be used in Apex classes that define types of fields declared in the serializable classes
  • Transient keywords can be used to declare instance variables that cannot be saved
  • Transient keywords can be used for a field in a Visualforce page that is needed only for the page request duration
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When declaring variables using the ‘transient’ keyword, how does that affect the view size?

A

declaring variables as transient reduces the view state size because they are not transmitted as part of the view state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

To use a standard list controller, what two attributes must be defined within the tag?

A

the standardController and recordSetVar attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the view state used for?

A

The view state is used to store state across multiple pages such as a wizard. The view state is automatically created and holds the state of the page such as data that includes the components, field values, and controller state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A view state only exists within what?

A

A view state only exists within the current user’s session and its size limit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the tag used for?

A

The Visualforce component is used to display the standard detail page of a particular object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the tag used for?

A

the component is used for iterating over a list of values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What method is used to determine whether there are more records than the maximum record limit?

A

the getCompleteResult() method, which returns FALSE if the controller won’t be able to process all of the returned records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is round robin assignment?

A

round robin assignment means that each new lead is assigned to a different user until everyone has been assigned the same amount and the cycle repeats

17
Q

What standard action aborts an edit operation and returns the user to the page where the edit originated?

A

The ‘Cancel’ action is used to abort an edit operation and redirect back to the page where the user submitted the edit request.

18
Q

In a Visualforce page, what data can be inserted using the expression syntax?

A

object (sObject) and global(profiles, users, company, locale, etc.) data can be inserted using the expression syntax

19
Q

What does the

A

the

20
Q

On a visualforce page, what provides the controllers with data context?

A

Data context is provided to controllers by the id parameter of the page

21
Q

What is the preferred method to include JavaScript files in Visualforce pages?

A

save it as a static resource and reference it via

22
Q

What is the tag used for?

A

the tag is used for inserting a full Visualforce page into another page

23
Q

What does the getSelected() method do?

A

The getSelected() method will return the list of records the user has selected

24
Q

What does the getRecord() method do?

A

The getRecord() method will return the prototype record containing the values to apply to all the selected records

25
Q

What does the getRecords() method do?

A

the getRecords() method returns a list of ALL records on the page

26
Q

What does the getListViewOptions() do?

A

the getListViewOptions() specifies what list view options are available to the user

27
Q

What are the 2 valid parameters to pass to the constructor of a StandardSetController?

A
  • Database.QueryLocator
  • List
    any other data types throw an error during compile time
28
Q

In Visualforce, how is primitive data and non-primitive data passed to a method?

A

primitive data types such as strings are passed by value to the controller while non-primitive data types such as lists are passed by reference

29
Q

What Visualforce tags can be used to create tables with custom styles?

A

, ,

30
Q

What is the StandardListController used for?

A

The StandardListController is used for displaying or working on a set of records and comes with built-in pagination features such as next and previous actions for browsing record lists.