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

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 18
    Questions
  • 11
    Replies
I want to send PDF file from Salesforce to XERO 

XERO syntax they told is like below
POST /api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/Image00394.png

here is what I'm doing 
 
string pdfcon='asdasdasdasd';
Blob pdfBody = EncodingUtil.base64Decode(pdfcon);


String endpoinurl='callout:Xero_Integration/api.xro/2.0/Invoices/32b8b9-4b5-45da-84ba-80e1bb47881/Attachments/';

HttpRequest req= new HttpRequest();
// set endpoint destination
req.SetEndpoint(endpoinurl);
req.setMethod('POST');
req.setHeader('xero-tenant-id','7bc01e1-d87-4a8b-9b96-2ffbc88f1cb8');
req.setHeader('Content-Type','application/pdf');
req.setBodyAsBlob(pdfBody);


Http http = new Http();
// send the request
HttpResponse response = http.send(req);

System.debug(response.getBody());

If I'm I'm doing like below with filename mentioning in the URL, the PDF file is inserting but it is showing below error:
 
String endpoinurl='callout:Xero_Integration/api.xro/2.0/Invoices/322cb8b9-40b5-45da-84ba-80e1bb437881/Attachments/'+pdfBody+'.pdf';

 
User-added image

Somebody help me right way to pass PDF content body over here??
 
Query:
 
select id,ParentId,UserOrGroupId from AccountShare
When I'm querying this in queryeditor it is giving this error? 

ERROR:


select id,ParentId,UserOrGroupId from AccountShare
          ^
ERROR at Row:1:Column:11
No such column 'ParentId' on entity 'AccountShare'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

Please let me know, thank you :)
How to move up and down rows in lightning component


User-added image
 
//Code From Controller

 Moveup : function(component, event, helper){
        console.log("enetered for moveup");
        //Execute the DeleteRowEvent Lightning Event and pass the deleted Row Index to Event attribute
        component.getEvent("Rowupdown").setParams({"indexVar" : component.get("v.rowIndex") }).fire();
    },
    
        Movedown : function(component, event, helper){
        console.log("enetered for movedown");
        //Execute the DeleteRowEvent Lightning Event and pass the deleted Row Index to Event attribute
        component.getEvent("Rowdown").setParams({"indexVar" : component.get("v.rowIndex") }).fire();
    }

<!--Code of Component --> 

  <td> 
                         <a onclick="{!c.Moveup}">
                        <lightning:icon  iconName="utility:chevronup" class="slds-icon slds-icon_small" size="small" alternativeText="chevronup"/>
                        <span class="slds-assistive-text">Up</span>
                    </a>
                    
                    </td>
                    <td> 
                        <a onclick="{!c.Movedown}">
                        <lightning:icon  iconName="utility:chevrondown" class="slds-icon slds-icon_small" size="small" alternativeText="chevrondown"/>
                        <span class="slds-assistive-text">Down</span>
                    </a>
                    </td>

 
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

How can I get standard Opportunity page layout style with sections and like below in Lightning, If you have any references please let me know.

And I'm using  lightning:recordedform for designing custom page but I don't know how to put sections and same like below :

User-added image

 <lightning:recordEditForm recordId="{!v.recordId}"
                                  objectApiName="Opportunity" onsuccess="{!c.handleSuccess}">

   <lightning:inputField fieldName="Name" />

 <lightning:button class="slds-m-top_small" type="submit" label="Save" />
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
User-added image

Can someone help me, how to know that self-signed certificates are related to what??
I'm simply receiving so many Emails that it will be going to expire so it hitting so many times, can anyone help me, please.

 
Here the problem is whenever I delete the row and add the row it is not refreshing i mean the row numbers are breaking i want this Row Numbers should automatically update if I do any operation.

Please have a look at the Image below:
User-added image

Visualforce Coding:
<apex:page standardController="Invoice_Line_Item__c" extensions="ManageListController" sidebar="false" >
<!--
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
 <script>
        var calculate = function() {
            var val1 = $('[id$=input1]').val();
            var val2 = $('[id$=input2]').val();
           
            var total = parseFloat( val1 ) * parseFloat( val2 );
            //The isNaN() function determines whether a value is an illegal number (Not-a-Number)
            if( !isNaN( total ) ) {
                $( "[id$=result]" ).val( total );
            }
        };
    </script> -->

 <apex:form >
   <apex:pageBlock title="NIN Invoice Line Items">
   
      <apex:pageBlockTable style="width:100%" value="{!wrappers}" var="wrapper" id="wtable">
                        
                        <apex:column headerValue="S.No">
                        <apex:inputField value="{!wrapper.acc.Row_Num__c}" style="width:19px">
                           <!--  <apex:outputText value="{0}" style="text-align:center;">
                              <apex:param value="{!rowNumber+1}" />
                             </apex:outputText>  -->
                           <apex:param name="nextIdent" value="{!wrapper.acc.Row_Num__c}" assignTo="{!nextIdent}"/>
                        </apex:inputfield>
                        </apex:column>
                        
                        <apex:column headerValue="S.No"><apex:outputText value="{!wrapper.ident}">
                        
                       
                        
                        <apex:param name="ident" value="{!wrapper.ident}" assignTo="{!ident}"/>
                        </apex:outputtext>
                        </apex:column>
                        <apex:column headerValue=" Part No"><apex:inputField value="{!wrapper.acc.Name}"  /></apex:column>
                        <apex:column headerValue="Description"><apex:inputField value="{!wrapper.acc.Description__c}" style="height:30px" /></apex:column>
                        <apex:column headervalue="Part No"><apex:inputField value="{!wrapper.acc.Part_No__c}" style="width:150px" /></apex:column>
                        <apex:column headerValue="HN"><apex:inputField value="{!wrapper.acc.N__c}" style="width:60px"/></apex:column>
                        <apex:column headervalue="Quaty"><apex:inputField value="{!wrapper.acc.Quy__c}"  style="width:60px">
                         <apex:actionSupport event="onchange" rerender="tot"/> 
                         <!--<apex:param name="qty" value="{!wrapper.acc.Quantity__c}" assignTo="{!Quantity}"/>-->
                         </apex:inputField>
                        </apex:column>
                        <apex:column headerValue="Raem)"><apex:inputField value="{!wrapper.acc.Rate_m__c}"  style="width:80px">
                         <apex:actionSupport event="onchange" rerender="tot"/>
                         </apex:inputField>
                        </apex:column>
                        <apex:column headerValue="Total">
                        <apex:outputPanel >
                          <apex:outputText id="tot" value="{!(wrapper.acc.Quantity__c*wrapper.acc.Ra_Item__c)}"> 
                      
                        <apex:param value="totl" assignTo="{!wrapper.acc.Total__c}" />
                         <apex:actionSupport event="onchange" rerender="to"/>
                        </apex:outputText>
                        <apex:actionSupport event="onchange" rerender="to"/>
                       
                         </apex:outputPanel>
                        </apex:column>
                   
                        <apex:column headerValue="Dt"><apex:inputField value="{!wrapper.acc.D__c}" style="width:60px">
                        <apex:actionSupport event="onchange" rerender="to"/>
                        </apex:inputField>
                        </apex:column>
                        <apex:column headerValue="TValue">
                        <apex:outputText id="to" value="{!((wrapper.acc.Quantity__c*wrapper.acc.Rate___c)-wrapper.acc.Discount__c)}"/>
                    
                        </apex:column>
                       
                        <apex:column headerValue="T">
                        
                        <apex:inputField value="{!wrapper.acc.IT__c}" style="width:30px" />
                        
                        </apex:column>
                        
                        <apex:column headerValue="ST">
                        
                        <apex:inputField value="{!wrapper.acc.T__c}" style="width:30px" />
                       
                        </apex:column>
                        <apex:column headerValue="ST"><apex:inputField value="{!wrapper.acc.CT__c}" style="width:30px" />
                    
                        </apex:column> 
                        <apex:column headerValue="Action">
                          <apex:commandButton value="Delete" action="{!delWrapper}" rerender="wtable">
                             <apex:param name="toDelIdent" value="{!wrapper.ident}" assignTo="{!toDelIdent}"/> 
                          </apex:commandButton>
                        </apex:column>
      </apex:pageBlockTable>
      
      <apex:pageblockButtons location="top">
      <apex:commandButton value="Add Row" action="{!addRows}" rerender="wtable">
         <apex:param name="addCount" value="1" assignTo="{!addCount}"/> 
      </apex:commandButton>
      <apex:commandButton value="Add 5 Rows" action="{!addRows}" rerender="wtable">
         <apex:param name="addCount" value="5" assignTo="{!addCount}"/> 
      </apex:commandButton>
      <apex:commandButton value="Save" action="{!save}"/>
      <apex:commandButton value="Cancel" action="{!Cancel1}" immediate="true" html-formnovalidate="formnovalidate" />
      </apex:pageblockButtons>
   </apex:pageBlock>
 </apex:form>
</apex:page>
Apex class:
 
public class ManageListController 
{
         public List<AccountWrapper> wrappers {get; set;}
         public static Integer toDelIdent {get; set;}
        
         public static Integer addCount{get; set;}
         public static Integer addCoun{get; set;}
         Public Integer nextIdent=1;
         public Id par{get;set;}
         public string partno{get;set;}
  
         
  public ManageListController(ApexPages.StandardController controller) {
      
          par=apexpages.currentpage().getparameters().get('Inice');     
          partno=apexpages.currentpage().getparameters().get('partno');
          addcoun=Integer.valueof(partno.trim());
          wrappers=new List<AccountWrapper>();
          for (Integer idx=0; idx<addcoun; idx++)
          {
           wrappers.add(new AccountWrapper(nextIdent++));
          }
          
          system.debug(addcount);
          system.debug(par);
          system.debug(partno);
          
  }
   Public Void RowNumd(){
       
       
       
   }
 public void delWrapper()
 {
  Integer toDelPos=-1;
  for (Integer idx=0;idx<wrappers.size();idx++)
  {
   if (wrappers[idx].ident==toDelIdent)
   {
    toDelPos=idx;
   }
  }
   
  if (-1!=toDelPos)
  {
   wrappers.remove(toDelPos);
  }
 }
  
 public void addRows()
 {
 
  for (Integer idx=0; idx<addCount; idx++)
  {
  system.debug(idx);
  system.debug(addcount);
   wrappers.add(new AccountWrapper(nextIdent++));
  }
 }
  
 public PageReference save()
 {
  List<Invoice_Line_Item__c> accs=new List<Invoice_Line_Item__c>();
  for (AccountWrapper wrap : wrappers)
  {
     //wrap.acc.total__c=wrap.acc.Quantity__c*wrap.acc.Rate_Per_Item__c;
    // wrap.acc.Taxable_Value__c=wrap.acc.total__c-wrap.acc.Discount__c;
    
    
    wrap.acc.NIice__c=par;
    wrap.acc.CurrencyIsoCode='INR';
    accs.add(wrap.acc);
    //System.debug(cgs);
   //accs.add(wrap.acc.NIN_Invoice__c=par);
  }
   
  insert accs;
  
   
   return new pageReference('/'+par);
 
 }
 
 public PageReference Cancel1(){
   PageReference page = new PageReference('/'+Par);
   page.setRedirect(true);
   return page;
 } 


 public class AccountWrapper{
  public Ince_Linm__c acc{get; private set;}

  public Integer ident{get; set;}
  public AccountWrapper(Integer inIdent)
  {
  System.debug(inIdent);
   ident=inIdent;
   acc=new Ince_Linm__c(Row_num__c=Ident);  //Name=' ' + ident
   
  }
 }
}

​​​​​​​
 
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
I have three field types they are 1.Checkbox  2. Textarea 3.Date.

1. Here The Textarea field default some text will be there whenever I check(True) the Checkbox in the form I want to insert a new sentence to Textarea field dynamically.
2. And here the one more Whenever I select a date from the date(using date picker) field I want to push selected date to textarea field in the form.

How can I achieve that in salesforce Lightning, someone please help me!...

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,

I have custom Quote object and order custom object and for those two I have child's objects as well.

Quote----------------Order
    |                            |
Quote line Items--Order Items

for this convert, I need some coding references like blogs or pages.
can someone help me how can I do that dynamically?
Thanks In advance!....


 

Can anyone help on avoiding nested for loop in the below code:
List<Account> leadAccountIds=[Select Id, OwnerId, Name FROM Account WHERE Name LIKE :Liktr];
    System.debug('leadAccountIds=' + leadAccountIds);

    Map<String, Id> acctNameId=new Map<String, Id>();
    Map<String, Id> acctNameOwner=new Map<String, Id>();
    if(leadAccountIds.size()==1){
          For (Account a :leadAccountIds){

                  acctNameId.put(a.name,a.Id);
                  acctNameOwner.put(a.name,a.ownerId);
                  system.debug(acctNameOwner);
                  system.debug(acctNameId);

                For (Lead l2:trigger.new){
                         l2.ownerId=a.ownerId;
                         system.debug(a.ownerId);
                 }
           }
Thanks in advance!....
 
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 Everyone,

Here I'm trying to display Report charts in the visualforce page, but I'm getting an error called " [For the filter 1: Specify a valid filterable column because ParentId is invalid]".
Actually, for Column names(API names), I looked in view page source, Workbench so many palaces in online, but I couldn't find the right one.
I need you guys help to find out Column names for(Analytics:reportchart) above field Account.ParentId.
Look into below image and code for reference:

User-added image


Code:
<analytics:reportChart filter="[{column:'ParentId',operator:'equals',value:'001O00001IEpmW'}]" size="tiny" ReportId="00O9000009iEe" />
Thanks in advance!....
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
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?