• NT
  • NEWBIE
  • 0 Points
  • Member since 2008

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

Hello All,

 


How can I display a report contents on VF page?

I mean what control should I use to display the report. Instead of iFrame

I have hard coded Id for the report.

 

 

Thanks

Nitin Gupta

  • May 21, 2009
  • Like
  • 0

Hi All,

 

 

I have a VF page with three pageBlocks. All these have their own buttons.

My problem is if any button is pressed from second pageBlock than all the

validation rules on first,second,third pageblock runs while I am rendering only the second pageBlock.

I want that only second pageBlock's validation rules should run when I press second pageBlock's button.

 

I am using the inputField on the page.

 

I can't change the inputField to inputText or any one else

and I can't use the immediate property also.

 

 

 

Any suggestion.

 

 

Nitin Gupta

Message Edited by NT on 05-20-2009 10:48 PM
  • May 21, 2009
  • Like
  • 0
Hi All,

I am using :
tabstyle="Member_Value_Plan__c" title="Member Value Plan"
sidebar="false" showHeader="false" standardStylesheets="true"
contenttype="application/msword" cache="true">


I have used the following formats:
contenttype="application/msword"
contenttype="application/rtf",
contenttype="application/vnd.openxmlformats-officedocument.wordprocessingml.document"



Actually, everything is fine if the file can be opened or saved in the doc format not into the web format.

In 2003, the page contents displays as in the HTML format like everything comes into the table format.

If I open the file and try to save it this file by default saved in web format,
But if I choose ms word format (Word 97 – 2003 Document) from the Save as Type list than
the new file gets open in correct ms-word format without showing contents into the table.


Any suggestions please.


Thanks,
Nitin Gupta
Message Edited by NT on 05-13-2009 07:44 AM
  • May 13, 2009
  • Like
  • 0

Hi All,

 

I have a requirement in which I need to render a VF page as ms-word document format.

 

I am using <apex:page standardController="Account" contenttype="application/vnd.msword">

 

but on IE it doesn't display anything and on Mozila word document doesn't display in the correct format.

 

 

Does anyone have any experience on contenttype="application/vnd.msword".

 

Nitin Gupta

  • May 04, 2009
  • Like
  • 0

Hi All,

 

 

I am creating a page. This page renders as PDF.

 

My requirement is I have two PageBlockTables and these PageBlockTables should always display

on a different page.

Even than my first PageBlockTable doesn't have data, the second PageBlockTable should display on second page.

 

 

Please suggest me, how should I need to design this requirement?

 

 

Thanks

Nitin Gupta

  • April 29, 2009
  • Like
  • 0
 
 
 
Hi,

I have a VF page with custom controller. I am displaying an amount field on the page in a column of a pageBlockTable. Like:
<apex:column value="{!camp.Obj.Total_Budget__c}" headerValue="Budgeted Cost" />
Obj is a property in controller which returns a collection of sObject records.
Total_Budget__c is a custom field in the sObject.

My problem is if this field have value 1000, currency for this record is set to USD and my default currency is GBP than this field is displaying "GBP 1000" on the VF page which is wrong.

Please suggest me what should I do?

Nitin Gupta
  • February 25, 2009
  • Like
  • 0
Hi All,
 
I need to dynamically get a custom objects Id which came in the address bar if you go to that object from setup.
 
Like: https://cs2.salesforce.com/01I4000000023wM?setupid=CustomObjects
 
I have tried the describeSObject() and describeSObjects() but didn't get the ID.
 
 
Please guide me if any one knows it..
 
 
Thanks in advanced...
 
Nitin Gupta
  • January 06, 2009
  • Like
  • 0
Hi All,
 
I am using sforce.apex.execute call to execute a apex class web method from Visual force page through javascript .
 
some times it works and some times it doesn't work.
 
It was working fine in 08 release but not in 09 release
 
Please help
 
 
Nitin Gupta
 
 
 


Message Edited by NT on 10-24-2008 05:14 AM
  • October 24, 2008
  • Like
  • 0
Hi All,
 
 
I have created a Visual Force page there is a need to call a web method of its Apex class.
Like:   sforce.apex.execute("ObjectiveView", "updateObjectBudg", {updateList:updateArr});
Here ObjectiveView is my Class name and updateObjectBudg is function name.
It was working fine.
 
Issue: I have given a NameSpace in my org(MD). after that the above line is not working but giving me an exceptiopn..
{faultcode:'soapenv:Client', faultstring:'No service available for class 'CampaignBudgetDetails'', }
 
I have tried to give the class name as sforce.apex.execute("MD__ObjectiveView","updateObjectBudg",{updateList:updateArr}) on the
but i m getting the same exception.
 
What should I do?
Please help me......
 
 
Nitin Gupta
  • October 24, 2008
  • Like
  • 0
Hi All,
 
I am using isQueryable for accessing the user profile based on teh access.
 
when I use isDeletable(),isCreatable,isUpdateable on my page these all works fine.
 
what if i want to use isQueryable (to access the read permission)?
 
 
Nitn Gupta
  • October 20, 2008
  • Like
  • 0
Hi All,
 
I m creating a visual force page for campaign details.
i want some related lists from two different objects(Campaign and Opportunity) on this page with out the details so i m using relatedlist control.
 
Every thing is going fine.
 
If i hide any related list from the page layout of the object then my page is showing me below error.
 
'SupportingObjectives__r' is not a valid child relationship name for entity Campaign
 
Can anybody solve this issue?
 
Thx in advanced..
 
Nitin Gupta
  • October 15, 2008
  • Like
  • 0
  • October 07, 2008
  • Like
  • 0
Hi All,
 
I am overriding a clone button but I need a field's value that is not on the page layout.
I am always getting null for this field.
How could I clone a field that is not on Page layout through SControl?
 
or
 
I am overriding a clone button and also the Save.
How could I pass a query string from Clone's sControl to Save's sControl?
 
Thanks,
  • September 05, 2008
  • Like
  • 0
Hi All,
 
How could I dynamically add a Visual Force InputField control on a AddRow button's click?
 
 
Thanks,
Nitin Gupta


Message Edited by NT on 09-04-2008 06:59 AM
  • September 04, 2008
  • Like
  • 0
Hi All,

I am overriding a clone button by a sControl of a custom object and setting a url. This url is same as the real Clone button shows.
But on my buttons click the page goes in infinite loop and calls again and again the same url.
My sControl code is.....

function initiateClone()
    {
        var URL = "/"+Id+"/e?clone=1";
        var saveURL = "&retURL="+RetURLQueryString;
        URL = URL+saveURL;       
        window.parent.location.href = URL;
    }

Thanks
Nitin Gupta

  • September 03, 2008
  • Like
  • 0
I have created a VF page. This page is overriding the functionality of standard New button.
On this page I don't have the SideBar and Header tabs.
On this page I have Three buttons Save, SaveNew, Cancel.
My problem is when i click on Cancel button it shows me SideBar and Header tab twice.


screen file (Error.jpg) is attached at: http://cl1p.net/VFError/



  • August 14, 2008
  • Like
  • 0
See the Page image at URL: http://cl1p.net/VFError .

I have created some <input type="text"> control in a table for Month at the bottom of the page.
I have a Add Row link button which adds a new blank row of <input type="text"> tags on the page.
I need the same format as displayed on the page.

How could I get the values of these <Input> tags in APEX class?

Or is there any way to create the same display by using VisualForce controls?




Message Edited by NT on 07-30-2008 07:11 AM
  • July 30, 2008
  • Like
  • 0

Hi All,

 

 

I have a VF page with three pageBlocks. All these have their own buttons.

My problem is if any button is pressed from second pageBlock than all the

validation rules on first,second,third pageblock runs while I am rendering only the second pageBlock.

I want that only second pageBlock's validation rules should run when I press second pageBlock's button.

 

I am using the inputField on the page.

 

I can't change the inputField to inputText or any one else

and I can't use the immediate property also.

 

 

 

Any suggestion.

 

 

Nitin Gupta

Message Edited by NT on 05-20-2009 10:48 PM
  • May 21, 2009
  • Like
  • 0

Hi All,

 

 

I am creating a page. This page renders as PDF.

 

My requirement is I have two PageBlockTables and these PageBlockTables should always display

on a different page.

Even than my first PageBlockTable doesn't have data, the second PageBlockTable should display on second page.

 

 

Please suggest me, how should I need to design this requirement?

 

 

Thanks

Nitin Gupta

  • April 29, 2009
  • Like
  • 0
 
 
 
Hi,

I have a VF page with custom controller. I am displaying an amount field on the page in a column of a pageBlockTable. Like:
<apex:column value="{!camp.Obj.Total_Budget__c}" headerValue="Budgeted Cost" />
Obj is a property in controller which returns a collection of sObject records.
Total_Budget__c is a custom field in the sObject.

My problem is if this field have value 1000, currency for this record is set to USD and my default currency is GBP than this field is displaying "GBP 1000" on the VF page which is wrong.

Please suggest me what should I do?

Nitin Gupta
  • February 25, 2009
  • Like
  • 0
Hi All,

I am overriding a clone button by a sControl of a custom object and setting a url. This url is same as the real Clone button shows.
But on my buttons click the page goes in infinite loop and calls again and again the same url.
My sControl code is.....

function initiateClone()
    {
        var URL = "/"+Id+"/e?clone=1";
        var saveURL = "&retURL="+RetURLQueryString;
        URL = URL+saveURL;       
        window.parent.location.href = URL;
    }

Thanks
Nitin Gupta

  • September 03, 2008
  • Like
  • 0
I have created a VF page. This page is overriding the functionality of standard New button.
On this page I don't have the SideBar and Header tabs.
On this page I have Three buttons Save, SaveNew, Cancel.
My problem is when i click on Cancel button it shows me SideBar and Header tab twice.


screen file (Error.jpg) is attached at: http://cl1p.net/VFError/



  • August 14, 2008
  • Like
  • 0