• Howard69
  • 0 Points
  • Member since 2022

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 10
Hello All,
I am working on VF Page and I got stuck in one part of the requirement where I need to display the value of based on grouping header.
But it is not not displaying as group and it is showing as individual header and values are repeating.
Apex Class:
public with sharing class previewController {
    public List<Survey__c> surveyList {get; set;}
    public List<SurveyQuestion__c> quesList {get; set;}
    public List<Sections__c> sectionsList {get;set;}
    public Id suvrecordId {get; set;}
    public String[] sections {get; set;}
    ApexPages.StandardController sc;
    public PEPESurveyPreview(ApexPages.StandardController sc) {
        this.sc = sc; 
        suvrecordId = ApexPages.currentPage().getParameters().get('suvrecordId');
        System.debug('--- SurveyId: ---' + suvrecordId);
        surveyList = [SELECT Id, Name, SurveyName__c, Description__c FROM Survey__c WHERE Id =:suvrecordId];
        System.debug('--- Suv: ---' + surveyList);
        quesList = [SELECT Id, SurveyQuestion__c, Ratings__c, Comments__c, Required__c, 
                    	   Survey__c, SectionName__c
                      FROM SurveyQuestion__c
                      WHERE Survey__c =:suvrecordId
                      ORDER BY SectionName__c asc];
        System.debug('--- Ques: ---' + quesList);

        sectionsList = [SELECT SectionName__c, Survey__c, Name
                         FROM Sections__c
                      	 WHERE Id =:suvrecordId];
        Set<String> sectionSet = new Set<String>();
        for(SurveyQuestion__c sq : quesList) {
        sections = new String[sectionSet.size()];
        Integer i = 0;
        for(String section : sectionSet) {
            sections[i] = section;
VF Page:
<apex:page standardController="Survey__c" extensions="Preview" >
    <apex:form >
        <div class="center" />
        <h1 class="center"> Preview </h1>

        <div class="box">                    
           <!-- Survey Questions -->
            <div style="margin-left:75px; margin-right:75px">                
                <table class="table1" width="100%" cellspacing="0" >
                    <apex:repeat value="{!sections}" var="section">
                        <apex:repeat value="{!quesList}" var="suq">
                                <th> {!section} </th>                                
            </div> <br/>
            <!-- Submit Button with NO ACTION -->
            <div style=" height: 40px; text-align: center; margin-top:10px">
                <apex:commandlink style="text-decoration:none;padding:12px;font-size: 25px; margin-left: -20px; background-color: #00bceb;border-radius: 20px;" value=" Submit "/>
            </div> <br/>
Preview Header

I want display the above image like
Test 123
Testing *
Testing 67890

I want to display the Discount column in a Table generated via a VF Email Template when the Opportunity's Discounted__c field is True.

When Discounted__c = False, the Discount colunm is not displayed. 

I'm OK with duplicating the Table Code for the two conditions Discounted__c True/False.

Here is the VF Code that creates the Table:

Table Code
<table class="six">
    <th class='LeftBorder1' bgcolor="#364E88">Product Code</th>
    <th class='LeftBorder1' bgcolor="#364E88" style="font-size 80%">Product</th>
    <th class='LeftBorder1' bgcolor="#364E88" style="font-size 80%">Description</th>
    <th class='LeftBorder1' bgcolor="#364E88" style="font-size 80%">Qty</th>
    <th class='LeftBorder1' bgcolor="#364E88" style="font-size 80%">List Price</th>
    <th class='LeftBorder1' bgcolor="#364E88" style="font-size 80%">Discount</th> 
    <th class='LeftBorder1' bgcolor="#364E88" style="font-size 80%">Sales Price</th>
    <th class='LeftBorder1' bgcolor="#364E88" style="font-size 80%">Total Price</th>

  <apex:repeat value="{!relatedTo.OpportunityLineItems}" var="line">

  <tr style= "page-break-inside: avoid; page-break-after: auto;border-top: 1px solid #666;">
  <td class='LeftBorder'>{!line.PricebookEntry.ProductCode}</td>
  <td class='RightBorder'>{!line.PricebookEntry.Name}</td>
  <td class='RightBorder'><apex:OutputField value="{!line.Product_Description__c}"/></td>
  <td class='RightBorder'><apex:OutputField value="{!line.CPQ_Quantity__c}"/></td>
  <td class='RightBorder'><apex:OutputField value="{!line.CPQ_Unit_Price__c}"/></td>
  <td class='RightBorder'><apex:OutputField value="{!line.CPQ_Discount__c}"/></td>
  <td class='RightBorder'><apex:OutputField value="{!line.CPQ_Sales_Price__c}"/></td>
  <td class='RightBorder'><apex:OutputField value="{!line.CPQ_Total_Price__c}"/></td>


I have packaged a Digital Experience site using Unlocked package, also created package version from created package. On trying to install package version seeing below errors which doesn't point to any specific file or any missing configurations:

ERROR:  Encountered errors installing the package!,Installation errors: 
1) An unexpected error occurred. Please include this ErrorId if you contact support: 50979349-98737 (-1534333822)      
ERROR running force:package:install:  Installation errors: 
1) An unexpected error occurred. Please include this ErrorId if you contact support: 50979349-98737 (-1534333822) 

Hi all,

how to add the External (bootstrap css) in lwc
i have this but its not working
folder structure is  bootstrap/bootstrap.min.css

import { LightningElement } from 'lwc';
import { loadStyle } from 'lightning/platformResourceLoader';
import bootstrap from '@salesforce/resourceUrl/bootstrap';

export default class BootstrapComp extends LightningElement {
    renderedCallback() {
            loadStyle(this, bootstrap + '/bootstrap.min.css'),
            .then(() => {
                alert('Files loaded.');
            .catch(error => {
  • April 13, 2022
  • Like
  • 0
i want to write logic in process builder for 
when record owner is inactive then email alert should not be trigger. 

Hi all,

while testing the upcoming release version of the IOS mobile app we received some unusual errors to users that are still logged in the app.

As long as they don't manually log out of the app most of our Lightning pages on Iphone or Ipad receives a blank screen and it never loads eg. a confirmation page. Also screenflows we created cannot be started, After tapping on the button to start, we just received a blank page - it never loads the page.

These errors only occur to users that haven't refreshed their login for a period of time. So we have to force all users to re login.

We tested it with several devices (Iphone SE (1&2), X. Ipad Pro), IOS 14.3/14.7.1/15.2.1/14.8 and App Versions v234.040 Build #6203658 / v236.000 #6203670.

Does anyone had similar problems or know the cause?

I have been trying to add extra "allowed to edit" profiles to the rule whichalready  works fine for just sys admin to have this right.
I cannot seem to get the right formula (tried many formats)  to achieve a working version of this:
OR (
$User.ProfileId != "00ed0000000vQrA" ,
$User.ProfileId != "00e69000002MqRI" ,
$User.ProfileId != "00e1r000001RTKA" ,
$User.ProfileId != "00e69000001uDdW" ,
TEXT(StageName) = "Closed Won"))

I looked at Permission sets, doesnt seem to offer this exact use.
I copied other examples to adapt- no success. Any help much appreciated please.
I am are trying to leverage the existing "communities Customer Service template " to create communities.
Where the template comes with Action plan pages :
‘Action plan Detail’ and ‘Action Plan Template’ pages which we CANNOT delete (see below)

User-added image
Also tried deleting from final-exported templated, But I am running into the "insufficient privileges" error (see below image)

User-added imageHow can I resolve this. This 'Action plan' is really causing trouble deploying to orgs which does not have financial clouds or standard action plan objects. 
I have a requirement like reading a file on local mahine using Apex
after reading that file using Apex I want to send the contents of that file as an attachment through email
can any one send me the sample Apex code of reading a file on local machine
waitng for a quick reponse