• simha
  • NEWBIE
  • 50 Points
  • Member since 2009

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

Hi,

  Im using  webservice to connect to .NET then im passing an array of records to the .net for that im planing to pass through the 2-dimensional array string, but im getting errors while declaring the 2-d array strings.

 

IS there any possibility to do this please guide me,

 

Thank you,

 Saran

 

Hi,

 

        Im developing a visualforce page where  i have zipped the images and scripts in "Application Form.Zip" file and uploaded it in static resources with "Application" as its name .

 

Then  in my visual force page  i tried to call the java script and image using {!URLFOR($Resource.---,'......')}

but i cant able to access either JAva script or the images From the Static Resource

 

here is the part of the Code(not able to access)

<apex:image value="{!URLFOR($Resource.Application,'Application Form/Images/Application/Activites Page.jpg')}"/>

 

<apex:includeScript value="{!URLFOR($Resource.Application,'/Application Form/scripts/PopBox.js')}"/>   

 

 If iupload the each file separetly instead of doing Zip i can able to acess the files like (i can access this)

 

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

<apex:image value="{!$Resource.crsedtls}" />

 

 

IF any body knows how to do it can u please help me....

 

 

thanks.

 

Regards,

simha.

 Could somebody please explain to my why this fails?

 

public static ID[] GetAccountContacts(String AccountId)

 {

ID[] iddata = [select id from contact where AccountId];

 

return iddata;

 

}

Which method is the fastest to retrieve an account with that account's ID, using query, search, or retrieve?  What is the difference between the three options?

Hi

          Im practicing on the Customer portal, Using developer guide 14 chapter i able to create a login page for customer portal and users can able to sign up every thing is going on correctly , but when a new user Register for a customer account he is not able to reciving the email about his registration has successfully completed, but if the forgot password is used they are able to recive the mail alert. If anyonehaveidea about this please help me

While I still haven't solved the problem of cloning a none-existing "Customer Portal User" profile (re: http://community.salesforce.com/sforce/board/message?board.id=general_development&thread.id=31323 ), I managed to get past it by cloning the "Customer Portal Manager" instead (since this is presumably a manager, I'm sure doing this in a professional environment is probably a formula for trouble, but that's not what this message is about).

I set up the custom portal to accept registrations, but something seems to be wrong.

I go to my portal and try to create a new user. When I submit the details, I get the following error:


Error:
Your request cannot be processed at this time. The site administrator has been alerted.

The e-mail I get states:

The default new user profile is not assigned to the portal. Registration from chapter_14 is not able to create portal users.


How do I assign the default new user profile to the portal? (Shouldn't selecting it as the default be enough?)

Hi To all,

How to call External(.net) webservice from Salesforce???

& how to use that webservices in APEX classes & triggers????

Thanks,

Krishna.

Hello Friends ,

 

               Im Creating an application where  ihave a tabpannel in which having 3 ot 4 tabs where my logic is if i enter the details in the tab and click next button next tab should be displayed. and remaining all the other tabs should become disabled. andtheremaining tabs is also follows the same proceedure where  i should navigate through the tabs using next and previous buttons only. If  any body knows how to do it can pls explain me . i went through almost all the codes that are in discussion board but i dint get it. 

 

-----------------------------------------------------------

THIS IS MY visuial force code

 

<apex:page standardController="Application__c" showHeader="false" sidebar="false" extensions="appex2">
   <script>
        .activeTab
        {
            background-color: #861515;
            color: white;
            background-image: none;
        }
        .inactiveTab
        {
            background-color: #E8E8E8;
            color: black;
            background-image: none;
        }

/*        function nexttab(tabid)
        {
           document.getElementById(maintab).selectedTab='Contact_details';
        }*/
      
    </script>

    <apex:pageblock title="EduForce" mode="edit">

    <!--Creating Tabs For Personal Details-->
        <apex:tabPanel switchType="client" id="maintab" tabClass="activeTab" inactiveTabClass="inactiveTab" value="{!TabInFocus}" >
            <apex:tab id="pdtab" label="Personal Details" rendered="true" name="Personal_Details">
            <apex:pageBlockSection title="Personal Details">
    <apex:form >
           
                </p><apex:outputLabel value="First Name"/></p>
                <apex:inputField value="{!Application__c.First_Name__c}"/>
               
                <p><apex:outputLabel value="Middle Name"/></p>
                <apex:inputField value="{!Application__c.Middle_Name__c}"/>
               
                <p><apex:outputLabel value="Last Name"/></p>
                <apex:inputField value="{!Application__c.Last_Name__c}"/>
               
                <p><apex:outputLabel value="Age"/></p>
                <apex:inputField value="{!Application__c.Age__c}"/>
               
                <p><apex:outputLabel value="Gender"/></p>
                <apex:inputField value="{!Application__c.Gender__c}" required="true"/>
               
                <p><apex:outputLabel value="Nationality"/></p>
                <apex:inputField value="{!Application__c.Country_Of_Citizenship__c}"/>
               
                <Apex:commandButton value="NEXT"  action="{!nexttab}"  />
                <apex:commandButton value="Cancel"  action="{!nothing}" />

/* HERE I DINT UNDERSTAND Whether Javascipt "onclick=nexttab(contact_Details) "to use or apex code  and  what to do next*/

           </apex:form>
           </apex:pageBlockSection>
            </apex:tab>
           
            <!--Creating a tab for Contact Details-->
            <apex:tab id="cdtab" label="Contact Details" name="Contact_Details">
            <apex:pageBlockSection title="Mailing Address">
            <apex:form >          
                <apex:outputLabel value="Address Line 1"/>
                <apex:inputfield value="{!Application__c.Address_Line_1__c}"/></br>              
                <apex:outputLabel value="Address Line 2"/>
                <apex:inputfield value="{!Application__c.Address_Line_2__c}"/></br>              
                <apex:outputLabel value="Address Line 3"/>
                <apex:inputfield value="{!Application__c.Address_Line_3__c}"/></br>               
                <apex:outputLabel value="City / Town"/>
                <apex:inputfield value="{!Application__c.City_Town__c}"/></br>              
                <apex:outputLabel value="State / Province"/>
                <apex:inputfield value="{!Application__c.State_Province__c}"/></br>               
                <apex:outputLabel value="Country"/>
                <apex:inputfield value="{!Application__c.Country__c}"/></br>              
                <apex:outputLabel value="Postal Code / Zip Code"/>
                <apex:inputfield value="{!Application__c.Zip_Code__c}"/></br>           
            </apex:form>
            </apex:pageBlockSection>           
            <apex:pageBlockSection title="Email Contact">
            <apex:form >          
                <apex:outputLabel value="Email Address"/>
                <apex:inputfield value="{!Application__c.E_Mail_ID__c}"/></br>           
            </apex:form>
            </apex:pageBlockSection>
            </apex:tab>

.......

.

.

 

.

.

</apex:page>

 

 

--------------------------------------------------------

my Apex code

 

String TabInFocus = System.currentPageReference().getParameters().get('tab');
    public void nexttab()
    {
        string x=System.currentPageReference().getParameters().get('Contact_Details');
        TabinFocus=x;
        //document.getElementById('{!$Component.maintab}').selectedTab='Contat_details';

    }
    public String getTabInFocus()
    {
            // System.debug(' *****Current Selected tab is :' + TabInFocus);
       return TabInFocus;
    }     
    public void setTabInFocus( String s )
    {
        this.TabInfocus = s;
    }

 

----------------------------------------------

IF ANY BODY KNOW PLEASE HELP ME 

Hello everybody,

 

                Im Creating an application form where i have Application__c object in force.com and i break that into several pages in visualforce like  courses offered in one page personal details in one page, Educational details in one page and my targt is when i select a course  and click the next button i want to get the Personal Details page  but im unable to getting it i tried alot but its displaying the current page it self if any body aware of this can u pls help me 

 

Courses offerd page :

 

 

(courses url              :https://..... /apex/appcrses)

( personaldetails url :https://..... /apex/sample1)

 

<apex:page standardController="Application__c" showHeader="false" sidebar="false" tabStyle="Application__c" extensions="appext1" >
    <style>
        .activeTab {background-color: #236FBD; color:white; background-image:none}
        .inactiveTab { background-color: lightgrey; color:black; background-image:none}
    </style>
      <u><font style="Verdana" size="6" color="green"> <b>COURSE DETAILS</b> </font></u><br></br><br></br>
    <apex:tabPanel switchType="client" selectedTab="Streams" id="theTabPanel">
        <apex:tab label="B.Tech" name="B.Tech" id="tabdetails" >
            <apex:form style="align=Center">
                <apex:selectRadio value="{!btech}" layout="pageDirection">
                <apex:selectOptions value="{!items}" rendered="true"/>
                </apex:selectRadio>
            </apex:form>
        </apex:tab>
        <apex:tab label="M.Tech" name="M.Tech" id="tabContact">
            <apex:form style="align=Center">
                <apex:selectRadio value="{!mtech}" layout="pageDirection">
                <apex:selectOptions value="{!items}" rendered="true"/>
                </apex:selectRadio>
            </apex:form>
        </apex:tab>
        <apex:tab label="Pharmacy" name="Pharmacy" id="tabOpp">
            <apex:form style="align=Center">
                <apex:selectRadio value="{!pharma}" layout="pageDirection">
                <apex:selectOptions value="{!pitems}" rendered="true"/>
                </apex:selectRadio>
            </apex:form>   
        </apex:tab>
        <apex:tab label="Arts" name="Arts" id="tabOpenAct">
            <apex:form style="align=Center">
                <apex:selectRadio value="{!arts}" layout="pageDirection">
                <apex:selectOptions value="{!artitems}" rendered="true"/>
                </apex:selectRadio>
            </apex:form>
        </apex:tab>
        <apex:tab label="Other" name="others" id="tabNoteAtt">
            <apex:form style="align=Center">
                <apex:selectRadio value="{!other}" layout="pageDirection">
                    <apex:selectOptions value="{!otheritems}" rendered="true"/>
                </apex:selectRadio>              
            </apex:form>
        </apex:tab><apex:form >
        <apex:commandButton value="SAVE and NEXT " action="{!next}" /></apex:form>       
    </apex:tabPanel>
</apex:page>

 

 

 

class

 

public class appext1
{
    Application__c application;
//   ApexPages.StandardController Controller = new ApexPages.StandardController(application);          
    public appext1(ApexPages.StandardController controller)
    {
        this.application=(Application__c)controller.getRecord();       
    }
    string courses;
    public string lastcourses;
    public string laststreams;

    ......

    .......

    .........

    public pageReference next()
    {    
        lastcourses=courses;     
       /* String newPageUrl = '/apex/sample1';

            PageReference newPage =new PageReference(newPageUrl);

       */
        PageReference newPage = page.sample1;
        newPage.setRedirect(true);
        return newPage;   
    }

}

 

 

 Hello EveryBody,

                 

                      Im Creating an Apex page where  i have selectList whose options want to be  taken from a query

In this im Getting Error as

 

System.NullPointerException: Argument 1 cannot be null 

 

 

and my APEX CODE IS 

 

public class posi
{
    LIST<selectoption> statusoptns =new list<selectoption>();
    string valuename;
    public void setvaluename(string valuename)
    {
        this.valuename='manager';
    }
    public string getvaluename()
    {
        return valuename;
    }
    string s='SELECT A VALUE';
    public void setvalus()
    {
        for(Position__c ptr: [SELECT Position__c.Status__c from Position__c])
        {

// This if statement is just to check where error is getting but i cant done it 
            if(ptr.Status__c==' ')
            {
                 s='abc';
            }
            else
            {           


             //If i remove the add options in this else area im getting output only 'SELECT A VALUE'

                     statusoptns.add(new selectoption(ptr.Status__C,ptr.Status__c));
            }
        }
    }
    public list<selectoption> getvalus()
    {       
        statusoptns.add(new selectoption(s,s));
        setvalus();
        return statusoptns;
    }
}

 

 

and my Visual force page code is

 

 

<apex:page controller="posi">
<apex:form >
<apex:pageBlock ><apex:pageBlockSection >
    <apex:outputLabel value="VALUES" for="sel">
    <apex:selectList value="{!valuename}" size="1" id="sel">
        <Apex:selectOptions value="{!valus}">       
        </Apex:selectOptions>
    </apex:selectList></apex:outputLabel>
</apex:pageBlockSection></apex:pageBlock>
</apex:form>   
</apex:page>

 

 

If any Body knows how to solve it help me as soon as possible

Message Edited by simha on 05-08-2009 05:23 AM