• 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 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