You need to sign in to do that
Don't have an account?

How to use SLDS, How to utilise VisualForce Components, Implement Save and Cancel
How do I use VisualForce Component, Im struggling to wrap my head arond them. How are they called and refrenced and what Must I do to impliment a Save and Cancel function to my page?
But I get this Error
Unknown property 'Apprentice__cStandardController.save'
Im using a Standard Controller so I have no clue why this error is appearing.
<div class="slds-col slds-no-flex slds-grid slds-align-top"> <div class="slds-button-group" role="SPC"> <button class="slds-button slds-button_neutral"> Save </button> <button class="slds-button slds-button_neutral" onclick="window.print();" > Print </button> <button class="slds-button slds-button_neutral" > Cancel </button> </div> </div>I expected It to be somthing like this -
<div class="slds-col slds-no-flex slds-grid slds-align-top"> <div class="slds-button-group" role="SPC"> <button class="slds-button slds-button_neutral" action="{!save}" > Save </button> <button class="slds-button slds-button_neutral" onclick="window.print();" > Print </button> <button class="slds-button slds-button_neutral" > Cancel </button> </div> </div>
But I get this Error
Unknown property 'Apprentice__cStandardController.save'
Im using a Standard Controller so I have no clue why this error is appearing.
<apex:page standardController="Apprentice__c" title="Learning Agreement" showHeader="false" standardStylesheets="false" sidebar="false"> <head> <title>Apprentice Learning Agreement Form</title> <apex:slds /> </head> <body> <div class="slds-scope"> <div class="slds-page-header"> <div class="slds-grid"> <div class="slds-col slds-has-flexi-truncate"> <div class="slds-media slds-no-space slds-grow"> <div class="slds-media__body"> <h1 class="slds-page-header__title slds-m-right_small slds-align-middle slds-truncate" title="Apprentice Learning Agreement">Apprentice Learning Agreement</h1> </div> </div> </div> <!-- PAGE HEADER / ROW 1 / COLUMN 2 --> <div class="slds-col slds-no-flex slds-grid slds-align-top"> <div class="slds-button-group" role="SPC"> <button class="slds-button slds-button_neutral" action="{!save}" > Save </button> <button class="slds-button slds-button_neutral" onclick="window.print();" > Print </button> <button class="slds-button slds-button_neutral" > Cancel </button> </div> </div>
All Answers