• YV
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies
My code is here


<apex:component controller="Type_Ahead_Component_Controller" >
     <apex:stylesheet value="{!URLFOR($Resource.AutoComplete,'/jquery-ui.css')}"/>
     <apex:includeScript value="{!URLFOR($Resource.AutoComplete,'/jquery-1.12.4.js')}"/>
     <apex:includeScript value="{!URLFOR($Resource.AutoComplete,'/jquery-ui.js')}"/>

     <apex:attribute name="sObj" type="String" description="sobject name"></apex:attribute>
     <apex:attribute name="fields" type="String" description="SObject field name"></apex:attribute>
     <apex:attribute name="index" type="string" description="SObject name as index" assignTo="{!objectName}" />

     <apex:pageBlock >
          <apex:pageBlockSection collapsible="false" title="{!objectName}">
               <input  id="{!index}objectSearch" value="{!searchTerm}"/>    
          </apex:pageBlockSection>
     </apex:pageBlock>
    
    <apex:outputPanel id="outerPanel"> 
        <apex:outputPanel id="innerPanel">
            <apex:pageBlock title="{!objectName} detail">
                <apex:pageBlockTable value="{!sobjectWrapper}" var="item" id="recordID">
                    <apex:outputField value="{item.name}" />
                </apex:pageBlockTable>
                <apex:pageBlockButtons location="Top">
                    <apex:commandButton value="Save" />
                </apex:pageBlockButtons>
            </apex:pageBlock>
        </apex:outputPanel>
    </apex:outputPanel>
     <!--apex:pageBlock title="{!objectName} detail" rendered="true" id="recordID">
         <apex:pageBlockTable value="{!sobjectWrapper}" var="item">
             <apex:outputField value="{item.name}" />
         </apex:pageBlockTable>
         <apex:pageBlockButtons location="Top">
             <apex:commandButton value="Save" />
         </apex:pageBlockButtons>
     </apex:pageBlock-->

     <apex:actionFunction name="showObjectInfo" action="{!showObjectDetail}"     reRender="outerPanel,innerPanel,recordID">  
          <apex:param assignTo="{!selectedObjectID}" name="selectedObjectID" value=""/> 
          <apex:param assignTo="{!tempFields}"  name="field" value="" />
          <apex:param assignTo="{!objectName}" name="objectName" value="" />
     </apex:actionFunction>
</apex:component>

Please provide me any solution
Thank you in advance
Hi folks,
I am working on a assignment (using visualforce component) where i need to work on more than 15000 thousands records and need full pagination without using standardSetcontroller, offset and limits,
Please help me,

Thanks
yagya
  1.  I created a Visualforce page and added standard controller position__c object. There are some required fields like name,min_pay and max_pay. Min and max pay both have validation rule to check the minimum value criteria.  Without entering value in input text on visualforce page on those fields why i am able to save records.
This is my visualforce page code

<apex:page standardController="Position__c">
    <apex:form>
        <apex:pageMessages/>
        <apex:pageBlock title="Position"> 
            <apex:pageBlockButtons>
                <apex:commandButton action="{!save}" value="save"/>
                <apex:commandButton action="{Cancel}" value="Cancel"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="Create records">
                <apex:inputText value="{!position__c.name}" />
                <apex:inputText value="{!position__c.min_pay__c}" />
                <apex:inputText value="{!position__c.max_pay__c}" />
                <apex:inputText value="{!position__c.status__c}" />
                <apex:inputText value="{!position__c.job_description__c}" />
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

User-added image

if i edit this page and save without do anything it will also accept values and will take $0.0 value in min and max pay fields

Please help me
Thank you in advance