• vijay kumar 598
  • NEWBIE
  • 60 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 42
    Questions
  • 23
    Replies

Hi team , 

Today my client asked me to generate a report to show case number with daily status. The follwing screen shot is the format of the report. I have tried my end but I'm not able to acheive.In screenshot shows header is dates of month and 1st column case numbers and remaing is case status values as per date .

please help me guys.
Thanks in advanceSee this Screen shot
Hi developers
I developed the entitlement process with milestones based on case status criteria. Means every status one milestone is there as per requirement. So that case staus is reached to milestone criteria milestone getting started.
Here I did not notice one thing i.e when I changed the case status it will pick milestone right but no running milestone information is stored of before changing case status milestone because that milestone does not update to milestone complete that's why no milestone data is not stored anywhere.

Now I resolved this issue using trigger I'm updating running milestone as completed (once the milestone has completed, this milestone data as stored at casemilestone so no problem for me).

Finally, my question is previously milestone data is not stored right.how do I retrieve previous milestones data of existing case (New milestone completion is trigger will take care of that)?

So I have one idea based case history planning to insert casemilestone records but system not allowing me to insert because only milestone start date and completion time only writable fields remaining all read-only.
What should I do, I want to show to a client this user taking this many hours to complete all milestones like that.
 
Hi 
I have created vf page with the help of slds documentation. i found below code at Lightning Design System Website. i just add apex tags.
Here table columns are not movable (i mean not resizable). I don't know why, i miss any thing or any require data add this table to work column resizable


Following is my vf code:

<apex:page >
    <meta>
    <apex:slds />
</meta>
<div class="slds-scope">
<table aria-multiselectable="true" class="slds-table slds-table_bordered slds-table_fixed-layout slds-table_resizable-cols" role="grid">
<thead>
<tr class="slds-line-height_reset">
<th class="slds-text-align_right" scope="col" style="width: 3.25rem;">
<span id="column-group-header" class="slds-assistive-text">Choose a row</span>
<div class="slds-th__action slds-th__action_form">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-9" tabindex="0" aria-labelledby="check-select-all-label column-group-header" value="checkbox-9" />
<label class="slds-checkbox__label" for="checkbox-9" id="check-select-all-label">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select All</span>
</label>
</div>
</div>
</th>
<th aria-label="Name" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col" style="width: 300px;">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Name">Name</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Name column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-15" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Account Name" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Account Name">Account Name</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Account Name column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-16" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Close Date" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Close Date">Close Date</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Close Date column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-17" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Stage" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Stage">Stage</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Stage column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-18" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Confidence" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Confidence">Confidence</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Confidence column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-19" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Amount" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Amount">Amount</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Amount column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-20" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Contact" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Contact">Contact</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Contact column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-21" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th class="" scope="col" style="width: 3.25rem;">
<div class="slds-truncate slds-assistive-text" title="Actions">Actions</div>
</th>
</tr>
</thead>
<tbody>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-01" tabindex="0" aria-labelledby="check-button-label-01 column-group-header" value="checkbox-01" />
<label class="slds-checkbox__label" for="checkbox-01" id="check-button-label-01">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 1</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="Acme - 1,200 Widgets"><a href="javascript:void(0);" tabindex="0">Acme - 1,200 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="4/10/15">4/10/15</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Value Proposition">Value Proposition</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="30%">30%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$25,000,000">$25,000,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="jrogers@acme.com"><a href="javascript:void(0);" tabindex="0">jrogers@acme.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 1,200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for Acme - 1,200 Widgets</span>
</button>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-02" tabindex="0" aria-labelledby="check-button-label-02 column-group-header" value="checkbox-02" />
<label class="slds-checkbox__label" for="checkbox-02" id="check-button-label-02">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 2</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="Acme - 200 Widgets"><a href="javascript:void(0);" tabindex="0">Acme - 200 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="1/31/15">1/31/15</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Prospecting">Prospecting</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="60%">60%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$5,000,000">$5,000,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="bob@acme.com"><a href="javascript:void(0);" tabindex="0">bob@acme.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for Acme - 200 Widgets</span>
</button>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-03" tabindex="0" aria-labelledby="check-button-label-03 column-group-header" value="checkbox-03" />
<label class="slds-checkbox__label" for="checkbox-03" id="check-button-label-03">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 3</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="salesforce.com - 1,000 Widgets"><a href="javascript:void(0);" tabindex="0">salesforce.com - 1,000 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="salesforce.com">salesforce.com</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="1/31/15 3:45PM">1/31/15 3:45PM</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Id. Decision Makers">Id. Decision Makers</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="70%">70%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$25,000">$25,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="nathan@salesforce.com"><a href="javascript:void(0);" tabindex="0">nathan@salesforce.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for salesforce.com - 1,000 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for salesforce.com - 1,000 Widgets</span>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</apex:page>
Hi 
I created vf page with table using slds and i all table sample code from LDS documentation.It is not working in case of resizing the columns.

Following is my vf code:

<apex:page >
    <meta>
    <apex:slds />
</meta>
<div class="slds-scope">
<table aria-multiselectable="true" class="slds-table slds-table_bordered slds-table_fixed-layout slds-table_resizable-cols" role="grid">
<thead>
<tr class="slds-line-height_reset">
<th class="slds-text-align_right" scope="col" style="width: 3.25rem;">
<span id="column-group-header" class="slds-assistive-text">Choose a row</span>
<div class="slds-th__action slds-th__action_form">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-9" tabindex="0" aria-labelledby="check-select-all-label column-group-header" value="checkbox-9" />
<label class="slds-checkbox__label" for="checkbox-9" id="check-select-all-label">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select All</span>
</label>
</div>
</div>
</th>
<th aria-label="Name" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col" style="width: 300px;">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Name">Name</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Name column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-15" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Account Name" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Account Name">Account Name</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Account Name column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-16" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Close Date" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Close Date">Close Date</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Close Date column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-17" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Stage" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Stage">Stage</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Stage column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-18" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Confidence" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Confidence">Confidence</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Confidence column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-19" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Amount" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Amount">Amount</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Amount column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-20" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th aria-label="Contact" aria-sort="none" class="slds-is-resizable slds-is-sortable" scope="col">
<a class="slds-th__action slds-text-link_reset" href="javascript:void(0);" role="button" tabindex="0">
<span class="slds-assistive-text">Sort by: </span>
<div class="slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate">
<span class="slds-truncate" title="Contact">Contact</span>
<span class="slds-icon_container slds-icon-utility-arrowdown">
<svg class="slds-icon slds-icon-text-default slds-is-sortable__icon " aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#arrowdown" />
</svg>
</span>
</div>
</a>
<div class="slds-resizable">
<input aria-label="Contact column width" class="slds-resizable__input slds-assistive-text" id="cell-resize-handle-21" max="1000" min="20" tabindex="0" type="range" />
<span class="slds-resizable__handle">
<span class="slds-resizable__divider"></span>
</span>
</div>
</th>
<th class="" scope="col" style="width: 3.25rem;">
<div class="slds-truncate slds-assistive-text" title="Actions">Actions</div>
</th>
</tr>
</thead>
<tbody>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-01" tabindex="0" aria-labelledby="check-button-label-01 column-group-header" value="checkbox-01" />
<label class="slds-checkbox__label" for="checkbox-01" id="check-button-label-01">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 1</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="Acme - 1,200 Widgets"><a href="javascript:void(0);" tabindex="0">Acme - 1,200 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="4/10/15">4/10/15</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Value Proposition">Value Proposition</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="30%">30%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$25,000,000">$25,000,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="jrogers@acme.com"><a href="javascript:void(0);" tabindex="0">jrogers@acme.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 1,200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for Acme - 1,200 Widgets</span>
</button>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-02" tabindex="0" aria-labelledby="check-button-label-02 column-group-header" value="checkbox-02" />
<label class="slds-checkbox__label" for="checkbox-02" id="check-button-label-02">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 2</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="Acme - 200 Widgets"><a href="javascript:void(0);" tabindex="0">Acme - 200 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="Acme">Acme</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="1/31/15">1/31/15</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Prospecting">Prospecting</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="60%">60%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$5,000,000">$5,000,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="bob@acme.com"><a href="javascript:void(0);" tabindex="0">bob@acme.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for Acme - 200 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for Acme - 200 Widgets</span>
</button>
</td>
</tr>
<tr aria-selected="false" class="slds-hint-parent">
<td class="slds-text-align_right" role="gridcell">
<div class="slds-checkbox">
<input type="checkbox" name="options" id="checkbox-03" tabindex="0" aria-labelledby="check-button-label-03 column-group-header" value="checkbox-03" />
<label class="slds-checkbox__label" for="checkbox-03" id="check-button-label-03">
<span class="slds-checkbox_faux"></span>
<span class="slds-form-element__label slds-assistive-text">Select item 3</span>
</label>
</div>
</td>
<th scope="row">
<div class="slds-truncate" title="salesforce.com - 1,000 Widgets"><a href="javascript:void(0);" tabindex="0">salesforce.com - 1,000 Widgets</a></div>
</th>
<td role="gridcell">
<div class="slds-truncate" title="salesforce.com">salesforce.com</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="1/31/15 3:45PM">1/31/15 3:45PM</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="Id. Decision Makers">Id. Decision Makers</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="70%">70%</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="$25,000">$25,000</div>
</td>
<td role="gridcell">
<div class="slds-truncate" title="nathan@salesforce.com"><a href="javascript:void(0);" tabindex="0">nathan@salesforce.com</a></div>
</td>
<td role="gridcell">
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-button_icon-x-small" aria-haspopup="true" tabindex="0" title="More actions for salesforce.com - 1,000 Widgets">
<svg class="slds-button__icon slds-button__icon_hint slds-button__icon_small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down" />
</svg>
<span class="slds-assistive-text">More actions for salesforce.com - 1,000 Widgets</span>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</apex:page>
I want to  know how exactly Automated User Provisioning works and let's consider  i proveded single sign on authentication for third party, in this case if user login to their web it will redirect to salesforce based user credentials(if that user not in salesforce in this case user will be created and redirect to salesforce) similarly group filter where in a group of users can authenticated their web and automatically user need to created in Salesforce, and suppose if an user is removed from the group the corresponding user has to be deactivated in Salesforce.   
I have 4 public groups and i have one report folder with 4 report subfolders. Here i'm unable to give access to different levels with different groups. I mean out of 4 groups access only one of the subfolder. In lightning, share shows  access all subfolders at a time .How could i give them to this type of permissions
ERROR: Make sure you moved the correct fields from the Information section to the Candidate Rating section.

In the trailhead  (Improve Data Quality for a Recruiting App -unit3)  i create all fields correctly and add in page layout correctly i do not know why showing error message while checking the challenge.
 can anyone tell me if this required any extra changes?

Thanks in advance  
In the trailhead  (Improve Data Quality for a Recruiting App -unit3)  i create all fields correctly and add in page layout correctly i do not know why showing error message while checking the challenge.
 can anyone tell me is this required any extra changes.

Thanks in advance  
Let's take example: Lightning component page have one picklist with values of all account names.I want information about that selected value like Name,age,phone,email and address etc. in below of picklist. 
How could i write code for this. Please post your code for future reference

Thankyou

When to use Communities and When to use Sites in Salesforce?
Insert creditcard records using visualforce page.In page use java script to validate fields like Cardnumber must 16digits ,pin number must 4digits and insert only checkbox(active__c) is true.Below i mention object details. 

Custom object:Credit_Card__c
Fields:
Name=Credit_Card_Number
Lookup=Contact_name__c
Number=Pin__c
Checkbox=Active__c

as per my knowledge i build this vf page but from that apex method is not calling .Is there any mistake i return there .
Here i post my code ,please check and replay the best
Thankyou

VF Page:
<apex:page standardController="Creadit_Card__c" extensions="CreditCard_Creation">
    <apex:includeScript value="{!URLFOR($Resource.jquery)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jqueryui)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jqueryuimin)}"/>
    <script>
    j$=jquery.noConflict();
    if(j$){
        alert('Jquery loaded successfull....');    
    }
    function checkallfields()
    {
        
        var card=j$('[id$=cardnumber1]').val();
        var pin=j$('[id$=pin1]').val();
        var clength=card.length;
        var n = pin.toString();
        var n1=n.length;
        if(clength==16 && n1==4){
            ready();
        }
        else{
            alert('Check Card Number or Pin Number are correct values')
        }
        
    }
    </script>
    <apex:form id="f1">
        <apex:pageBlock title="Creadit Card" id="pb1">
            <apex:pageBlockSection id="pbs1">
                <apex:inputField id="Contactname1" value="{!Creadit_Card__c.Contact_Name__c}" required="true"/>
                <apex:inputField id="cardnumber1" value="{!Creadit_Card__c.Name}"/>
                <apex:inputField id="pin1" value="{!Creadit_Card__c.PIN__c}"/>
                <apex:inputCheckbox id="checkbox1" value="{!Creadit_Card__c.Active__c}" required="true"/>
            </apex:pageBlockSection>
            <apex:commandButton value="save" onclick="checkallfields()" />
            <apex:actionFunction name="ready" action="{!saverecord}"/>
            <apex:pageMessages ></apex:pageMessages>
        </apex:pageBlock>
    </apex:form>
</apex:page>

Apex Class:
public class CreditCard_Creation {
    public Creadit_Card__c chkcardValues{set;get;}
    public CreditCard_Creation(ApexPages.StandardController controller) {
        chkcardValues=(Creadit_Card__c)controller.getRecord();
    }
  
  
    public pagereference  saverecord(){
        list<Creadit_Card__c> cardslist=[select name from Creadit_Card__c where name=:chkcardValues.Name];
        if(chkcardValues.Active__c==true){
            if(cardslist.size()==0){
            insert chkcardValues;
            }else{
                ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error,'This card number is already existed'));
            }
        }else{
            ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error,'please select active'));
        }
             pagereference redirect=new pagereference ('/'+chkcardValues.id);
        if(chkcardValues.id!=null){
             return redirect;
        }
        return null;
    }
}
Insert creditcard records using visualforce page.In page use java script to validate fields like Cardnumber must 16digits ,pin number must 4digits and insert only checkbox(active__c) is true.Below i mention object details. 

Custom object:Credit_Card__c
Fields:
Name=Credit_Card_Number
Lookup=Contact_name__c
Number=Pin__c
Checkbox=Active__c
Hi
here i have Registration(parent) and Faculty(child).I want to show Faculty names under same registration on parent field(Faculty_Names__c).
I already wrote code but it doesen't work delete event that too parent field shows only deleted name when i was test it.
please correct me where i was wrong or send me correct/related code.
 ThankYou

trigger Display_Faculty_Names on Faculty__c (after insert,after update,after delete,after undelete) {
    set<id> regiids=new set<id>();
    List<Registration__c> RegiList=new List<Registration__c>();
    Map<id,Registration__c> regiMap=new map<id,Registration__c>();
    if(trigger.isinsert || trigger.isupdate || trigger.isundelete){
        for(Faculty__c f1:trigger.new){
            if(f1.RegistrationId__c!=null){
                regiids.add(f1.RegistrationId__c);
                if(trigger.isupdate){
                    if(trigger.oldmap.get(f1.id).RegistrationId__c!=f1.RegistrationId__c){
                        regiids.add(trigger.oldmap.get(f1.id).RegistrationId__c);
                        regiids.add(f1.RegistrationId__c);
                    }
                }
            }
        }
    }
    if(trigger.isdelete){
        for(Faculty__c f1:trigger.old){
            regiids.add(f1.RegistrationId__c);
            system.debug('trigger.old'+trigger.old.size());
        }
    }
    RegiList=[select id,name,Faculty_Names__c from Registration__c where id=:regiids];
    for(Registration__c a:RegiList){
        regiMap.put(a.id,a);
    }
    if(trigger.isinsert || trigger.isundelete){
        for(Faculty__c f:trigger.new){
            if(regiMap.containsKey(f.RegistrationId__c)){
                Registration__c r=regiMap.get(f.RegistrationId__c);
                if(r.Faculty_Names__c==null){
                    r.Faculty_Names__c=f.Name;
                }else if(!r.Faculty_Names__c.containsIgnoreCase(f.Name)){
                    r.Faculty_Names__c+=','+f.Name;
                }
                regiMap.put(f.RegistrationId__c,r);
            }
            
        }
        if(regiMap.values().size()>0)
            update regiMap.values();
    }
    List<AggregateResult> aggresult=[Select count(id) countid,RegistrationId__c,Name from Faculty__c Group By RegistrationId__c,Name];
    if(trigger.isupdate){
        for(AggregateResult agg:aggresult){
            string rid=String.valueOf(agg.get('RegistrationId__c'));
            string fname=String.valueOf(agg.get('Name'));
            if((trigger.oldmap.get(agg.id).RegistrationId__c != agg.get('RegistrationId__c')) || trigger.oldmap.get(agg.id).Name != agg.get('Name')){
                if(regiMap.containsKey(rid)){
                    Registration__c r=regiMap.get(rid);
                    if(r.Faculty_Names__c==null){
                        r.Faculty_Names__c=fname;
                    }else if(!r.Faculty_Names__c.containsIgnoreCase(fname)){
                        r.Faculty_Names__c+=','+fname;
                    }
                    regiMap.put(rid,r);
                }
                if(regiMap.containsKey(trigger.oldmap.get(agg.id).RegistrationId__c)){
                    integer facid=integer.valueof(agg.get('countid'));
                    Registration__c a=regiMap.get(trigger.oldmap.get(agg.id).RegistrationId__c );
                    if(facid == 1){
                        if(a.Faculty_Names__c.contains(fname+',')){
                            a.Faculty_Names__c=a.Faculty_Names__c.remove(fname+',');
                        }else{
                            a.Faculty_Names__c=a.Faculty_Names__c.remove(','+fname);
                        }
                    }
                    regiMap.put(trigger.oldmap.get(agg.id).RegistrationId__c,a);
                }
            }
        }
        if(regiMap.values().size()>0)
            update regiMap.values();
    }
    if(trigger.isdelete){
        for(AggregateResult agg:aggresult){
            string rid=String.valueOf(agg.get('RegistrationId__c'));
            string fname=String.valueOf(agg.get('Name'));
            integer facid=integer.valueof(agg.get('countid'));
            if(regiMap.containsKey(rid)){
                Registration__c a=regiMap.get(rid);
                if(facid == 1){
                    system.debug('testfacultyname'+a.Faculty_Names__c);
                    if(a.Faculty_Names__c.contains(fname+',')){
                        system.debug('test2'+a.Faculty_Names__c);
                        a.Faculty_Names__c=a.Faculty_Names__c.remove(fname+',');
                    }else{
                        a.Faculty_Names__c=a.Faculty_Names__c.remove(','+fname);
                    }
                }
                regiMap.put(rid,a);
            }       
        }
        if(regiMap.values().size()>0)
            update regiMap.values();
    }
write batch class to update field(noofcontacts__c) value on account with No of Contacts under that account.
 
why error throws null object and plz help to solve this

vfpage:
<apex:page  controller="showallaccountsinvf">
    <apex:form>
        <apex:pageBlock >
            <apex:pageBlockSection title="accounts">
                <apex:pageBlockTable value="{!contactscount}" var="acon">
                    <apex:column headervalue="Name">
                        <apex:outputtext value="{!acon.acc.Name}"/>
                    </apex:column>
                    <apex:column headervalue="NUmber of Contacts">
                        <apex:outputtext value="{!acon.i}"/>
                    </apex:column>
                </apex:pageBlockTable>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>
controller:
public class showallaccountsinvf {
    public map<id,account> accMap{set;get;}
    public list<wrappercontact> contactscount {set;get;}
    public showallaccountsinvf(){
        List<account> AccountList=[select id,name,contactslist__c from account];
        contactscount=new list<wrappercontact>();
        for(Account a:AccountList){
            accMap.put(a.id,a);
        }
        list<aggregateresult> aggrResults=[select count(id) countids,AccountId from contact where accountid =:accMap.keyset() group by accountid];
        for(aggregateresult agg:aggrResults){
            String acId=String.valueOf(agg.get('AccountId'));
            integer conid=integer.valueof(agg.get('countids'));
            Account a1=accMap.get(acId);
            contactscount.add(new wrappercontact(a1,conid));
            
            system.debug('@@@@@@@@'+acId+conid);
        }
    }
    public class wrappercontact
    {
        public Account acc{get;set;}
        public integer i{get;set;}
        
        Public wrappercontact(Account aa,integer j)
        {
            acc = aa;
            i = j;
        }
    }    
}
parent object: account
   fields : contact country - Picklist values: India, Africa, America
   child object : contact
   field : Contact Area - Picklist values: Karataka, Andhra Pradesh, Kerala, South Africa, Nigeria, Kenya, California, San Fransisco, Texas

   when contact is inserted / updated, based the contact's Contact Area field the parents contact Country should change with respected country. wirte a trigger for insert, Update.
hi 
i'm not understand the below error when click the 'check the challenge' of salesforce mobile app customization in unit of customize campact layout.
Help me overcome this error.

--------There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: EONTWHVZ--------


ThankYou
 
suppose consider account and contact objects.  in creation of contact their shows account lookup field ,press the lookup icon shows the all accounts list in new window.my question is it is possible to edit that list. Like that list shows who doesn't have contacts or who have less than some vale of recors(take 10),these names only display that list.By using this list only select one account and create a contact. 
please help me this.

thanks in advance
suppose consider account and contact objects.  in creation of contact their shows account lookup field ,press the lookup key shows the all accounts list.my question is it is possible to edit that list. Like that list shows who doesn't have contacts or who have less than some vale of recors(take 10),these names only display that list.By this list only select one account and create a contact. 
please help me this.

thanks in advance
it is possible to send an email without writing a trigger.
suppose take contact object,insert one contact(lastname=jon,email=1232mail.com),after insert this record jon receive an email as conform message.
it it is no,please send me code.

thanks in advance
 
Let's take example: Lightning component page have one picklist with values of all account names.I want information about that selected value like Name,age,phone,email and address etc. in below of picklist. 
How could i write code for this. Please post your code for future reference

Thankyou
Insert creditcard records using visualforce page.In page use java script to validate fields like Cardnumber must 16digits ,pin number must 4digits and insert only checkbox(active__c) is true.Below i mention object details. 

Custom object:Credit_Card__c
Fields:
Name=Credit_Card_Number
Lookup=Contact_name__c
Number=Pin__c
Checkbox=Active__c
suppose consider account and contact objects.  in creation of contact their shows account lookup field ,press the lookup icon shows the all accounts list in new window.my question is it is possible to edit that list. Like that list shows who doesn't have contacts or who have less than some vale of recors(take 10),these names only display that list.By using this list only select one account and create a contact. 
please help me this.

thanks in advance
i want to know how many times the execute method will run , so it is poossible to know using finish method.i mean after execute the batch class ,finnally i want see how many times my execute method will run. please give me simple example
my scenario  like filling an application form. i.e first insert contact name at first vf page(page name like persional details). and next vf page contains like experiance fields(i.e not containing lastname field of contact) ,we enter lastname at 1st vf page and click "next" button redirect to 2nd vf page ,here enter experiance detais and click"submit" the record was insert/update.
thank you
can you please me to write test class on below code:
Apex code:

public class copycontact {
    public list<selectoption>account1{set;get;}
    public list<selectoption>account2{set;get;}
    public list<contact>contacts{set;get;}
    public String getListOfAccounts { get; set; }
    public id selectedaccountId1 {set;get;}
    public id selectedaccountId2 {set;get;}
    public list<id>selected ;
    public List<SelectOption> getListOfAccounts1()
    {
        List<Account> AccountList1 = [select id,Name from Account] ;
        System.debug('Accounts'+AccountList1.size());
        account1 = new List<SelectOption>();
        account1.add(new SelectOption( ' ' ,'---Select---'));
        for(Account acc : AccountList1 )
        {
            account1.add(new SelectOption(acc.id , acc.Name));
        }
        return account1 ;         
    }
    public List<SelectOption> getListOfAccounts2()
    {
        List<Account> AccountList2 = [select id,Name from Account] ;
        System.debug('Accounts'+AccountList2.size());
        account2 = new List<SelectOption>();
        account2.add(new SelectOption( ' ' ,'---Select---'));
        for(Account acc : AccountList2 )
        {
            account2.add(new SelectOption(acc.id , acc.Name));  
        }
        system.debug('java');
        return account2 ;  
    } 
    public  void clonecontacts(){
        system.debug('gsvdd');
        if(selectedaccountId1!=null){
            contacts=new list<contact>([select id,lastname from contact where accountid=:selectedaccountId1]);
            if(contacts.size()==0){
                system.debug('gsg'   );
               ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error,'No contacts to display'));
            }
            else{
                system.debug('dhg');
                list<contact>clist=new list<contact>();
                for(Contact con:contacts){
                    contact c=new contact();
                    c.lastname=con.LastName;
                    c.AccountId=selectedaccountId2;
                    clist.add(c);
                }
                insert clist;
                ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.CONFIRM,'successfully copied'));
            }
        }
    }
}
vf page:

<apex:page controller="copycontact">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection title="from Account" >
                <apex:OutputPanel >
                    <apex:selectList value="{!selectedaccountId1}" size="1" multiselect="false" >
                        <apex:selectOptions value="{!ListOfAccounts1}"  />
                    </apex:selectList>
                </apex:OutputPanel>
            </apex:pageBlockSection>
        </apex:pageBlock>
        <apex:pageBlock >
            <apex:pageBlockSection title="to account">
                <apex:selectList value="{!selectedaccountId2}" size="1" multiselect="false"  >
                    <apex:selectOptions value="{!ListOfAccounts2}" />
                </apex:selectList>
            </apex:pageBlockSection> >
        </apex:pageBlock>
        <apex:commandButton value="clone" action="{!clonecontacts}"/>
        <apex:pageMessages ></apex:pageMessages>
    </apex:form>
</apex:page>
i think u understood what iam asking here.
simlple ,in vf page contains two picklists and one custom button.both picklist values are same i.e all accounts.suppose i select one account at picklist1 and select another account at picklist2.and click custombutton,action do like this copy the all contacts related account who's select at picklist1 and paste duplicate contacts at who's select in picklist2.
u can  picklist names like 'contacts from account' and 'to account' .
thank you 
Actually my scenario is 
In vf page shows picklist values are account names and onchange the page shows contact picklist values are child contacts names of above account names. Finally onchange the page shows another picklist option & value of this is opportunity names of above selected contact name. 
Shows the errors if no contact of account and no opportunity of contact when really does not have child record in parent level 
hi please help me to write test class for below trigger or post the test class

trigger countattachments on attachment(after insert, after delete,after undelete) {
    Map<Id, List<attachment>> Amap = new Map<Id, List<attachment>>();
    Set<Id> AcctIds = new Set<Id>();   
    List<Account> AcctList = new List<Account>();
    List<attachment> alist = new List<attachment>();
   
    if(trigger.isInsert||trigger.isundelete ) {
        for(attachment a : trigger.New) {
            if(String.isNotBlank(a.parentid)){
                AcctIds.add(a.parentId); 
            }  
        } 
    }
   
    if(trigger.isDelete) {
        for(attachment a1 : trigger.Old) {
            AcctIds.add(a1.parentId);    
        } 
    }          
   
    if(AcctIds.size() > 0){
        alist = [SELECT Id, parentId FROM attachment WHERE parentId IN : AcctIds];
       
        for(attachment a2 : alist) {
            if(!Amap.containsKey(a2.parentId)){
                Amap.put(a2.parentid, new List<attachment>());
            }
            Amap.get(a2.parentid).add(a2);     
        }                          
      
           
        AcctList = [SELECT Number_of_attachments__c FROM Account WHERE Id IN : AcctIds];
        for(Account Acc : AcctList) {
            List<attachment> atList = new List<attachment>();
            atList = Amap.get(Acc.Id);
            Acc.Number_of_attachments__c = atList.size();
        }   
       
      
        update AcctList;   
    }

}

thank you
vijay
 
show the number of attachments in account custom field
I have a Parent object (Orders) with a Child object (States). The Child object is using the standard Name field as the "State" field.

I want to list all the UNIQUE states in a concatenated Text field on the Orders object.

My business allows for the same "State" to be related multiple times to the Parent but I only want to show each State one time in the text field that is populated by the trigger.

I'm a newbie when it comes to Triggers any help would be greatly appreciated!