-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
4Questions
-
2Replies
Populate an empty required field before validation rules
Hey all,
Here's my problem :
In my Custom Object Customer__c, I would like to populate my Record Name with 2 others fields. This works fine with a Trigger, but only with updates. When I try to create a new record, it tells me that the Record Name is a required fields. I guess that validation rules come before trigger actions.
Does anyone can explain me how to make it ?
Thx a lot,
Regards.
-
- yao
- September 18, 2008
- Like
- 0
- Continue reading or reply
webservice method returning object or array of objects
Hey,
I'm using, via a SoapCall, a webservice method that return an array of Objects.
Code:
webService static CObject__c[] getCObject(String id) { CObject__c[] c = [SELECT Id, Name, FROM HF_CObject__c]; return c; }
I'm using, in my php code the result method to retrieve my array of objects.
Code:
$parameters->id = $_GET[id]; $response = $soapClient->getCObject($parameters); $result = $response->result;
Problem is when that query returns a single record, I don't get an array, but only an Object.
How can I solve that ?
Thx a lot,
Regards.
-
- yao
- September 16, 2008
- Like
- 0
- Continue reading or reply
Concatenate Custom Object Record Name
Hey guys,
is it possible to concatenate a Record Name with several fields ?
In fact, I want my Custom Object Record Name to look like the Standard Contact Object (First Name + Last Name).
Thx a lot,
Best Regards.
-
- yao
- September 09, 2008
- Like
- 0
- Continue reading or reply
How to display fields from a lookup object, in tab layout ?
Hi there,
I got a custom object A with a lookup on another object B.
In the different search layouts of object A, I can display the Record Name (auto-number) of object B.
But is it possible to display any fields from B, in those differents search layout (tab layout for exemple) ?
Thx a lot,
Best regards.
-
- yao
- September 09, 2008
- Like
- 0
- Continue reading or reply
Populate an empty required field before validation rules
Hey all,
Here's my problem :
In my Custom Object Customer__c, I would like to populate my Record Name with 2 others fields. This works fine with a Trigger, but only with updates. When I try to create a new record, it tells me that the Record Name is a required fields. I guess that validation rules come before trigger actions.
Does anyone can explain me how to make it ?
Thx a lot,
Regards.
- yao
- September 18, 2008
- Like
- 0
- Continue reading or reply