• Vignesh Nayak
  • NEWBIE
  • 25 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
Hi All,

Suppose i have a object with
1) 2 Record types RT1 and RT2
2) 1 Picklist named version with 6 values (V1, V2, V3, V4, V5,V6) [3 values restricted to RT1 and other 3 to RT2]
    i.e., RT1 has V1, V2, V3 and RT2 has V4, V5,V6.

Now, I created a VF page with standard controller and defined the picklist field (version) on the page.
Problem : I am able to see only 3 values (V4, V5,V6) on the vf page.

Please suggest me a way so that all 6 picklist values gets displayed on the vf page irrespective of Record type.


Regards,
Vignesh
 
Hi people,

I wanted some clarifications on the set of questions w.r.t Salesforce Dev 401 examination.

Following are the set of questions :


1. Dynamic Dashboards can have a Scheduled Refresh ?  
   A.   True
   B.   False

2. When you delete an analytic snapshot, the source report and target object are also deleted?  
   A.   True
   B.   False

3. How many external Id’s are allowed on an object ?  
    A.   1
    B.   7
    C.   3 
    D. 4
4. Default values can be set on the Dependent Picklist Fields ?  
    A.   True
    B.   False
5. Do the Access granted to reports by the Folders roll up via the role Hierarchy ?  
    A.   Yes 
    B.   No
6. Standard reports parameters (Available Fields, Criteria, time Frame) be changed and saved in the same Standard Report ?  
    A.   True  
    B.   False

7. Can we change URL of the context-specific Help links on any salesforce.com page (one for all)?  
    A.  True
    B.  False

8. Standard components on home page is not editable except  
    A.  Dashboard Snapshot
    B.  Items to Approve
    C.  Recent Items
    D.  Create New...
    E.  Calendar
    F.  Tasks
    G.  Customer Portal Welcome
    H.  Messages & Alerts()
    I.  Custom Links

9. 'Custom links' standard component contains up to how many bookmarks? 
   A.   5
   B.   10
   C.   20
   D.   15

10. Which kinds of custom component can be added to home page?  
   A.  Links
   B.  Image Area
   C.  Bookmarks
   D.  Script Area
   E.  Image/Logo()
   F.  HTML Area

Please do the needful.


Regards,
Vignesh Nayak S
Hi All,

Following code when executed in Anonymous window, gets executed successfully.
But when i am trying to save the same code in develloper console, it is throwing error "   unexpected token: ','   " at the line that has :  M.put(accId,lst); statement.

id accId='00190000010nBb6';
id accId1='00190000010nPg5';
List<Contact> lst=[select Name,LastName,AccountId from Contact where AccountId =: accId];
List<Contact> lst1=[select Name,LastName,AccountId from Contact where AccountId =: accId1];
List<Contact> c2 = new List<Contact>();
   
map<id, List<Contact>> M = new map<id, List<Contact>>();
M.put(accId,lst); 
M.put(accId1,lst1);
   
system.debug('map<id, List<Contact>> ='+M);

List<Contact> C = M.get(accId);
system.debug('List<Contact> C='+C);

List<List<Contact>> C1 = M.values();
system.debug('List<List<Contact>> ='+C1);

For(List<Contact> L1 : C1)
{
C2.addAll(L1);
}

system.debug('List<Contact> c2 ='+C2);



Regards,
Vignesh
Hi All,

Suppose i have a object with
1) 2 Record types RT1 and RT2
2) 1 Picklist named version with 6 values (V1, V2, V3, V4, V5,V6) [3 values restricted to RT1 and other 3 to RT2]
    i.e., RT1 has V1, V2, V3 and RT2 has V4, V5,V6.

Now, I created a VF page with standard controller and defined the picklist field (version) on the page.
Problem : I am able to see only 3 values (V4, V5,V6) on the vf page.

Please suggest me a way so that all 6 picklist values gets displayed on the vf page irrespective of Record type.


Regards,
Vignesh
 
Hi people,

I wanted some clarifications on the set of questions w.r.t Salesforce Dev 401 examination.

Following are the set of questions :


1. Dynamic Dashboards can have a Scheduled Refresh ?  
   A.   True
   B.   False

2. When you delete an analytic snapshot, the source report and target object are also deleted?  
   A.   True
   B.   False

3. How many external Id’s are allowed on an object ?  
    A.   1
    B.   7
    C.   3 
    D. 4
4. Default values can be set on the Dependent Picklist Fields ?  
    A.   True
    B.   False
5. Do the Access granted to reports by the Folders roll up via the role Hierarchy ?  
    A.   Yes 
    B.   No
6. Standard reports parameters (Available Fields, Criteria, time Frame) be changed and saved in the same Standard Report ?  
    A.   True  
    B.   False

7. Can we change URL of the context-specific Help links on any salesforce.com page (one for all)?  
    A.  True
    B.  False

8. Standard components on home page is not editable except  
    A.  Dashboard Snapshot
    B.  Items to Approve
    C.  Recent Items
    D.  Create New...
    E.  Calendar
    F.  Tasks
    G.  Customer Portal Welcome
    H.  Messages & Alerts()
    I.  Custom Links

9. 'Custom links' standard component contains up to how many bookmarks? 
   A.   5
   B.   10
   C.   20
   D.   15

10. Which kinds of custom component can be added to home page?  
   A.  Links
   B.  Image Area
   C.  Bookmarks
   D.  Script Area
   E.  Image/Logo()
   F.  HTML Area

Please do the needful.


Regards,
Vignesh Nayak S
Hi All,

Following code when executed in Anonymous window, gets executed successfully.
But when i am trying to save the same code in develloper console, it is throwing error "   unexpected token: ','   " at the line that has :  M.put(accId,lst); statement.

id accId='00190000010nBb6';
id accId1='00190000010nPg5';
List<Contact> lst=[select Name,LastName,AccountId from Contact where AccountId =: accId];
List<Contact> lst1=[select Name,LastName,AccountId from Contact where AccountId =: accId1];
List<Contact> c2 = new List<Contact>();
   
map<id, List<Contact>> M = new map<id, List<Contact>>();
M.put(accId,lst); 
M.put(accId1,lst1);
   
system.debug('map<id, List<Contact>> ='+M);

List<Contact> C = M.get(accId);
system.debug('List<Contact> C='+C);

List<List<Contact>> C1 = M.values();
system.debug('List<List<Contact>> ='+C1);

For(List<Contact> L1 : C1)
{
C2.addAll(L1);
}

system.debug('List<Contact> c2 ='+C2);



Regards,
Vignesh