Skip to main content

#ISVExpertLightning0 discussing

Hi all, 

 

We have a admin setting on users to bypass triggers, flows and validation rules. This works quite well when you build all in. However sometimes admins or dev forget to change this back. I was thinking it would be perfect if we can create an org wide warning on the top (like sandbox notification, or login as other user). Does anyone know if there is a way to create a custom warning bar on the top of the org with a lightning component?

 

Thanks!

5 comments
  1. Apr 20, 2020, 12:13 PM
    @Cody Royster thanks for this one, indeed interesting approach to make sure it's switch off every time. Will take it into account. However also still curious for the org wide warning bar options. Maybe other scenario's will be there as well..
0/9000

Hello Developers,

  I attempted to follow the documentation here => https://developer.salesforce.com/docs/component-library/documentation/en/lwc/create_components_css_share

 

For step 1 it seems impossible to create a component with JUST a css file. I figured it then needed a meta file but that didn't work either. I finally got it to deploy when I added a basic js file and exported a class. 

 

After I got that working I tried to use the @import which failed with the message 

Unknown ref type slds for ref <mynewcssfile>.css in file <componentIamImportingInto>.css

 

Wondering if anybody had been able to get the above working by following the documentation before. I have many components that will share the same CSS and don't want to be duplicating it everywhere.

6 comments
0/9000

[Blog Post] Use Lightning Message Service (LMS) to communicate between Visualforce and Lightning Components (Aura) and Lightning Web Components (LWC) on any Lightning page. LMS API allow you to publish message throughout the lightning experience and subscribe the same.

https://newstechnologystuff.com/2020/03/22/lightning-message-service-quick-demo/

10 comments
0/9000