Coder Social home page Coder Social logo

trailheadapps / visualforce-to-lwc Goto Github PK

View Code? Open in Web Editor NEW
123.0 14.0 86.0 2.35 MB

A collection of code examples to help you move from Visualforce to LWC.

Home Page: https://developer.salesforce.com

License: Creative Commons Zero v1.0 Universal

JavaScript 66.86% Apex 10.83% CSS 0.22% HTML 21.25% Batchfile 0.45% Shell 0.40%
salesforce visualforce lightning-web-components

visualforce-to-lwc's Issues

Add step titles for CodeTour

There are no step titles in CodeTour. Let's add some for a more user-friendly learning experience.
Simply add a title property on each step of your code tours.

Screen Shot 2020-11-06 at 09 17 35

Error force-app/main/default/classes/TestCreateMixedRecordsApexControllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (6:14)

Hi,
I'm installing it in a Developer org, I followed the instructions - this is the error that I get when deploying.
Any idea of how to solve it?
Thanks,
Kind regards,
David

davidsanchezcarmona@Davids-MacBook-Air visualforce-to-lwc % sfdx force:source:deploy -p force-app

Job ID | 0Af0H00000jZ3x8SAC
SOURCE PROGRESS | ██████████████████████████████░░░░░░░░░░ | 113/153 Components
TYPE PROJECT PATH PROBLEM
───── ────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────────────────────────────────────────
Error force-app/main/default/classes/TestCreateMixedRecordsApexControllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (6:14)
Error force-app/main/default/classes/TestCreateMixedRecordsApexControllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (12:14)
Error force-app/main/default/classes/TestCreateMixedRecordsApexControllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (51:18)
Error force-app/main/default/classes/TestCreateMixedRecordsApexControllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (57:18)
Error force-app/main/default/classes/TestCreateRecordPrepopulatedController.cls Method does not exist or incorrect signature: void startTest() from the type test (13:14)
Error force-app/main/default/classes/TestCreateRecordPrepopulatedController.cls Method does not exist or incorrect signature: void stopTest() from the type test (17:14)
Error force-app/main/default/classes/TestListControllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (14:14)
Error force-app/main/default/classes/TestListControllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (16:14)
Error force-app/main/default/classes/TestListWithParentRecordDataCtrllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (13:14)
Error force-app/main/default/classes/TestListWithParentRecordDataCtrllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (15:14)
Error force-app/main/default/classes/TestPageMessagesController.cls Method does not exist or incorrect signature: void startTest() from the type test (9:14)
Error force-app/main/default/classes/TestPageMessagesController.cls Method does not exist or incorrect signature: void stopTest() from the type test (11:14)
Error force-app/main/default/classes/TestPageMessagesControllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (7:18)
Error force-app/main/default/classes/TestPageMessagesControllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (9:18)
Error force-app/main/default/classes/TestPageMessagesDataRetrievalController.cls Method does not exist or incorrect signature: void startTest() from the type test (9:14)
Error force-app/main/default/classes/TestPageMessagesDataRetrievalController.cls Method does not exist or incorrect signature: void stopTest() from the type test (11:14)
Error force-app/main/default/classes/TestPageMessagesDataRetrievalCtrllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (7:18)
Error force-app/main/default/classes/TestPageMessagesDataRetrievalCtrllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (9:18)
Error force-app/main/default/classes/TestPageMessagesFormController.cls Method does not exist or incorrect signature: void startTest() from the type test (9:14)
Error force-app/main/default/classes/TestPageMessagesFormController.cls Method does not exist or incorrect signature: void stopTest() from the type test (11:14)
Error force-app/main/default/classes/TestPageMessagesFormController.cls Method does not exist or incorrect signature: void startTest() from the type test (37:14)
Error force-app/main/default/classes/TestPageMessagesFormController.cls Method does not exist or incorrect signature: void stopTest() from the type test (39:14)
Error force-app/main/default/classes/TestPageMessagesFormControllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (7:18)
Error force-app/main/default/classes/TestPageMessagesFormControllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (9:18)
Error force-app/main/default/classes/TestPaginatedListController.cls Method does not exist or incorrect signature: void startTest() from the type test (11:14)
Error force-app/main/default/classes/TestPaginatedListController.cls Method does not exist or incorrect signature: void stopTest() from the type test (15:14)
Error force-app/main/default/classes/TestPaginatedListControllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (13:14)
Error force-app/main/default/classes/TestPaginatedListControllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (18:14)
Error force-app/main/default/classes/TestPaginatedListControllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (53:14)
Error force-app/main/default/classes/TestPaginatedListControllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (58:14)
Error force-app/main/default/classes/TestRecordPagesController.cls Method does not exist or incorrect signature: void startTest() from the type test (10:14)
Error force-app/main/default/classes/TestRecordPagesController.cls Method does not exist or incorrect signature: void stopTest() from the type test (12:14)
Error force-app/main/default/classes/TestRecordPagesController.cls Method does not exist or incorrect signature: void startTest() from the type test (28:14)
Error force-app/main/default/classes/TestRecordPagesController.cls Method does not exist or incorrect signature: void stopTest() from the type test (30:14)
Error force-app/main/default/classes/TestViewRelatedRecordsController.cls Method does not exist or incorrect signature: void startTest() from the type test (26:14)
Error force-app/main/default/classes/TestViewRelatedRecordsController.cls Method does not exist or incorrect signature: void stopTest() from the type test (28:14)
Error force-app/main/default/classes/TestViewRelatedRecordsControllerLwc.cls Method does not exist or incorrect signature: void startTest() from the type test (19:14)
Error force-app/main/default/classes/TestViewRelatedRecordsControllerLwc.cls Method does not exist or incorrect signature: void stopTest() from the type test (23:14)
Error force-app/main/default/classes/TestCreateMixedRecordsApexController.cls Method does not exist or incorrect signature: void startTest() from the type test (9:14)
Error force-app/main/default/classes/TestCreateMixedRecordsApexController.cls Method does not exist or incorrect signature: void stopTest() from the type test (11:14)
ERROR running force:source:deploy: Deploy failed.

Can't deploy source to Org

Summary

When wanting to deploy source to org, I get this error message :

lwc/navigateToRecord/navigateToRecord.js-meta.xml: This component doesn't support any target for flows, but it's referenced in these flow versions: 'Create Property-1'. Add any of these targets to the component: 'lightning__FlowScreen'. 
lwc/navigateToRecord/navigateToRecord.js-meta.xml: You can’t change the isExposed property to ‘false’ because the component is part of a managed package.
lwc/navigateToRecord/navigateToRecord.js-meta.xml: This component doesn't support any target for flows, but it's referenced in these flow versions: 'Create Property-1'. Add any of these targets to the component: 'lightning__FlowScreen'. 
lwc/navigateToRecord/navigateToRecord.js-meta.xml: You can’t change the isExposed property to ‘false’ because the component is part of a managed package.

Config:
"path": "force-app",
"default": true,
"package": "vf2lwc",
"versionName": "Spring '22",
"versionNumber": "54.0.0.NEXT"

Salesforce Org Type

Trailhead Playground

Steps To Reproduce

No response

Current Behavior

No response

Expected Behavior

No response

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

There is no permission set named "Walkthroughs"

Summary

The readme file says there is another permission set named "Walkthroughs". I could not find them anywhere.

Steps To Reproduce:

  1. Read Read me file
  2. Fix if needed

Expected result

Describe what should have happened.

Actual result

Describe what actually happened instead.

Additional information

Feel free to attach a screenshot or code snippets.

Catchpoint blog migration

Summary

Hi!

It’s Gleb from Catchpoint.com.

I've noticed that your website links to our old blog, which we’re currently migrating from a subdomain to the main domain. The reason I’m reaching out is to make sure you won’t have a 404 error on your website.

You have a link to our old blog on the following pages:
https://developer.salesforce.com/index.php?title=Network_Best_Practices_for_Salesforce_Architects&oldid=94091
I wonder if you’d be able to replace it with the new one:
https://www.catchpoint.com/blog/tcp-rtt
Thanks for linking to Catchpoint.com!

Please don’t hesitate to contact me if something comes up [email protected]!

Best,
Gleb

Suggested Solution

No response

Alternative Solutions

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

listRecordLinks LWC doesn't work correctly

The listRecordLinks LWC doesn't open a record. This is easily recreated by simply clicking one of the account names on the component.

To fix it, the navigate component in navigateToRecord.js should be adjusted from:
import { LightningElement, api } from 'lwc';
import { NavigationMixin } from 'lightning/navigation';

export default class NavigateToRecord extends NavigationMixin(
LightningElement
) {
@api recordId;
@api label;

navigate() {
    this[NavigationMixin.Navigate]({
        type: 'standard__recordPage',
        attributes: {
            recordId: this.recordId,
            actionName: 'view'
        }
    });
}

}

To:
import { LightningElement, api } from 'lwc';
import { NavigationMixin } from 'lightning/navigation';

export default class NavigateToRecord extends NavigationMixin(
LightningElement
) {
@api recordId;
@api label;

navigate(e) {
    e.preventDefault();
    this[NavigationMixin.Navigate]({
        type: 'standard__recordPage',
        attributes: {
            recordId: this.recordId,
            actionName: 'view'
        }
    });
}

}

In summary, without e.preventDefault(), the tag's default navigation takes effect instead of the onclick handler's.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.