But the Object and the field name has to be dynamic in our case. I need to know if theres any way where we can pass the object and field dynamically in the DescribeFieldResult statement .
We are currently facing an issue in invoking the webservice via Http callout.
We are getting the following error while invoking the webservice:
System.CalloutException: Read timed out
Can anyone explain when this error occurs and the possible solution for this?
Any help is highly appreciated.
# P will hold the Price code at sequence number i
# len is a Integer variable which has the value 7;
# m1 is the Model number wanted and is present in Price code sequenced 3
P = [Select Price_Code__c FROM Cpt_Price_Code__c WHERE Cust_Price_Type__c = :'MONP' and Sequence_Number__c = : i].Price_Code__c ;
Price=[select Model_Number__c, New_Price__c from Std_Price_list__c where Model_Number__c like: m1 and Price_Code__c like : P];
First fetch the price code of the sequence number" i "( 1,2,3,4,5,6,7) then go to Object STD price list and search for the model Number in that respective price code
if found then get the New Price associated with that model Number and break;
If Not Found continue;
PROBLEM: it is doing the process only once , and coming back with no values as the result is in 3., no iteration is happening
P.S..if i give direct values as i=3 for(Integer i=3;i<=3;i++) then the code is working perfectly .as the result is in 3.
Pls Help how to go to every list and search and fetch the value.
Contact cc = new Contact();
cc.FirstName = ' test';
List <Contact> insertCon = new List<Contact> ();
User insertUser = new User();
List <User> insertUsers = new List<User> ();
I am getting the following error:
System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, Invalid role assignment.
The values for profile and role IDs are from an existing customer portal user. This being the case, I am not sure why the error log indicates that there is an issue with the role assignment. If it is an issue, I don't know how to determine the correct profile and role when creating the user. Should I be looking for a specific type of role or profile?
Any help is appreciated.
1) How can I change the backgroud color for my VF page?
2) Are stylesheets the only way to control the look and feel of the page? If so, then where and how can I edit stylesheets to get what I need?
3) Does salesforce have any sample stylesheets which I can view/edit to get the page to look how I want? If so, once I find out where they are, how can I edit them and upload back into my VF application to get desired behavior?
For example, I have a datatable component which uses the styleclass of "list" but if I remove the styleclass then it looks all dumb. If I leave styleclass out, I cannot specify the columnwidths without an internal server error from salesforce. I simply want a neat looking table with a column containing an input field. Right now my column with the input field is huge compared to my other 2 columns and I cannot find an easy way to control this.
Maybe I am missing something big here and that is why I could be asking a stupid question but either way someone please advise...Any help is greatly appreciated...