edelrabe
  • Member for 6 years, 4 months
  • Last seen this week
  • Russia
Lightning inputfield on a lookup
Accepted answer
5 votes

As I know lightning:recordEditForm doesn't work as expected with lookups when you try to create records, it should be ok to use if you edit existing records only. So the options are: use custom ...

View answer
How to remove time from date?
3 votes

Date.format() method returns the Date as a string using the locale of the context user or if you need it in a specific format regardless User locale use something like Datetime.format('yyyy-MM-dd') ...

View answer
Keep Themes & Branding from overriding SLDS styles
Accepted answer
3 votes

I also had problems with a path component in Communities when I updated brand colors. I ended up creating tokens to define a color for each step (actually two colors: base and hovered color) and using ...

View answer
Lightning Community (Napili) URL parameters
Accepted answer
3 votes

Try force:navigateToURL event (docs). In your component controller handle click event like this: var urlEvent = $A.get("e.force:navigateToURL"); urlEvent.setParams({ "url": "/my-orders?active=...

View answer
SOQL 'LIKE' and wildcards '%' not returning full results
3 votes

I think you have an error in your SOQL. It should looks like the following in Apex: Dynamic SOQL: String query = 'SELECT Id, Name FROM Account WHERE name LIKE \'%' + searchVar + '%\''; List<...

View answer
difference between two date time fields in days
2 votes

If you use it in Apex, this works: (f2.getTime() - f1.getTime()) / 1000 / 60 / 60 / 24; first you calculate difference in milliseconds between datetimes, then get number of days from it.

View answer
Building dynamic query string where 'AND' clause concatenation
1 votes

Try this: Map<String, String> whereFields = new Map<String, String>( 'empNum__c' => object.empNum__c, 'empCode__c' => object.empCode__c // ... other fields ); String ...

View answer
redesign chatter in lightning component
1 votes

Try to specify another feed type in <forceChatter:feed type="..."/>. E.g. "News", "Home". Maybe you don't have any feeds from your groups.

View answer
best way to handler trigger Recursive call
1 votes

The only approach I know is to store a Set of Ids that have been processed already as @cropredy suggested. So the code will be something like this: trigger RN_Account on Account (after update) { ...

View answer
SOQL select records by category
1 votes

You cannot do it with one query because inner select should not be on the same sObject.

View answer
"CKEDITOR" not defined when using Email Publisher
1 votes

You need to add script tag on your page using CDN: <script src="//cdn.ckeditor.com/4.5.3/standard/ckeditor.js"></script> or download ckeditor package and embed local script: <script ...

View answer
Manage LMS channel (view/create/update/delete) from within the Salesforce setup menu
0 votes

I was able to delete message channel using sfdx cli: sfdx force:source:delete -p ./force-app/main/default/messageChannels/BoatMessageChannel.messageChannel-meta.xml Make sure you use exact file name (...

View answer
EmailMessage Object's RelatedToId Field is not accessible from apex code
0 votes

Also try to enable Enhanced Email (Setup -> Email -> Enhanced Email -> Enable)

View answer
How do I view a list of packages installed in a DevHub org using the SFDX CLI?
0 votes

Check the Download AppExchange Packages System Permission for your Profile or Permission Set. It needs to be enabled.

View answer
Radio button and pick list fields value is not getting stored in the salesforce org
0 votes

In order to use showHelpMessageIfInvalid method, use components from lightning namespace instead of plain html elements. <lightning:select ... /> for picklist and <lightning:input type="...

View answer
Prepopulating Account name on Opportunity VF page
0 votes

First you have to override standard 'New' opportunity button with your custom VF page. If you did this, the following code works just fine (I've just removed your getAccount method and wrapped apex:...

View answer
What kind of resource it is in Community
0 votes

Regarding this article the number after the /resource/ in url is a timestamp (LastModifiedDate of static resource). In my case the url was hardcoded thats why I got elder version of a file. Once I ...

View answer
Is it possible to get the account id when i click on New Action in Account
0 votes

If you are talking about Account specific action, then your apex page should use standardController="Account", then you can use {! Account.Id } to get the Id of related Account record.

View answer
Date Validation?
0 votes

You mixed up month and day parameters of a DATE function, the method signature is DATE(year,month,day). So it should be AND ( BRP_Unconditional__c = true, NOT ( OR ( ...

View answer