Skip to main content Besuchen Sie uns auf der TDX in San Francisco oder bei Salesforce+ vom 5. bis 6. März, um die Entwicklerkonferenz für die Ära der AI-Agenten zu erleben. Jetzt registrieren.

#Visualforce38 diskutieren mit

http://www.salesforce.com/us/developer/docs/pages/index.htm
Hi I m trying to deploy in sandbox but got following error 

Error: Course_Translation_Record_Page does not exist or is not a valid override for action View.

please help me out.

thanks
5 Antworten
  1. Gestern 17:25

    I resolved this by going into the object's Lightning Record Page via the Lightning App Builder and "deactivating" it (by clicking the Activation button). Then my change set finally deployed properly.

0/9000
Hi, 

I am trying to access visual force page through base url as below. But I am receiving an error message saying "Your account has been disabled

Your company administrator has disabled access to the system for you. Please contact your administrator for more information "

But when go to Visual force page and click on Preview its working. Any  thoughts why its happenning so. 
4 Antworten
  1. 18. Feb., 18:33

    I know this has been years, but I had the same error while reactivating a user and trying to send a password reset simultaneously. I resolved the error by reactivating the user first and when they verified their email, I sent them a password reset, and the error never came back.

0/9000
Before I forget these were the exact steps I took to finally make it work.

CLEAN UP

  • Clean up your current installations:
  • Delete Folders .sf  and .sfdx and local installation
  • Uninstall all your previous versions of node and python

FRESH INSTALL (NODE, PYTHON, NODE-GYP)

  1. Make sure you have Python 3 installed

    1. During NPM Install of Plugin, it will look for a version of Python installed, else it will fail
  2. Install NodeJS LTS 18

    1. Install Node-Gyp using NPM Install command (NPM comes with NodeJS)
    2. Otherwise, the NPM installation of the Plugin will automatically install NODE-GYP for you

Install SF CLI

TEST SF CLI

  • After you have installed .sf and .sfdx  (This will get you the latest version)
  • AUTHENTICATE an ORG
  • Test it by connecting to your Sandbox

    • If you can't authenticate using standard web login try this

      • sfdx force:auth:device:login --instanceurl <your custom or test.salesforce.com> --setdefaultusername
      • This will display a user code within the cmd window
      • Enter that Code after  you open 
      • YOU MUST Enter the URL that you started with
      • https://<The URL You specified above>/setup/connect in a browser

Now here is the FUN

Several repeat steps were needed

Step1: sfdx plugins:install @salesforce/lwc-dev-server 

  • This will fail with that stupid YARN Error Message

Step2: npm install -g @salesforce/lwc-dev-server

  • This will properly install Node-Gyp for you
  • It will also pass the python check sinced you installed it at the very beginning
  • gyp info it worked if it ends with ok

    gyp info using node-gyp@9.3.1

    gyp info using node@18.16.0 | win32 | x64

    gyp info find Python using Python version 3.11.3 found at "C:\Python311\python.exe"
  • But it will Burp about not having Visual Studio

    • 7756 error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details

      7756 error gyp ERR! find VS looking for Visual Studio 2015

      7756 error gyp ERR! find VS - not found

      7756 error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8

      7756 error gyp ERR! find VS 

      7756 error gyp ERR! find VS **************************************************************

      7756 error gyp ERR! find VS You need to install the latest version of Visual Studio

      7756 error gyp ERR! find VS including the "Desktop development with C++" workload.
    • NO PROBLEM 
    • RUN npm install --global windows-build-tools

      •  This will also FAIL, but it downsloads the VS17 exe file for you
      • This is saved in
      • C:\Users\your name\.windows-build-tools\vs_BuildTools.exe
      • Install it and MAKE SURE YOU Select
      • VS including the "Desktop development with C++" workload.

Step3: RUN IT AGAIN npm install -g @salesforce/lwc-dev-server

  • This time it will detect Python and the Version of Visual Studio 17
  • It will load all the packages with no errors, but the plug in is still not installed
  • you will see something like this
  • added 1218 packages, and changed 1 package in 7m

    102 packages are looking for funding
  • I ALMOST QUIT AT THIS POINT

Step4: RUN IT AGAIN the SFDX command PLUGIN again

  • sfdx plugins:install @salesforce/lwc-dev-server 
  • GOSH DARN IT - IT FINALLY Installed

    • @salesforce/lwc-dev-server... \ [2/4] Fetching packages...

      warning "@salesforce/lwc-dev-server > @rollup/plugin-alias@3.1.9" has unmet peer dependency "rollup@^1.20.0||^2.0.0".

      warning "@salesforce/lwc-dev-server > request-promise-native@1.0.9" has unmet peer dependency "request@^2.34".

      warning "@salesforce/lwc-dev-server > request-promise-native > request-promise-core@1.1.4" has unmet peer dependency "reqInstalling plugin @salesforce/lwc-dev-server... installed v2.11.0

In Summary

Python 3

Nodejs 18 LTS

Visual Studio 17 and Desktop Build

Multiple Plug-in Install steps

(See my step by step above)

 

Anyways, I HOPE THIS IS Useful, because I scoured the internet for answers.  TRUST ME.  All the answers had some truth, but none worked for me.  UNTIL THIS DAY!!!!!

12 Antworten
0/9000
Hi, i have an approval process set up. So the record is created and submitted for approval. The approver then has to fill in fields before they can click the 'approve' button. I can create a validation rule but this only works if the record is edited. Can someone advise the best way to create a rule so that the approval by clicking on the approval button will not work unless certain fields are filled in?
4 Antworten
0/9000
I am tryng to implement Image Slider in visualforce. This is my code so far can anyone please help me with this. In this code i have added 3 images but Its only showing the first image and slider is also not working.

<apex:page showHeader="false" sidebar="false" standardStylesheets="false">

<html lang="en">

    <head>

        <!-- Bootstrap core CSS --> 

        <apex:stylesheet value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.3.6-dist/css/bootstrap.min.css')}"/>

        <title>Image Slider Using Bootstrap</title>

        

        <!-- <apex:image alt="Challenge Image1" title="Challenge1" url="{!URLFOR($Resource.Challenge1, 'Challenge1.jpg')}"/> -->

        <!-- <apex:image url="{!$Resource.Challenge1}"/> -->

    </head>

<body>

<div class="container text-center">

<!-- Inside body ----------------------------------------------------------------------------------------------------------------------------------- -->

    <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">

        <!-- Indicators -->

        <ol class="carousel-indicators">

            <li data-target="⌗carousel-example-generic" data-slide-to="0" class="active"></li>

            <li data-target="⌗carousel-example-generic" data-slide-to="1"></li>

            <li data-target="⌗carousel-example-generic" data-slide-to="2"></li>

        </ol>

     

        <!-- Wrapper for slides -->

        <div class="carousel-inner">

            <div class="item active">

                <!-- <img src="http://placehold.it/1200x315" alt="..." /> -->

                <apex:image url="{!$Resource.Challenge1}"/>

                <div class="carousel-caption">

                    <h3>Caption Text</h3>

                </div>

            </div>

            

            <div class="item">

                <!-- <img src="http://placehold.it/1200x315" alt="..." /> -->

                <apex:image url="{!$Resource.Challenge2}"/>

                <div class="carousel-caption">

                    <h3>Caption Text</h3>

                </div>

            </div>

    

            <div class="item">

                <!-- <img src="http://placehold.it/1200x315" alt="..." /> -->

                <apex:image url="{!$Resource.Challenge3}"/>

                <div class="carousel-caption">

                    <h3>Caption Text</h3>

                </div>

            </div>

        </div><!-- Wrapper for slides End -->

 

        <!-- Controls -->

        <a class="left carousel-control" href="⌗carousel-example-generic" role="button" data-slide="prev">

            <span class="glyphicon glyphicon-chevron-left"></span>

        </a>

        <a class="right carousel-control" href="⌗carousel-example-generic" role="button" data-slide="next">

            <span class="glyphicon glyphicon-chevron-right"></span>

        </a>

        

    </div> <!-- Carousel -->

<!--Inside Body end -------------------------------------------------------------------------------------------------------------------------------- -->    

</div>

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->

    <apex:includescript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"/>

    <apex:includescript value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.3.6-dist/js/bootstrap.min.js)"/>

    

    <apex:includeScript value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.3.6-dist/js/bootstrap.js)"/>

</body>

</html>

</apex:page>
9 Antworten
  1. 11. Feb., 09:22

    Error: Die statische Ressource bootstrap ist nicht vorhanden. Ãœberprüfen Sie die Schreibweise 

0/9000
3 Antworten
0/9000
Hi,

I have created a custom list button which is working fine in app. But its not working in community portal. Even system admin is not able to open the page by clicking that button.
3 Antworten
  1. 6. März 2019, 12:28
    Hi Prathibha,

    Greetings to you!

    According to Salesforce doc (https://help.salesforce.com/articleView?id=community_builder_use_visualforce.htm&type=0):

    Visualforce custom list buttons are not supported in communities.

    Hi Prathibha,Greetings to you!According to Salesforce doc (https://help.salesforce.com/articleView?id=community_builder_use_visualforce.

    I hope it helps you.

    Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

    Thanks and Regards,

    Khan Anas
0/9000

I want to Show a help text in an input field of a visualforce page in Mobile. I tried giving the title attribute but it's visible in webpage and not in mobile. Any suggestion please ?

 

#Trailhead Challenges #Trailhead #Salesforce Developer #Salesforce Admin #Visualforce #VisualForce Page #Visualforce For Lightning,

2 Antworten
  1. 8. Jan., 11:26

    Hi @VINAY KUMAR K,

     

    I tried this but for mobile it is not working. I need to implement the help text so that it should be visible in mobile.

0/9000
1 Antwort
  1. 6. Jan., 09:43

    Hi @dinesh kumar reddy

     

    The following Visualforce page and Apex controller display Account names in a dropdown. When an Account is selected, the related Cases are dynamically shown in a table format. Below are the code snippets for reference:

     

    <apex:page controller="AccountCaseController">    <apex:form>        <apex:pageBlock title="Account Cases Viewer">                    <apex:pageBlockSection title="Select Account">                <apex:selectList value="{!selectedAccountId}" size="1" required="true" multiselect="false">                    <apex:selectOptions value="{!accountOptions}" />                    <apex:actionSupport event="onchange" reRender="caseTable" action="{!fetchCases}" />                </apex:selectList>            </apex:pageBlockSection>            <!-- Table to display related Cases -->            <apex:pageBlockTable id="caseTable" value="{!cases}" var="case">                <apex:column headerValue="Case Number" value="{!case.CaseNumber}" />                <apex:column headerValue="Subject" value="{!case.Subject}" />                <apex:column headerValue="Status" value="{!case.Status}" />                <apex:column headerValue="Priority" value="{!case.Priority}" />                <apex:column headerValue="Created Date">                    <apex:outputText value="{0,date,MM/dd/yyyy}">                        <apex:param value="{!case.CreatedDate}" />                    </apex:outputText>                </apex:column>            </apex:pageBlockTable>        </apex:pageBlock>    </apex:form></apex:page>

     

    public class AccountCaseController {

    public Id selectedAccountId { get; set; }

    public List<Case> cases { get; set; }

    // Options for Account dropdown

    public List<SelectOption> getAccountOptions() {

    List<SelectOption> options = new List<SelectOption>();

    options.add(new SelectOption('', '-- Select an Account --'));

    for (Account acc : [SELECT Id, Name FROM Account ORDER BY Name]) {

    options.add(new SelectOption(acc.Id, acc.Name));

    }

    return options;

    }

    public void fetchCases() {

    if (selectedAccountId != null) {

    cases = [SELECT Id, CaseNumber, Subject, Status, Priority, CreatedDate

    FROM Case

    WHERE AccountId = :selectedAccountId

    ORDER BY CreatedDate DESC];

    } else {

    cases = new List<Case>();

    }

    }

    public AccountCaseController() {

    cases = new List<Case>();

    }

    }

    Also, if you find this content helpful please mark it as the best answer.

0/9000
When calling an apex method from any of the following

apex;commandbutton

apex:actionSupport

apex:actionFunction

etc

Should it always be a PageReference type rather than a void?
1 Antwort
0/9000