• Matyas Csaba
  • NEWBIE
  • 70 Points
  • Member since 2016
  • Salesforce Developer
  • Logmein

  • Chatter
    Feed
  • 0
    Best Answers
  • 4
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 8
    Replies
Hello Helper

I  wonder if  there is possibe to call the ServiceAppointment Optimization job from apex?
As i read in the specs  the optimization can be initiated from the UI  clicking a  button.

I  would like  to investigate the option to call the optimization job  from an apex class
Helo Helpers

I  have a simple  lightning card which has a title and a footer  and in the body  a list  of  string
I  would like  to have different background color for title  section  for Footer section  and if  possible for  the body  section

I guess I  have to play  wiht the STYLEs  and/or  class  but I  am not familiar  with these.
See below  the code of  my  component 

<lightning:card class="slds-text-heading_small slds-card_boundary"   title="attribute1"  footer="attribute2" >
    <div class="slds-p-left--medium slds-p-right--medium">
        <ul class="slds-list--vertical slds-has-dividers--top-space">
            <aura:iteration  items="{!v.items}" var="item" indexVar="i">
                <li class="slds-list__item">                   
                    {!item}
                </li>
            </aura:iteration>
        </ul>
    </div>
</lightning:card> 

Any  sugeston of  code fragment welcommed

thanks in advance 
Csbaa
Hello Helpers

I am trying to use VS Code with one of  my org (NOT a scratch org!) and  I have problem using some of the CLI  commands.  It seems that all force  namespace is missign because when I  type in te command bar the SFDX: force  I got "No commands matching"

What I am interested in the first step to us is to add to my VS project an existing Apex class form my org. 
I do not want to  add it  manually  to package.xml
and retreieve it
I want to use the following CLI command
sfdx force:source:retrieve --metadata ApexClass:YourApexClass.

error with SFDX: force   namespace

 
Hello Helpers 

I can not complate  "Configure Quote Templates and Track Contracts"  in Trailhead

I  have problem implementeing this point in the requirement
Create a quote and name it Diesel Generator and Installation for Edge

Quote ogject(SBQQ__Quote__c) Name field () is an autonumber  and  It can not be changed

There is no option  to manually set a Quote name

any idea?
Hello Helpers

I am stucked with the second step in the Lightning Component Framework Specialist  badge
I keep getting the below  error message

Error when validating
what is not clear  to me  is  that the term "Friends with Boats"  reffer to  the Lightning page  or to the lightning app. The reqquirement is not clear  for  me. 
"Create a Lightning page named Friends with Boats that uses the Main Column and Right Sidebar Layout. Put the BoatSearch component in the main column. Activate the page as a new tab in Lightning Experience and the Salesforce App. Lastly, create a Lightning application named FriendswithBoats.app that is directly accessible via its URL, with a layout that is similar to the Lightning page. Use... "

The error message is misleadign for me.
There  was no requirement to  create  Application  with Name "Friends with Boats" !! 
There is  a PAGE  with that name.  The required lightning app is called  "FriendswithBoats"


My problem is that I  have both but still fail the validation.  It migh be a namig convention issue or a mispelled word but fitrst I need to know where to look  for
See some pictures  and code from my  Playrounf org  for page and for Application

this prove I  have the page
The above picture prove that I have the Lightning PAGE

This sprove i have the App
The above  picture  prove that I have the FrisndswithBoat.app lightning Application   


and  here is the code  for the FriendswithBoat.app   

<aura:application extends="force:slds" >
    <lightning:layout >
    <div class="slds-grid slds-gutters">
          <div class="slds-col slds-size_2-of-3">
            <c:BoatSearch/>
          </div>
          <div class="slds-col slds-size_1-of-3">
            <span></span>
          </div>
    </div>
      </lightning:layout>
</aura:application>


I  can not figure out  what i am missing here

Thanks in advance
Csbaa
Hello Helpers

I would like to  deploy  Lead conversion mapping. Reading the specs LeadConvertSettings  is  where solutionnis
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_leadconvertsettings.htm

I  am able  to retrieve all  mapping with a Package.xml  like below:

<types>
    <members>*</members>
    <name>LeadConvertSettings</name>
</types>

BUT  i  do not  want all  mapping items
I want o deploy  only  a  couple  of  Lead  to Opportunity mapping
If  I  delete items from the leadConvertSettings ffile and Keep  only  the fileds I am interested  and Deploy, All other  mappings are deleted

<?xml version="1.0" encoding="UTF-8"?>
<LeadConvertSettings xmlns="http://soap.sforce.com/2006/04/metadata">
    <objectMapping>
        <inputObject>Lead</inputObject>
        <mappingFields>
            <inputField>MyLeadField</inputField>
            <outputField>MyOppField</outputField>
        </mappingFields>
         <outputObject>Opportunity</outputObject>
    </objectMapping>
</LeadConvertSettings>



In the Destination  Org  I want to  keep  all existing mapping and add some new one.  I  wan tto deploy  only    tne new ones

Thaanks in advance
Csaba 
Hello Helpers

I am workign on a lightnig component where I  need menu +  sub-menus
To acchieve the menu_submenu item reqquirement I used a nested   <ui:menu >  like in the code below 
      
            <ui:menu aura:id="TopMenu">
                <ui:menuTriggerLink aura:id="Columntrigger" label="Sort Opportunities">
                <lightning:icon iconName="utility:down" size="x-small"/>
                 Sort Opportunities
                </ui:menuTriggerLink>
                <ui:menuList aura:id="ColumnItem"  >
                        <aura:iteration items="{!v.ParentSortFields}" var="col" indexVar="colindexu">
                            <ui:menu aura:id="InnerMenu">
                            <ui:menuTriggerLink aura:id="Sorttrigger" label="{!col.label}" click="{!c.TriggerLinkClick}" >
                            {!col.label}
                            </ui:menuTriggerLink>
                                <ui:menuList class="actionMenu" aura:id="SortDir"  menuSelect="{!c.selectedmenuList}">
                                        <ui:actionMenuItem label="Ascending" hideMenuAfterSelected="true"/>
                                        <ui:actionMenuItem label="Descending" hideMenuAfterSelected="true" />
                                        <ui:menuItemSeparator />
                               </ui:menuList>                        
                           </ui:menu>

                           <ui:actionMenuItem label="" />
                           <ui:actionMenuItem label="" />
                           <ui:menuItemSeparator/>
                        </aura:iteration>
              <ui:menuItemSeparator />
               </ui:menuList>
            </ui:menu>

I am happy  with the functonality  but  not happy wiht the layout
when I  am opening the menu drpdown I  have the below

How it looks  when open 
This is  more and less OK  however I  would d like  to  position the Menuitem  to left  or  to right (if  possible to not  cover the data)

when I  click on any  menuItem  it opens the submenu  like below:

User-added image

This  is what I  do not  like.  I  would like to  have my  submenu items opened  on the right  side of the parent MenuItem

There is  any option fo this?

If somebody  has  other suggestion to  create  menu  wiht submenus is welcommed because my  solution looks like an uggly workaround

Thanks in advance
Csbaa
Hello Helper

I am building a Ligthning component  where I  have a grid  witrh col  items and inside each  column cell  i am inserting  other component(Ligthning:datatable)

When the component is  displayed its  heigth  is  adjusted  to match the height  of the datatable like  below:

User-added image
I DO NOT  want this

I  would  like  to  define the height of the column box  and if  datatable  has many  rows  i  would  like to add scrollign to  the grid col

I  guess  i  have to use  class="slds-scrollable"
BUt I  am not able  to do it properly

See below  a piece of  my  code  where I define 1  column

        <div class="slds-grid">
          <div class="slds-col slds-box  slds-size_3-of-12  ">
            <span >
                                <lightning:datatable data="{!obj.innerdata}" 
                                    columns="{!v.InnerOppTHeader}" 
                                    keyField="id"  
                                    hideCheckboxColumn="true"
                                    >    
                                </lightning:datatable> 
            </span>
          </div>
   ...
  </div>


any  sugestions?

Thanks in advance
Csbaa
Hello Helper

I  am workig on an lightning component whihc displayes records  from differetn sources  in a tabbed way
I am using a combination  of lightning:tabset  lightning:tab   componets  and aura:iteration
I  would  like to see my  tabs  with soe border

Have a look  at the below  picture
what I  have is  the first  example
what I would  like  to  have  is  something similar you can see in the second example

User-added image

At the end of the day  what I  want to  see is to have my  tabs separated better visualy
thanks in advance  for any suggestion

see the code  I am using. i was playing the  the css classes but obvoiusly  it is not enough


        <lightning:tabset >
         <aura:iteration items="{!v.mySetupdata}" var="obj">
                       <div class=" slds-tabs_scoped">
                       <ul class="slds-tabs_scoped__nav" role="tablist" >
                       <lightning:tab label="{!obj.childObjLabel}"  >
                             <c:LightningDataTable childObjName="{!obj.childObjName}"
                                                   LookupFieldName="{!obj.LookupFieldNameOnSouce}"
                                                   mycolumnNames="{!obj.SourceColumnNames}"
                                                   mycolumnLabels="{!obj.SourceColumnLabels}"
                                                   ParentRecordId="{!obj.ParentRecordID}"/>
                       </lightning:tab>
                       </ul>
                       </div>
         </aura:iteration>
        </lightning:tabset>  

Regards
Csaba
Hello Helpers

I  am playign with component Lightning:tile  and trying to  display  some records(retrieved  from Opportunities  and related Account) in tiles
I am able  to  do  this but the tiles  are in 1  column
I would like  to  have 2  columns

This is  what I  have now.
User-added image

The information  I want to  display  are stored  in a  2  dimensional strign array  (v.mydataLst in my  code)
The  columns  are in  a separate  string array
I am using a  couple of  aura:iteration to  fetch  the array data items  and the  column headers  but it  does not looks as I  would like  to  look

Any  advice?

Thanks in advance
Csaba

            <aura:iteration items="{!v.mydataLst}" var="records" >
            <div id="Tilu" class="slds-size_1-of-2 slds-box">
                <lightning:tile label="{!records[0]}">
                    <aura:set attribute="media">
                        <lightning:icon iconName="standard:groups"/>
                    </aura:set>
                        <aura:iteration items="{!v.mycolumnsLst}" var="col" indexVar="colCount">
                        <aura:if isTrue="{!(colCount > 0)}">
                                      <aura:iteration items="{!records}" var="recItem" indexVar="rowcount">
                                        <aura:if isTrue="{!(rowcount == colCount)}">
                                        <dl class="slds-dl_horizontal" >
                                            <dt class="slds-dl_horizontal__label">
                                                <p class="slds-truncate" >{!col.label}:</p>
                                            </dt>
                                            <dd class="slds-dl_horizontal__detail slds-tile__meta">
                                                <p class="slds-truncate" >{!recItem}</p>
                                            </dd>
                                        </dl>
                                        </aura:if>
                                      </aura:iteration>
                        </aura:if>
                       </aura:iteration>
                </lightning:tile>
            </div> 
Hello helpers

I  have a Lightning :datatable  where I  would   like  to  add some formatting
I am not able to  set a background color  to  the table  column headers
I was able  to set the color of the font  for the header but  no background

any idea  why  the  below  code  is  nto  working?
I  hightlighted  with  bold  background color  settig code

I  wrapped the Ligthning:datatable  with a  <div>  having id="dt1" 

<head>
<style>

#dt1 
{
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
}

#dt1 td
{
    border: 1px solid #ddd;
    padding: 8px;
}

#dt1 tr:nth-child(even){background-color: #f2f2f2;}

#dt1 tr:hover {background-color: #ddd;}

#dt1 table thead th 
{   
   color: blue;
   font-weight:bold;
   background-color: #66ccff;
   border: 1px solid #ddd;
}

</style>
</head>

            <div id="dt1">

            <lightning:datatable data="{!v.mydataLst}" 
          ....
            </lightning:datatable> 

            </div>
Hello helpers

I am developig an applicatin isung lightning:datatable  and i  would  like to add some formatting to the data

I was able  to  format  the data rows  and data cells but I am not  able to influence how column header look  like
see below  how it looks like to better understand what I am lookign for.  As a minimum I would like  to have the column Names bold  and in different color like  the rest  of the table. 

User-added image
  
Thanks in advance
 
Hello Helplers

I  have a question related  to  Lihtning:dataTable  componenent
There is an option  the  CLIP  or WRAP  the test  in a cell.
By  Default CLIP  is used and user  can switch to WRAP

What I  want is  to  have the  WRAP  being defaulted

Is  there any  solution for this?

Thanks in advance
Csbaa 
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}" 
        columns="{!v.mycolumns}" 
        hideCheckboxColumn="false"/>

        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
csaba
Hello Reader

I  have a Custom object  (called API_Order__c) which has  lookup  field to Account
My plan is  to insert  MULTIPLE  records  in 1  REST API call and I am trying to build  the good JSON
I am not able to do this. I tried  the stanbdard REST  and I tried  to  use the COmposite/tree  REST

Seee below what I havew tried:

TEST 1

I want to  create  1 record  using REST command AND I want to reference the Account with External ID.
I use the below  REST
Method: POST
URL: /services/data/v39.0/sobjects/API_Order__c/

{
  "SourceFile__c" : "DE_1A_MSV3",
  "Order_Date__c" : "2017-07-07",
  "Account__r" : 
         {
         "External_ID_vod__c":"WDEF01663170"
         },
  "Account_Name__c" : "Adler-Apotheke",
  "NumberOfExpectedItemLines__c" : "2", 
  "External_Id__c" : "API_O_1003"
}

this is WORKING

​TEST 2
BUT  if I want to insert  MULTIPLE  records  I do not  know  what is  the right syntax


[
{
  "SourceFile__c" : "Value 1",
  "Order_Date__c" : "2017-07-07",
  "Account__r" : 
         {
         "External_ID_vod__c":"XXXX"
         },
  "External_Id__c" : "API_O_1003"
},
{
  "SourceFile__c" : "Value 2",
  "Order_Date__c" : "2017-07-08",
  "Account__r" : 
         {
         "External_ID_vod__c":"YYYY"
         },
  "External_Id__c" : "API_O_1003"
}
]

I god  JSON parsng ERROR

TEST 3

I tried to use  the COMPOSITE  REST  call  to insert Multiple records and if I am passing the Salesforce ID  of  the  Account lookup is OK 

POST
/services/data/v39.0/composite/tree/API_Order__c

{
"records" :[
  {
  "attributes" : {"type" : "API_Order__c", "referenceId" : "ref1"},
  "SourceFile__c" : "DE_1A_MSV3",
  "Order_Date__c" : "2017-07-07",
  "Account__c" : "0015E000004jH2I"
  }, 
  {
  "attributes" : {"type" : "API_Order__c", "referenceId" : "ref2"},
  "SourceFile__c" : "Val2",
  "Order_Date__c" : "2017-07-07",
  "Account__c" : "0015E000004jH2I"
   }]
}

TEST 4
BUT IF  I TRY  TO REFERENC ETHE ACCOUNT WITH EXTER NAL ID  I FAIL

POST
/services/data/v39.0/composite/tree/API_Order__c

{
"records" :[
  {
  "attributes" : {"type" : "API_Order__c", "referenceId" : "ref1"},
  "SourceFile__c" : "DE_1A_MSV3",
  "Order_Date__c" : "2017-07-07",
  "Account__r" : 
         {
         "External_ID_vod__c":"WDEF01663170"
         },
  "Account_Name__c" : "Adler-Apotheke",
  "NumberOfExpectedItemLines__c" : "2", 
  "External_Id__c" : "API_O_1001"
  },
  {
  "attributes" : {"type" : "API_Order__c", "referenceId" : "ref2"},
  "SourceFile__c" : "DE_1A_MSV3",
  "Order_Date__c" : "2017-07-07",
  "Account__r" : 
         {
         "External_ID_vod__c":"WDEF01663170"
         },
  "Account_Name__c" : "Adler-Apotheke",
  "NumberOfExpectedItemLines__c" : "2",
  "External_Id__c" : "API_O_1002"
   }]
}

I have the ERROR  message: Cannot reference a foreign key field Account__r.


Any help?  

Thanks in advance Csaba
Hello Helper

I need to retrieve by  code all accouts  belongong to a given  territory (and subordinates but this is secondary)

I know the info  is  somewhere in AccountShare

My first attempt was to  retrieve all users  belonging  to the territory from UserTerritory object  and then run a query  against  the AccountShare 
where UserGroupId in (the user  resulted  from Userterritory  query)

BUT  this is not  enough. If  no  User  is assigned to the terr I can not find the Accounts

Other option?

I am thinking to  query  first  the Group Object  and find those groupID  where RelatedId is  my Territlry
then go  with these  UserGroupId back  to AccountShare

but this might not be enough  again because  of the group  hierarchy

Did anybody  worked  on this topic?

Thanks in advance
Csbaa 
Helo Helpers

I  have a simple  lightning card which has a title and a footer  and in the body  a list  of  string
I  would like  to have different background color for title  section  for Footer section  and if  possible for  the body  section

I guess I  have to play  wiht the STYLEs  and/or  class  but I  am not familiar  with these.
See below  the code of  my  component 

<lightning:card class="slds-text-heading_small slds-card_boundary"   title="attribute1"  footer="attribute2" >
    <div class="slds-p-left--medium slds-p-right--medium">
        <ul class="slds-list--vertical slds-has-dividers--top-space">
            <aura:iteration  items="{!v.items}" var="item" indexVar="i">
                <li class="slds-list__item">                   
                    {!item}
                </li>
            </aura:iteration>
        </ul>
    </div>
</lightning:card> 

Any  sugeston of  code fragment welcommed

thanks in advance 
Csbaa
Hello Reader

I  have a Custom object  (called API_Order__c) which has  lookup  field to Account
My plan is  to insert  MULTIPLE  records  in 1  REST API call and I am trying to build  the good JSON
I am not able to do this. I tried  the stanbdard REST  and I tried  to  use the COmposite/tree  REST

Seee below what I havew tried:

TEST 1

I want to  create  1 record  using REST command AND I want to reference the Account with External ID.
I use the below  REST
Method: POST
URL: /services/data/v39.0/sobjects/API_Order__c/

{
  "SourceFile__c" : "DE_1A_MSV3",
  "Order_Date__c" : "2017-07-07",
  "Account__r" : 
         {
         "External_ID_vod__c":"WDEF01663170"
         },
  "Account_Name__c" : "Adler-Apotheke",
  "NumberOfExpectedItemLines__c" : "2", 
  "External_Id__c" : "API_O_1003"
}

this is WORKING

​TEST 2
BUT  if I want to insert  MULTIPLE  records  I do not  know  what is  the right syntax


[
{
  "SourceFile__c" : "Value 1",
  "Order_Date__c" : "2017-07-07",
  "Account__r" : 
         {
         "External_ID_vod__c":"XXXX"
         },
  "External_Id__c" : "API_O_1003"
},
{
  "SourceFile__c" : "Value 2",
  "Order_Date__c" : "2017-07-08",
  "Account__r" : 
         {
         "External_ID_vod__c":"YYYY"
         },
  "External_Id__c" : "API_O_1003"
}
]

I god  JSON parsng ERROR

TEST 3

I tried to use  the COMPOSITE  REST  call  to insert Multiple records and if I am passing the Salesforce ID  of  the  Account lookup is OK 

POST
/services/data/v39.0/composite/tree/API_Order__c

{
"records" :[
  {
  "attributes" : {"type" : "API_Order__c", "referenceId" : "ref1"},
  "SourceFile__c" : "DE_1A_MSV3",
  "Order_Date__c" : "2017-07-07",
  "Account__c" : "0015E000004jH2I"
  }, 
  {
  "attributes" : {"type" : "API_Order__c", "referenceId" : "ref2"},
  "SourceFile__c" : "Val2",
  "Order_Date__c" : "2017-07-07",
  "Account__c" : "0015E000004jH2I"
   }]
}

TEST 4
BUT IF  I TRY  TO REFERENC ETHE ACCOUNT WITH EXTER NAL ID  I FAIL

POST
/services/data/v39.0/composite/tree/API_Order__c

{
"records" :[
  {
  "attributes" : {"type" : "API_Order__c", "referenceId" : "ref1"},
  "SourceFile__c" : "DE_1A_MSV3",
  "Order_Date__c" : "2017-07-07",
  "Account__r" : 
         {
         "External_ID_vod__c":"WDEF01663170"
         },
  "Account_Name__c" : "Adler-Apotheke",
  "NumberOfExpectedItemLines__c" : "2", 
  "External_Id__c" : "API_O_1001"
  },
  {
  "attributes" : {"type" : "API_Order__c", "referenceId" : "ref2"},
  "SourceFile__c" : "DE_1A_MSV3",
  "Order_Date__c" : "2017-07-07",
  "Account__r" : 
         {
         "External_ID_vod__c":"WDEF01663170"
         },
  "Account_Name__c" : "Adler-Apotheke",
  "NumberOfExpectedItemLines__c" : "2",
  "External_Id__c" : "API_O_1002"
   }]
}

I have the ERROR  message: Cannot reference a foreign key field Account__r.


Any help?  

Thanks in advance Csaba
Hello Helpers

I am trying to use VS Code with one of  my org (NOT a scratch org!) and  I have problem using some of the CLI  commands.  It seems that all force  namespace is missign because when I  type in te command bar the SFDX: force  I got "No commands matching"

What I am interested in the first step to us is to add to my VS project an existing Apex class form my org. 
I do not want to  add it  manually  to package.xml
and retreieve it
I want to use the following CLI command
sfdx force:source:retrieve --metadata ApexClass:YourApexClass.

error with SFDX: force   namespace

 
Hello Helper

I am building a Ligthning component  where I  have a grid  witrh col  items and inside each  column cell  i am inserting  other component(Ligthning:datatable)

When the component is  displayed its  heigth  is  adjusted  to match the height  of the datatable like  below:

User-added image
I DO NOT  want this

I  would  like  to  define the height of the column box  and if  datatable  has many  rows  i  would  like to add scrollign to  the grid col

I  guess  i  have to use  class="slds-scrollable"
BUt I  am not able  to do it properly

See below  a piece of  my  code  where I define 1  column

        <div class="slds-grid">
          <div class="slds-col slds-box  slds-size_3-of-12  ">
            <span >
                                <lightning:datatable data="{!obj.innerdata}" 
                                    columns="{!v.InnerOppTHeader}" 
                                    keyField="id"  
                                    hideCheckboxColumn="true"
                                    >    
                                </lightning:datatable> 
            </span>
          </div>
   ...
  </div>


any  sugestions?

Thanks in advance
Csbaa
Hello Helpers

I  am playign with component Lightning:tile  and trying to  display  some records(retrieved  from Opportunities  and related Account) in tiles
I am able  to  do  this but the tiles  are in 1  column
I would like  to  have 2  columns

This is  what I  have now.
User-added image

The information  I want to  display  are stored  in a  2  dimensional strign array  (v.mydataLst in my  code)
The  columns  are in  a separate  string array
I am using a  couple of  aura:iteration to  fetch  the array data items  and the  column headers  but it  does not looks as I  would like  to  look

Any  advice?

Thanks in advance
Csaba

            <aura:iteration items="{!v.mydataLst}" var="records" >
            <div id="Tilu" class="slds-size_1-of-2 slds-box">
                <lightning:tile label="{!records[0]}">
                    <aura:set attribute="media">
                        <lightning:icon iconName="standard:groups"/>
                    </aura:set>
                        <aura:iteration items="{!v.mycolumnsLst}" var="col" indexVar="colCount">
                        <aura:if isTrue="{!(colCount > 0)}">
                                      <aura:iteration items="{!records}" var="recItem" indexVar="rowcount">
                                        <aura:if isTrue="{!(rowcount == colCount)}">
                                        <dl class="slds-dl_horizontal" >
                                            <dt class="slds-dl_horizontal__label">
                                                <p class="slds-truncate" >{!col.label}:</p>
                                            </dt>
                                            <dd class="slds-dl_horizontal__detail slds-tile__meta">
                                                <p class="slds-truncate" >{!recItem}</p>
                                            </dd>
                                        </dl>
                                        </aura:if>
                                      </aura:iteration>
                        </aura:if>
                       </aura:iteration>
                </lightning:tile>
            </div> 
Hello helpers

I  have a Lightning :datatable  where I  would   like  to  add some formatting
I am not able to  set a background color  to  the table  column headers
I was able  to set the color of the font  for the header but  no background

any idea  why  the  below  code  is  nto  working?
I  hightlighted  with  bold  background color  settig code

I  wrapped the Ligthning:datatable  with a  <div>  having id="dt1" 

<head>
<style>

#dt1 
{
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
}

#dt1 td
{
    border: 1px solid #ddd;
    padding: 8px;
}

#dt1 tr:nth-child(even){background-color: #f2f2f2;}

#dt1 tr:hover {background-color: #ddd;}

#dt1 table thead th 
{   
   color: blue;
   font-weight:bold;
   background-color: #66ccff;
   border: 1px solid #ddd;
}

</style>
</head>

            <div id="dt1">

            <lightning:datatable data="{!v.mydataLst}" 
          ....
            </lightning:datatable> 

            </div>
Hello helpers

I am developig an applicatin isung lightning:datatable  and i  would  like to add some formatting to the data

I was able  to  format  the data rows  and data cells but I am not  able to influence how column header look  like
see below  how it looks like to better understand what I am lookign for.  As a minimum I would like  to have the column Names bold  and in different color like  the rest  of the table. 

User-added image
  
Thanks in advance
 
Hello Helplers

I  have a question related  to  Lihtning:dataTable  componenent
There is an option  the  CLIP  or WRAP  the test  in a cell.
By  Default CLIP  is used and user  can switch to WRAP

What I  want is  to  have the  WRAP  being defaulted

Is  there any  solution for this?

Thanks in advance
Csbaa