• visualforce_dev
  • NEWBIE
  • 105 Points
  • Member since 2008

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

I have made a VF page having some textboxes and buttons. On clicking Get Details button it should come back to the same page with textboxes auto-populated with data.

 

I have done the following things still it is not auto-populating the page. Please help me in this regard

 

in VF page

 

<apex:outputPanel style="width:100px;">
                <apex:inputText value="{!data1}" id="id3" style="width:100px;" />
            </apex:outputPanel>

 

 

in Apex class

 

 

PageReference pageRef = Apexpages.currentPage();

 

String hi = '0.00';
           
 pageRef.getParameters().put('data1', hi);

 

return pageRef;

 


the datatype of data1 is decimal

 

Please tell me how can I approach

 

 

 

 

  • March 09, 2010
  • Like
  • 0

Hello

 

I am setting up an Apex Class that will be used for sending an email, but I get the error that is mentioned in the subject

 

Thanks for your help

 

 

public class sendEmail {
public String subject { get; set; }
public String body { get; set; }
private final Playlist__c playlist;


// Create a constructor that populates the Account object
public sendEmail() {
playlist = [select Name,id,Contact__r.Email from Playlist__c where id = :ApexPages.currentPage().getParameters().get('id')];
}

public Playlist__c getPlaylist() {
return playlist;
}

public PageReference send() {
// Define the email
Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();
String address = playlist.Contact__r.Email;

// Sets the paramaters of the email
email.setSubject( subject );
email.setToAddresses( address);
email.setPlainTextBody( body );
// Sends the email
Messaging.SendEmailResult [] r =
Messaging.sendEmail(new Messaging.SingleEmailMessage[] {email});
return null;
}
}

 

 

 

 

 

I have this visualforce page added as a component in a Dashboard.The page just has a simple text in it.

But everytime I hit the refresh button on the browser, this page component disappears, although all other components on the same Dashboard(like charts,table etc) are visible after the refresh. I need to fix this urgently, any help would be great.

Thanks. 

  • February 02, 2010
  • Like
  • 0

Hi all,

 

i have 4 pageblocksections and i want to color those headers in different colors..

 

i am using this code,but all sections r taking the same color.

<style type="text/css"> .bPageBlock .pbBody .pbSubheader .g

{ background-color:#FF0000; } .bPageBlock .pbBody .pbSubheader .s

{ background-color:#F88017; } </style > then i trd <div class="g"> <pagebloc section> ---\ </div>

 

please help me..

 

 

 

Hi,

 

I have one pageblocktable, in which I need to show detail page(mini layout) on mouse over of each row as a hover..

 

If some body have sample code pls post it here.

 

or else can I do using some standard functionality??

 

Thanks in advance

Ann

Hi,

 

Please suggest the easiest way to send email alerts to users when a quarter begins.

 

Also some automatic update on records when quarter ends.

 

 This is an urgent requirement.

 

Thanks in advance

 

Hi,

 

Can we display the result of a query as a single row?

 

E.g : select colorfield from obj where name ='abc'

 

where coclorfield is a formula field stores some color value based on a field in obj.

 

I did like this

 

<apex:repeat value="{!colors}" var="c"> <TR> <TD bgcolor="{!c.colorfield__c}" width="0" height="1">t</TD> </TR> </apex:repeat>

 but the results are comin in multi rows..

I want it in a single row

 

 

 

Hi,

 

I want all records pending for my approval for a particular object in a table,

 

how can I do  it in simple way? All standard objects supporting approval process have record id. But how can I get the object .

 

for e.g... Custom objects 'A 'and 'B ' have approval process..

 

in my  page I want only records from 'A' awaiting my approval..

 

Thanks in advance

 

Hi,

 

I tried to create a tab and include it to an app, but its overriding the existing tabs, but i need to include old set of tabs as well,

CustomTab ct = new CustomTab(); ct.setFullName("Object1__c"); ct.setCustomObject(true); ct.setFrameHeight(400); ct.setHasSidebar(true); ct.setMotif("Custom70: Handsaw"); ct.setMobileReady(false); ct.setLabel("Automati"); AsyncResult[] ars1 = msfdc.create(new Metadata[] { ct }); if(!apps) { CustomApplication ca = new CustomApplication(); ca.setFullName("Myapp"); ca.setLabel("Myapp"); ca.setTab(new String[] {ct.getFullName()}); UpdateMetadata updateMetadata1 = new UpdateMetadata(); updateMetadata1.setMetadata(ca); updateMetadata1.setCurrentName("Myapp"); AsyncResult[] wupdate18 = msfdc.update(new UpdateMetadata[] { updateMetadata1}); }

 

my code is attached.

 

Hi all,

 

Can I get all metadata using partner wsdl.. 

 

Right now I am able to retrieve object name and field name.

 

I want to retrieve all validation rules, workflow rules etc associated with some particular object or in common

 

If it is not possible using partner and we have to use retrieve function in metadata API, can anyone help on how to do it..

 

Sample code will be of grt help!!

 

Regards

 

I am getting this error while creating apex from WSDL.

 

Apex generation failed.

Error message:

Error: Unable to find schema for element; calculateFibonacciRangeReturn
 
where  'calculateFibonacciRangeReturn' is a method in the WSDL.
 
parsing is done with 0 errors,0 warnings, but next step generate apex is giving this error.
 
This WSDL is created from a java package using axis. Then I changed the type to document/literal.
 
 

Please help me on calling a JavaScript in VF page

 

I tried below options

 

 

 

<script type="text/javascript" src="{!URLFOR($Resource.myscript,'/test.js')}"/>

 


 

 

where 'test' is a javascript file saves in zip file named myscript in Static resources

 

 

<apex:includeScript value="{!$Resource.tstres}"/>



<script type="text/javascript" src="{!$Resource.tstres}"/>

 

where tstres is javascript file saved directly in static resources.

 

The script is 

 

<script type="text/javascript">
document.write("Hello World!")
</script>

 

 if I write the script directly in the page editor its printing Hello world.

But its not working with, includescript .

 

Its not showing any error.

 

Thanks in advance

 

 

Dear all.

 

I have to edit picklist values of standard fields like 'Rating', 'type' etc in standard object Account.

 

I am using the enterprise and metadat wsdls. But I didn't find any methods in these classes to edit these picklist values.

 

I think Update calls and account class in enterprise etc are for records not for fields.

 

any help would be great!!! This is something urgent..

 

Thanks in advance

 

I downloaded metadata from my dev instnce and developed code on that(java code to create objects), now i am trying to use another login, but i ma not able to use my metadata for that login..

 

 

any suggestion to overcome this, its very urgent...

 

i am getting the following error

 

 

 

INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session key: 511800D80000000LvBm!AQQAQB3QNt1eH_4MOjT9PEAvJzrqfBdQHHNeD1XCpTmp3NauNvj95SxX_COjVj570Fek0b4VbjCSRNTdTZibUpYDw0GnqPNE

Message Edited by visualforce_dev on 02-09-2009 10:47 PM

HI all,

 

How can we get errors from SFDC while using java code, 

 

for eg,

 

if we are trying to create a formula field and the formula is incorrect, it willnot give any error nor created in SFDC, 

 

 

so how can i get the error ?

 

I am using eclipse 4 for developing java code for this,

 

any help will be grt.

 

Anybody pls help me out by tracing the error in this code...

LayoutItem[] MyLayout=new LayoutItem[100]; LayoutItem item1=new LayoutItem(); item1.setField(nf1.getFullName()); MyLayout[0]=item1; LayoutColumn[] lc= new LayoutColumn[5]; LayoutColumn lc1= new LayoutColumn(); lc1.setLayoutItems(MyLayout); lc[0]=lc1; LayoutSection[] ls=new LayoutSection[5]; LayoutSection ls1=new LayoutSection(); ls1.setLayoutColumns(lc); LayoutSectionStyle lstyle; ls1.setStyle(LayoutSectionStyle.OneColumn); ls[0]=ls1; Layout MyLayout1=new Layout(); MyLayout1.setFullName(co.getFullName()+"-Mylayout"); MyLayout1.setLayoutSections(ls); try { AsyncResult[] avl = msfdc.create(new Metadata[]{MyLayout1}); if(avl.length>0) { System.out.println("page layout Created Successfully"); } } catch(Exception e) {System.out.println("page layout Error"+e);}

 

 

where 'co' is the custom object created and 'nf1' is the custom field .I tried '.' for setname function but its not working.

Anybody here have sample code for formula field creation from java code?
 
Thanks in advance
 


Message Edited by visualforce_dev on 01-19-2009 02:44 AM
Hi,
i have created a custom object and custom fields using java code and metadata API. I want to create a validation rule for a field in this object. I used the following code
Code:
    ValidationRule vr[];
    vr = new ValidationRule [1];
    ValidationRule vrule = new ValidationRule();
    vrule.setFullName(co.getFullName()+".myvalidation__c");
    vrule.setErrorConditionFormula("Name='sumi'");
    vrule.setErrorMessage("Validationisworking");
    vrule.setDescription("Myvalidationruledesc");
    vr[0]=vrule;
    co.setValidationRules(vr);
    try
    {
    UpdateMetadata updateMetadata = new UpdateMetadata();
    co.setNameField(namefield);
    updateMetadata.setMetadata(co);
    updateMetadata.setCurrentName(objectname.toString());
    
    AsyncResult[] ars1 = msfdc.update(new UpdateMetadata[]{updateMetadata});
    if(ars1.length>0)
    {
     System.out.println("Updated Successfully");
     
    }
    }
    catch(Exception e)
    {
     System.out.println("Exception:" +e);
    }
    

 

 
where 'co' is the custom object. But following error is coming

Cannot create child objects through metadata create / update. The ValidationRule must named 'obj13__c.myvalidation__c' be created separately

 

 

Any help will be grt...

Thanks in advance.


Message Edited by visualforce_dev on 01-11-2009 07:52 PM
Message Edited by visualforce_dev on 01-22-2009 03:36 AM
Message Edited by visualforce_dev on 01-22-2009 03:40 AM
Can anybody help .Pls . this is an urgent requirement.
 
for a set of records there are startdate and enddate.
Need to check whther each record's startdate and enddate falls in same quarter.
 
If anybody have sample code pls share.
 
Thanks in advance'
 

Can anybody help with sample code for creation n manipulation of dynamic table in VF.

-add row

-add sub row

-save user inputs in the new row

-delete row.

 
 
how can I pass "System.currentPageReference().getParameters().get('variable_name')"
to window.open..
i tried like this
 
window.open ("/apex/viewsp?q={!System.currentPageReference().getParameters().get('selectedCategoryId')}",' status=1,height=600, width=1000,menubar=no,toolbar=no');
 
but it is showing an error '}' expected
 
can anybody help me.
 
I have to display say 100 rows in a table view, limit 10.
after clicking next it will display 10-20 like that.
 
Previous will do the reverse.
 
 
How can I display label/link/button values in different languages depend on user in Visual Force pages.

So I am trying to assign a value to a property in my controller and it just is not working, the value always ends up as null... am I doing somethign wrong?

 

In My Controller

public Boolean blnDoAttachment{get; set;}

 

 <<Some Code>>

 

 if (blnDoAttachment == True){

return new PageReference('p/attach/NoteAttach?pid=/' + c.id + 'retURL=' + c.id); 

 

}

if (blnDoAttachment == False){

return new PageReference('/'+ c.id);

}

return null;

 

On My VisualForce Page

<apex:commandButton action="{!save}" value="Submit"><apex:param value="False" assignto="{!blnDoAttachment}"/></apex:commandButton> <apex:commandButton action="{!save}" value="Submit and Attach"><apex:param value="True" assignto="{!blnDoAttachment}"/></apex:commandButton>

Any assistance would be greatly appreciated.  I am pretty sure its just something totally stupid on my part

 

Thanks!

 

Message Edited by RickoT1031 on 03-09-2010 04:27 PM

Hi,

 

I am new to visualforce.What i am trying to do is:

 

Create a custom search kind of functionality and return results back to VF page based on the values selected.

 

For this :

 

1) I created a new Visualforce page, in which i take two standard Fields of Account ( Type and Rating).

2) I have a button on VF page "Search", when clicked takes values entered in Type and Rating and then returns results.

3) I have taken Standard Controller of "Account" and Extensions for this purpose

 

But, i am unable to see the results, what it shows is "sforce", under results section.

To my surprise, there are no errors also.

 

My VF code:

<apex:page standardController="Account" extensions="customSearch">
    <apex:form>
        <apex:pageBlock title="Custom Search" mode="Edit">
            <apex:pageblockSection title="Select Fields" columns="1" >
                <apex:inputField value="{!Account.Type}"/>
                <apex:inputField value="{!Account.Rating}"/><br/>                                                               
            </apex:pageblockSection>   
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton value="Search" action="{!doSearch}"/>                 
            </apex:pageBlockButtons>                                                         
        </apex:pageBlock>
        
        <apex:pageBlock title="Search Results">
            <apex:pageBlockTable value="{!results}" var="Accts">
                <apex:column headerValue="Account Name">
                    <apex:outputText value="{!Accts.Name}">
                    </apex:outputText>
                 </apex:column>
                 <apex:column headerValue="Account Type">
                    <apex:outputText value="{!Accts.Type}">
                    </apex:outputText>
                 </apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>
    
</apex:page>

 

 

My Apex class for Controller Extension:

 

public class customSearch {

    public customSearch(ApexPages.StandardController controller) {

    }
   String Account_Type;
   public String getAccount_Type(){
       return Account_Type;
   }
   public void setAccount_Type(string Account_Type){
       this.Account_Type=Account_Type;
      }
    
    public List<Account> results=new List<Account>();
    
    public PageReference doSearch(){
        results=[Select Name, Type from Account Where Type=:Account_Type];
        return null;
        }
        
     public List<Account> getResults(){
         return results;
        }
}

 

Can anybody help me with this. 

 

Thanks in advance!

 

Sales4ce

I have made a VF page having some textboxes and buttons. On clicking Get Details button it should come back to the same page with textboxes auto-populated with data.

 

I have done the following things still it is not auto-populating the page. Please help me in this regard

 

in VF page

 

<apex:outputPanel style="width:100px;">
                <apex:inputText value="{!data1}" id="id3" style="width:100px;" />
            </apex:outputPanel>

 

 

in Apex class

 

 

PageReference pageRef = Apexpages.currentPage();

 

String hi = '0.00';
           
 pageRef.getParameters().put('data1', hi);

 

return pageRef;

 


the datatype of data1 is decimal

 

Please tell me how can I approach

 

 

 

 

  • March 09, 2010
  • Like
  • 0

Hello

 

I am setting up an Apex Class that will be used for sending an email, but I get the error that is mentioned in the subject

 

Thanks for your help

 

 

public class sendEmail {
public String subject { get; set; }
public String body { get; set; }
private final Playlist__c playlist;


// Create a constructor that populates the Account object
public sendEmail() {
playlist = [select Name,id,Contact__r.Email from Playlist__c where id = :ApexPages.currentPage().getParameters().get('id')];
}

public Playlist__c getPlaylist() {
return playlist;
}

public PageReference send() {
// Define the email
Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();
String address = playlist.Contact__r.Email;

// Sets the paramaters of the email
email.setSubject( subject );
email.setToAddresses( address);
email.setPlainTextBody( body );
// Sends the email
Messaging.SendEmailResult [] r =
Messaging.sendEmail(new Messaging.SingleEmailMessage[] {email});
return null;
}
}

 

 

 

 

 

I have this visualforce page added as a component in a Dashboard.The page just has a simple text in it.

But everytime I hit the refresh button on the browser, this page component disappears, although all other components on the same Dashboard(like charts,table etc) are visible after the refresh. I need to fix this urgently, any help would be great.

Thanks. 

  • February 02, 2010
  • Like
  • 0

I am trying to build a Search Page using SOSL query (just followed the example in VF guide book).

 

But the query doesn't reurn any row. Here is the Controller Code

 

 

public class woController {
String searchText;
List<Work_Order__c> workOrders = new List<Work_Order__c>();
public String getSearchText() {
return searchText;
}
public void setSearchText(String s) {
searchText = s;
}
public List<Work_Order__c> getWorkOrders() {
return workOrders;
}
public PageReference doSearch() {
workOrders = (List<Work_Order__c>)[FIND :searchText IN ALL FIELDS RETURNING
    Work_Order__c(Id, Name, Account__c, Service_Order__c, CreatedById, Work_Order_Status__c, CreatedDate)][0];
return null;
}
}

 

 

Here is the VF page code -

 

<apex:page controller="woController" tabStyle="Work_Order__c">
<apex:form >
<apex:pageBlock mode="edit" id="block">
<apex:pageBlockSection >
<apex:pageBlockSectionItem >
<apex:outputLabel for="searchText">Search Text</apex:outputLabel>
<apex:panelGroup >
<apex:inputText id="searchText" value="{!searchText}"/>
<apex:commandButton value="Go!" action="{!doSearch}" rerender="block" status="status"/>
</apex:panelGroup>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:actionStatus id="status" startText="requesting..."/>
<apex:pageBlockSection title="Results" id="results" columns="1">
<apex:pageBlockTable value="{!workOrders}" var="wo" rendered="true">
<apex:column value="{!wo.Name}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

 

 

If I use SOQL query for any particular field search, then it works. Any help would be appreciated.

Hi i have created a visualforce page with following code

<apex:page showheader="false" action="{!initList}"
controller="PublicJobSearchController"
standardStylesheets="true">
<apex:composition template="{!$Site.Template}">
<apex:define name="body">
</apex:define>
</apex:composition>
<apex:form >
<!-- Search by Department, Location, or Keyword -->
<apex:pageBlock title="Search Job Postings">
<apex:pageBlockSection columns="1">
<apex:pageBlockSectionItem >
<apex:outputText value="Department"/>
<apex:selectList value="{!viewDepartmentName}"
id="departmentViews" size="1" required="true">
<apex:selectOptions value="{!DepartmentViewNames}"/>
</apex:selectList>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputText value="Location"/>
<apex:selectList value="{!viewLocationName}"
id="locationViews" size="1" required="true">
<apex:selectOptions value="{!LocationViewNames}"/>
</apex:selectList>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputText value="Keyword"/>
<apex:inputText value="{!searchPosition}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputText value=""/>
<apex:commandButton value="Search"
action="{!PopulateQuery}" reRender="JobList" />
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
<!-- Search results -->
<apex:pageBlock title="Search Results">
<apex:pageBlockTable id="JobList" value="{!Position}"
var="Position__c" rendered="{!NOT(ISNULL(Position))}">
<apex:column >
<apex:facet name="header">
<apex:outputText value="Position ID"/>
</apex:facet>
<!-- Position name field linked to job details page -->
<apex:outputLink value="positiondetailpage?id={!Position__c.id}"
id="theLink">{!Position__c.name}</apex:outputLink>
</apex:column>


<apex:column >
<apex:facet name="header">
<apex:outputText value="Department"/>
</apex:facet>
<apex:outputText value="{!Position__c.Department__c}"/>
</apex:column>

<apex:column >
<apex:facet name="header">
<apex:outputText value="Job Description"/>
</apex:facet>
<apex:outputText value="{!Position__c.Job_Description__c}"/>
</apex:column>

</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>

 

 

and the controller which i used is as follows

 

 

public class PublicJobSearchController {
Position__c[] ccts;
String searchPosition;
String positionid;
String DepartmentName = '%';
String LocationName = '%';
String likeStr = '%';
private String viewDepartmentName = 'Department';
private String viewLocationName = 'Location';
// Department picklist for the search page
private static final List<SelectOption>
VIEW_DEPARTMENT = new SelectOption[] {
new SelectOption('0','All Departments'),
new SelectOption('Engineering','Engineering'),
new SelectOption('Finance','Finance'),
new SelectOption('IT','IT'),
new SelectOption('Sales','Sales'),
new SelectOption('Support','Support')
};
// Location picklist for search page
private static final List<SelectOption>
VIEW_LOCATION = new SelectOption[] {
new SelectOption('0','All Location'),
new SelectOption('Bangalore','Bangalore'),
new SelectOption('Hyderabad','Hyderabad'),
new SelectOption('Delhi','Delhi'),
new SelectOption('Mumbai','Mumbai'),
new SelectOption('Chennai','Chennai')
};
public List<SelectOption> getDepartmentViewNames() {
return VIEW_DEPARTMENT;
}
public List<SelectOption> getLocationViewNames() {
return VIEW_LOCATION;
}
public void setViewDepartmentName(String viewDepartmentName) {
this.viewDepartmentName = viewDepartmentName;
}
public String getViewDepartmentName() {
return viewDepartmentName;
}
public void setViewLocationName(String viewLocationName) {
this.viewLocationName = viewLocationName;
}
public String getViewLocationName() {
return viewLocationName;
}
// Page onLoad action to auto-run the job postings query
public void initList() {
query();
}
public String getSearchPosition() {
return this.searchPosition;
}
public void setSearchPosition(String search) {
this.searchPosition = search;
}
public void populateQuery() {
likeStr = '%' + searchPosition + '%';
if (viewDepartmentName != '0') DepartmentName =
viewDepartmentName;
if (viewLocationName != '0') LocationName = viewLocationName;
query();
}
// Query to return the first 100 matching positions
public PageReference query() {
ccts = [SELECT id, Department__c, name,

Job_Description__c
FROM Position__c
WHERE Department__c like :DepartmentName


AND name like :likeStr
ORDER BY Name ASC
LIMIT 100];
return null;
}
public Position__c[] getPosition() {
return ccts;
}
}

 so in the visualforce code in this below line i have created a link to another visualforce page 

<apex:outputLink value="positiondetailpage?id={!Position__c.id}"
id="theLink">{!Position__c.name}</apex:outputLink>

 

 named position detailpage and now i enabled these 2 pages to sites now when i navigated to my site and clicked on the link its not redirected to the position detailpage instead its redirected to the  site is down for maintainence  ,please correct the code if any problem with the link  and if you have any further  questions

 

on my issue please let me know.So that i will clearly provide you with all required information

 

 

when logging in as a customer portal user to check what we have set-up with VF/Apex, I need to have the Apex queries execute based on the portal user, not as my profile.  But it seems that the userinfo.getuserid() function is still acting with my id.  Is there anyway to get around this?  To have it use the context of the user I'm logged in as in the portal instead of my id?
Hi i have a couple of pdfs to attach but i want to have one template and depending on a criteria can i have these attached?

Hi,

 

Can we display the result of a query as a single row?

 

E.g : select colorfield from obj where name ='abc'

 

where coclorfield is a formula field stores some color value based on a field in obj.

 

I did like this

 

<apex:repeat value="{!colors}" var="c"> <TR> <TD bgcolor="{!c.colorfield__c}" width="0" height="1">t</TD> </TR> </apex:repeat>

 but the results are comin in multi rows..

I want it in a single row

 

 

 

Hi,

 

I want all records pending for my approval for a particular object in a table,

 

how can I do  it in simple way? All standard objects supporting approval process have record id. But how can I get the object .

 

for e.g... Custom objects 'A 'and 'B ' have approval process..

 

in my  page I want only records from 'A' awaiting my approval..

 

Thanks in advance

 

Hi all,

 

Can I get all metadata using partner wsdl.. 

 

Right now I am able to retrieve object name and field name.

 

I want to retrieve all validation rules, workflow rules etc associated with some particular object or in common

 

If it is not possible using partner and we have to use retrieve function in metadata API, can anyone help on how to do it..

 

Sample code will be of grt help!!

 

Regards

 

Hi,

 

      when i ran the command to generate java api for my wsdl file, Getting errors:

 

Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
        at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45)
        at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
        at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
        at org.apache.axis.i18n.ProjectResourceBundle.<clinit>(ProjectResourceBundle.java:53)
        at org.apache.axis.i18n.MessagesConstants.<clinit>(MessagesConstants.java:32)
        at org.apache.axis.utils.Messages.<clinit>(Messages.java:36)
        at org.apache.axis.wsdl.WSDL2Java.<clinit>(WSDL2Java.java:112)

 

The command i used is: java org.apache.axis.wsdl.WSDL2Java Student.wsdl

 

The jar files i included are:

 

activation.jar

axis.jar

axis-ant.jar

axis-schema.jar

commons-discovery-0.2.jar

commons-logging-1.0.4 .jar

jaxrpc.jar

log4j-1.2.8.jar

log4j.properties

mail.jar

saaj.jar

sfdc.jar

wsdl4j-1.5.1.jar

 

 

Can any one please guide me how to generate the API succesfully

Thanks in adv,

-Vissu

 

 

 


 

 

 

I am getting this error while creating apex from WSDL.

 

Apex generation failed.

Error message:

Error: Unable to find schema for element; calculateFibonacciRangeReturn
 
where  'calculateFibonacciRangeReturn' is a method in the WSDL.
 
parsing is done with 0 errors,0 warnings, but next step generate apex is giving this error.
 
This WSDL is created from a java package using axis. Then I changed the type to document/literal.
 
 

Please help me on calling a JavaScript in VF page

 

I tried below options

 

 

 

<script type="text/javascript" src="{!URLFOR($Resource.myscript,'/test.js')}"/>

 


 

 

where 'test' is a javascript file saves in zip file named myscript in Static resources

 

 

<apex:includeScript value="{!$Resource.tstres}"/>



<script type="text/javascript" src="{!$Resource.tstres}"/>

 

where tstres is javascript file saved directly in static resources.

 

The script is 

 

<script type="text/javascript">
document.write("Hello World!")
</script>

 

 if I write the script directly in the page editor its printing Hello world.

But its not working with, includescript .

 

Its not showing any error.

 

Thanks in advance

 

 

Dear all.

 

I have to edit picklist values of standard fields like 'Rating', 'type' etc in standard object Account.

 

I am using the enterprise and metadat wsdls. But I didn't find any methods in these classes to edit these picklist values.

 

I think Update calls and account class in enterprise etc are for records not for fields.

 

any help would be great!!! This is something urgent..

 

Thanks in advance

 

I downloaded metadata from my dev instnce and developed code on that(java code to create objects), now i am trying to use another login, but i ma not able to use my metadata for that login..

 

 

any suggestion to overcome this, its very urgent...

 

i am getting the following error

 

 

 

INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session key: 511800D80000000LvBm!AQQAQB3QNt1eH_4MOjT9PEAvJzrqfBdQHHNeD1XCpTmp3NauNvj95SxX_COjVj570Fek0b4VbjCSRNTdTZibUpYDw0GnqPNE

Message Edited by visualforce_dev on 02-09-2009 10:47 PM