• AnithaThan
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 3
    Replies

Hi Folks,

 

I have a requirement, I have approval process on Account object. In account object I have Approval History related list. For this related list I need to hide the action buttons for all user as shown in image. There is no restriction for users. It should hide for all. Please suggest me how can i achieve this.

 

Thanks!

 

Hi Folks,

 

I want to perform sort recors of custom object which has roll-up summary feild. The problem that i cant able to sort records on this roll-up summary feild.

 

ex: salesprice is the summary feild can i write query like-

 

select id,name......... from <custom Object > order by <rollupsummary feild> ASC/DESC.

 

Please reply ASAP....

 

 

Thanks in Advance!

 

Jags.

Hi Folks,

 

I want to perform sort recors of custom object which has roll-up summary feild. The problem that i cant able to sort records on this roll-up summary feild.

 

ex: salesprice is the summary feild can i write query like-

 

select id,name......... from <custom Object > order by <rollupsummary feild> ASC/DESC.

 

Please reply ASAP....

 

 

Thanks in Advance!

 

Jags.

Hi Folks!!


I have created a vf page using Account Satndard Controller. Here my Requirement is "Account_Type__C"((Custom Feild Picklist Type with Doctor/Chemist values). Save the Block of Info to Account Object dependin on the Selected Value.


Here no recordtypes its PE. So i have used javascript. Unable to Save Chemist Info coz the "Error: Required fields are missing: [Name]"

One more problem is while selecting product form lookup in chemist block it is get selected in Doctor Block instead of chemist. Why???????? it is always taking first feild into consideration....though i have used id's differently...


Please Suggest a better solution for this ASAP.


My Code is as Follows....

========================================================


<apex:page standardController="Account">
    <apex:form id="myFirstForm">
        <script src="/soap/ajax/18.0/connection.js"></script>
        <script type="text/javascript">
            window.onload = LoadDefaultData;
            sforce.connection.sessionId = "{!$Api.Session_ID}";
            function LoadDefaultData()
            {
                document.getElementById("{!$Component.myFirstForm.docpgblkid}").style.display= 'none';
                document.getElementById("{!$Component.myFirstForm.chempgblkid}").style.display= 'none';
                document.getElementById("{!$Component.myFirstForm.actionblockid}").style.display= 'none';
            }
            function GetSelectedAccountInfo()
            {
               var selectedaccounttype = document.getElementById("{!$Component.myFirstForm.acctypepgblkid.acctypepgblksecid.acctypeid}").value;
               if(selectedaccounttype=="")
               {
                    document.getElementById("{!$Component.myFirstForm.docpgblkid}").style.display= 'none';
                    document.getElementById("{!$Component.myFirstForm.chempgblkid}").style.display= 'none';
                    document.getElementById("{!$Component.myFirstForm.actionblockid}").style.display= 'none';
                    alert('Please Select An Account Type');                     
               }
               else if(selectedaccounttype=="Doctor")
               {
                    document.getElementById("{!$Component.myFirstForm.docpgblkid}").style.display= 'block';
                    document.getElementById("{!$Component.myFirstForm.chempgblkid}").style.display= 'none';
                    document.getElementById("{!$Component.myFirstForm.actionblockid}").style.display= 'block';
               }
               else if(selectedaccounttype=="Chemist")
               {
                    document.getElementById("{!$Component.myFirstForm.docpgblkid}").style.display= 'none';
                    document.getElementById("{!$Component.myFirstForm.chempgblkid}").style.display= 'block';
                    document.getElementById("{!$Component.myFirstForm.actionblockid}").style.display= 'block';                    
               }
            }
        </script>
        <apex:PageBlock id="acctypepgblkid">
            <apex:pageBlockSection id="acctypepgblksecid" title="Account Type Section">
                <apex:inputField id="acctypeid" value="{!Account.Account_Type__c}" onchange="GetSelectedAccountInfo()" >
                </apex:inputField>
            </apex:pageBlockSection>
        </apex:PageBlock>
        <apex:PageBlock id="docpgblkid">    
            <apex:pageBlockSection id="docbaseinfopgblksecid" title="Doctor Basic Information">
                <apex:inputField id="doctornameid" value="{!Account.Name}" required="false"/>
                <apex:inputField id="doctorcodeid" value="{!Account.Account_Code__c}"/>

                <apex:inputField id="productid" value="{!Account.Product__c}"/>
                <apex:inputField id="hospitalid" value="{!Account.Hospital__c}"/>
                <apex:inputField id="emailid" value="{!Account.Email__c}"/>
                <apex:inputField id="phonenoid" value="{!Account.Phone__c}"/>
            </apex:pageBlockSection>
        </apex:PageBlock>
        <apex:PageBlock id="chempgblkid">
            <apex:pageBlockSection id="chempgblksecid" title="Chemist Information" >
                <apex:inputField id="chemistnameid" value="{!Account.Name}" required="false"/>
                <apex:inputField id="chemistcodeid" value="{!Account.Account_Code__c}"/>
                <apex:inputField id="chemistproductid" value="{!Account.Product__c}"/>
                <apex:inputField id="chemistemailid" value="{!Account.Email__c}"/>
                <apex:inputField id="chemistphonenoid" value="{!Account.Phone__c}"/>
                <apex:inputField id="chemistdescid" value="{!Account.Description}"/>
            </apex:pageBlockSection>
        </apex:PageBlock>
        <apex:PageBlock id="actionblockid">            
            <apex:pageBlockButtons location="bottom" >
                <apex:commandButton id="btnSave" action="{!save}" value="Save"/>
                <apex:commandButton id="btnCancel" onclick="ClearFeilds()" value="Cancel"/>
            </apex:pageBlockButtons>
        </apex:PageBlock>
    </apex:form>
</apex:page>


========================================================


Thanks!!!!!!!!!

Sanjana.

Hi Folks!!


I am developing a Visualforce Page in PE where I used a date field(Visited_Date__c) of a custom object(CCIR__c)


I am able to access the calendar of that date field initially, but after adding the window.onload in the javascript I
could not.


Please find my code snippet below:

 

//-------------------------------------------------------------------------------------------

<apex:page standardcontroller="CCIR__c">
    <apex:form id="myform">
        <script type="text/javascript">
        window.onload = DefaultSettings;
        function DefaultSettings()
        {
          //Default Settings  
        }
        </script>
    <apex:inputfield id="id" value="{!CCIR__c.Visited_Date__c}"/>
 </apex:form>
</apex:page>

//--------------------------------------------------------------------------------------

 

Kindly suggest me with a solution for this ASAP.


Thanks in advance!!


Regards,

Sanjana

Hi Folks!!


I am developing a Visualforce Page in PE where I used a date field(Visited_Date__c) of a custom object(CCIR__c)


I am able to access the calendar of that date field initially, but after adding the window.onload in the javascript I
could not.


Please find my code snippet below:


//------------------------------------------------------------------------------------

 

<apex:page standardcontroller="CCIR__c">
    <apex:form id="myform">
        <script type="text/javascript">
        window.onload = DefaultSettings;
        function DefaultSettings()
        {
          //Default Settings  
        }
        </script>
    <apex:inputfield id="id" value="{!CCIR__c.Visited_Date__c}"/>
 </apex:form>
</apex:page>

 

//----------------------------------------------------------------------------------


Kindly suggest me with a solution for this ASAP.


Thanks in advance!!


Regards,

Sanjana

Hi Folks!!


I am developing a Visualforce Page in PE where I used a date field(Visited_Date__c) of a custom object(CCIR__c)


I am able to access the calendar of that date field initially, but after adding the window.onload in the javascript I
could not.


Please find my code snippet below:


//------------------------------------------------------------------------------------


<apex:page standardcontroller="CCIR__c" sidebar="false">
<apex:form id="myform">
<script src="/soap/ajax/18.0/connection.js"></script>
<script type="text/javascript">
window.onload = FillDefaultValues;
sforce.connection.sessionId = "{!$Api.Session_ID}";


function FillDefaultValues() {
accountid = null;
productid = null;
recordid = null;
document.getElementById('myDoctorsDropdown').focus();

}

</script>
<apex:pageBlock title="CCIR Form" id="pageblockid">
<div id="output"></div>
<table>
<tr>
<th>Doctor Code</th>
<th>Doctor Name</th>
<th>Speciality</th>
<th>Catageory</th>
<th>Brand</th>
<th>Product</th>
<th>Activity</th>
<th>Visited With</th>
<th>Prescribed</th>
<th>Promoted</th>
<th>Sample</th>
<th>Feedback</th>
</tr>
<tr>
<td>
<select id="myDoctorsDropdown" onchange="getddoctordata(this)">
<option value="none">--None--</option>
</select>
</td>
<td>
<input id="idDoctorname" disabled="true" style="width:150px;text-align:right;"/>
</td>
<td>
<input id="idspeciality" disabled="true" style="width:150px;text-align:right;"/>
</td>
<td>
<select id="myCategeoriesDropdown" onchange="GetBrandsWithDuplicates()">
<option value="none">--None--</option>
</select>
</td>
<td>
<select id="myBrandsDropdown" onchange="FillProducts()">
<option value="none">--None--</option>
</select>
</td>
<td>
<select id="myProductsDropdown" onchange="getProductId(this)">
<option value="none">--None--</option>
</select>
</td>
<td>
<apex:inputfield id="activityid" value="{!CCIR__c.Activity__c}" />
</td>
<td>
<b><apex:inputfield id="vistedatedid" value="{!CCIR__c.Visited_Date__c}" /></b>
</td>
<td>
<apex:inputfield id="prescribedid" value="{!CCIR__c.Prescribed__c}" onkeypress="return isNumberKey(event)"/>
</td>
<td>
<apex:inputfield id="promotedid" value="{!CCIR__c.Promoted__c}" onkeypress="return isNumberKey(event)"/>
</td>
<td>
<apex:inputfield id="sampleid" value="{!CCIR__c.Sample__c}" onkeypress="return isNumberKey(event)"/>
</td>
<td width="50%" align="left">
<apex:inputfield id="feedbackid" value="{!CCIR__c.Feedback__c}" />
</td>
<td>
<input type="button" value="Save" onclick="SaveCCIRValues()" id="btnSave" />
</td>
<td>
<input type="button" value="Cancel" id="btnCancel" onclick="Test()"/>
</td>
</tr>
</table>

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

//----------------------------------------------------------------------------------


Kindly suggest me with a solution for this ASAP.


Thanks in advance!!


Regards,

Sanjana





Hi Folks!!

 

I am developing a Visualforce Page in PE where I used a date field(Visited_Date__c) of a custom object(CCIR__c)

 

I am able to access the calendar of that date field initially, but after adding the window.onload in the javascript I
could not.

 

Please find my code snippet below:

 

//------------------------------------------------------------------------------------

 

<apex:page standardcontroller="CCIR__c" sidebar="false">
<apex:form id="myform">
<script src="/soap/ajax/18.0/connection.js"></script>
<script type="text/javascript">
window.onload = FillDefaultValues;
sforce.connection.sessionId = "{!$Api.Session_ID}";


function FillDefaultValues() {
accountid = null;
productid = null;
recordid = null;
document.getElementById('myDoctorsDropdown').focus();

}

</script>
<apex:pageBlock title="CCIR Form" id="pageblockid">
<div id="output"></div>
<table>
<tr>
<th>Doctor Code</th>
<th>Doctor Name</th>
<th>Speciality</th>
<th>Catageory</th>
<th>Brand</th>
<th>Product</th>
<th>Activity</th>
<th>Visited With</th>
<th>Prescribed</th>
<th>Promoted</th>
<th>Sample</th>
<th>Feedback</th>
</tr>
<tr>
<td>
<select id="myDoctorsDropdown" onchange="getddoctordata(this)">
<option value="none">--None--</option>
</select>
</td>
<td>
<input id="idDoctorname" disabled="true" style="width:150px;text-align:right;"/>
</td>
<td>
<input id="idspeciality" disabled="true" style="width:150px;text-align:right;"/>
</td>
<td>
<select id="myCategeoriesDropdown" onchange="GetBrandsWithDuplicates()">
<option value="none">--None--</option>
</select>
</td>
<td>
<select id="myBrandsDropdown" onchange="FillProducts()">
<option value="none">--None--</option>
</select>
</td>
<td>
<select id="myProductsDropdown" onchange="getProductId(this)">
<option value="none">--None--</option>
</select>
</td>
<td>
<apex:inputfield id="activityid" value="{!CCIR__c.Activity__c}" />
</td>
<td>
<apex:inputfield id="vistedatedid" value="{!CCIR__c.Visited_Date__c}" />
</td>
<td>
<apex:inputfield id="prescribedid" value="{!CCIR__c.Prescribed__c}" onkeypress="return isNumberKey(event)"/>
</td>
<td>
<apex:inputfield id="promotedid" value="{!CCIR__c.Promoted__c}" onkeypress="return isNumberKey(event)"/>
</td>
<td>
<apex:inputfield id="sampleid" value="{!CCIR__c.Sample__c}" onkeypress="return isNumberKey(event)"/>
</td>
<td width="50%" align="left">
<apex:inputfield id="feedbackid" value="{!CCIR__c.Feedback__c}" />
</td>
<td>
<input type="button" value="Save" onclick="SaveCCIRValues()" id="btnSave" />
</td>
<td>
<input type="button" value="Cancel" id="btnCancel" onclick="Test()"/>
</td>
</tr>
</table>

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

//----------------------------------------------------------------------------------

 

Kindly suggest me with a solution for this ASAP.

 

Thanks in advance!!

 

Regards,

Sanjana

 

 

 

 

Hello,

After following the below steps and clicking save, the action "send an email" in the Publisher section doesn't show in the case feed of one of the support process. Any suggestions? Thanks

From Setup, click Customize | Cases | Page Layouts.
How you access the Case Feed Settings page depends on what kind of page layout you’re working with.

For a layout in the Case Page Layouts section, click Edit, and then click Feed View in the page layout editor.
For a layout in the Page Layouts for Case Feed Users section, click  [Case feed layout expand button]  and choose  Edit feed view. (This section appears only for organizations created before Spring ’14.)

Select Use Page Layout Editor to Configure Actions.
Click Save.
To access the page layout editor:

For a layout in the Case Page Layouts section, click Edit.
For a layout in the Page Layouts for Case Feed Users section, click  [Case feed layout expand button]  and choose Edit detail view. (This section appears only for organizations created before Spring ’14.)

In the page layout editor, click  [page layout editor change tool]  in the Actions in the Publisher section.
In the palette, click Actions.
Drag the actions you want to the Actions in the Publisher section. You can also drag actions to change the order in which they appear, and can drag off actions you don’t want. 
On the Case Feed page, up to approximately five or six actions are displayed in the publisher; the rest are included in the More drop-down list.
Click Save.

 

Hi Folks!!


I have created a vf page using Account Satndard Controller. Here my Requirement is "Account_Type__C"((Custom Feild Picklist Type with Doctor/Chemist values). Save the Block of Info to Account Object dependin on the Selected Value.


Here no recordtypes its PE. So i have used javascript. Unable to Save Chemist Info coz the "Error: Required fields are missing: [Name]"

One more problem is while selecting product form lookup in chemist block it is get selected in Doctor Block instead of chemist. Why???????? it is always taking first feild into consideration....though i have used id's differently...


Please Suggest a better solution for this ASAP.


My Code is as Follows....

========================================================


<apex:page standardController="Account">
    <apex:form id="myFirstForm">
        <script src="/soap/ajax/18.0/connection.js"></script>
        <script type="text/javascript">
            window.onload = LoadDefaultData;
            sforce.connection.sessionId = "{!$Api.Session_ID}";
            function LoadDefaultData()
            {
                document.getElementById("{!$Component.myFirstForm.docpgblkid}").style.display= 'none';
                document.getElementById("{!$Component.myFirstForm.chempgblkid}").style.display= 'none';
                document.getElementById("{!$Component.myFirstForm.actionblockid}").style.display= 'none';
            }
            function GetSelectedAccountInfo()
            {
               var selectedaccounttype = document.getElementById("{!$Component.myFirstForm.acctypepgblkid.acctypepgblksecid.acctypeid}").value;
               if(selectedaccounttype=="")
               {
                    document.getElementById("{!$Component.myFirstForm.docpgblkid}").style.display= 'none';
                    document.getElementById("{!$Component.myFirstForm.chempgblkid}").style.display= 'none';
                    document.getElementById("{!$Component.myFirstForm.actionblockid}").style.display= 'none';
                    alert('Please Select An Account Type');                     
               }
               else if(selectedaccounttype=="Doctor")
               {
                    document.getElementById("{!$Component.myFirstForm.docpgblkid}").style.display= 'block';
                    document.getElementById("{!$Component.myFirstForm.chempgblkid}").style.display= 'none';
                    document.getElementById("{!$Component.myFirstForm.actionblockid}").style.display= 'block';
               }
               else if(selectedaccounttype=="Chemist")
               {
                    document.getElementById("{!$Component.myFirstForm.docpgblkid}").style.display= 'none';
                    document.getElementById("{!$Component.myFirstForm.chempgblkid}").style.display= 'block';
                    document.getElementById("{!$Component.myFirstForm.actionblockid}").style.display= 'block';                    
               }
            }
        </script>
        <apex:PageBlock id="acctypepgblkid">
            <apex:pageBlockSection id="acctypepgblksecid" title="Account Type Section">
                <apex:inputField id="acctypeid" value="{!Account.Account_Type__c}" onchange="GetSelectedAccountInfo()" >
                </apex:inputField>
            </apex:pageBlockSection>
        </apex:PageBlock>
        <apex:PageBlock id="docpgblkid">    
            <apex:pageBlockSection id="docbaseinfopgblksecid" title="Doctor Basic Information">
                <apex:inputField id="doctornameid" value="{!Account.Name}" required="false"/>
                <apex:inputField id="doctorcodeid" value="{!Account.Account_Code__c}"/>

                <apex:inputField id="productid" value="{!Account.Product__c}"/>
                <apex:inputField id="hospitalid" value="{!Account.Hospital__c}"/>
                <apex:inputField id="emailid" value="{!Account.Email__c}"/>
                <apex:inputField id="phonenoid" value="{!Account.Phone__c}"/>
            </apex:pageBlockSection>
        </apex:PageBlock>
        <apex:PageBlock id="chempgblkid">
            <apex:pageBlockSection id="chempgblksecid" title="Chemist Information" >
                <apex:inputField id="chemistnameid" value="{!Account.Name}" required="false"/>
                <apex:inputField id="chemistcodeid" value="{!Account.Account_Code__c}"/>
                <apex:inputField id="chemistproductid" value="{!Account.Product__c}"/>
                <apex:inputField id="chemistemailid" value="{!Account.Email__c}"/>
                <apex:inputField id="chemistphonenoid" value="{!Account.Phone__c}"/>
                <apex:inputField id="chemistdescid" value="{!Account.Description}"/>
            </apex:pageBlockSection>
        </apex:PageBlock>
        <apex:PageBlock id="actionblockid">            
            <apex:pageBlockButtons location="bottom" >
                <apex:commandButton id="btnSave" action="{!save}" value="Save"/>
                <apex:commandButton id="btnCancel" onclick="ClearFeilds()" value="Cancel"/>
            </apex:pageBlockButtons>
        </apex:PageBlock>
    </apex:form>
</apex:page>


========================================================


Thanks!!!!!!!!!

Sanjana.

HI,

   Iam using a simple code in .net for creating a new account in salesforce.com.While iam calling this  method iam getting below error "CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY Error message: entity type cannot be inserted: Account " .

Any suggestions.

  • April 19, 2010
  • Like
  • 0