• blombardis
  • NEWBIE
  • 54 Points
  • Member since 2010

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 40
    Replies

I've inherited some APEX code and having trouble with the test class.  Being new to this I'm trying to understand if I can step through the code?  I'm using the Eclipse Force.com IDE.  I can run the tests and get results but I want to step through the code and see the actual value of the variables as the code is running.  My issue is what I think should be happening isn't but I don't know how to confirm it.  Please help.

This gives error "System.XmlException: Attribute not associated with any element".

 

 

          w.writeStartDocument(null, '1.0');
          w.writeAttribute(null, null, 'encoding', 'UTF-8');

 

 

Looks like all the information in my code share form was deleted when I attempted to submit it.

 

Not only that, the fields themselves disappeared:

 

 

 

I'm trying to create a VF Site Page and keep getting the same message even after correcting/adding closing tag.

 

"Error    - The element type "apex:page" must be terminated by the matching end-tag "</apex:page>" at line 70"

 

Now I added the closing tage (several times, several different ways) but still the error message will not let

me save my page. It is as if VF is not seeing my corrections????

 

I am totally frustrated, any help is appreciated.

 

Thanks in advance

 

Amanda

I have installed the Apex plugin for eclipse.
Everything was fine BUT for some reason I can't start writing a new project.

When I am trying to open a new project i get a window asking for user name, password, and security token.
Well user name and password i guess were fine but security token...
I have received a security token to my mail account than i copy & pasted it on the security account textbox
but still i get an error message "one of the entered details are wrong".
What I am missing?

 

Thanks!

  • May 29, 2010
  • Like
  • 0

Dear All,

 

We have an application which consists of a set of Visualforce pages. We have used our own CSS files to apply custom look and feel to the pages.

 

Now, with the introduction of the new UI, our visualforce pages look messy. I debugged the pages and found out that our visualforce pages have a fixed width and all elements inside the page are aligned relative to the fixed width.

 

Here is a screenshot

Sample

 

 

However, the new UI displays a white block and our page does not fix into this white block.

 

 

<div id="Wrapper" class="leftbox">

 

The width of this div is 1200px - fixed in the CSS. If i make the div's width "auto" then all other elements get misaligned, however the white block of the new UI extends to fit my page.

 

 

Thanks for any help that you can provide...

 

Regards,

Edwin

Can someone please pass me the links on whats the best way to move changes over from sandbox to production.We have the Enterprise edition with a developer sandbox and I just made a bunch of changes in sandbox including introducing custom objects , visualforce pages , triggers and more.

 

Thanks.

  • May 26, 2010
  • Like
  • 0

I've inherited some APEX code and having trouble with the test class.  Being new to this I'm trying to understand if I can step through the code?  I'm using the Eclipse Force.com IDE.  I can run the tests and get results but I want to step through the code and see the actual value of the variables as the code is running.  My issue is what I think should be happening isn't but I don't know how to confirm it.  Please help.

Has anyone else tried to disable a rich text area using the apex:inputTextArea tag?

 

 

<apex:inputTextarea richText="true" disabled="true" />

Thanks!

 

Hi there,

 

I have a visualforce page which has a link that will taken in the server URL to an application outside of salesforce.  I am trying to access the Server URL on the visual force page controller. But I can't seem to use the $Api.Partner_Server_URL_180 in the controller. Why is that? How do I access the Server URL from the controller? Please let me know. I would really appreciate everyone's help. Thank you.

  • May 25, 2010
  • Like
  • 0

I'm attempting to add my company logo to a visual force page, which is then being rendered as a pdf, but have not been successful.  I've attempted to do so in three ways:

 

Image is on a website:

<apex:image url="http://www.tsysacquiring.com/graphics/logos/tsysacquiring_top_logo.gif" width="220" height="55"/>

 

Image has been loaded into Salesforce into documents, and is in the /alva/ folder:
<apex:image value="/alva/TSYS_logo_for_TSYS_Sales_App.jpg" width="220" height="55"/>

 

Image is on my C:\drive:

<apex:image value="C:\data\TSYS_Logo_for_TSYS_Sales_App.jpg" width="220" height="55"/>

 

All three attempts have resulted in a broken image icon being displayed.  This seems like a very straightforward thing I'm attempting, and I'd expect it to be rather simple.  Any one have a syntax example that they know works.

 

Thanks!

 

Hi all,

I have created a object in salesforce platform and have created records in that object ,...

i want to import the records created in the visual force....

 

will it be possible to retrieve all the records in picklist ....and after selecting the record in picklist ..it shoul navigated to the edit page..

if possible send me the code ...please help with this...

Hi,

 

I know this is a silly question, but i am not able to see the image when i call a static resource image in to visualforce using <img> tag. This is what i am using right now, and the picture is not appearing in the VF Page,  i just see a cross mark instead of the picture.

 

<img src="{ !$Resource.image_TwitterIcon }" />

 

I have the above individual picture  in static resources. Can any one suggest a way to fix this.

 

Thanks.

  • May 19, 2010
  • Like
  • 0

I am using a tooltip component that uses sfdcPage.setHelp to populate it and handle the logic of when to show the help text. The problem that I am having with it is that it appears on the left side of the mouse and covers up the field that it corresponds to.

 

What I am wondering is if there is a way to shift the help text box to the right a specified number of pixels or something similar.

 

Thanks in advance for any help on this.

I am developing a Visual force page for endering a pdf file, with the VF page i want to put in IF Condition, but am facing couple of problem. i would like to check the oppty line item value to diplay the total price

 

My If statement is;

<apex:OutputField value="{!IF((!line.Bill__c="VC"),{!line.TotalPrice},null)}"/>

 

My table code is

<apex:repeat value="{!Opportunity.OpportunityLineItems}" var="line">
          <tr>
             <td>{!line.PricebookEntry.Name}</td>
             <td>{!line.PricebookEntry.Product2.Status__c}</td>             
             <td>{!line.Quantity}</td>
             <td><apex:OutputField value="{!line.UnitPrice}"/></td>
             <td><apex:OutputField value="{!IF((!line.Bill__c="VC"),{!line.TotalPrice},null)}"/></td>
             <td><apex:OutputField value="{!IF((!line.Bill__c="FC"),{!line.TotalPrice},null)}"/></td>

          </tr>
       </apex:repeat>

 

Please let me know how to fix this issue.

I saw Cloud Swarm on the AppExchange, and it looks interesting.  I just can't figure out how to install it.  When I try to test drive it, I get an error and Salesforce wants me to activate my computer and then it sent an email to cloudswarmtest1 at mailinator dot com.  Does anyone know?

 

Thanks in advance!

 

 

Hi,

 

I have this query and tested in Setup/System Log/ Execute Apex and it works fine.

SELECT Account.Name, (SELECT Contact.LastName FROM Account.Contacts) FROM Account

 

However, I plugged this query in my app and it doesn't work.   and it give me this error.

INVALID_TYPE: sObject type 'account.contacts)' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

If I remove  (SELECT Contact.LastName FROM Account.Contacts), then it works fine.

Any advice?

Thanks,