• Steve Cox 18
  • NEWBIE
  • 10 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Hi,

I've written a lightning aura component form - based on recordEditForm - to create an account. The reason is so that we can interact with a corporate API to obtain sugested account names from a central system. This form just requests the account name and the minimum required fields to create the record.

It works fine overriding the standard 'New' action for accounts. On clicking 'new' from the account menu, you're presented with the 'select record type' and then it progresses to the component.

However, there are some record types available that should not use this override - and instead go straight to the standard create account modal form.

I'm not sure how to do this? Idea options would be:

1. As above, have the system use the custom form if specific record types are selected (or are the default for that user profile). But use the standard form for other record types.

2. Put the standard action back to default - and create a new custom action to do this - but add this to the account menu (not sure if it's possible to modify that standard menu).

Thanks
Hi,
I'm trying to write a simple lightning web component to pass an opportunity record Id to the URL of an iframe - but the {recordId} parameter is not parsing to the value.

The js for the component is:
 
import { LightningElement, api } from 'lwc';

export default class OppCNPowerApp extends LightningElement {
	@api recordId;
}

The js-meta.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>52.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
      <target>lightning__RecordPage</target>
    </targets>
    <targetConfigs>
      <targetConfig targets="lightning__RecordPage">
          <objects>
              <object>Opportunity</object>
          </objects>
      </targetConfig>
  </targetConfigs>
  </LightningComponentBundle>

and the test html is:
 
<template>
	<lightning-card>
		<p>{recordId}</p>
		<div style="width:100%">
			<iframe height="540px" width="100%" frameborder="0" 
                                 src="https://test.com?OppID={recordId}">
			</iframe>
		</div>
	</lightning-card>
</template>
(I've altered the actual source URL for simplicity) 

When i add the component to a lightning page for an opportunity, the part of the HTML template:
 
<p>{recordId}</p>
renders fine - it displays the correct record ID. However, the iframe code does not parse the id. In the source, it remains:
<iframe height="540px" width="100%" frameborder="0" src="https://test.com?OppID={recordId}"></iframe>

I've been hacking around to find the solution but with no luck - it's to do with the quotes of the src element - but I've no idea how to have it parse it as expected. Any suggestions?

Thanks 
 
Hi,
I'm trying to write a simple lightning web component to pass an opportunity record Id to the URL of an iframe - but the {recordId} parameter is not parsing to the value.

The js for the component is:
 
import { LightningElement, api } from 'lwc';

export default class OppCNPowerApp extends LightningElement {
	@api recordId;
}

The js-meta.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>52.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
      <target>lightning__RecordPage</target>
    </targets>
    <targetConfigs>
      <targetConfig targets="lightning__RecordPage">
          <objects>
              <object>Opportunity</object>
          </objects>
      </targetConfig>
  </targetConfigs>
  </LightningComponentBundle>

and the test html is:
 
<template>
	<lightning-card>
		<p>{recordId}</p>
		<div style="width:100%">
			<iframe height="540px" width="100%" frameborder="0" 
                                 src="https://test.com?OppID={recordId}">
			</iframe>
		</div>
	</lightning-card>
</template>
(I've altered the actual source URL for simplicity) 

When i add the component to a lightning page for an opportunity, the part of the HTML template:
 
<p>{recordId}</p>
renders fine - it displays the correct record ID. However, the iframe code does not parse the id. In the source, it remains:
<iframe height="540px" width="100%" frameborder="0" src="https://test.com?OppID={recordId}"></iframe>

I've been hacking around to find the solution but with no luck - it's to do with the quotes of the src element - but I've no idea how to have it parse it as expected. Any suggestions?

Thanks 
 
Hi,
I get this error for 'sfdx force:org:list` or for any 'sfdx` command. I re-installed node, npm and sfdx cli without luck. My workaround is `export NODE_TLS_REJECT_UNAUTHORIZED=0` that is not ideal. Any suggestion?

Also `npm config ls -l` lists `cafile = "/etc/ssl/certs/xxxxxCA.pem` that does exist. 

Error: self signed certificate in certificate chain
    at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
    at TLSSocket.emit (events.js:315:20)
    at TLSSocket._finishInit (_tls_wrap.js:932:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12) {
  code: 'SELF_SIGNED_CERT_IN_CHAIN'
}

hello ,

Please can any one answer my question: is it possible to change the the fild "Name" of an object to read only. if yes, how can i do it?

thanks, thanks thanks