-
ChatterFeed
-
0Best Answers
-
2Likes Received
-
0Likes Given
-
11Questions
-
6Replies
Lightning Component not showing on Lightning Tag
I moved the component and tab using salesforce dx and when editing the component. I am getting below error. I seems like one of the component is throwing an error when i am trying to edit the record -
Error = Review all error messages below to correct your data. You can only create lightning tabs for AuraDefinitionBundles containing a component that implements force:appHostable and has no required attributes without a default value. (Related field: Content)
Observation - When i remove the attribute from parent component and child component than its working and i am able to save the tab. Something is not correct with my component initiation.
Code in parent Component -
<aura:if isTrue="{!!v.customTab}"> <div aura:id="defaultTabContent" class="slds-show"> <c:ApiRequestFieldMapping custom="false" objectName="Credit_Report__c"/> </div> </aura:if> <aura:if isTrue="{!v.customTab}"> <div aura:id="customTabContent" class="slds-hide"> <c:ApiRequestFieldMapping custom="true" listSObjects=" {!v.listSObjects}" message="Select object from drop-down." messageClass="Info"/> </div>
Code in Child Component -
<aura:handler name="init" action="{!c.doInit}" value="{!this}"/> <aura:registerEvent name="handleModelVisiblity" type="c:HandleModel"/> <!-- attributes --> <aura:attribute name="custom" type="Boolean"/> <aura:attribute name="objectName" type="String"/> <aura:attribute name="listSObjects" type="String[]"/> <aura:attribute name="message" type="String"/> <aura:attribute name="messageClass" type="String"/> <aura:attribute name="listSObjectFields" type="String[]" required="false"/> <aura:attribute name="customObjectName" type="String" required="false"/> <aura:attribute name="listWrapper" type="RequestMappingWrapper.MappingRecords[]" required="false"/>
Already Tried - 1. My component is already implementing "force:appHostable" interface. 2. The component us using latest version.(40.0) 3. Have already tried creating the components. 4. My org has my domain enabled and also have namespace.
- Ushank
- December 09, 2017
- Like
- 0
- Continue reading or reply
Apex Callout failed getting SunCertPathBuilderException
I am getting below exception when trying this call from salesforce while I can getting the correct response while making a callout from SOAP UI.
As per my client, they don't provide any certificate. I am not sure what is happening and how to resolve the issue. As per few blogs, it seems like I need to install the certificates.
Any help would be appreciated.
Log -
[51]|System.HttpRequest[Endpoint=https://someURL/servlet/request, Method=POST] 07:51:12.268 (268755208)|CALLOUT_REQUEST|[51]|System.HttpRequest retrying request in response to handshake failure: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 07:51:12.423 (423017546)|EXCEPTION_THROWN|[51]|System.CalloutException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 07:51:12.423 (423110461)|SYSTEM_METHOD_EXIT|[51]|System.Http.send(ANY)
- Ushank
- May 26, 2015
- Like
- 0
- Continue reading or reply
2 way SSL connection
I am using 2way SSL certificate to connect salesforce with my data mart hosted inside corporate network inside the firewall.
Customer want to create a managed package which would allow any salesforce org to connect and fetch data from platform.
As per my understanding I have to provide salesforce certificate singed certificate to data and upload data mart certificate here in salesforce org. Instead of installing multiple certificate from different salesforce org. Do i have some way to manage this scenario where we can make connecton.
- Ushank
- April 23, 2015
- Like
- 0
- Continue reading or reply
Chatter API
I believe by default user see the feed and comments in their time zone. Do i need to make sure and do some other settings or acheive this functionality?
- Ushank
- April 23, 2015
- Like
- 0
- Continue reading or reply
Display PHP page in salesforce with Heroku
- Ushank
- April 23, 2015
- Like
- 1
- Continue reading or reply
Mobile app for online and offline mode
How should we design this system. Should be use salesforce 1 or native device SDK for andriod, Ios and BB? Also suggest if we can use sites and normal VF page which may not support offline mode though.
- Ushank
- April 23, 2015
- Like
- 0
- Continue reading or reply
Name Binding
- Ushank
- April 23, 2015
- Like
- 0
- Continue reading or reply
PageBlockSection is not displaying
I am using KendoUI framework to open popup window from java script but facing very weird behaviour.
Page is coming up nice but when I use pageBlockSection its doesn't show anything and break the page without any error.
Do we have any limits on number of DIV's we can use. Pageblockbutton are populating fine but sections are not coming at all.
Please let me know incase anyone was faced this issue. I am just rendering the page.
- Ushank
- February 26, 2015
- Like
- 0
- Continue reading or reply
Not able to call custom rest service from java script.
I am trying to call apex rest api from Jquery Ajax functional which is giving me unauthorized "400 error status" in return. I am setting the request header with session information "xhr.setRequestHeader('Authorization', "OAuth " + session);" as this.
When I am trying to call the webservice from Chrome rest console, workbench and Soap UI its working fine and giving me result back but I am only facing issue while trying to call this service from java script.
Could it be because of cross site scripting?
Please suggest me how to proceed further.
- Ushank
- February 23, 2015
- Like
- 1
- Continue reading or reply
Not able to able web service from JS
I am trying to call apex rest api from Jquery Ajax functional which is giving me unauthorized "400 error status" in return. I am setting the request header with session information "xhr.setRequestHeader('Authorization', "OAuth " + session);" as this.
When I am trying to call the webservice from Chrome rest console, workbench and Soap UI its working fine and giving me result back but I am only facing issue while trying to call this service from java script.
Could it be because of cross site scripting?
Please suggest me how to proceed further.
- Ushank
- February 23, 2015
- Like
- 0
- Continue reading or reply
Field value is coming as null in apex trigger ( trigger.new)
Hello,
I have below apex trigger. AccountId field is coming as null when I am trying to login as well which has read-only access to the field account name which is lookup field to Account standard object.
This value is coming file when I am trying to raise a case with profile having "MODIFY ALL DATA" access but with normal user having read-only access to the field in coming as null.
Triggers run on system mode why there is discrepancy with login. Please help how to get this value. ( for user where it is coming as null, this user can't edit account name field on page).
Please suggest how to check the values before insert, update.
Trigger
CaseContactUpdate onCase (beforeinsert, beforeupdate) {
RecordType rec = [Select r.Name, r.Id FromRecordType r where r.Name='Administrative Change'];
for (Case newCase : Trigger.new)
{
try
{
if(newCase.RecordTypeId == rec.Id) {
System.debug(
'ushank contactId'+newCase.ContactId);
System.debug(
'ushank accountId'+newCase.AccountId);
if(newCase.ContactId == null){
Contact c1 = [Select c.Id FromContact c where c.AccountId = :newCase.AccountId and c.Primary__c = true];
newCase.ContactId = c1.Id ;
}
if(newCase.ContactId != null && newCase.AccountId != null){
if ([Selectcount() FromContact c where c.AccountId = :newCase.AccountId andc.Id = :newCase.ContactId] == 0){
newCase.addError(
'Selected contact does not belong to customer, please select correct contact');
}
}
}
}
catch(Exception e)
{
newCase.addError(
'Not able to save record :::'+e);
System.debug(
'Exception : '+ e);
}
}
}
Regards
- Ushank
- July 30, 2012
- Like
- 0
- Continue reading or reply
Display PHP page in salesforce with Heroku
- Ushank
- April 23, 2015
- Like
- 1
- Continue reading or reply
Not able to call custom rest service from java script.
I am trying to call apex rest api from Jquery Ajax functional which is giving me unauthorized "400 error status" in return. I am setting the request header with session information "xhr.setRequestHeader('Authorization', "OAuth " + session);" as this.
When I am trying to call the webservice from Chrome rest console, workbench and Soap UI its working fine and giving me result back but I am only facing issue while trying to call this service from java script.
Could it be because of cross site scripting?
Please suggest me how to proceed further.
- Ushank
- February 23, 2015
- Like
- 1
- Continue reading or reply
Chatter API
I believe by default user see the feed and comments in their time zone. Do i need to make sure and do some other settings or acheive this functionality?
- Ushank
- April 23, 2015
- Like
- 0
- Continue reading or reply
Display PHP page in salesforce with Heroku
- Ushank
- April 23, 2015
- Like
- 1
- Continue reading or reply
Mobile app for online and offline mode
How should we design this system. Should be use salesforce 1 or native device SDK for andriod, Ios and BB? Also suggest if we can use sites and normal VF page which may not support offline mode though.
- Ushank
- April 23, 2015
- Like
- 0
- Continue reading or reply
Name Binding
- Ushank
- April 23, 2015
- Like
- 0
- Continue reading or reply
Not able to call custom rest service from java script.
I am trying to call apex rest api from Jquery Ajax functional which is giving me unauthorized "400 error status" in return. I am setting the request header with session information "xhr.setRequestHeader('Authorization', "OAuth " + session);" as this.
When I am trying to call the webservice from Chrome rest console, workbench and Soap UI its working fine and giving me result back but I am only facing issue while trying to call this service from java script.
Could it be because of cross site scripting?
Please suggest me how to proceed further.
- Ushank
- February 23, 2015
- Like
- 1
- Continue reading or reply