• Deepu
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 7
    Replies

Hello

 

Is it possible to create trigger using meta data api?

(Creating objects and fields are possible i guesS)

if so, please share a sample code

 

Thanksin advance

  • August 16, 2011
  • Like
  • 0

Hello All

 

I have a requirement to create triggers dynamically using apex code.(and not through the setup option )

Is this possible?

 

Thanks in advance

  • August 04, 2011
  • Like
  • 0

Hello

 

How can I get the data from a VF page into a Word Doc?

For example if I use renderas="pdf" , I am getting a PDF page.

Is there any option for Word Doc like this?

 

Or

 

How can I get data from a custom obj into a word doc

 

Thanks

  • November 12, 2010
  • Like
  • 0

I have a requirement to support both English and Thai in my application
I have translated the VF page output text to Thai and it is getting displayed correctly.
But when I render a VF page as PDF, all texts in Thai are not getting displayed.

A snippet of my page is pasted below

 

<apex:page sidebar="false" renderAs="pdf" standardController="Qoute__c" extensions="myControllerExtension" language="th">
<style> body { font-family: Arial Unicode MS; } </style>
<apex:form >
<apex:pageBlock title="Qoute Details">
 
  <apex:panelGrid columns="2"  width="900">
       <apex:image url="{!$Resource.novlogo}" height="100" width="100"/>
      
       <apex:dataList var="r" value="{!qoute}" >
                         
           <apex:panelGrid columns="2" border="1" width="300">  
          <apex:outputLabel value="{!$Label.Customer}"></apex:outputLabel>
               <apex:outputLabel value="{!r.Customer_Name__c}"/>
            <apex:outputLabel value="{!$Label.Product}" lang="th"></apex:outputLabel>

.........etc etc...

In this I have given Thai translation only  for "{!$Label.Product}"  which is not getting displayed


Please help me out ..Its urgent

thanks in advance

  • November 09, 2010
  • Like
  • 0

Hello All

 

I have a requirement to create triggers dynamically using apex code.(and not through the setup option )

Is this possible?

 

Thanks in advance

  • August 04, 2011
  • Like
  • 0

I have a requirement to support both English and Thai in my application
I have translated the VF page output text to Thai and it is getting displayed correctly.
But when I render a VF page as PDF, all texts in Thai are not getting displayed.

A snippet of my page is pasted below

 

<apex:page sidebar="false" renderAs="pdf" standardController="Qoute__c" extensions="myControllerExtension" language="th">
<style> body { font-family: Arial Unicode MS; } </style>
<apex:form >
<apex:pageBlock title="Qoute Details">
 
  <apex:panelGrid columns="2"  width="900">
       <apex:image url="{!$Resource.novlogo}" height="100" width="100"/>
      
       <apex:dataList var="r" value="{!qoute}" >
                         
           <apex:panelGrid columns="2" border="1" width="300">  
          <apex:outputLabel value="{!$Label.Customer}"></apex:outputLabel>
               <apex:outputLabel value="{!r.Customer_Name__c}"/>
            <apex:outputLabel value="{!$Label.Product}" lang="th"></apex:outputLabel>

.........etc etc...

In this I have given Thai translation only  for "{!$Label.Product}"  which is not getting displayed


Please help me out ..Its urgent

thanks in advance

  • November 09, 2010
  • Like
  • 0

Hello All,

 

I need to send an uploaded document to a third party webservice. I can send text files fine. But all other file types are getting corrupted.

I have been struggling for the past 3 weeks with this problem . I ahve tried several variations like Content-Transfer-Encoding : base64 and sending the

EncodingUtil.base64Encode(blob) with no luck. Is there some thing I am missing. I need to be ableto send pdfs, images, doc files.

Please help.

 

Thanks

Gopi

String response; String boundary = 'AaBbCcX30'; String m_URL = 'some url'; String content = 'Content:\r\n--' + boundary + '\r\nContent-Disposition:form-data;name="' + p_fileName + '";filename="'+p_fileName+'"\r\n'; content +='Content-Type:' + p_fileContentType + ',charset=ISO-8859-1,*,utf-8\r\n'; content +='Content-Transfer-Encoding: binary\r\n\r\n'; content += p_fileBlob +'\r\n\r\n'; content += '--'+boundary+'--\r\n'; System.debug(p_fileBlob.size()+'content ' + content); Http m_http = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint(m_URL); req.setHeader('Content-Type','multipart/form-data;boundary='+boundary); req.setMethod('POST'); req.setBody(content); HttpResponse m_httpResp = null; m_httpResp = m_http.send(req); m_strHttpResp = m_httpResp.getBody();

 

  • March 09, 2009
  • Like
  • 0