• Pradip Kr. Shukla
  • NEWBIE
  • 40 Points
  • Member since 2016
  • CloudCentric Infotech Pvt. Ltd.


  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 12
    Replies
 Unknown property 'AccountStandardController.accout'....
..
anyone can help you...


<apex:page standardController="account" sidebar="false" >
<apex:form>
<apex:pageblock title="Acounts">
<apex:pageBlockSection>
<apex:inputField  value="{!Accout.Name}"/>
<apex:inputField value="{!Account.Type}"/>
<apex:inputField value="{!Account.AccountNumber}"/>
</apex:pageBlockSection>
</apex:pageblock>
  </apex:form>
</apex:page>
Hello Everyone,

I am facing below issue while installing a fresh package. The package is developed by me as well.

User-added image
Please suggest me steps what I need to take to resolve this issue as soon as possible.

Regards,
Pradip Shukla
Hi All,

Can anyone answer my below question-
Does Metadata Describes call consume API limits?

Thanks
Hi Guys,

While developing visualforce pages for force.com public sites i want to store some values in session from apex controller.
I used Cache.Session / Cache.SessionPartition but this is only working internally, not working on public sites.

Code lines are below-
Cache.SessionPartition sessionPart = Cache.Session.getPartition('local.myPartitionSession');
 // Retrieve cache value from the partition
 if (!sessionPart.contains('BookTitle')) {
        sessionPart.put('BookTitle', 'test');
 }

Thanks.
Pradip Shukla
Hi All ,

I am developing a lightning component and its has nested Aura Iteration component.Code is wrriten here-
1-Component Code : 

<aura:component >
    <aura:attribute name="objInt" type="IntController.IntNodeWrapper" />
    <aura:attribute name="ext" type="String" default="plus"/>
 <aura:attribute name="extChild" type="String" default="plus"/>
    <li  id="tree0-node0" class="slds-tree__branch slds-is-open" role="treeitem" aria-level="1" aria-expanded="true">
        <div class="slds-tree__item">
            <!--<ui:inputCheckbox  value="{!v.objInt.isSelected}"/>-->
            <aura:if isTrue="{!v.objInt.hasChildren == true}">
                <aura:if isTrue="{!v.ext=='plus'}">
                    <div id="plus" >
                        <img onclick="{!c.showHidePanel}" draggable="false" class="emoji" alt="➕" src="/resource/Icons/Icons/round_plus.png" style="width:20px;height:20px;"/>
               
                    </div>
                    <aura:set attribute="else">
                        <div id="minus"><img onclick="{!c.showHidePanel}" draggable="false" class="emoji" alt="➖" src="/resource/Icons/Icons/round_minus.png" style="width:20px;height:20px;"/></div>
                    </aura:set>
                </aura:if> 
                &nbsp;
                <aura:set attribute="else">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </aura:set>
            </aura:if> 
            <a id="tree0-node0-0-link"  tabindex="-1" onclick="{!c.showHidePanel}" role="presentation">{!v.objInt.myIntName}</a>
        </div>
         
        <ul aura:id="{!v.objInt.myIntId}" id="{!v.objInt.myIntId}" style="display:none;" class="slds-tree__group slds-nested" role="group" aria-labelledby="tree0-node0-link">
            <aura:iteration items="{!v.objInt.myChildNodes}" var="ChildInt">
                <aura:if isTrue="{!ChildInt.hasChildren == true}">
    <li id="tree0-node0-1" class="slds-tree__item" role="treeitem" aria-level="2" style="margin-left: 50px;">
                    <div class="slds-tree__item">
      <aura:if isTrue="{!ChildInt.hasChildren == true}">
       <aura:if isTrue="{!v.extChild=='plus'}">
        <div id="plus" >
         <img  onclick="{!c.ChildshowHidePanel}" draggable="false" class="emoji" alt="➕" src="/resource/Icons/Icons/round_plus.png" style="width:20px;height:20px;" name="{!ChildInt.myIntId}"/>
         
        </div>
        <aura:set attribute="else">
         <div id="minus"><img onclick="{!c.ChildshowHidePanel}" draggable="false" class="emoji" alt="➖" src="/resource/Icons/Icons/round_minus.png" style="width:20px;height:20px;"/></div>
        </aura:set>
       </aura:if> 
       &nbsp;
       <aura:set attribute="else">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       </aura:set>
      </aura:if> 
      <a id="tree0-node0-0-link"  tabindex="-1" onclick="{!c.ChildshowHidePanel}" role="presentation">{!ChildInt.myIntName}</a>
     </div>
      
     <ul aura:id="{!ChildInt.myIntId}" id="{!ChildInt.myIntId}" style="display:none;" class="slds-tree__group slds-nested" role="group" aria-labelledby="tree0-node0-link">
      <aura:iteration items="{!ChildInt.myChildNodes}" var="GrandChildInt">
       <li id="tree0-node0-2" class="slds-tree__item" role="treeitem" aria-level="3" style="margin-left: 50px;">
        <!--<ui:inputCheckbox aura:id="checkbox" value="{!ChildInt.isSelected}"/>-->
        <a href="#" role="presentation" class="slds-truncate" style="color: darkgoldenrod;">{!GrandChildInt.myIntName}</a>     
       </li>
      </aura:iteration>
     </ul>   
                </li>
    <aura:set attribute="else">
     <li id="tree0-node0-1" class="slds-tree__item" role="treeitem" aria-level="2" style="margin-left: 50px;">
      <a href="#" role="presentation" class="slds-truncate" style="color: darkgoldenrod;">{!ChildInt.myIntName}</a>   
     </li>
    </aura:set>
    </aura:if> 
            </aura:iteration>
        </ul>
    </li>
</aura:component>

2-Controller Code :
({
    showHidePanel : function(component, event, helper) {
        var id=component.get("v.objInt.myIntId");        
        var e=document.getElementById(id);      
        if (e.style.display == 'block' || e.style.display==''){
            e.style.display = 'none';
            component.set("v.ext","plus");
        }else{
            e.style.display = 'block';
            component.set("v.ext","minus");
        } 
    },
 ChildshowHidePanel : function(component, event) 
    {
        var id=component.get("ChildInt.myIntId"); 
        var e=document.getElementById(id);      
        if (e.style.display == 'block' || e.style.display==''){
            e.style.display = 'none';
            component.set("v.extChild","plus");
        }else{
            e.style.display = 'block';
            component.set("v.extChild","minus");
        } 
    },
})

3-Result:
User-added image


From above code piece , i want if user click on "Child Test1" then child "GrandChild Test2" should be visible. As of now its working for 1st level(i.e. when user clicks on "Test Parent" then it is working)
 From Controller code , we are calling "ChildshowHidePanel : function(component, event)" method on "Child Test1" click and gettting undefined value of id(var id=component.get("ChildInt.myIntId"); ).

 
Hi All, 

In "Apex REST Callouts" unit of "Apex Integration Services" i am facing issue with given endpoint URL
"https://th-apex-http-callout.herokuapp.com/animals/:id".
I am not able to figureout that what will be the value of id in above url(last parameter).
Hi All

Please help to resolve my problem as i am not able to login on Salesforce Success Community as well as AppExchange with my SFDC credentials. Same credentials is working fine with Trailhead and Developer Org.
Hi Guys,

While developing visualforce pages for force.com public sites i want to store some values in session from apex controller.
I used Cache.Session / Cache.SessionPartition but this is only working internally, not working on public sites.

Code lines are below-
Cache.SessionPartition sessionPart = Cache.Session.getPartition('local.myPartitionSession');
 // Retrieve cache value from the partition
 if (!sessionPart.contains('BookTitle')) {
        sessionPart.put('BookTitle', 'test');
 }

Thanks.
Pradip Shukla
Hello All,
              I am new to salesforce. i want to send email with attachment that stored in static resources. please tell me how to do it
Hi, 

 I wrote a custom trigger to update all child based on the parent value Please find trigger below. 
trigger FortuneGlobalTrg on Account (after insert, after update) {

 Set<id> setOfParentId = new Set<Id>();
 Set<id> setOfParentIds = new Set<Id>();
 
 for(Account pt : trigger.new){
  setOfParentId.add(pt.id);
 }
 
 List<Account> listChild = new List<Account>([Select id, Global_2000_Rank__c,Fortune_Rank__c 
                                          from Account where ParentId in :setOfParentId or 
                                                             id in :setOfParentIds ]);
 List<Account> updatedlistChild = new List<Account>();
 
 for(Account pt : trigger.new){
  for(Account ch : listChild){
   ch.Global_2000_Rank__c = pt.Global_2000_Rank__c;
   ch.Fortune_Rank__c = pt.Fortune_Rank__c;
   
   updatedlistChild.add(ch);
  }
 }
 
   if (updatedlistChild.size() > 0 ){
    Update updatedlistChild;
   } 
  
  }

 I tested this in test instance which was working I see below error message when testing in production. Please suggest me how to fix this issue. 


caused by: System.DmlException: Update failed. First exception on row 0 with id 5503400000100IYDwAAO; first error: FIELD_INTEGRITY_EXCEPTION, If you set an end date, you must also set a start date.: Start Date: [StartDate]

Thanks
Sudhir
  • August 21, 2017
  • Like
  • 0
 Unknown property 'AccountStandardController.accout'....
..
anyone can help you...


<apex:page standardController="account" sidebar="false" >
<apex:form>
<apex:pageblock title="Acounts">
<apex:pageBlockSection>
<apex:inputField  value="{!Accout.Name}"/>
<apex:inputField value="{!Account.Type}"/>
<apex:inputField value="{!Account.AccountNumber}"/>
</apex:pageBlockSection>
</apex:pageblock>
  </apex:form>
</apex:page>
Hello,

Can anyone help me fixing the column gap issue for "Related Account", "Save" button, "Related opportunities" and "Save" button in the attached image below. 

VF page


Here`s the related code:

<apex:outputPanel id="testId">
 <apex:pageBlockSection columns="4">
    <apex:inputField value="{!objRideReport.Related_Accounts__c}" />
    <apex:commandButton value="Save" action="{!addAccount}" reRender="testId,accTable"/>
    <apex:inputField value="{!objRideReport.Related_Opportunities__c}" id="optyId" />
    <apex:commandButton value="Save" action="{!addOpportunity}" reRender="testId,optyTable"/>
 </apex:pageBlockSection>
</apex:outputPanel>


Thank you!
Sumanth


 
Hi All, 

In "Apex REST Callouts" unit of "Apex Integration Services" i am facing issue with given endpoint URL
"https://th-apex-http-callout.herokuapp.com/animals/:id".
I am not able to figureout that what will be the value of id in above url(last parameter).
Hi All

Please help to resolve my problem as i am not able to login on Salesforce Success Community as well as AppExchange with my SFDC credentials. Same credentials is working fine with Trailhead and Developer Org.
Is there any way to cutomize classic visualforce page to look like lightning VF page (without to switching to lightning)? 

My requirement is to build a new VF page that is about to be used in salesforce classic but the styling should be like lightning.

 
hi all,

I urgently need to edit/delete a post made by me on this discussion forum...But its not allowing me to do so and pops up
saying that 'you cant delete this question as others are interested in it'.
There are no likes and no comments on it still i am unable  to delete it
Any help would be highly appreciated

Its very urgent,
Thanks,

Hi,

 

I am trying to write test class for webservices class. I am getting error as 'Methods defined as TestMethod do not support Web service callouts, test skipped' . Please help me any one how to solve this.