• Pawan Kumar 32
  • NEWBIE
  • 40 Points
  • Member since 2015
  • DXC.Techlonogy


  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 10
    Replies
Hi All,
I wonder if anyone can help me on my below requirement.
I am trying to display html table in "Display Text" screen component in Field service Mobile flow. Below is my html code
<html>

<head >

 </head>

  <div id="card"> 

  <table>

  <thead>

    <tr>

      <th><FONT FACE="Arial" STYLE="font-size:12px" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">Product Name</FONT></th>

      <th>Requested Quantity</th>

      <th>Sent Quantity</th>

    </tr>

  </thead>

  <tbody>

    <tr>

      <td data-label="Product Name"> { !VarprodName }</td>

      <td data-label="Requested Quantity">{ !VarQuantityReceived }</td>

      <td data-label="Sent Quantity">{ !VarQuantitysent }</td>
    
     </tr>

   </tbody>

</table>

</div>

</html>

When I run this flow from desktop then, it is working fine and proper html table is showing. But If I run this flow in Field Service Mobile app then html table is not displaying. Main issue is html tag are not working in fsl app.
So I'm looking for some advice how can we apply html or css in fsl mobile app.
Any help regarding this would be highly appreciated.
Table in Mobile:
User-added image

Table in Desktop
User-added image
Kind Regards,
Pawan
Hi Experts!

I want to populate quota field on Forecast tab using apex. Is there any way how can we access this field in apex code and populate it. 
User-added image
Any help regarding this would be much appriciated. 

Kind Regards,
Pawan
Hi All,

Can anyone please suggest me how can we use break, continue in flow builder loop like apex. I have screen flow where I am using loop Logic. In this loop, if loop veriable contains 3 records/String values then if my condition is met in first iteration; I just want to stop my loop.

Any help regarding this would be highly appriciated.

Thanks in Advance!
Pawan 
Hello Everyone,

I am trying to deploy roles and Territories using change set. But I am getting below error: 
User-added image

Please help to solve the problem.
Hi all,

Just wanted to know is there any way to change data type text to picklist of Name standard field on Custom object. I know we can change data type only text to auto number or vice versa. As per my understanding we cannot change text to picklist. Please help if you you have idea about it.

Thanks
Hi All,

I  want to display content of PDF on vf page. I have stored PDF in Notes & Attachments related list of account object. My requirement is I want to show footer message on Vf Page. Then after I want to show all content of Vf page in PDF(renderAs ="PDF") Here in the below code I am using iframe. But it is not working. It is showing blank. Please help.
<apex:page controller="ViewPdf" renderAs="PDF">
    <iframe src="data:{!att.ContentType};base64,{!pdf}" >
    <div class="footer">
        <div>This document is internal use only</div>
     </div>
    </iframe>
</apex:page>
public class ViewPdf {
    public Attachment att {
        get {
            if (att == null) {
                att = [SELECT Body, ContentType, Name FROM Attachment WHERE ID = '00P280000018FlA'];
            }
            return att;
        }
        private set;
    }
    public String pdf {
        get {
            return EncodingUtil.Base64Encode(att.body);
        }
    }
}


 
Hi All,
I want a custom field "OD_Last_Qualified_Date_Update_At__c" on Child Object SVMXC__Installed_Product__c(ServiceMax object) to be updated to value "System.now" when Parent Object SVMXC__site__c's(ServiceMax object) custom field "SVMXC__street__c" is updated to "any value".
In the below code my trigger is not getting fire.
trigger OD_Integration_Trigger on SVMXC__site__c (after update){
  
      set<id> locationIds = new set<id>();      
      if (trigger.isupdate) {
           locationIds.addAll(trigger.newMap.keySet());
           //productsToProcess.add(p);               
           system.debug('@@@@@@@@@@@@@@'+ locationIds);
      
   // update productsToProcess;
    list<SVMXC__Installed_Product__c> productsToprocess= new list<SVMXC__Installed_Product__c>();
        for (SVMXC__Installed_Product__c p : [select id, Name, OD_Last_Qualified_Update_At__c,OD_Sync_Status__c from SVMXC__Installed_Product__c 
where id in :locationIds and Product_Line__c='OnDemand']){
         p.OD_Last_Qualified_Update_At__c = system.now();
         p.OD_Sync_Status__c = 'Pending';
         productsToprocess.add(p);
         }
         system.debug('##########'+ productsToprocess);         
         update productsToprocess; 
         }
}


Any assistance with code or alternate solutions are much appreciated!
Hi All,

I want to display code coverage of apex class on VF page using apex coding(programmatically). for e.g. if apex class abc1,abc2,abc3... have code coverage 60%,75%,85%.. respectively then I should be able to display the code coverage(60%,75%.85%..) on VF page xyz. I have also used ApexCodeCoverage object. But I am not able to display the code coverage on vf page. Please help me.
Thanks in Advance..
Hi All,

I have completed 17 badges in trailhead. But still my point are only 20. Any one can tell me why it is showing only 20 points on my profile.
Thanks in advance.
Regards,
Pawan
User-added image
Hello All,
I am stuck in below trailhead chanllange. Please help me.

Using the Contact standard controller, create a Visualforce page which displays a Contact's First Name, Last Name and the Email address of the Contact's Owner.The page must be named 'ContactView'.
It must reference the Contact standard controller.
It should include a bound variable that uses the standard controller to display the first name of the Contact.
It should include a bound variable that uses the standard controller to display the last name of the Contact.
It should include a bound variable that uses the standard controller to display the Contact Owner's email.

I am getting below error..
Challenge not yet complete... here's what's wrong:
The page does not include a bound first name variable for the Contact record
Please refer below screenshot for vf code.
User-added image
Hello All,

I have completed 16 badges in trailhead. I have also posted all challenges on twitter which I have completed. But still I didn't get any response from the trailhead for my achievement. Please suggest me what should I do for the same.
User-added image
Thanks in Advance.
Hello All,
I am stuck in below trailhead chanllange
Create a Visualforce page that displays the first name of the logged-in user.
  • The page must be named 'DisplayUserInfo'.
  • The displayed user information must be generated dynamically from the logged-in user.
Here below is my code. Please help me to find the solution.
<apex:page>
{!$User.FirstName } {!$User.LastName } ({!$User.Username })
</apex:page>
Hi All,

I have completed 17 badges in trailhead. But still my point are only 20. Any one can tell me why it is showing only 20 points on my profile.
Thanks in advance.
Regards,
Pawan
User-added image
Hello All,

I have completed 16 badges in trailhead. I have also posted all challenges on twitter which I have completed. But still I didn't get any response from the trailhead for my achievement. Please suggest me what should I do for the same.
User-added image
Thanks in Advance.
Hi Everyone, 
does anyone know if input validation rules for Screen Components (DateTime Field) actually work in the Field Service Mobile App? I want to do a simple input validation on two Date/Time Fields to make sure that both DATEVALUES are the same. The validation works when I test it in the Flow Debugger, but the FSL ignores those validations without any notification on the screen. I could of course implement this validation directly on the object, but this would lead to an upload error in the mobile app and is not very user friendly.
I have two checkbox fields basically "#OPEN" and "#CLOSED". Bad design, I know, but not my doing! Anyway, I want to combine them into a single field with an IF statement.

Essentially, something like IF(#OPEN=TRUE, "Open", "Closed")

But I don't know how to treat the check in a checkbox. Is it "TRUE"? I keep getting a syntax error. 

Hope that's not confusing. This should be easy...
Hello and thank you for your assistance in advance! I have a simple Javascript button that isn't working in Lighting, so I would apprecaite any help I get to make it work in my org. 
 
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")} 

var result = sforce.apex.execute("WebServices_Batch","ApproveAllTransactions",{batchId: '{!Batch__c.Id}' }); 

if(result == 'SUCCESS'){ 

window.location.reload(); 
} 
else if(result == 'BatchAmountMismatch'){ 
alert('There is still a balance remaining for this batch'); 
} 
else{ 
alert('There was an error updating. Please contact your administrator.'); 

}

 
Hi All,

I  want to display content of PDF on vf page. I have stored PDF in Notes & Attachments related list of account object. My requirement is I want to show footer message on Vf Page. Then after I want to show all content of Vf page in PDF(renderAs ="PDF") Here in the below code I am using iframe. But it is not working. It is showing blank. Please help.
<apex:page controller="ViewPdf" renderAs="PDF">
    <iframe src="data:{!att.ContentType};base64,{!pdf}" >
    <div class="footer">
        <div>This document is internal use only</div>
     </div>
    </iframe>
</apex:page>
public class ViewPdf {
    public Attachment att {
        get {
            if (att == null) {
                att = [SELECT Body, ContentType, Name FROM Attachment WHERE ID = '00P280000018FlA'];
            }
            return att;
        }
        private set;
    }
    public String pdf {
        get {
            return EncodingUtil.Base64Encode(att.body);
        }
    }
}


 
Hi All,
I want a custom field "OD_Last_Qualified_Date_Update_At__c" on Child Object SVMXC__Installed_Product__c(ServiceMax object) to be updated to value "System.now" when Parent Object SVMXC__site__c's(ServiceMax object) custom field "SVMXC__street__c" is updated to "any value".
In the below code my trigger is not getting fire.
trigger OD_Integration_Trigger on SVMXC__site__c (after update){
  
      set<id> locationIds = new set<id>();      
      if (trigger.isupdate) {
           locationIds.addAll(trigger.newMap.keySet());
           //productsToProcess.add(p);               
           system.debug('@@@@@@@@@@@@@@'+ locationIds);
      
   // update productsToProcess;
    list<SVMXC__Installed_Product__c> productsToprocess= new list<SVMXC__Installed_Product__c>();
        for (SVMXC__Installed_Product__c p : [select id, Name, OD_Last_Qualified_Update_At__c,OD_Sync_Status__c from SVMXC__Installed_Product__c 
where id in :locationIds and Product_Line__c='OnDemand']){
         p.OD_Last_Qualified_Update_At__c = system.now();
         p.OD_Sync_Status__c = 'Pending';
         productsToprocess.add(p);
         }
         system.debug('##########'+ productsToprocess);         
         update productsToprocess; 
         }
}


Any assistance with code or alternate solutions are much appreciated!
Hi All,

I want to display code coverage of apex class on VF page using apex coding(programmatically). for e.g. if apex class abc1,abc2,abc3... have code coverage 60%,75%,85%.. respectively then I should be able to display the code coverage(60%,75%.85%..) on VF page xyz. I have also used ApexCodeCoverage object. But I am not able to display the code coverage on vf page. Please help me.
Thanks in Advance..
Hello All,
I am stuck in below trailhead chanllange
Create a Visualforce page that displays the first name of the logged-in user.
  • The page must be named 'DisplayUserInfo'.
  • The displayed user information must be generated dynamically from the logged-in user.
Here below is my code. Please help me to find the solution.
<apex:page>
{!$User.FirstName } {!$User.LastName } ({!$User.Username })
</apex:page>

Hi ,

 

I have  to write an apex trigger,on my custom object,after creating a record,following are the requirements

chatter group should be created and users should be added,

description field of my custom object should be posted on chatter.

 

  • February 15, 2013
  • Like
  • 0