• Amit Vaidya
  • NEWBIE
  • 451 Points
  • Member since 2011
  • Developer
  • Cybage

  • Chatter
    Feed
  • 5
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 114
    Replies
Hello,

1.) I have an "Account" standard object which is in master-detail relationship with custom object "Shop" where I added custom field "Account" which is of "Master-Detail" field linked to the Account Object.
I am not sure how to "connect" these objects - should I put an ID of particular Account record in custom field "Account" of Master Detail type which is part of custom object "Shop"? How would 'I get the ID of particular "Account" record?


2.) I have also created a custom object "Opening_Hours" which is linked to custom object "Store"  as I have added custom field to the "Store" object which is called "Open_Hours_Id" and is linked via lookup to custom object "Opening_Hours". The "primary key" for particular opening hours is of type text so "Opening_Hours" has an "ID record" of type text.
The question is how to insert "Opening_Hours" object's "ID record" to the custom field "Open_Hours_Id" of custom object "Store"_

Appreciate your help,
Milan
Login Issue :-when i was trying to connect my DE Org i got This Error :(You are attempting to log into Trailhead to complete challenges with an org that isn't supported. When you are completing Trailhead hands-on challenges, you cannot use a production or sandbox org. You must use a Developer Edition (DE) org to complete Trailhead challenges.
Hi Everyone,
 
//Component: LightningNavigate
<aura:component implements="force:appHostable">
    <div id="aura-page">
        <div class="container">
            <ui:button label="gotoURL" press="{!c.gotoURL}" />
        </div>
        <div class="container">
            <ui:button label="navigate" press="{!c.navigate}" />
        </div>
    </div>
</aura:component>

//Controller
({
    gotoURL : function(component, event, helper) {
        helper.gotoURL(component);
    },
    navigate : function(component, event, helper) {
        helper.navigate(component);
    }
})

//Helper
({
    gotoURL : function (component, event) {
        var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
          "url": "/006/o"
        });
        urlEvent.fire();
    },
    navigate : function(component,event) {
        var address = '/Salesforce.com+Inc/@37.793779,-122.39448,17z/';
        var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
          "url": 'https://www.google.com/maps/place/' + address
        });
        urlEvent.fire();
    }
})

//App
<aura:application >
    <c:LightningNavigate />
</aura:application>

While running above code, I am getting following issue:

Something has gone wrong. Action failed: c$LightningNavigate$controller$gotoURL [TypeError: Cannot read property 'setParams' of undefined] Failing descriptor: {c$LightningNavigate$controller$gotoURL}. Please try again.

Can someone please help me to resolve it?

Thanks,
Amit
I have User lookup field in opportunity which is manditory,if we save the  opportunity record  with stage='closed won',and selecting one user in User field and now if  we try to edit opportunity record the User lookup field should be read only with the previous value saved .
Hi,
I have enabled namespace in my dev org. Namespace name - LightningMyth.
When I write the following query in any class/trigger, I get the error : : Illegal assignment from List<Account> to List<LightningMyth.Account>
List<Account> acc=[SELECT ID FROM ACCOUNT limit 1];
but the same query works fine in workbench and QueryEditor.
When I changed the query to List<LightningMyth.Account> acc=[select id from LightningMyth.Account limit 1];
I get this error - Compile Error: First SObject of the FROM statement must be a valid SObject type.
I get this issue after enabling namespace and this issue is only with Account object, the SOQL with other standard and custom objects works just fine.
Any help is appreciated!
Hi All,

I want to hide aura:iteration indexing of same name..here is my code
<aura:iteration items="{!v.payStmtList}" var="paySt" indexVar="index">
            <tr>
                <td> <ui:outputText value="{!paySt.Name}" /></td>
                <td>{!index}</td>
                <td></td>
            </tr>
            <br/>
            <tr>
                <aura:iteration items="{!v.fieldNames}" var="fieldName">
                    <td>
                        <c:PayStatementItem paySt="{!paySt}" fieldName="{!fieldName}"/>
                    </td>
                </aura:iteration>
            </tr>
        </aura:iteration>
I am attaching the file of output.
User-added image
I want to achieve something like when one Month Name is coming in the first iteration "<td> <ui:outputText value="{!paySt.Name}" /></td>".. here december december and november november is coming two/three times I want these values to be once. Anybody has any idea
Hi, I have problem in the challenge which is as follows : 
Create a Lightning Component to display a single item for your packing list.
  • Create a component called campingListItem that displays the name (ui:outputText) and the three custom fields using the appropriate output components.
  • Add an attribute named item for type Camping_Item__c that is required.
for this I made component campingListItem.cmp which has following code :
<aura:component>
    <aura:attribute name="item" type="Camping_Item__c" />    
    <p>Name:<ui:outputText value="{!v.item.Name}"/></p>    
    <p>Quantity:<ui:outputNumber value="{!v.item.Quantity__c}"/></p>    
    <p>Price:<ui:outputCurrency value="{!v.item.Price__c}"/></p>
    <p>Packed?:<ui:outputCheckbox value="{!v.item.Packed__c}"/></p>
</aura:component>

but data is not displaying from object simple HTML text is displaying as follows:
Name:
Quantity:
Price:
Packed?:  False

please give me some suggestion.

 
I have a Community built in Community Builder that uses lightning components and the Lightning Design System css & asset package.  I am using one of the svg icons from the SLDS assets, and it's working fine in the sandbox (the published community in the sandbox is rendering the icon as expected).

However, now that the community is in Production, the published pages are not displaying the icon, and I'm getting a 404 error when the page tries to load the asset: "https://myclientsorg.force.com/resource/SLDS0122/assets/icons/custom-sprite/svg/symbols.svg "  This is the path to the asset that's failing to load.  However, I'm using the CSS from the same package, so it's just the svg symbols that aren't showing up.

Can anyone provide any insight??
 
I am trying to design a UI for a custom object .
The steps involved are 1.Create a new opportunity 2.Create a new custom object(Reference__c) within opportunity  3.Select Custom object from a lookupfield (Test_Service_Item__c) within Reference. It is the fields in the (Test_Service_Item__c) that the UI is for.

My VF code is :
<apex:page standardController="Test_Service_Item__c" >
<apex:pageMessages ></apex:pageMessages>
    <apex:pageBlock id="thePageBlock" >
        <apex:pageBlockSection title="test" columns="1" >
        <apex:form >    
     <apex:inputfield value="{!Test_Service_Item__c.Reference__c}"/>
        <apex:inputfield value="{!Test_Service_Item__c.name}"/>
         <apex:inputfield value="{!Test_Service_Item__c.Customer_OnSite__c}"/>
          <apex:inputfield value="{!Test_Service_Item__c.Required_Item__c}"/>
           <apex:inputfield value="{!Test_Service_Item__c.Show_Price_On_Quote__c}"/>
        <apex:inputfield value="{!Test_Service_Item__c.Include_in_Quote__c}"/>
         <apex:inputfield value="{!Test_Service_Item__c.Overall_Sort_Order__c}"/>
         <apex:inputfield value="{!Test_Service_Item__c.Price__c}"/>
         <apex:inputfield value="{!Test_Service_Item__c.Answer__c}"/>
         <apex:inputfield value="{!Test_Service_Item__c.Sort_Order__c}"/>
         <apex:inputfield value="{!Test_Service_Item__c.Std_Sort_Order__c}"/>   
        <apex:commandButton action="{!save}" value="save"/>       
         </apex:form>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>

This is dispalying the fields but they are blank. Do i need Apex class to have the values of the object appearing in VF page?
Hi,

1. We have created a lightning component and lightning application.
2. Referred lightning app in visualforce page to display the table of records.

When we are displaying the bulk records (more than 500), it is taking more time (>30 Sec)  due to huge logic in the javaScript helper.

Instead of displaying all the 500 records at a time which is consuming more time, I want to load 5 records first later it can process for the remaining records.

If anyone of you having suggestions please let me know.

Thanks,
Srinivas
 
Hello Everyone,
I was wondering how to disable the "opening sequence" in lightning experience? When you log in or open a new page using lightning, you have to watch the butterfly flap it's wings for a minute or until it's obvious it's not going to work and you have to revert to classic. This is one of my many grievances concerning lightning. My other big one is that you rarely can open other pages in new tabs because it's all done with Java, but even then you still have to watch the butterfly. Can anyone please help me with this?

Much appreciative,
Parker