• GAURAV CHOPRA
  • NEWBIE
  • 25 Points
  • Member since 2016

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 4
    Replies
/a2j/e?
retURL={!Opportunity.Id}&
ent=Opportunity&
CF00N5000000AJ7BR={!Opportunity.Account}&
CF00N5000000AJ7BR_lkid={!Opportunity.AccountId}&
CF00N50000003bRst={!Opportunity.Name}&
CF00N50000003bRst_lkid={!Opportunity.Id}&
CF00N500000030Lze_lkid={!$User.Id}&
CF00N500000030Lze={!$User.FirstName}+{!$User.LastName}&
00N5000000AJ7C2={!Account.EIN__c}&

CF00N500000030Lze is a custom owner field(look up to employee) in the custom object when i am trying to insert a record it's throwing me an error: 
Error: Owner: id value of incorrect type: 00550000005hHsg
I have ceated a lightning:table that fetch data from backend and display.
All the other fields are correctly displaying but Geolocation(Latitude) and Geolocation(Longiude).
I am getting a warning in console that "lightning-formatted-location.js:2 <lightning-formatted-location> expects latitude in range [-90.0, 90.0], longitude in range [-180.0, 180.0]." But, I have checked my data and the calues are in that range only.

PFB the code I have written:--

Component--

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes" access="global" controller="GetBoatDisplayData">
    <aura:attribute name="boatDetail" type="Boat__c"/>
    <aura:attribute name="mycolumns" type="List"/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
    <lightning:datatable data="{! v.boatDetail}" 
        columns="{! v.mycolumns }" 
        keyField="Id"
        hideCheckboxColumn="true"/>
</aura:component>



Controller--

({
    doInit : function(component, event, helper) {
        component.set('v.mycolumns', [
                {label: 'Boat Name', fieldName: 'Name', type: 'text'},
                {label: 'Description', fieldName: 'Description__c', type: 'text'},
                {label: 'Length', fieldName: 'Length__c', type: 'number'},
                {label: 'Picture', fieldName: 'Picture__c', type: 'url'},
                {label: 'Latitude', fieldName: 'Geolocation__Latitude__s', type: 'location'},
                {label: 'Longitude', fieldName: 'Geolocation__Longitude__s', type: 'location'},
                {label: 'Price', fieldName: 'Price__c', type: 'currency'},
                {label: 'Year Built', fieldName: 'Year_Built__c', type: 'number'}
            ]);
        var action = component.get("c.getBoatDetail");
        action.setParams({boatType:"AllTypes"});
        action.setCallback(this, function(response){
            component.set("v.boatDetail",response.getReturnValue());
            console.log('Boat Result:' + JSON.stringify(response.getReturnValue()));
        });
        $A.enqueueAction(action);
    }    
})
 
I am writing a Lightning component. There I have one requirement to show a checkbox value in the lightning:datatable tag.
With aura:iteration I am able to get the checkbox but with lightning:datatable the column value is blank.
User-added image
Here you can see the Packed to checked.
User-added image
But in lightning datatable the values is blank.

Can anyone tell me how I can get the value over here?

Regards,
Gaurav
I have hosted an App on my localmachine an with the help of Salesforce REST API I am trying to access that app an fetch the response but unable to do it.
 

I come to know about this Similar Cases functionality but coudn't find anythng solid regarding this.If anybody is familier with this feature please help.

Regards,
Gaurav

I have Primary Tab ACCOUNT and its secondary tab CASE.

On Custom console of the CASE I have a VF page with a button that update some fields on the CASE.

Now on click of that button I want the CASE tab to be refreshed with the new vallues.

Thanks,
Gaurav 

public with sharing class OrderApex {

public Order__c c{get; set;}

public String nameuser{get; set;}

public boolean show{get;set;}
public boolean Edit{get;set;}
public boolean save{get;set;}

 public OrderApex(ApexPages.StandardController controller) {
 c=new Order__c ();
 if(c==null)
 {
     save=true;
     show=false;
     Edit=false; 
 }
 else
 {
     nameuser=userInfo.getName();
     c.Customer_Name__c=nameuser;
     try
     {
     c=[select Name,Address__c,Booking_Date__c,Time__c,customerName__c,Customer_Name__c from Order__c limit 1];

 save=false;
 show=true;
 Edit=false; 
 }
 catch(Exception e) 
 { } 
 }
 }
 
 
 public pageReference save(){
 
 insert c;
  c.Customer_Name__c=nameuser;
 c=[select Name,Address__c,Booking_Date__c,Time__c,customerName__c from Order__c limit 1];
 
 show=true;
 save=false;
 
 return null;
 }
 
 public pageReference editData(){
 
 Edit=true;
 show=false;
 save=false;
 
 c=[select Name,Address__c,Booking_Date__c,Time__c,customerName__c from Order__c limit 1];
 
 
 return null;
 }
 
 public pageReference editAfterSave(){
 upsert c;
 
 c=[select Name,Address__c,Booking_Date__c,Time__c,customerName__c from Order__c where Customer_Name__c=:nameuser limit 1];

 Edit=false;
 show=true;
 save=false;
  
 return null;
 }
 
}


<apex:page standardcontroller="Order__c" extensions="OrderApex" sidebar="false" >
 <apex:form >
 <apex:pageBlock rendered="{!save}" title="Save Profile">
 <apex:pageblockSection >
 
 <apex:inputField value="{!c.Name}"/>
 <apex:inputField value="{!c.Address__c}"/>
 <apex:inputField value="{!c.Booking_Date__c}"/>
 <apex:inputField value="{!c.Time__c}"/>
 <apex:inputField value="{!c.customerName__c}"/>
 <apex:inputField value="{!c.Customer_Name__c}"/>
 
 <apex:commandButton action="{!save}" value="SaveData"/>
 </apex:pageblockSection>
 </apex:pageBlock>

 <apex:pageBlock rendered="{!show}" title="Show Profile">
 <apex:pageblockSection >

 <apex:outputText value="{!c.Name}"/>
 <apex:outputText value="{!c.Address__c}"/>
 <apex:outputText value="{!c.Booking_Date__c}"/>
 <apex:outputText value="{!c.Time__c}"/>
 <apex:outputText value="{!c.customerName__c}"/>
 <apex:outputText value="{!c.Customer_Name__c}"/>
   
 <apex:commandButton action="{!editData}" value="Edit"/>
 </apex:pageblockSection>
 </apex:pageBlock>

 <apex:pageBlock rendered="{!Edit}" title="Edit Profile">
 <apex:pageblockSection >
 
 
 <apex:inputField value="{!c.Name}"/>
 <apex:inputField value="{!c.Address__c}"/>
 <apex:inputField value="{!c.Booking_Date__c}"/>

 <apex:inputField value="{!c.Time__c}"/>
 <apex:inputField value="{!c.customerName__c}"/>
 <apex:inputField value="{!c.Customer_Name__c}"/>
   
 
 <apex:commandButton action="{!editAfterSave}" value="save"/>
 </apex:pageblockSection>
 </apex:pageBlock>


</apex:form>
</apex:page>




when i try to run this code it will give me error like 


System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Order__c.Customer_Name__c 

what i have to do???
I am calling a future class where an email is sent to the customer, a checkbox is turned into TRUE to avoid duplication. The email is triggered when a subscriber's end date is 15 days before. 

Now this is a subscription renewal situation and the user subscribes and again continues the package. But when the renewal arrives before 15 days again, this checkbox is true so my logic would overlook this account. 

How can I turn this checkbox to false again  after 2 days so that this email is again triggered.?

Note this check box is not read only and I would want this to be turning to true when the next iteration of expiry comes up. 

How can I achieve this scenario?

 
Hi Experts ,

This is my requirement, i have 5 users, these users have same profile and same role, but i want only one user can't able to see the related list case comments on detal page , how i can achive this ,kindly do the needful.

thanks.
chinnodu
/a2j/e?
retURL={!Opportunity.Id}&
ent=Opportunity&
CF00N5000000AJ7BR={!Opportunity.Account}&
CF00N5000000AJ7BR_lkid={!Opportunity.AccountId}&
CF00N50000003bRst={!Opportunity.Name}&
CF00N50000003bRst_lkid={!Opportunity.Id}&
CF00N500000030Lze_lkid={!$User.Id}&
CF00N500000030Lze={!$User.FirstName}+{!$User.LastName}&
00N5000000AJ7C2={!Account.EIN__c}&

CF00N500000030Lze is a custom owner field(look up to employee) in the custom object when i am trying to insert a record it's throwing me an error: 
Error: Owner: id value of incorrect type: 00550000005hHsg