• Cody Kindschuh
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi,

In Visualforce,  I would like to create a link that goes directly to a list view we have created.  For example.  in SF1, right now the user clicks attendees, then can go through the different views and click 'Administrators'.  we want to skip the click attendees part, and just have Administrators and the other list views on the original VF page, but when I try referencing a specific list view, it shows up as an error.

Thanks,
I am fairly new with apex triggers, and I have written a basic trigger to create a Vendor Details page when the account type = Vendor.  The problem is I only want it to do this once, and if someone were to change the type to something else, and back to Vendor, it creates the page again.

here is my trigger so far:

trigger AutoCreateVendorDet on Account (after update) {
for (Account a : Trigger.new) {
    if (a.Type__c == 'Vendor') {
        // Create a new Vendor Details Page
        Vendor_Details__c v = new Vendor_Details__c();
            v.Name = 'Vendor Information';
            v.Account__c = a.Id;
            insert v;
            }
    }
}
I am fairly new with apex triggers, and I have written a basic trigger to create a Vendor Details page when the account type = Vendor.  The problem is I only want it to do this once, and if someone were to change the type to something else, and back to Vendor, it creates the page again.

here is my trigger so far:

trigger AutoCreateVendorDet on Account (after update) {
for (Account a : Trigger.new) {
    if (a.Type__c == 'Vendor') {
        // Create a new Vendor Details Page
        Vendor_Details__c v = new Vendor_Details__c();
            v.Name = 'Vendor Information';
            v.Account__c = a.Id;
            insert v;
            }
    }
}