• ankur manocha
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies
Hi,

Iam getting this error in visualforce page while compiling this program.

<apex:page standardController="Account">
<apex:form>
<!-- Don't mix a standard input field... -->
<apex:inputField value="{!account.industry}"/> //controlling field
<apex:outputField value="{!account.picklist_subcategories__c}"> //dependent 
<!-- ...with an inline-edit enabled dependent field -->
<apex:inlineEditSupport event="ondblClick" />
</apex:outputField>
</apex:form>
</apex:page>
Can anyone explain this
Hi 
How can i generate curl url if i want to send product details as task in salesforce?
Hi 
I have the code as below :

My Page:

<apex:page standardController="Account" extensions="accsearchconroller" sidebar="false" readOnly="true">
   <!--to reset/clear button - java script-->
   <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
         <script type="text/javascript">
            function resetForm(ele) {
                 $(ele).closest('form').find("input[type=text], textarea").val("");
                return false;
          }
   </script>
   
  <apex:pageMessages id="msg" />
   <apex:form id="formid">  
  
      <center><B>
      <apex:inputText value="{!searchstring}" label="Input" />
      <apex:commandButton value="Search Account" action="{!search}" />    
      <apex:commandButton value="Clear/Reset" onclick="return resetForm(this);" action="{!clear}" rerender="pbtable" immediate="true"/>  </B>
      </center>
      <h5 style="text-align:right;color:black;">
     <apex:outputText >  Please Enter full name/exact Account ID of the account for narrowing your search results </apex:outputText> </h5>
  <!--Page block starts-->
  
   <apex:pageBlock title="Search Result" id="pageblock" >  
    <apex:pageblockTable value="{!acc}" var="a" rendered="{!acc.size!=null}" id="pbtable">
     <apex:column headerValue="Account Name" >  
      <apex:outputlink value="/{!a.id}">{!a.Name}</apex:outputlink>  
     </apex:column>  
     <apex:column headerValue="Owner" value="{!a.owner.name}"/>  
     <apex:column headerValue="RecordType Name" value="{!a.recordtype.name}" />
     <apex:column headerValue="Bid Type" value="{!a.Bid_Type__c}"/>
      <apex:column headerValue="Faculty(s)" value="{!a.AAA_Faculty__c}"/>
    </apex:pageBlockTable>     
   </apex:pageBlock> 
   <apex:pageBlock >
    <apex:pageBlockSection title="Faculty">
       <apex:commandButton value="Display Faculty" action="{!faculties}" />  &nbsp;&nbsp; 
       <apex:pageblockTable value="{!faculty}" var="f" rendered="{!faculties.size!=null}" id="pbtable1"> 
        <apex:column headerValue="FacultyName" >  
         <apex:outputlink value="/{!f.id}">{!f.Name}</apex:outputlink>  
        </apex:column>  
           
       </apex:pageBlockTable> 
      </apex:pageBlockSection>
   </apex:pageBlock> 
  </apex:form>   
</apex:page>

My Controller:

 public with sharing class accsearchconroller {
   
    transient public list <account> acc {get;set;}  
    public string searchstring {get;set;}  
    public list <Faculty__c> faculties{get;set;}
    public String currentRecordId {get;set;}
   
   
     //constructor do nothing for now

    public accsearchconroller(ApexPages.StandardController controller) {
    

    }
   
    
    //Searching method with string
    public void search(){ 
    if (searchstring == null || searchstring.length()==0) {
    ApexPages.Message msg = new Apexpages.Message(ApexPages.Severity.Warning,'Please Enter the account Id to Search' );
      ApexPages.addmessage(msg);
           
      }else if(searchstring != null && searchstring.length()<=4) {
    ApexPages.Message msg = new Apexpages.Message(ApexPages.Severity.Warning,'Search text should have atleast 5 characters' );
      ApexPages.addmessage(msg);
             }
             
       else if(searchstring != null && searchstring.length()>4){
      string searchquery='select name,id,owner.name,recordtype.name,Bid_Type__c,SpareFoot_Account_Id__c,AAA_Faculty__c from account where (Bid_Type__c !=null AND SpareFoot_Account_Id__c like \'%'+searchstring+'%\')';  
      acc= Database.query(searchquery); } 
   }
     
   public void clear(){
   
   if(acc.size()!=0){
       acc = null;
   }
   }  
     //   for facility display
    public void faculties(){
    
     currentRecordId  = ApexPages.CurrentPage().getparameters().get('AccountId');
     faculties=[select id,name from Faculty__c where Account__c=:currentRecordId order by Name asc limit 30];
    }
 
}

And i wante to display the Faculties based on account id , but the above code is not working 

only account search is correct after that to display faculties - its not working , Please help on it.


Thanks
sweta
I've created a VF page to display a standart chart. The page is working fine from within SF. When trying to open the page from Force.com site I get the following error:
Error while running $A.run() : Unknown component: markup://aura:component
Any ideas?
The VF page is:
<apex:page > <analytics:reportChart reportId="00Oxxxxxx"></analytics:reportChart> </apex:page>