• 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

  • April 04, 2008
  • Like
  • 0
Hi,

I want to add customers Profiles in my package. But in the "Add to package View" they are not available. Some of Customer Profiles are available, but not the Profil Setting I want to add to the package.

Do you have an Idea why?


Thx

Magda

  • March 17, 2008
  • Like
  • 0
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
  • March 06, 2008
  • Like
  • 0
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

  • February 21, 2008
  • Like
  • 0
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
  • February 20, 2008
  • Like
  • 0
Hi,

I need the URL for Note and Attachment.
I try this:

Code:
info = Object.ID;
info = '/002/e—parent_id=' + info + '&retURL=%2F' + info;

 but it is not running....
Salesforce URL: e?parent_id=a0070000009cfNW&retURL=%2Fa0070000009cfNW
my URL: e?parent_id=a0070000009cfNWAAY&retURL=%2Fa0070000009cfNWAAY
They are 3 letters per IDs to much in my URL :(

Do you know if they are an automatic generation of this link.
Maybe anything like Page.Note ?

Thx

Magdafr



Message Edited by magda on 02-13-2008 06:19 AM

Message Edited by magda on 02-13-2008 06:21 AM
  • February 13, 2008
  • Like
  • 0
Hi,

I try to save a customer object and use the Id to have notes and attachement.
If I try to insert this Object during the load of a page I become this failure: DML currently not allowed,

but if I insert the object in the save function I have no Problems. But it is to late, because I want to have on the same page the possibility to add notes & attachments.
Function Info:

Code:
public void Info(){
try{
if (booleaninfo == false) {
        insert Object;
        booleaninfo = true;}
}catch (Exception e){

}
}

 ActionSupport:

Code:
<apex:actionSupport event="onMouseOver" action="{!Info}" rerender="counter"
status="counterStatus"/>

 
Any Idea?

Thx

Magda

  • February 08, 2008
  • Like
  • 0
Hi,

I want to create a Task after saving a customer Object.
In my Customer Object I give a User FIeld: Editor.
I try with this Code

Code:
task.WhatId = Object.id;
task.WhoId = Object.Editor__c;
task.Subject = 'Other';
task.priority= Object.Priority__c;
task.status = 'Not Started';
task.description = 'New  Work';
insert task;

 And I become this failure:

Attempt to de-reference a null object

Do you have an Idea to help me?

Thx

Magda




Message Edited by magda on 02-13-2008 12:32 AM
  • February 08, 2008
  • Like
  • 0
Hi,

how can I have an Eclipse XML Validator (like DTD or XML Shemat) for apex?

Thx

Magda
  • February 07, 2008
  • Like
  • 0
Hi,

i find how i can create a report regarding tracking Field.
I want to know if it is possible to ahve an extra Tab for this history.

Thx

Magda
  • January 25, 2008
  • Like
  • 0
Hi,

the situation:
customer object
    |
    |__ User Field
    |
    |__ Other Field

       __ Workflow Rule --> Task

I want to select a User Field (from this Customer Object) in the Assigned to.

Do you know if it is possible?
Thx

Magda
  • January 23, 2008
  • Like
  • 0
Hi,

I'm creating a wizard, and i want to disable a field if the info (check box field) is checked.
I try to add a function in the controll class. And after that use setdisabled in visual force. But it is not running.
Do you have another idea?

Code:
Class
public boolean Info(){
boolean info; 
insert so;
 if (so.Info__c = true) {
info = true;  
return info;}
 else {
info = false;
return info;}
}
VisualForce Page
<apex:outputLabel value=" Editor" for="Editor"/>
<apex:inputField id="Editor" value="{!so.Editor__c}"/>
<apex:setDisable id="Editor" value="{!Info()}"/>

 

  • January 23, 2008
  • Like
  • 0
Hi,

it is possible to have a Ant build.xml file ?
I try to programm one, but they are failures. I don't undersand why. It 's will be very helpfull if a person send me a build file.

Thx

Magda
  • January 23, 2008
  • Like
  • 0
Hi,

how can i refer to a document in an Customer Object.
A Lookup Relationship has not this possibility.

Do you have another Idea?

Thx

Magda
  • January 23, 2008
  • Like
  • 0
hi,

what i want to do is:

3 picklist level 1, level2 ,level3
filed dependencies between this field.

It is possible to write an apex code being able to read all combination and write one row per combination?

Because if i can do that i have the possibility after that to search in each rows or not?

thx

Magda
  • January 03, 2008
  • Like
  • 0
Hi Every Body,

i try to insert a new Object having to other objects
Job application having candidate and position.

insert Canidate and insert Position is not a problem, but wenn i want to insert a job application i become this failure:

Insert failed. First exception on row 0; first error: INVALID_FIELD, More than 1 field provided in an external foreign key reference in entity: Position__c
My code is this one:
Code:
public Candidate__c getCandidate() {
if(candidate == null) candidate = new Candidate__c();
return candidate;
}
public Position__c getPosition() {
if(position == null) position = new Position__c();
return position;
}
public Job_Application__c getJobappl() {
if(jobappl == null) jobappl = new Job_Application__c();
return jobappl;
}
public PageReference save() {

jobappl.candidate__r = candidate;
jobappl.position__r = position;
insert position;
insert candidate;
insert jobappl;
}

 


Thanks for your help

Magda

  • January 02, 2008
  • Like
  • 0
hi,
how can i modify my endpoint url....

in my wsdl:
 <!-- Soap Service Endpoint -->
    <service name="SforceService">
        <documentation>Sforce SOAP API</documentation>
        <port binding="tns:SoapBinding" name="Soap">
            <soap:address location="https://www.salesforce.com/services/Soap/u/11.1"/>
        </port>
    </service>

But when i try this:
  binding = (SoapBindingStub) new SforceServiceLocator().getSoap();
            System.out
                    .println("The login url is: "
                            + binding
                                    ._getProperty(SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY));
      
out: The login url is: https://www.salesforce.com/services/Soap/c/8.0  

What i supose is that my wsdl not realy used. But I don't know how i can see that.
Do you have an idea?

Thx

Magda
  • December 13, 2007
  • Like
  • 0
Hi,
i search the last version for the librairies:
com.sforce.soap.entreprise
com.sforce.soap.entreprise.fault
com.sforce.soap.entreprise.sobject
...

It is possible to have a link to download this one?

Thx

magda
  • December 13, 2007
  • Like
  • 0
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

  • April 04, 2008
  • Like
  • 0
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
  • March 06, 2008
  • Like
  • 0
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

  • February 21, 2008
  • Like
  • 0
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
  • February 20, 2008
  • Like
  • 0
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');
 }
}

 

  • February 12, 2008
  • Like
  • 0
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