• Tom Hanel
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 5
    Replies
Hi,
I'm trying to use a token in my css file eg 

@media (min-width: t(mobile_screen_size)) {
.THIS .css_selector{
display:inline-block;
}
}

and the token system does not seem to support putting a token in a media query. The generated css file simply contains the unsubstituted token string in it.

If I use a token within a normal class selector it works correctly. Does anyone know if you can put a token in a media query ?
Thanks Tom.
Hi, 
I have found that I get an error when creating an attribute for an sObject type, but only when accessed via lightning out from an external page. When I access component via a visualforce page I don't get an error. Is there something special that needs doing for me to access an sobject through lightning out (on an external page) ?

I am using unauthenticated access from the external lightning out page and it all works fine until I add the attribute 

    <aura:attribute name="webFormData" type="Web_form_data__c" default="{'sobjectType': 'Web_form_data__c'}"/>

Thanks Tom.
Hi, 
I have found that I get an error when creating an attribute for an sObject type, but only when accessed via lightning out from an external page. When I access component via a visualforce page I don't get an error. Is there something special that needs doing for me to access an sobject through lightning out (on an external page) ?

I am using unauthenticated access from the external lightning out page and it all works fine until I add the attribute 

    <aura:attribute name="webFormData" type="Web_form_data__c" default="{'sobjectType': 'Web_form_data__c'}"/>

Thanks Tom.
I'm trying to use lighting out for unauthenticatef access to an app but i'm hitting an intermetten error.  I have set this up inside two sandboxes with same result.

inline.js and bootstrap.js resource request responses are 404 on some days and then loads fine on other days.  I've tried chrome, safari, and firefox.

can someone please validate that i'm doing this correctly

APP:
<aura:application access="GLOBAL" extends="ltng:outApp" implements="ltng:allowGuestAccess">
    <aura:dependency resource="c:ltestDep"/>
</aura:application>
DEPENDENT COMPONENT:
<aura:component description="ltestDep" implements="forceCommunity:availableForAllPageTypes">
    <h1>salesforce page</h1>
    <h1>Los Dos Bros</h1>
    <ui:inputDate aura:id="dateField" label="Birthday" value="2014-01-30" displayDatePicker="true"/>
    <lightning:input label="Date" name="date" type="date"/>
</aura:component>

CLIENT CODE:
<script src="https://scaledagile--badging.cs3.my.salesforce.com/lightning/lightning.out.js"></script>
<script>

    $Lightning.use(
        "c:loutTest",
        function(){
            $Lightning.createComponent(
                "c:ltestDep",
                calArgs,
                "calTest",
                function(cmp){ console.log("callback execute"); }
            );
        },
        "https://dev-scaledagile.cs43.force.com/community"
    );

result:
error 404s