• syeda syeda
  • NEWBIE
  • 5 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 7
    Replies
Hi Peeps,

This is saidaiah and i have challenge that we need to get the wordpress posts (wordpress articles) and display in the salesforce chatter feed. So, i just want to integrate the wordpress to salesforce to get the posts from there and display in salesforce as feed. If anybody has the idea on this kind of scenario, please help me out to this.

It would be appreciated if it will be helpful
Thanks in advance.

 
Hi guys, I have an urgent requirement in reports  i have set a conditional highlighted on amount field. i need to display records which employee exceeds that amount. let us say if he exceeds 75 i need to display only that records. employee name is a grouped field. please help me it would be appriciated
i have two vfpages. In one vfpage i have some pageblocks on each pageblock i have pageblocksections in one of the pageblock i need to add another vfpage pageblocksections. i have tried <apex:include> but it does not work cause of nested form tag. on each vfpage i have standardcontroller and extensions. when i tried to use code in the first page it is referencing the second vfpage standardcontroller name but we can not use two standardcontrollers in same vfpage. please help me it would be saved me.

Thanks.
i have a object called some object_X__c and i have two recordtypes on this object 1) type_A, 2)type_B , And  i have a amount__c field
so when i create a few rocords on each recordtype let us say 5 or 6 records on each. I have to  caluculate total amount on amount field depends upon name__c field as same name for those total amounts and then i have to create a report which name(employee) of records  total amount greater than $75  and i need to flag those records which are >$75.
Hi,

i have two piclkists in my custom visualforce page UI i.e picklist 1 name indicators: values are value1,value2, value3,value4 and second picklist name rating: values are super-3,good-2,bad-1. if i choose value1 in first picklist many times and if i choose relating rating values i need to caluculate average based on first picklist value and rating.
ex:
indiactors:value1               rating:super-3
                value2                         good-2
                value3                         bad-1
                value4
                                                     addrow button  remove button

if i click on addrow another picklists are displaying and if i select value1 again and again and ratings are 3,1,2 like that i need to calculate average and i need to put that average in another outputtext.please give me the snippet of code to solve this , help would be appriciated.
Thanks
syeda.
public class practice {
    list<contact> c;
    list<contact> c1;
    list<contact> c2;
    list<contact> c3;
    list<contact> c4;
    list<contact> c5;
    public practice(){
         c=new list<contact>();
    c1=new list<contact>();
    c2=new list<contact>();
    c3=new list<contact>();
    c4=new list<contact>();
    c5=new list<contact>();
    public void call(){
        c=[select id,lastname from contact];
            if(c.size()!=0)
                for(integer i=0;i<=c.size();i++){
                    for(integer j=0;j<2;j++){
                    c1=c.get(j);
                        c5.add(c1);
                       }
                    for(integer j=2;j<4;j++){
                    c2=c.get(j);
                        c5.add(c2);
                       }
                    for(integer j=4;j<6;j++){
                    c3=c.get(j);
                        c5.add(c3);
                       }
                    for(integer j=6;j<100;j++){
                    c4=c.get(j);
                        c5.add(c4);
                       }
                    
                }
                system.debug(c);
        system.debug(c1);
        system.debug(c2);
        system.debug(c3);
        system.debug(c4);
        system.debug(c5);
            }
        }
}
    
ERROR:expecting a semi-colon, found '('   in line 15
        
        

 
Record type selection screen is not coming if I am clicking on New button on related list. But it is coming if I am creating new record from available tab.

We have one sample request object and its child object(sample product). When I am clicking on new button(sample product) on related list of sample request, it is directly going to default record type and record type selection screen is not coming.
User-added image
But if I am directly creating sample product record from tab, record type selection screen is coming.
User-added image
Please help . I am not able to understand why record type selection option is not  available while creating records from related list.
 
Hi guys, I have an urgent requirement in reports  i have set a conditional highlighted on amount field. i need to display records which employee exceeds that amount. let us say if he exceeds 75 i need to display only that records. employee name is a grouped field. please help me it would be appriciated
Dears,

I need to display an amount in table <Td> (calculating With Percentage - This value also available <td> in same row <tr>).

Step 1 : Enter An Amount  (Example : 1000)

Step2  : Entered Amound need to Calculate with Percentage (Example : 10%  (10/100) * 1000)

Step 3 :  Calculated Amount should be display in another <Td>.

User-added image
 
Controller 
---------------------------------------------------------------------------
public with sharing class WholeSale_User_Stories{
    
    Public Account acc {get;set;}
    Public Integer EnteredAmount{get;set;}
    //Public Integer secondNumber{get;set;}
    Public Integer result{get;set;}
    Public List<Exposure_Limit_WS__c> expLimitList{get;Set;}
    
    public WholeSale_User_Stories(ApexPages.StandardSetController controller) {
    }
    
    public WholeSale_User_Stories()
    {
        expLimitList = [Select id,name ,Particulars__c,Standard_Limit_Percentage__c From Exposure_Limit_WS__c];
        acc = New Account();
        
        /*for(Exposure_Limit_WS__c expLimit : expLimitList){
stanPer = expLimit.Standard_Limit_Percentage__c;

}*/
    }
    
    Public PageReference init(){
        EnteredAmount = 0;
        //secondNumber = 0;
        result = 0;
        return Null;
    }
    
    Public PageReference doSum(){
        EnteredAmount= EnteredAmount== Null ? 0 : EnteredAmount; 
        //secondNumber = secondNumber == Null ? 0 : secondNumber; 
        System.debug('************Entered Amount ' + EnteredAmount);
        result = EnteredAmount; //test
        System.debug('############result | ' + result);
        return Null;
    }
        
    //Wrapper Class
    
    /*Public Class WholeSaleWrapper{

Public double StandardLimitPercent;

public WholeSaleWrapper(Exposure_Limit_WS__c exp){
StandardLimitPercent = exp.Standard_Limit_Percentage__c;
}

}*/
  
}
 
VF Page
--------------------------------------------------------------------
<apex:page sidebar="False" showHeader="False"  controller="WholeSale_User_Stories">
<apex:form id="frm">
  <html>
  <head>
  
  <!-- Bootstrap Online Link -->
  <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous" />
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous" />
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  
  <style>
  
  </style>
  </head>
  <body>
   
  <div><br/><br/><br/><br/></div>
  <div class="container">
  <div class="row col-sm-12" align="center">
  <div class="form-group col-sm-6" align="right">
  <apex:outputLabel >Selected Borrower &nbsp;&nbsp;&nbsp;</apex:outputLabel> 
  <apex:inputField value="{!acc.Parentid}"/ >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </div>
  <div class="form-group col-sm-4" >
  <apex:outputLabel for="theTextInput1">Enter Amount &nbsp;&nbsp;&nbsp;</apex:outputLabel> <apex:inputText value="{!EnteredAmount}" id="theTextInput1" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <!--<apex:outputlabel  value="Result Is : {!result}" for="theTextInput2"></apex:outputlabel >  -->
  </div>
  <div class="form-group col-sm-2" align="left">
<!--  <button type="button" class="btn btn-info" styleClass="buttonStyle" style="background:#388A9D" >Calculate</button> -->
<apex:commandButton action="{!doSum}" value="Calculate" style="background:#52D7F5"/>
  </div>
 <br/>  <br/>
  </div>
         
  <table border="1" width="100%">
  <!--<tr>
  <td colsapn="6">Owned Funds Amount INR</td>
  <td width="10%"></td>
  <td width="10%"></td>
  </tr> -->
  
  <tr bgcolor="#DAF3FC" style="font-weight:bold">
  <td rowspan="2" colspan="2" align="center">Particulars</td>
  <td width="10%" rowspan="2" align="center">Standard Limit in % for Loan Company</td>
  <td  colspan="2" align="center">Infrastructure Finance Company</td>
  <td  colspan="2" align="center"> AFC and LC (only for Infrastructure Loan and/ or Investment)</td>
  <td width="17%" align="center" rowspan="2">Exposure Limits in Amount INR</td>
  <td align="center" rowspan="2">Exposure Limits in Amount INR ( For Non PPP projects and PPP projects Non Tripartite cases)</td>
  
  </tr>
  
  <tr bgcolor="#DAF3FC" style="font-weight:bold">
  <td width="11%" align="center">Additional limit %</td>
  <td width="11%" align="center">Total Limit %</td>
  <td width="10%" align="center">Additional limit ***</td>
  <td width="12%" align="center">Total Limit</td>
  </tr>
  
  <apex:repeat value="{!expLimitList}" var="whlsl">
  <tr>
  <td width="7%" align="center"><apex:outputText value="{!whlsl.Particulars__c}" ></apex:outputText></td>
  <td width="9%" align="center"><apex:outputText value="{!whlsl.Name}"></apex:outputText> </td>
  <td Align="center"><apex:outputText value="{!whlsl.Standard_Limit_Percentage__c}"  ></apex:outputText>%</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td bgcolor="#E6F4C8" align="center">{!result}</td>
  <td bgcolor="#E6F4C8" align="center">--</td>
  </tr>
  </apex:repeat>
 
  </table>
  
  </div> <!-- Container Closed -->
  </body>
  </html>
  </apex:form>
  </apex:page>

Thanks In Advance.

Regards,
Soundar.
 
Hi everyone
scenario
suppose we have two objects 1.item and 2.bill
object item has 4 fields
field1-name
field2-quantity
field3-price
field4-bill(look up relationship with custom object bill).
now bill is another custom object with fields
customer name and
total amount
now i need to write trigger to calculate total amount in the bill object

example we buy 2 soaps of $10
and 2 shirts of $100
so total amount would be 20 + 200 =220

anyone plz help..
The apex trigger was created a few years back and it currently updates the contact owner when the account owner is updated. It is no longer valid. Can I have some steps to action please? 
public class practice {
    list<contact> c;
    list<contact> c1;
    list<contact> c2;
    list<contact> c3;
    list<contact> c4;
    list<contact> c5;
    public practice(){
         c=new list<contact>();
    c1=new list<contact>();
    c2=new list<contact>();
    c3=new list<contact>();
    c4=new list<contact>();
    c5=new list<contact>();
    public void call(){
        c=[select id,lastname from contact];
            if(c.size()!=0)
                for(integer i=0;i<=c.size();i++){
                    for(integer j=0;j<2;j++){
                    c1=c.get(j);
                        c5.add(c1);
                       }
                    for(integer j=2;j<4;j++){
                    c2=c.get(j);
                        c5.add(c2);
                       }
                    for(integer j=4;j<6;j++){
                    c3=c.get(j);
                        c5.add(c3);
                       }
                    for(integer j=6;j<100;j++){
                    c4=c.get(j);
                        c5.add(c4);
                       }
                    
                }
                system.debug(c);
        system.debug(c1);
        system.debug(c2);
        system.debug(c3);
        system.debug(c4);
        system.debug(c5);
            }
        }
}
    
ERROR:expecting a semi-colon, found '('   in line 15