Gebruik componenten op de hoofdpagina Visualforce-gebied om dynamische inhoud toe te voegen aan uw hoofdpagina. U kunt bijvoorbeeld inhoud uit partnerapps presenteren, diagrammen weergeven met de REST-API voor rapporten en dashboards of een doekapp toevoegen aan de hoofdpagina.
Vereiste editions
Beschikbaar in: Salesforce Classic
Beschikbaar in: Alle editions
De Visualforce -pagina die u kiest voor de component, kan een standaard- of aangepaste controller gebruiken. U kunt wel JavaScript opnemen in uw Visualforce -pagina, maar omdat de component wordt weergegeven in een iframe op de hoofdpaginalay-out, kan het JavaScript geen interactie hebben met de pagina die de component bevat.
Als de component van uw hoofdpagina Visualforce de zijbalk weergeeft, kunt u dynamisch de record-ID en URL op het hoogste niveau ophalen van de pagina waarop de component wordt weergegeven, door middel van de globale variabele $CurrentPage in uw Visualforce-mark-up.
Met behulp van $CurrentPage hebt u toegang tot de parameters van de querytekenreeks voor de pagina door het kenmerk parameters op te geven, waarna u elke afzonderlijke parameter kunt openen:
$CurrentPage.parameters.parameter_name
De parameters voor record-ID en de URL van de pagina op het hoogste niveau zijn respectievelijk id en sfdcIFrameOrigin. Zie Querytekenreeksparameters ophalen in de Visualforce Developer Guide voor meer informatie.
Heeft dit artikel uw probleem opgelost?
Laat ons weten wat we kunnen doen om te verbeteren!
Wordt geladen
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.