• magda
  • NEWBIE
  • 0 Points
  • Member since 2007

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

i have a problem regarding installing a package. This failure:

Unable to install this package for the following reasons:


Missing Organization Feature: Solution.RecordType  
Missing Organization Feature: Contact.RecordType  
Missing Organization Feature: Task.RecordType  
Missing Organization Feature: Account.RecordType  


Do you have an idea?

Thx

Magda

Hi i created last week validation rules. And they was running.
Today they are not more running.



The Problem is I added a trigger befor insert, and salesforce first try the trigger and after that the validation rules.
What can I do to impose Force.com to test first validation rules and after that to run may trigger?

Do you have an Idea?
Thx

Magda


Message Edited by magda on 03-06-2008 03:14 AM
Hi,

I have a customer button in the detail view.
I want to change a field value (for the same object),  if i click this button.

I create this button as : Execute JavaScript
On Click JavaScript
and code:
Code:
{!Object__c.Picklist__c}.set( 'Value');

But it is not running.
Do you have an Idea?

My second Problem is how can i set security on Button? : depend on profile  a button is visible or not visible.

Thx

Magda

Hi,

I create a custom object and i want to have a lookup with account and a second one with contact.
BUt I want to have a dependency between account and contact.
I try to do a new field dependency, and it is not possible to choose account or contact.

Do you have an idea?

Thx

Magda
I recently installed Eclipse 3.3.1.1 for Java Developers and I installed the Force.com Apex plug-in, as well. I started a new Force.com project and added a new Apex Class, though I added this class under the default "unpackaged" category (so in the package explorer pane it appears under <project name>/src/unpackaged/classes/<class name>.cls). If I right click > Force.com > Run Tests, a dialog appears saying "Operation in progress..." (which closes immediately), and then the "Apex Code Test Runner" pane pops up, but no information appears within the pane indicating any sort of test was run. When I set the "Logging Level" to "Profiling (maximum verbosity)", I see several messages indicating there is no profiling information for SOQL, DML, and method invocations. It's as if the interface runs, but it executes no real analysis.

When I attempt to synchronize, save to the server, or apply the project to the server, the same thing occurs. An "Operating in progress..." dialog pops up, then nothing else occurs indicating anything has happened.

Here's the class I'm attempting to run tests on:
Code:
global class XmlEmailUtil {
 public static String AddXmlTagPair(String name, String value) {
  if (name == null) { return ''; }
  
  return 
   '   <tag_pair>\n' +
   '    <name>' + name + '</name>\n' +
   '    <values>\n' +
   '     <value>' + value + '</value>\n' +
   '    </values>\n' +
   '   </tag_pair>\n';
 }
 
 public static void SendXmlEmail(String id, String body, String toAddress) {
  Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();
  
  email.setToAddresses(new String[] { toAddress });
  email.setSubject(id);
  email.setPlainTextBody(body);
  
  Messaging.sendEmail(new Messaging.SingleEmailMessage[] { email });
 }
 
 static testMethod void TestAddXmlTagPair() {
  AddXmlTagPair(null, null);
  AddXmlTagPair(null, 'value');
  AddXmlTagPair('name', null);
  AddXmlTagPair('name', 'value');
 }
 
 static testMethod void TestSendXmlEmail() {
  SendXmlEmail(null, null, null);
  SendXmlEmail(null, null, 'cgarrett@p4healthcare.com');
  SendXmlEmail(null, 'body', null);
  SendXmlEmail(null, 'body', 'cgarrett@p4healthcare.com');
  SendXmlEmail('id', null, null);
  SendXmlEmail('id', null, 'cgarrett@p4healthcare.com');
  SendXmlEmail('id', 'body', null);
  SendXmlEmail('id', 'body', 'cgarrett@p4healthcare.com');
 }
}

 

Hi All
 
I have written a S-control to update a field.
 
The Problem is 'it is not working for few profiles'. What might be the reason.
 
Can anyone help in this.
 
Thanks in Advance
Anand