• hamayoun65
  • NEWBIE
  • 25 Points
  • Member since 2006

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 37
    Questions
  • 48
    Replies

Hi

 

I've just been watching the Summer 13 webinar, and was interested in the new Publisher Action functionality.  Now according to the release notes:

 

Global create actions let users create object records, but there’s no automatic relationship between the record that’s created and any other record. You can add global actions to page layouts for the home page, the Chatter tab, and object detail pages.

 

And it also says:

 

The page layout editor has a new Actions category in the palette and a new Chatter Feed section on the layout. You can use
the page layout editor to customize the actions in the publisher for each object type and page layout. You can drag actions
from the palette to the Chatter Feed section of the page layout and order them as you wish.

 

I want to add a Create Account action on the home page layout, but can't figure out where the page layout for the home page is.  It sounds from the release notes that there is a way to do this.  Any thoughts out there?

 

Thx,

Hamayoun

I am trying to update an article type using the API, but anytime I try to update the save result contains an error which reads: "entity type cannot be updated: KBA".  The status code is: "CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY".  Is it not possible to update articles, or is this just a permission issue that I am overlooking?

Can the new Dynamic Visualforce Components be used to generate an outputText tag with merge fields, such that the merge fields are resolved when the page is displayed?  Something like this.

 

<apex:page standardController="Account" extensions="dynamicSample">
Name: <apex:dynamicComponent componentValue="{!dynamicName}"/> 
</apex:page>

 

public class dynamicSample {
public Component.Apex.OutputText getName () {
String x = new Component.Apex.OutputText;
x.value = "{!Account.Name}" ;
return x ;

Does using the metedata update()  function overwrite anything that is being updated, or does it simply append any new items?  Specifically, if you attempt to update a picklist this way, will it delete any entries that are currently in the org but not in the pikclit values being passed in?

Hi everyone,

 

can anyone help me out how to solve the issue.

 

we have territory management is enable on our environment.

 

when we create Accounts teritory rules will run and the Account will assign to particular user based on the Zipcode we enterted.

 

same need to happen when we edit the record and change the zipcode, but its not happening while editing the records.

 

can this be solve by trigger or apex job??

 

thanks in Advance :smileyhappy:

 

Does anybody know if you can generate the text body of a MailTemplate inside Apex without sending an email?

 

For example, I want to genereate the body text of a MailTemplate for a preview screen before sending the email.

 

Another example, f you are creating a custom email page, and you want to mimic the functionality of the Activity Send Email page.

 

The standard email send page will generate the body text and put it on the page. Wondering if anyone has done similar for a custom VF page?

is there any way to enable chatter only to specific profiles?

Hello

 

I am overriding the Edit and View buttons of a custom object with a VF page.  When I try and access a record which, ouside VF, would not be accessible by a specific user, I get the 'Data Not Available' error when bringing up the VF page for that specific user.  However, I thought that VF pages run as the system user.  So why am I getting this problem?  Any work rounds?

 

Thx,

Hamayoun

Hi

 

I would like a simple answer to this. We are going to create a batch job, which will calculate some totals on a hierarchical custom object.  We want the batch job to run every day.  Can it be scheduled using the Scheduler?  If so, does anyone have an example of how?  If not, how can this be done, preferably with details?

 

Thx,

Hamayoun 

Hi

 

I thought that with Spring 10, the limits for collections had been removed.  When I do a count() query which returns more than 10,000 records it still fails with this error:

 

System.Exception: Too many query rows: 10001 

 

Is there any way around this in Spring 10?  Other than to loop and count?

 

Thx,

Hamayoun

I have a C# application that calls an Apex webservice that I built in a dev org, packaged, and installed in our production org.

 

The webservice has an 87% test coverage score. The application has been thoroughly tested against the dev org. I created a user in the production org and given that user the exact same rights (as far as I can tell) that I had in my dev org.

 

When I run the application in our production org, it fails whenever it calls the webservice with the "INVALID_SESSION_ID: Invalid Session ID found in SessionHeader" error.

 

Please note that this is the identical code in both orgs. The only difference is in the user that makes the call.

 

What's going on?

 

TIA,

 

John

I can use the listViews tag to show the list views in a VF page

Is there any way of getting the records similar to GetRecordIds?

How would I link a VF button to these records?



Hi guys,

I'm experiencing some unexpected behavior when trying to use the apex:repeat function to render tabs....

Basically it seems that tabs cannot be created on demand?  My controller is definitely returning data... as the second page block in my sample will show... repeat works - just the tabs are not rendered..

I'm sure any of you guys can see where I was going with this - and I guess I can achieve a similar result by dropping down to boring old html - just trying to use the standard components (as per best practice)

Any assistance greatly appreciated - as the purist coder me is seriously disturbed at the moment...

here is my 'simplified' and easily testable page & controller

Code: VF PAGE
<apex:page controller="clsRecordType">
    <apex:pageBlock >
        <apex:tabPanel id="theTabPanel">
            <apex:tab label="Account Types"/>
            <apex:repeat value="{!RecordTypes}" var="types">
                <apex:tab label="{!types.Name}"/>     
            </apex:repeat>
        </apex:tabPanel>
    </apex:pageBlock>

    <apex:pageBlock >
        <apex:repeat value="{!RecordTypes}" var="types">
            {!types.Name}<br/>       
        </apex:repeat>
    </apex:pageBlock>
</apex:page>

and the controller

Code:
public class clsRecordType {

    list<RecordType> lrecordtypes;

    public list<RecordType> getRecordTypes() {
        if(lrecordtypes==null) lrecordtypes = [Select Name, Id, Description From RecordType  where SobjectType = 'Account' and IsActive=True];
        return lrecordtypes;
        }
   }