• arjunkodidalasfdc1.3904276015566733E12
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 1
    Replies
I need to display some content with different fonts,styles and hyperlinks. So i choose richtext field in the custom object. That content has to display in the Data Repeater.

I am using escape function in custom code of Data Repeater.

<script>
      var news = Content_Syndicated__c:escape('{!Content_Syndicated__c}')
</script>


and i am using unescape function in the head markup section of a site page.

 Var content =  unescape(news.Content_Syndicated__c) ;

I need to display entire content with the fonts,styles,hyperlinks.  What is the best function to encode and decode and to display the content as in the rich text?
Hi,

I need to write a soql query with AND and OR condition.  

string member='1234';
string group='6789';

Select ID from contact where firstname=:fname AND lastname:=lname AND memberid__c=:member OR group__c=:group.

I know the above query is wrong. I need to check few fields with AND  condition and few fields with OR condition. 
Can any one please correct this query.


Thanks.



Hi,

I am tryting to display date in Site.com data repeater. In the edit data element i choosed a date field. In the preview its showing a day lesser than the current date. If the actual field date is 03/11/2014, it is displaying as 03/10/2014. If i use formatGMT it is displaying as Tue Mar 11 2014: xx:xx:xx PM.  I dont want day and time in the out put. So i formated date as below. But it is not working.

(ValueOfGmt(formatGMT({!Syndication_Date__c}))).format("MM/DD/YYYY")

I want date in the format of 03/11/2014. Can any one correct this.

Thanks.

Hi,

I  need to assign a Lead to Task. How can i do that. 



I know that we can create a task with who id of lead as below.
Task newTask = new Task(
               ActivityDate = Date.today(),
               WhoID = Lead.OwnerId
               OwnerId = User.UserId;
               Status = 'Not Started',
               type = 'Other',
               Priority = 'Normal',
               Subject = 'Other',
               description = taskDescription
     );
insert newTask;

But i have a situation to assign a Task to Lead. How can i assgn it? Is there any method to assign a task to lead?

Lead newLead=new Lead();
newLead.TaskID= newTask.TaskID;  
             (or)
newLead.Activities.Add(newTask.TaskID)    like this?

Thanks.




  
Hi,

I am tryting to display date in Site.com data repeater. In the edit data element i choosed a date field. In the preview its showing a day lesser than the current date. If the actual field date is 03/11/2014, it is displaying as 03/10/2014. If i use formatGMT it is displaying as Tue Mar 11 2014: xx:xx:xx PM.  I dont want day and time in the out put. So i formated date as below. But it is not working.

(ValueOfGmt(formatGMT({!Syndication_Date__c}))).format("MM/DD/YYYY")

I want date in the format of 03/11/2014. Can any one correct this.

Thanks.