Git Product home page Git Product logo

sfdx-record-create-url-component's Issues

"+" in parameter not treated as Space for default value

If a default value is specified with a "+" as a space, it doesn't interpret it as a space.

I have a picklist field, that I'm passing "Flat File" to using standard PageReference parameter mapping to create the redirection, and it is replacing the space with a plus ("Flat+File") and then pre-populaing the picklist field with that value, which is invalid.

Blank fieldName Parameters cause failure

If you pass a fieldName parameter with no value for a lookup field (like AccountId), the new record popup will fail.

I fixed by adding check for value to line 72 of the Helper
if ( fieldDescribeMap.hasOwnProperty( fieldName ) && fieldDescribeMap[fieldName].createable && pageRef.state[fieldName] ) {

recordId "pop-under" not working...

I just implemented this, thank you so much!
I believe there may be an issue though: When I opening the link into a new window (using target="_blank") and send "recordId", I see the "new record" popup come up briefly, but then it closes as the underlying record loads. If I do not use recordId parameter (so that the background stays blank), it works. It also works if I do not open into a new window (no "target" on the href)

Critical Update for Summer '19 Prevents use of non-Namespace Parameters...

A Critical Update is being activated in Summer ’19: any URL Parameters utilized in Lightning need to have “namespace” prefix, otherwise they are dropped…
https://releasenotes.docs.salesforce.com/en-us/spring19/release-notes/rn_forcecom_general_namespace_prefix_cruc_reminder.htm

This affects the URL_CreateRecordCmp because the parameters being utilized by it are stripped by Lightning now.

To see this in action: in a sandbox that has Summer '19 (or the Critical Update activated)... this link will not work:
/lightning/cmp/c__URL_CreateRecordCmp?objectName=Case
the screen will refresh and the URL will drop all of the parameters… resulting in a blank screen. (the code errors calling action "c.getFieldDescribeMap" for null parameters)

if you use this link:
/lightning/cmp/c__URL_CreateRecordCmp?c__objectName=Case
you will still get the blank screen after refresh, but notice that the objectName parameter will carry through to the new page. (Still getting a blank screen because the parameter is now starting with c__ which is not expected…)

I'm going to adjust the code (and my URL creation code throughout) to prefix the parameters with "c__"
(Sorry, I wish I was better with git, I'd upload my changes once I make them... but I'm not really familiar with how it works to pull/push/etc... I'll relate my changes below once I make them.)

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.