• akousika
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hi All ,

 

I am unable to get the pdf from force.com to customer portal Actually the PDF's are uploded in workspace and the pdf  wiill automatically fall in to Content Object nuthing but sales force CRM content   in force.com  , now i need to get the pdf in a visulForce page and display the page in customer portal .

 

currently i am using 

 

Enterprice edition 

lience : Authenticated Website

 

Can any one help me on this 

 

Thanks in advance 

Adithya k

 

 

 

Hello every one , I have the a problem , i need to login the customer portal user's with single login screen with out radio buttons, currently i am using 2 radio buttons for 2 different profile's to differentiate them below is the current image . Image and video hosting by TinyPiccan any one help me on this this is very urgent Please help me As soon as possible Regards, Adithya k

Hi All,
I have created a salesforce web site successfully but i am not able to show the values which are in organization object.
In VF page its working fine but the same code in site page is not working......can any one suggest me the best way
to display the object record details on the site.

code goes here

page
-------
<apex:page showHeader="false" controller="pdftets" >
<script>
function fun(a)
{
var s=new String(a);
// alert(s);
window.open(s);
}
//window.parent.location.href =s;}

</script>
<apex:form >
<apex:composition template="{!$Site.Template}">
<apex:define name="body">
<table style="width: 181px">
  <tr>
    <td>   
    <apex:dataTable value="{!accounts}" var="account" id="theTable" width="100%" columns="3">
        <apex:facet name="header">Real Estate News</apex:facet>               
                <apex:column width="60%">

 


                 <apex:facet name="header">Article</apex:facet>
                    <a href="#" onclick="fun('{!account.Document_URL__c}')" >{!account.name}</a>
                </apex:column>
                <apex:column width="10%">
                        <apex:facet name="header">Source</apex:facet>
                          {!account.Source__c}
                </apex:column>                
                 <apex:column width="20%" >
                   <apex:facet name="header">Date </apex:facet>
                <apex:outputText value="{!account.CreatedDate}"/>
                </apex:column>
        </apex:dataTable>
    </td>
  </tr>
</table>

</apex:define>
</apex:composition>
</apex:form>       
</apex:page>

controller
--------------
public with sharing class pdftets {
  List<News_and_Events__c> NewsandEvents1;
        public List<News_and_Events__c> getAccounts() {
       NewsandEvents1= [select name,Source__c,CreatedDate,Document_URL__c from News_and_Events__c limit 10];

                return NewsandEvents1;
        }
 public string Rctype{get;set;}

}

<apex:page controller="EditPage3" showHeader="FALSE" sidebar="False" id="thepage" >
<script language="javascript">
function fun()
{
alert("Hi");
alert("got it"+document.getElementById("thepage:FirstForm:revpanel:rev1").value);
alert("gone");
}


</script>
    <apex:form id="FirstForm">
        <apex:pageBlock id="blok" >
             <apex:pageBlockButtons location="Top">
                <apex:commandButton value="Save" action="{!saveall}"/>
              </apex:pageBlockButtons>   
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            
               Select Year: <apex:selectList value="{!SelecedDateValue}"  onchange="myfunction();fun();"  size="1">                     
                    <apex:selectOptions value="{!Dateoptions}" />
                </apex:selectList>
                <apex:actionFunction name="myfunction" action="{!doProcess}" rerender="FirstForm" status="myStatus"/>
                 <apex:outputPanel id="thePanel" rendered="{!showpannel}">                     
                     <apex:inputText value="{!value1}" id="val1" style="height:15px;font-size:12px;" style="width:8%"/>                     
                     <apex:inputText value="{!value2}" id="val2" style="height:15px;font-size:12px;" style="width:8%"/>                     
                     <apex:inputText value="{!value3}" id="val3" style="height:15px;font-size:12px;" style="width:8%"/>                     
                     <apex:inputText value="{!value4}" id="val4" style="height:15px;font-size:12px;" style="width:8%"/>                     
                     <apex:inputText value="{!value5}" id="val5" style="height:15px;font-size:12px;" style="width:8%"/>                     
                     <apex:inputText value="{!value6}" id="val6" style="height:15px;font-size:12px;" style="width:8%"/>                     
                     <apex:inputText value="{!value7}" id="val7" style="height:15px;font-size:12px;" style="width:8%"/>
                </apex:outputPanel>                
        </apex:pageBlock>
        <div id="show">
        <table>
        <tr><td>
        <apex:selectList value="{!Metric1}" size="1" onchange="Metric1fun()">
            <apex:selectOptions value="{!Metri1options}"/>
        </apex:selectList>
        <apex:actionFunction name="Metric1fun" action="{!Metric1funProcess}" status="myStatus"/>
        
         <apex:outputPanel id="revpanel" rendered="{!revpanel}" >         
            <apex:inputText value="{!rev1}" id="rev1" style="height:15px;font-size:12px;" style="width:8%"/>                     
            <apex:inputText value="{!rev2}" style="height:15px;font-size:12px;" style="width:8%"/>                     
            <apex:inputText value="{!rev3}" style="height:15px;font-size:12px;" style="width:8%"/>                     
            <apex:inputText value="{!rev4}" style="height:15px;font-size:12px;" style="width:8%"/>                     
            <apex:inputText value="{!rev5}" style="height:15px;font-size:12px;" style="width:8%"/>                     
            <apex:inputText value="{!rev6}" style="height:15px;font-size:12px;" style="width:8%"/>                     
            <apex:inputText value="{!rev7}" style="height:15px;font-size:12px;" style="width:8%"/>                     
            <apex:inputText value="{!rev8}" style="height:15px;font-size:12px;" style="width:8%"/>                     
        </apex:outputPanel>

         <apex:outputText value="Watch this counter: {!count}" id="counter"/>
        <apex:actionStatus startText=" (incrementing...)"
            stopText=" (done)" id="counterStatus"/>
        <apex:actionPoller action="{!incrementCounter}" rerender="counter"
            status="counterStatus" interval="15"/>


.

.

.

 

.

 

.

.

 

//some code.

.

.

.

 

.

.

    </apex:form>
</apex:page>

 

********************************************************************************************************************************

 

As i am new to apex, Kindly sugest a solution for this ASAP.

 

Thanks & Worm Regards

Adithya K

Hello every one , I have the a problem , i need to login the customer portal user's with single login screen with out radio buttons, currently i am using 2 radio buttons for 2 different profile's to differentiate them below is the current image . Image and video hosting by TinyPiccan any one help me on this this is very urgent Please help me As soon as possible Regards, Adithya k

Hi All,
I have created a salesforce web site successfully but i am not able to show the values which are in organization object.
In VF page its working fine but the same code in site page is not working......can any one suggest me the best way
to display the object record details on the site.

code goes here

page
-------
<apex:page showHeader="false" controller="pdftets" >
<script>
function fun(a)
{
var s=new String(a);
// alert(s);
window.open(s);
}
//window.parent.location.href =s;}

</script>
<apex:form >
<apex:composition template="{!$Site.Template}">
<apex:define name="body">
<table style="width: 181px">
  <tr>
    <td>   
    <apex:dataTable value="{!accounts}" var="account" id="theTable" width="100%" columns="3">
        <apex:facet name="header">Real Estate News</apex:facet>               
                <apex:column width="60%">

 


                 <apex:facet name="header">Article</apex:facet>
                    <a href="#" onclick="fun('{!account.Document_URL__c}')" >{!account.name}</a>
                </apex:column>
                <apex:column width="10%">
                        <apex:facet name="header">Source</apex:facet>
                          {!account.Source__c}
                </apex:column>                
                 <apex:column width="20%" >
                   <apex:facet name="header">Date </apex:facet>
                <apex:outputText value="{!account.CreatedDate}"/>
                </apex:column>
        </apex:dataTable>
    </td>
  </tr>
</table>

</apex:define>
</apex:composition>
</apex:form>       
</apex:page>

controller
--------------
public with sharing class pdftets {
  List<News_and_Events__c> NewsandEvents1;
        public List<News_and_Events__c> getAccounts() {
       NewsandEvents1= [select name,Source__c,CreatedDate,Document_URL__c from News_and_Events__c limit 10];

                return NewsandEvents1;
        }
 public string Rctype{get;set;}

}