New answers tagged

1

No, you can't do that. The framework will prevent your code from running. You must use loadScript in order to load scripts. Since the JavaScript is under your control, you can choose which of several scripts you'd like to add, but this must still be statically bound in a Static Resource.


0

Try this: Create an empty div and add this attribute-> lwc:dom="manual" you can then access the div from javascript using the Id/Class name and append the script. The link below has a perfect example of how to achieve this: appendChild to non empty div in lightning web component


0

Once you're as far as having the list of Ids, you need to massage it so that it reads: Id IN ('a130Z00000JIdXoQAL','a133q00000RlADNAA3') To get there, you can write something like: String assignvar = 'a130Z00000JIdXoQAL, a133q00000RlADNAA3'; String[] idValues = assignvar.split(', ?'); // Put values into list // And then join them together with quotes String ...


1

CASESAFEID is simply too expensive to use in this formula. I wasn't able to get your code to smaller than 10,000 characters, which was optimized as: HYPERLINK( '/'+ CASESAFEID( BLANKVALUE( Parent.Parent.Parent.Parent.ParentId, BLANKVALUE( Parent.Parent.Parent.ParentId, BLANKVALUE( ...


1

You can shrink your formula dramatically by replacing IF(NOT(ISBLANK(X, X, IF(NOT(ISBLANK, Y, etc)) with BLANKVALUE(X, BLANKVALUE(Y, etc)). Once you've done so, that should free up enough characters to wrap the first BLANKVALUE call in CASESAFEID. You can also save some characters by using Parent.Id instead of ParentId for all your terminal field paths. ...


Top 50 recent answers are included