• Pradeep_Navatar
  • PRO
  • 4247 Points
  • Member since 2010

  • Chatter
    Feed
  • 152
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1449
    Replies

 

Hi,

 

I am develping custom App. For that app, i am creating few custom profiles.

 

I am going to create Managed Package of the app and going to upload it on AppExchange.

 

Is it possible to package custom profiles, while creating a Managed Package?

 

Thanks and Regards,
Devendra S

Is there a way in apex to know what record types the logged in user has access to on particular object?

Thanks.

Hi:

 

I am using the following in my visualforce page to open a new window but it is opening in the same window, can anyone please tell me how to open a popup window ?

 

    <script type="text/javascript">
    function popupwindow(){
        var newwindow = window.open('/apex/CallReportDataComponentPage','Call Report'); 
        newwindow.focus();
    }
    </script>

<apex:commandButton action="{!InvokeCallReport}" value="Generate Report" onclick="popupwindow"/>

 

 Hello,

 

i have a small problem.

 

I need to know the difference between 2 datetimes in seconds.

One is a CreatedDate field, the other is datetime.now()

 

I tried converting them to timestamps to calculate with them but it didn't work.

 

Anyone have ideas?

Hi,

 

I Need to display year and day of a particular date..

 

I have three fields.

Suppose in first field i have entered 1/05/2011

 

 

 

In second filed month has to display like(jan or feb or march,.............)

 

In third field year has to diplay (2011)

 

 

Please can any one help me out..??

 

Thanks & Regards,

 

Raj.k

Hello Evryone,

I have a small issue that,

I need to insert the Records from a DataTable to my custom Object.

(i.e., there are 10 InputText Fields in a Datatable in my Page, Now I need to Insert these values to my Object )

 

I have written the properties for that inputText, But it taking the last entered value.

 

Please Help me...............

Thanks in Advance............

Hi
I am working with Customer Portal,and I am enabling Sharing settings for 
the Role of a Customer Portal user
1.For example I gave criteria based sharing on object A.
like field in A as Number equals 10.
2.On the Profile of the user I gave only Read access to that object.
3.I have given PUBLIC READ\WRITE 
for the records that satisfy that criteria.
4.But when I login in to that user I am unable to see edit
button on those records that satisfy the criteria.

I think the Profile Permissions are Overriding the Sharing Access.
What I have to do overcome this.

If any one worked with this, 

Please help me.

Hi, All

 

I have create trigger for  chatter notification on attachment  when file is upload

but getting error like

Error: Apex trigger ChatterNotification caused an unexpected exception, contact your administrator: ChatterNotification: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Feed Item Type: bad value for restricted picklist field: file:

 

Plaese suggest me any idea !! or otherr way to chatter notification when attach file !!

Please Help me ASAP

Thank you,

Piyush Parmar

HI all

 

i'm planning to do sfdc dev401 exam by next week. please give me some useful sites to prepare

This should be simple, but I'm having a hard time with it. I want to create a formula field that gives me the number of minutes between the record's CreateDate and LastModifiedDate. What does that formula need to look like?

 

Thanks for your help!

I would like to create a button that changes the record type of a case . 

 

I have tried writing the javascript and scoured the web, but still cannot get it to work.  My code will update other fields if modified but not the recordtypeid.  Any suggestions?

 

{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")}

var undocase= new sforce.SObject("Case");
undocase.id = "{!Case.Id}";
undocase.RecordType = "01240000000QFLB";

var result = sforce.connection.update([undocase]);

if (result[0].getBoolean("success"))
{
    // Refresh window
    window.location.reload();
}
else
{
    alert("Error saving case");
}

Hi all,

 

I am trying to figure out on how to create an apps and deploy it to org. So I have created a small test app which has 1 custom object and 1 customization in the standard object (Accounts). I renamed the 'Accounts' into 'myAccounts'.

 

When I try to create a package, I cannot find the renamed 'myAccounts' in the tab nor the 'custom object'. 

 

1. Is it possible to package our changes and modification (e.g renaming standard field, workflow, etc) in the standard objects into a package and deploy them into org?

 

2. What will be the steps to deploy such customization?

 

forgive me if these questions are so obvious, since I am still learning and new to salesforce CRM.

Hi to all ,

How can we display calender in visual force page with total num of appointments in a perticular day.

Hi Guys,

                I want to set the Organization Timezone when creating a customer portal users internally.

                User u1 = new User(contactId=con.Id, username=con.Email, firstname=con.FirstName,
                lastname=con.LastName, email=con.Email,communityNickname = con.LastName + '_' + Rnd,
                alias = string.valueof(con.FirstName.substring(0,1) + con.LastName.substring(0,1)), profileid = pf.Id,           emailencodingkey='UTF-8',languagelocalekey='en_US', localesidkey='en_US'); i ahve given a hard coded timezone in User field. How to set the organization timezone here.Any help would be appreciated.

 

Hello there,

 

In opportunity, we have Type as a field which is a picklist.

Ie. Type = A, B, C, D

 

I want to create a report that gives me the sum of the amount field for all opportunities with Type A

And then in the same report, should give me a sum of the amount field for all opportunities with Type B +C + D

 

Can any1 help me to solve this

 

Thanks,

George

I am using Flow.

 

I have used dates within formulas.

 

These work great in the Designer version.

 

However, when you try to upload it, it comes up with an error message saying you can't reference a date within a Formula.

 

Has anyone else experienced this problem? Does anyone know of a fix?

 

Otherwise the only workaround I can think of is to write the data back to SFC and read back a formulated field from there but it doesnt seem particularly efficient.

I am using apex managed sharing to share records with users having different profiles with different custom object level permission.

I have created TestStandardUser profile from StandardUser profile. I have given read and edit  access to custom object in custom object  level permission and not given create permission in TestStandardUser. Now Logged in with TestStandardUser profile, and try to open search page(visualforce page) of that custom object . It is displaying only labels of input field tag. I can not enter values in fields and do search on them. 


apex:inputfields are not getting displayed on  visualforce page, when custom object does not have create permission on custom object in salesforce. Even though i have given read and edit access, it is not displaying properly,

Hi ,

 

I have two panels  which Contains MultiPiclist and Dependent picklist and Input Fields. I want to clear all fileds if the user goes to another panel.

I m calling a javascript function to clear all fields.

Input fields and picklist becomes null  but problem is with Multiselect . Its Selected value are not null.It displayes previous selected values in selected area.

 

How can i empty Multipicklist

 

Thanks&Regards

Shailu

I created a visualforce page with option renderas="pdf" and contentType="application/pdf" . This page is displays a rich text content in pdf format. While the richText content does not have any images it works good but if it has images then the images does not render properly, they are blurring.

 

Code is like following :

<apex:page contentType="application/pdf" renderas="pdf" >

<apex:outText value="{!obj__c.richText__c}" />

</apex:page>

 

is there any trick to render images properly in pdf? thanks in advance for any help.

 

I created a survey to using visualforce and force.com sites. when i test the force.com survey link with the case.id, account.id and the contact.id in the link, clicking the submit button I get the Authorization Required error. Why won't the information go back to the survey object with that info?