• anukarthi_nimmala
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 20
    Questions
  • 12
    Replies

Hi Everyone,

 

     I want to create a  custom datepicker . Iam facing great difficulty in that.So if some one has created and achieved the functionality of creating a  custom datepicker,please help me  by helping me in achieving the functionality.Any help will be of great support to me as iam  trying for the same functionality since many days but not able to achieve it.

 

                                                                                                                                                                  Thanks and regards,

                                                                                                                                                                                     Anu.....

 

 

HI everyone,

 

   I want to create a s-control for my visualforce page .But iam unable to do it since there is no scontrol button in the left sidebar in salesforce. SO pleease tell me how to create a s control for my visualforce page.

Hi Everyone,

 

I need to create a datepicker in visualforce page using javascript function .But when iam trying to create a datepicker using javascript function its not working.If someone has done it, please help meout from the issue by providing me with the code .

 

                                                                                                                                                                                    Thanks and regards,

                                                                                                                                                                                              Anu....

Hi Everyone,

 

As everyone new when we want a calendar pick for a input text field we will use a ainput field of date datatype so that we can see calendar picker in visualforce page.But My requirement is to use a custom calendar picker by using some component which defines the custom calendar picker.

 

So Please help me with in achieving my requirement.Any example code please help me with that.

 

                                                                                                                                           Thanks and Regards,

                                                                                                                                                     Anu..

HI ,

 

I have an apex:command button in my visualforce page.Now i want to change the background color of the button by using inline css .But iam not able to change it.If i use external css its working ,but i want to set standardstylesheets=true and change the background color of the button.So please tell me how to change the background color of the apex:command button

 

My code is as follows...

 

<apex:page >
 
 
 <style>
.contentStyle { font-size:12px; }
.buttonStyle { width:100%; background-color:green; text-align:center; padding-top:4px; }
.activeTab {background-color: #B7A752; color:white; background-image:none}
.inactiveTab { background-color: #F3F3EC; color:black; background-image:none}
.NoRecord { font-size:11px;}
</style>

 <apex:form> <apex:commandButton action="{!save}" value="Edit" styleClass="buttonStyle "></apex:commandButton>

 </apex:form>

 
 </apex:page>

 

In this code my command btns background color not getting changed!

 

So please help me out of the issue..

 

                                                                                                                                                                               Thanks and regards,

                                                                                                                                                                                           anu...

Hi,

 

I have a panelgrid with  3command  buttonsas below

 

<apex:panelGrid columns="3" style="margin-top:1em;" width="100">
     <apex:CommandButton value="Prev" action="{!onPrev}" immediate="true" styleClass="buttons"  style="width:50px;"    />
     <apex:CommandButton value="Next" action="{!onNext}"   styleClass="buttons" style="width:50px;"    />
     <apex:CommandButton value="Save" action="{!updateEvent}" styleClass="buttons" style="width:50px;"  />

 

The problem here is the spacing between button to button is so large i want to reduce it .So please tellme how to reduce the spacing between the buttons .Even though i used attribute cellspacing is 0 still its not reducing so please someone help me how to do it.

Hi ,

 

Iam trying to connect to  endpoint authorize.net gateway from visualforce page where iam trying to accept creditcard details in visualforce page and i need to   connect to authorize.net gateway   to do transaction .So Iam havind difficulty in doing so as iam new to do it.So Someone please help me out of the issue.

 

Please Provide me some samples in doing so.

 

 

                                                                                                                                                                              Thanks and regards,

                                                                                                                                                                                           Anu....

Hi Everyone,

 

I actually need to pass javascript variable to apex controller.I tried to pass it by using apex:actionfunction.But its not working properly.So please someone help me ourt of this issue .I ju8st want to pass the javascript variable in to apexcontroller.

 

So help me please.

 

 

 

                                                                                                                                                                        Thanks and regards,

 

                                                                                                                                                                                  Anu..

 

 

Hi,

 

Please someone tell me how to pass html input text value to my apex controller.PLease  give me an example of doing so if possible .

 

 

                                                                                                                                                                                  Thanks and regards

                                                                                                                                                                                                Anu...

 

Hi everyone,

 

My requirement is to integrate a rich text editor in to visualforce page .So I want an editor which has rich features like upload image in to salesforce.But iam not able to do this using Rich text editor .So Please tell me how to integrate any rich text editor in to visualforce page where i can upload images to the rich text editor.

                                                    Thanks and regards,

                                                                 Anu..

 

Hi,

 

I need to integrate a rich text editor component in visualforce page. I have already done it by creating a rich text editor component and used that component in my visualforce page .

<c:RichEditor value="{!passrceditor}" id="file"         />

 

But the problem which iam facing now in that rich text editor iam not able to upload any images .When i click upload the upload is not happening.So please guide me how to solve this issue.Actually my requirement is to insert any richtext editor in visualforce page using which i can upload the image /i can change font styles and all the rich text features to be vailable to it and i want to use it in my page.

 

 

Please help me how to do this

 

 

                                                                                                                                                 Thanks and regards,

 

                                                                                                                                                           Anu...

HI,

 

Iam having a soql query whose o/p i pased to a list  of DOcumnt type

 

List<Document> docdisplaylist=new  List<Document> ();
Public List<Document> getdocdisplaylist()
{

   return docdisplaylist;
}

Document d=new Document();
public pageReference docrecord()
{
  try
  {
  d=[Select Document.name,Document.description,Document.body,Document.keywords From Document where Document.id=:docid ];
  docdisplaylist.add(d);
  }

 

Now iam trying to display that list values in a pageblock table as shown below

 

 

 

 <apex:pageBlockTable value="{!docdisplaylist}" var="dd">
 
  <apex:column ><apex:inputField value="{!dd.name}" onchange="updateRecords()"  />                       </apex:column>
    <apex:column ><apex:inputField value="{!dd.description}"   onchange="updateRecords()" /></apex:column>
  <!-- <apex:column ><apex:inputFile value="{!dd.body}" onchange="updaterec()"  /></apex:column>-->

In thie above line iam getting error as below

   <!--<apex:inputField> does not currently support Blob fields, please use <apex:inputFile>-->
 <apex:column ><apex:inputField value="{!dd.keywords}"  onchange="updateRecords()" /></apex:column>
 </apex:pageBlockTable>

So here iam not able to display document body in <apex:inputfield >

 

 

So What should i do now to display the document.body in visualforce  pages pgblock table .Please someone help me in doing it...

 

 

 

                                                                                                 Thanks and Regards,

                                                                                                                 Anu....

 

 

 

Hi,

 

Iam inserting document in to documents object using custom controller .So once i save the document its saving to document object. After saving i want to dispaly the saved document  id in the visualforce page.So how to catch the saved document id in apex controller and then how to pass that id to the vpages  and howto display it in visualforce page up on saving the document.please give me any ideas.

 

If possible please explain me with an example code of doing it .

 

                                                     Thanks and regards,

                                                                  ANu..

 

Hi,

 

I have a Rich Text Editor value inmy visualforce page(where rich text editor is a  compoonent in my salesforce ).Now i want to pass that value to the controller and convert it to file (.txt/.doc/.csv).I want to convert it to a file type so that i can insert that file to document.body in document object.So please tell me how to convert the component richtext editor value to file type in apex controller.please help me with an example..

my richtext editor component in visualforce page is as below..

 

 

<c:RichEditor value="{!document.description}"         />

 

 

 

 

 

 

 

 

Hi ,

 

I have created a richtext editor component  in salesforce. I used that component in my visualforce page.Now iam passing document.body (Documents attribute as value to rich text editor).

 

But iam trying to insert this richtext editor value in to doocuments body.which is failing by giving an error.I want to save the rich text editors content to documents body.

here iam trying to passss the editors value to documents body.So please help me.

<c:RichEditor value="{!document.body}" id="file"  />

 

Any ideas will be of greeat help to me.Any helping  code plz provide me.

 

 

                                                                                                                                     Thanks and regards,

                                                                                                                                               Anu..

 

 

 

 

Hi,

 

I have created a tabpanel with 5 tabs in my aplication.SoNow all the tabs are visible as header in each tabs page.But i want to make the tabpanel invisible .It should not be seen in any tabs page.So please tell me how to do it with code.

Hi everyone,    

 

 

<apex:pageBlockTable value="{!Results}" var="ar">  
         <!--<apex:column headerValue="Number of tests" value="{!ar.Total}"/>  -->
             <apex:column headerValue="Date" value="{!ar.TestDate}"/>
             <apex:column headerValue="#Users Appeared for the Test" value="{!ar.usersappeared }"/>
             <apex:column headerValue="#Users Passed" value="{!ar.userspassed}"/>
             <apex:column headerValue="#Users Failed" value="{!ar.usersfailed}"/>
             <apex:column headerValue="Details">
                       <apex:commandButton value="Details" action="{!welcomepage}"/>
                      <!-- <apex:outputLink  value="/{!ar.id}">Details</apex:outputLink>-->
                    </apex:column>
             
      </apex:pageBlockTable>  




Iam displaying my Soql  query output bypassing the list to pageblock

My soql query is as follows

   public list<AggregateResult> lstAR = new list<AggregateResult>();  
   /*
   Note that any query that includes an aggregate function returns its results in an array of AggregateResult objects. AggregateResult is a read-only sObject and is only used for query results.
   Aggregate functions become a more powerful tool to generate reports when you use them with a GROUP BY clause. For example, you could find the count of all opportunities for a CloseDate.
    
   */  
   public reportfinal2()  
  {  
   lstAR = [SELECT TestDate__c, COUNT(id) Total,COUNT(Users_Appeared_for_the_test__c) usersappeared,   COUNT(Users_Passed__c) userspassed, COUNT(User_Failed__c) usersfailed  FROM UserTest__c GROUP BY TestDate__c];  
   }  
   


I used a wrapper class to pass and assigned the field values to the variables and passed the variables.Everything workking fine.




Now my requirement is when i click a button of column 1 i want to pass the field values of column 1 to controller so that i can write another soql query with filtercriteria as column value and i need to   display this output in another page .So up on button action i need to redirect to other page where i see output of soql query in a pageblock table.


So please tell me how should i do this .and tell me with a sample code if so its very helpful to me

 

 

                                                                                                                                                                           Thanks and  regards

 

                                                                                                                                                                                             Anu..~

i want to  read from a file, then have to upload into a Document, use Apex SOQL to fetch the Document and Document body, then use Document.getBody or something like that to get the body as a long string and then insert the  column values as fields in to custom object.how could i do this.Any sample code will be help-ful

Hi i have a csv file with field values as each column in csv file which i upload to documents tab.Now  instead of using import wizard for importing the csv field values to the custom object, I want to pass the column values  of csv file in to controller and then insert the values in to custom object up on a button action.

 

 

Difficulty what iam facing here is how to pass the column values from documents tab in to the controller.Is it possible to do it?

If so plz guide me how to do that with a sample code to achieve  this.

 

 

 

                                                                                                                                                                       Thanks and regards,

                                                                                                                                                                                     anu..

 

 

 

 

 

 

Hi everyone,

 

 I am having a radio button with multiple options now my requirement is i want to display all the options values in aseparate  line/options in multiple lines .How could i do this help me wi th an example

 

My radio button is as follows

 

<apex:selectRadio     value="{!selectedOption}">
     <br/>
                 <apex:selectOptions   value="{!choices}"/>
        <br/>
       
          </apex:selectRadio>

 

 

 

 

Hi Everyone,

 

As everyone new when we want a calendar pick for a input text field we will use a ainput field of date datatype so that we can see calendar picker in visualforce page.But My requirement is to use a custom calendar picker by using some component which defines the custom calendar picker.

 

So Please help me with in achieving my requirement.Any example code please help me with that.

 

                                                                                                                                           Thanks and Regards,

                                                                                                                                                     Anu..

Hi Everyone,

 

I actually need to pass javascript variable to apex controller.I tried to pass it by using apex:actionfunction.But its not working properly.So please someone help me ourt of this issue .I ju8st want to pass the javascript variable in to apexcontroller.

 

So help me please.

 

 

 

                                                                                                                                                                        Thanks and regards,

 

                                                                                                                                                                                  Anu..

 

 

Hi,

 

Please someone tell me how to pass html input text value to my apex controller.PLease  give me an example of doing so if possible .

 

 

                                                                                                                                                                                  Thanks and regards

                                                                                                                                                                                                Anu...

 

Hi everyone,

 

My requirement is to integrate a rich text editor in to visualforce page .So I want an editor which has rich features like upload image in to salesforce.But iam not able to do this using Rich text editor .So Please tell me how to integrate any rich text editor in to visualforce page where i can upload images to the rich text editor.

                                                    Thanks and regards,

                                                                 Anu..

 

HI,

 

Iam having a soql query whose o/p i pased to a list  of DOcumnt type

 

List<Document> docdisplaylist=new  List<Document> ();
Public List<Document> getdocdisplaylist()
{

   return docdisplaylist;
}

Document d=new Document();
public pageReference docrecord()
{
  try
  {
  d=[Select Document.name,Document.description,Document.body,Document.keywords From Document where Document.id=:docid ];
  docdisplaylist.add(d);
  }

 

Now iam trying to display that list values in a pageblock table as shown below

 

 

 

 <apex:pageBlockTable value="{!docdisplaylist}" var="dd">
 
  <apex:column ><apex:inputField value="{!dd.name}" onchange="updateRecords()"  />                       </apex:column>
    <apex:column ><apex:inputField value="{!dd.description}"   onchange="updateRecords()" /></apex:column>
  <!-- <apex:column ><apex:inputFile value="{!dd.body}" onchange="updaterec()"  /></apex:column>-->

In thie above line iam getting error as below

   <!--<apex:inputField> does not currently support Blob fields, please use <apex:inputFile>-->
 <apex:column ><apex:inputField value="{!dd.keywords}"  onchange="updateRecords()" /></apex:column>
 </apex:pageBlockTable>

So here iam not able to display document body in <apex:inputfield >

 

 

So What should i do now to display the document.body in visualforce  pages pgblock table .Please someone help me in doing it...

 

 

 

                                                                                                 Thanks and Regards,

                                                                                                                 Anu....

 

 

 

i want to  read from a file, then have to upload into a Document, use Apex SOQL to fetch the Document and Document body, then use Document.getBody or something like that to get the body as a long string and then insert the  column values as fields in to custom object.how could i do this.Any sample code will be help-ful

Hi i have a csv file with field values as each column in csv file which i upload to documents tab.Now  instead of using import wizard for importing the csv field values to the custom object, I want to pass the column values  of csv file in to controller and then insert the values in to custom object up on a button action.

 

 

Difficulty what iam facing here is how to pass the column values from documents tab in to the controller.Is it possible to do it?

If so plz guide me how to do that with a sample code to achieve  this.

 

 

 

                                                                                                                                                                       Thanks and regards,

                                                                                                                                                                                     anu..

 

 

 

 

 

 

Hi,


Does anyone have an idea of how to work around the string limits in this case.

 

I have an apex code that reads a document object. I can get that fine, and it's a CSV fine. I then want to run through the document and parse it line by line. I can get the body into a blob with document.body, then get the body as a string with the body.toString() method.

 

But the problem here is the limits on a string are 100,000 characters. If my blob is larger than 100,00 characters, then what can I do? I don't have to have it all at once. A loop is find but I don't see a way to do blob.tostring(start byte, end byte).

 

Any ideas?

 

Thanks!

Hi All,

I want a input text in my visualforce page. On clicking this inputbox the standard salesforce calendar should popup. Is this possible.

Please note that i need only a input text and not a input field.

I got the below code from the forums.

What are the values that i have to pass in the highlighted part of the code. Is this possible in Visualforce.

Code:
<a href="javascript&colon;openPopupFocus

('/home/calendar.jsp—form=form1&field=sdate&mo=0&callonchange=true', '_blank', 186, 170, 'width=186,height=170,resizable=yes,toolbar=no,status=no,scrollbars=no,menubar=no,directories=no,location=no,dependant=yes', true, true);"

class="datePicker"

title="Pick A Date (New Window)"

onclick="setLastMousePosition(event)"

id="sdatePopCal">

<img src="/s.gif" alt="Pick A Date (New Window)" class="datePickerIcon">

</a>

 Thanks,
Edwin