• Ashutosh kumar yadav
  • 0 Points
  • Member since 2020

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 4
Hello Helper

I hope  I am asking my  questin  in the rith place. It  is about lightning 

I am using lightning:datatable  component  to display  data  retrieved  from a custom object.  I was able to  set  the columns  and the data  but I can not  see properly  field of type checkbox

    <lightning:datatable data="{!v.mydata}" 

        component.set('v.mycolumns', [
        {label: 'Team Member', fieldName: 'Name__c', type: 'text'},
        {label: 'Reason', fieldName: 'Assignment_Reason__c', type: 'text'},
        {label: 'Channel', fieldName: 'Channel__c', type: 'text'}, 
        {label: 'Active', fieldName: 'Active__c', type: 'checkbox'}     

I suspect the problem is  with the type  of the column

any  idea/suggestions?

Thanks in advance
Dear fellow experts,

I am building a lightning component where I am using a form with fields in order to create multiple opportunities.

I am already able to create multiple opportunities in my database but I am not able to create multiple local opportunities yet.
I want to first create multiple local opportunities that I can display as a list with certain fields that can be manually adjusted.

I very much appreciate help, since I couldn't find any solution although I was searching for it for one week!

Here is my code:


<!-- form with fields that are used to create multiple opportunities, i don't think this code is relevant, therefore not shown here-->

<!--variable that is supposed to generate a collection or array where i can store my new local objects-->

<aura:attribute name="newChildOpportunities" type="Opportunity[]"/>

<!--Button that is supposed to create local opportunities-->
<ui:button label="Create child Opportunities" press="{!c.createChildOpportunitieslocally}"/>

<!--this part is supposed to iterate through all child opportunities, doesn't display them yet-->
 <table class="slds-table slds-table--bordered">
           <th scope="col"><span class="slds-truncate">Name</span></th>
           <th scope="col"><span class="slds-truncate">Child Deal Size</span></th>
<aura:iteration items="{!v.newChildOpportunities}" var="opportunity">
     <td><ui:inputCurrency aura:id="childAmount" value="{!v.childDealSize}"/></td>    

    createChildOpportunitieslocally: function(component, event, helper) {
        var i=0;
            component.set("v.newChildOpportunity.Name", "child " + i);
            component.set("v.newChildOpportunity.Deal_Size__c", 500);

Let me know if you need further information.

Thank you in advance for your help :)!

Best regards,

Hi All,


I'm trying to create a record in salesforce, but I'm getting an exception as System.NullException.


using System;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Text;
using System.Net;
using System.IO;
using System.Xml;
using System.Data;
using sforce;

public partial class Example : System.Web.UI.Page
    private SforceService binding;
    protected void Page_Load(object sender, EventArgs e)

    protected void btnClick(object sender, EventArgs e)

    /// Demonstrates how to create one or more Account records via the API 

    public void CreateAccountSample()
        Account account1 = new Account();
        Account account2 = new Account();

        account1.BillingCity = "Wichita";
        account1.BillingCountry = "US";
        account1.BillingState = "KA";
        account1.BillingStreet = "4322 Haystack Boulevard";
        account1.BillingPostalCode = "87901";

        account2.Name = textName.Text;
        account2.BillingCity = TextBox1.Text;
        account2.BillingCountry = TextBox2.Text;
        account2.BillingState = TextBox3.Text;
        sObject[] accounts = new sObject[2];
        accounts[0] = account1;
        accounts[1] = account2;
            SaveResult[] saveResults = binding.create(accounts);

            for (int i = 0; i < saveResults.Length; i++)
               if (saveResults[i].success)
                    Console.WriteLine("An Account was created with Id: {0}",
                    Console.WriteLine("Item {0} had an error updating", i);
                    foreach (Error error in saveResults[i].errors)
                        Console.WriteLine("Error code is: {0}",
                        Console.WriteLine("Error message: {0}", error.message);
        catch (System.Web.Services.Protocols.SoapException e)




It would be appriciative if any one rectifies me where I'm going wrong.


thanks in advance.