• VINODKUMAR REDDY KALUVA
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 21
    Questions
  • 14
    Replies

I have created a visualforce page to get the code initially and after the code with redirect url I'm getting the Access Token for Dropbox.

So I have confused that How I can use this in the real-time apex call to make a callout using HTTP Calls how can we get the Access token from the visualforce page to make a callout in the different apex class.

 

Here is the Blog that I have used for the Access Token DROPBOX:

http://forceguru.blogspot.com/2014/05/dropbox-authentication-in-salesforce.html

But How we can consume this in different apex class because for this visualforce page which we are using for an access token is having redirect URL?

Please let me know if my question is not clear.

 

 

I created one custom field and it is in standard layout The requirement is the record currency USD and our org currrency is EUR 

User wants to see only USD but it's showing EUR converted also can we hide that EUR conversion(I want to hide it for this particular field) with you customization ?????
User-added image

Hi All,

Here I'm trying to copy values from the output text table data to respect of their field which are price and Qty 

Please take look at the below picture for an idea.

User-added image

Here I'm using Inside two aura: iterations and I'm those price and qty from the different objects instead of entering the user he will just click and copy the values.

Please take a look at the below coding What I have return:
 
<div class="slds-section__content" id=" OrderLineItemsId">
                <aura:iteration items="{!v.OrderItems}" var="item">
                    <table><tr>
                        <td><lightning:input label="S.No" value="" />  </td>
                        <td>
                        <lightning:input label="P/N" value="{!item.Name}" /> 
                        </td>
                        <td> <lightning:input label="P/N" value="{!item.client_Pn__c}" /> </td>

                        <td> <lightning:input label="Description" value="{!item.Description__c}" /> </td>
                        <td> <lightning:input label="Prod" value="{!item.Family__c}" /> </td>
                        <td> <lightning:input type="Date" label="Shipping Date" value="{!item.Confirmed_Shipping_Date__c}" /> </td>
                      <td> 
                            <aura:iteration items="{!item.Batch}" var="ba">
                                <table border="1" id="thispa">
                                    <tr><th> Price </th>
                                        <th> Qty </th>
                                    </tr>
                                	<tr>
                                         <td> <ui:outputText title="Price" aura:id="baprice" value="{!ba.Unit_Price__c}"/>  </td>
                                         <td>  <ui:outputText title="Qty" aura:id="baqty" value="{!ba.Asked_Qty__c}" />  </td>
                                         <td> <ui:inputRadio aura:id="r0" name="select" label="Action" change="{!c.CopyValues}"/> </td>
                                      
                                    </tr>
                                </table>    
                             </aura:iteration>
                        </td>
                        <td> <lightning:input label="Qty" value="{!item.Quantity__c}" /> </td>
                        <td> <lightning:input label="Unit Pice" value="{!item.Price__c}" /> </td>
                         
                        </tr>
                        -------------------------------------------------------------------------------------------------
                    </table>
                 </aura:iteration>    
            </div>
 
Controller:

 CopyValues: function(component, event, helper) { 
       console.log("entered");
  
       var pricem=event.getSource();
       var selectedItemNew=document.getElementById(pricem).value();
       console.log(pricem.get("v.value"));   
       var table = document.getElementsById("thispa");  
         console.log(table);       
      }

Here I'm not able to get anything


 
For me if I go to settings it is showing like below how to create a namespace there is no edit 

Please check below image help me how I can create it 
User-added image
There is no Edit option that is what is showing for me in my org account
I have a little challenge here please try:


I have a little challenge which I'm trying, I want whenever the checkbox is checked I want to copy the values into input text fields in visualforce page.
So here I have multiple rows and corresponding to that I have checkboxes, Whenever I click a checkbox values should pass to input text fields.
For more understanding, I'm attaching the screenshot of challenge.

User-added image

Please have look at the below link for the  more details :

https://salesforce.stackexchange.com/questions/260395/how-to-copy-when-data-to-text-fields-when-checkbox-is-checked
I just want to know why I'm not able to get the code coverage inside for loop when I'm just adding value to string variable in the for loop 
Why I'm not able cover that red line in the code

Test class below:
@isTest

Public class TestOrderAcknowledgement{

   @isTest static void myTest() {
    String custmpo;
   Order__c orp=new Order__c();
        orp.Date_of_Order__c=Date.today();
        orp.Order_To_Street__c='Baasdfngavzdvladfore';
        orp.customer_po__c='ewfew';
   Insert orp;
       
   List<Ordger__c>   order1=[Select Name,Id,customer_po__c from Order__c where Id=:orp.Id];
       for(Order__c ord:order1){
        custmpo=ord.customer_po__c;    
       }
       
   Order_item__c orli=new Order_item__c();
   
   orli.Name='221N4fdzgHY78';
   orli.Description__c='this is description';
   orli.price__c=283;
   orli.order__c=orp.id;
   orli.quantity__c=52;
   
   Insert orli;
       
       OrderAcknowledgement controll = new OrderAcknowledgement(new ApexPages.StandardController(orli));
   }
    


}


 
I have one checkbox in an object I want to update that checkbox in visualforce page, I'm able to update that checkbox successfully using(command button) apex controller, but that problem here is I want to display the output of that checkbox field without refreshing a page, I'm trying using a reRenderattribute to that command button called Update but's not displaying the checkbox output.


User-added image
 
<apex:outputpanel id="counter" style="overflow:scroll;" layout="block">         
          <apex:actionStatus id="counterStatus" startText=" (Fetching...)" stopText=" (done)"/>

              <apex:pageBlock mode="maindetail" Id="Refre">
              <apex:panelGroup id="ref2" >
               <apex:outputPanel id="ref1" styleClass="tableContainer" layout="block" style="height:420px" rendered="{!NOT(ISBLANK(quo))}"> 

            <apex:pageBlockTable value="{!quo}" var="q" rendered="{!(quo.size!= 0) && (quo.size < 999)}"  id="tb2Quotes" styleclass="floatingHeaderTable" style="overflow:scroll;height:250px;width:100%"> 

                 **<apex:column value="{!q.Quote_Line_Item__r.Order_Received__c}" styleClass="noWrap" style="border:1px solid #D7D8D9" headerValue="Order Received"/>**
                 <apex:column value="{!q.Discount__c}" styleClass="noWrap" style="border:1px solid #D7D8D9" headerValue="Discount"/>
                 <apex:column styleClass="noWrap" style="border:1px solid #D7D8D9;height:5px;" headerValue="Quote Preview">
                 <apex:commandbutton value="Quote Preview"  onclick="return window.open('/apex/QuotePreview?id={!q.Quote_Line_Item__r.Quote1__c}')" style="font-size: 5pt; color: black"  />
                 </apex:column>
                 <apex:column styleClass="noWrap" style="border:1px solid #D7D8D9" headerValue="Open Quote">
                 <apex:commandbutton value="open Quote" onclick="return window.open('https://nicomatic.my.salesforce.com/{!q.Quote_Line_Item__r.Quote1__c}')" style="font-size: 5pt; color: black" />
                 </apex:column> 
                 *<apex:column styleClass="noWrap" style="border:1px solid #D7D8D9"  >
                 <apex:facet name="header">Priority <apex:COMMandLink style="color: green" action="{!allupdateOrderReceived}" value="header" rerender="Refre" Value="!ALL Order Receved Update" /> </apex:facet>  
                        <apex:commandButton value="Update" action="{!updateOrderReceived}"  reRender="Refre,counter">
                          <apex:param name="selected" value="{!q.Quote_Line_Item__r.Id}" assignTo="{!selected}" /> 

                       </apex:commandButton>*
              <!--   
              <apex:facet name="header">Priority <apex:commandLink style="color: green" action="{!updateOrderReceived}" value="header" Value="!Order Received Update" > 
                                 <apex:param name="Selected" 
                                    value="{!q.Quote_Line_Item__r.Id}" 
                                   /> </apex:commandLink></apex:facet>   
               <apex:inputCheckbox value="{!q.Quote_Line_Item__r.Order_Received__c}" /> -->
              <!--   <apex:inputCheckbox value="{!q.Quote_Line_Item__r.Order_Received__c}" />
                 <apex:commandbutton value="Update"  style="font-size: 5pt; color: black" /> -->
                 </apex:column>           
            </apex:pageBlockTable>          
             <apex:outputText rendered="{!(quo.size = 0)}" value="There are no records to display." />
              <apex:outputPanel rendered="{!NOT(ISBLANK(quo))}">
                 <apex:outputText rendered="{!quo.size > 999 }" value="Refine search Records should be less than 1000"  />
             </apex:outputPanel>  
              </apex:outputPanel>
              </apex:panelGroup>   

        </apex:pageBlock> 

           </apex:outputpanel>

 
Here I'm trying for Autocomplete in the normal text field in lightning for this I researched a lot everywhere I found Lookup autocompletions but my idea is to get that in a text field.
After my research, I got to know that I can achieve this by using Jquery's, but I tried with few but it's not working so anyone wants this challenge to try?

For more understanding:
https://salesforce.stackexchange.com/questions/234329/how-can-i-achieve-autocomplete-through-a-normal-text-field-in-sales-force-lightn

HI 

I have tried a lot for below class code coverage but I'm not able to fix that, some can try the below challenges.
I'm facing exact problem in nested for loop(not able to get a code coverage).
This is the images that shows you the code coverage probelm

Test class:
 

@isTest (SeeAllData = true) 
Public class TestQuoteToOrder{

 
      @isTest(seealldata=true) static void myunittest1(){
      
      Account acc=new Account();
       acc.Name='Njhhjn';
       acc.Industry__c='Energy';
       acc.Activity__c='End User';
       Acc.BillingCountry='Iia';
       Acc.BillingState='Sikkim';
       Acc.BillingCity='dsad';            
       Acc.BillingStreet='dsaf';             
       Acc.BillingPostalCode='453658';         
        
      Insert acc;
       
       opportunity opp=new opportunity();
         
       opp.Name='test 5';
       opp.CloseDate=date.today();
       opp.StageName='Qualification';
       opp.Product_Type__c='Standard Product';
       opp.Accountid=acc.Id;
       
       opp.N_EP_DPI__c='F/17/213';
       opp.Competitor_Name__c='tets';
       opp.CustomerDevelopment__c='Difficult to create any relationship';
       opp.Estimated_Starting_Date_Of_Mass_Producti__c=date.today();
       opp.Date_For_Proto_types__c=date.today();
       
       Insert opp;
       
       
       Quote__c qu=new Quote__c();
     
         qu.Opportunity_Name__c = opp.Id;
         qu.Account_Name__c = acc.Id;
         
         Insert qu;
     
          
       Quote_line_item__c qli=new Quote_line_item__c();
        qli.Name='test';
        qli.Quote1__c = qu.id;
     
       Insert qli;
       
           //List<Quote__c> qu1=new List<Quote__c>(); 
       Quote__c quii=[select Name,Payment_Terms__c,Account_name__c,Or_contact_Email__c,Or_contact_Phone__c,(select Id,Name,Final_Price__c,Asked_Qty__c,Description__c,Client_P_N__c from Quote_Line_Items__r) from Quote__c LIMIT 1];
       
          
          //qu1.add(quii);
                 
       
       
         order__c qu2=new Order__c();
                qu2.Date_of_Order__c=Date.today();
                qu2.Order_To_Street__c='Bore';
                //qu2.Payment_Terms__c=qu1.Payment_Terms__c;
                //qu2.Quote__c=qu1.id;
                qu2.Account__c=qu.Account_name__c;
       
           Insert qu2;
             
  
       
           Order_item__c orli=new Order_item__c();
           
           orli.Name=qli.Name;
           orli.Description__c=qli.description__c;
           orli.price__c=283;
           //orli.order__c=qu1.Name;
           orli.quantity__c=52;
           
           Insert orli;
         
       System.assertEquals(orli,orli);
          
        Integer rowIndex=1;
        //QuoteToOrder controll=new QuoteToOrder(new apexpages.StandardController(qu));
       ApexPages.StandardController sc= new ApexPages.StandardController(qu);
         QuoteToOrder controll=new QuoteToOrder(sc); 
       
       controll.addrow();
       //controll.remove();   
       controll.deleterow();
       controll.Osave();
       
   }

}

Hi,

Here I'm trying to perform LIKE operation in SOQL when I'm passing dynamically its not returning results?
List<string> companies=new list<string>();
List<Account> leadAccountIds=[Select Id, OwnerId, Name FROM Account WHERE Name LIKE : '%' + companies + '%'];
I tried Like below ways
LIKE  '%+ companies +%'
LIKE: '%companies %'
LIKE:('%'+companies+'%')

Any One Please help me?

Thanks In Advance!..
Hi, I have the following issue,

I need to use jquery ui autocomplete in a textarea in lightning. In a visualforce page works perfectly, but in a lightning component it does not work, the list of suggestions does not appear.

In the browser console there is no error, and if through a console.log I print what has the source attribute shows me the whole list, ie the list loads well but there is a problem that does not want to show suggestions to the typing time.

jquery ui 1.12.1
jquery 2.2.4

also try with jquery 1.11.4 and it does not work either.

Any ideas?