-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
4Questions
-
7Replies
How to acheive Recurring Task functionality On Overrired Task Vf Page
I have overrided the Task standard page with VF custom page and now what i want is to have "Create Recurrence Task" Functionality on Vf Page but i have no idea how to achieve this..
although i have created the Vf page that looks somewhat similar to original "Create RecurrenceTask" Section but what shuld i do in apex to create a series of tasks n shud i use javascript to calculate the frequency of tasks or any other way..
if anyone having ny solution plz hlp..
- Dafuel
- September 20, 2013
- Like
- 0
- Continue reading or reply
Error while importing wsdl
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.strikeiron.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.strikeiron.com"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://www.strikeiron.com"> <s:element name="ZIPCodeLookup"> <s:complextype> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="ZIPOrPostalCode" type="s:string" /> </s:sequence> </s:complextype> </s:element> <s:element name="ZIPCodeLookupResponse"> <s:complextype> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="ZIPCodeLookupResult" type="tns:SIWsOutputOfZIPCodeResult" /> </s:sequence> </s:complextype> </s:element> <s:element name="SIWsOutputOfZIPCodeResult"> <s:complextype> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="ServiceStatus" type="tns:SIWsStatus" /> <s:element minOccurs="0" maxOccurs="1" name="ServiceResult" type="tns:ZIPCodeResult" /> </s:sequence> </s:complextype> </s:element> <s:element name="SIWsStatus"> <s:complextype> <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="StatusNbr" type="s:int" /> <s:element minOccurs="0" maxOccurs="1" name="StatusDescription" type="s:string" /> </s:sequence> </s:complextype> </s:element> <s:element name="ZIPCodeResult"> <s:complextype> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="OriginalZIPOrPostalCode" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="FormattedZIPOrPostalCode" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="StateOrProvinceCode" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="StateOrProvinceName" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="CountryCode" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="CountryName" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="CountyName" type="s:string" /> </s:sequence> </s:complextype> </s:element> </s:schema> <xs:schema xmlns:tns1="http://ws.strikeiron.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://ws.strikeiron.com"> <xs:element name="LicenseInfo" type="tns1:LicenseInfo"> <xs:complextype name="LicenseInfo"> <xs:sequence> <xs:element minOccurs="0" name="UnregisteredUser" type="tns1:UnregisteredUser" /> <xs:element minOccurs="0" name="RegisteredUser" type="tns1:RegisteredUser" /> </xs:sequence> </xs:complextype> </xs:element> <xs:element name="UnregisteredUser"> <xs:complextype name="UnregisteredUser"> <xs:sequence> <xs:element minOccurs="0" name="EmailAddress" type="xs:string" /> </xs:sequence> </xs:complextype> </xs:element> <xs:element name="RegisteredUser"> <xs:complextype name="RegisteredUser"> <xs:sequence> <xs:element minOccurs="0" name="UserID" type="xs:string" /> <xs:element minOccurs="0" name="Password" type="xs:string" /> </xs:sequence> </xs:complextype> </xs:element> <xs:element name="SubscriptionInfo"> <xs:complextype name="SubscriptionInfo"> <xs:sequence> <xs:element name="LicenseStatusCode" type="xs:int" /> <xs:element minOccurs="0" name="LicenseStatus" type="xs:string" /> <xs:element name="LicenseActionCode" type="xs:int" /> <xs:element minOccurs="0" name="LicenseAction" type="xs:string" /> <xs:element name="RemainingHits" type="xs:int" /> <xs:element name="Amount" type="xs:decimal" /> </xs:sequence> </xs:complextype> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="ZIPCodeLookupSoapIn"> <wsdl:part name="parameters" element="tns:ZIPCodeLookup" /> </wsdl:message> <wsdl:message name="ZIPCodeLookupSoapOut"> <wsdl:part name="parameters" element="tns:ZIPCodeLookupResponse" /> </wsdl:message> <wsdl:message name="LicenseInfoMessage"> <wsdl:part xmlns:q3="http://ws.strikeiron.com" name="LicenseInfo" element="q3:LicenseInfo" /> </wsdl:message> <wsdl:message name="SubscriptionInfoMessage"> <wsdl:part xmlns:q4="http://ws.strikeiron.com" name="SubscriptionInfo" element="q4:SubscriptionInfo" /> </wsdl:message> <wsdl:portType name="AdvancedZipInfoSoap"> <wsdl:operation name="ZIPCodeLookup"> <wsdl:input message="tns:ZIPCodeLookupSoapIn" /> <wsdl:output message="tns:ZIPCodeLookupSoapOut" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="AdvancedZipInfoSoap" type="tns:AdvancedZipInfoSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="ZIPCodeLookup"> <soap:operation soapAction="http://www.strikeiron.com/ZIPCodeLookup" style="document" /> <wsdl:input> <soap:body use="literal" /> <soap:header message="tns:LicenseInfoMessage" part="LicenseInfo" use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> <soap:header message="tns:SubscriptionInfoMessage" part="SubscriptionInfo" use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="AdvancedZipInfo"> <wsdl:port name="AdvancedZipInfoSoap" binding="tns:AdvancedZipInfoSoap"> <soap:address location="http://ws.strikeiron.com/StrikeIron/ZIPPostalCodeInfo5/AdvancedZipInfo" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
I have this wsdl file n i want to generate apex code from wsdl...now wenever i try to import this file ....salesforce gives me an error..saying
Error: Failed to parse wsdl due to an internal error: 881300400-25869 (-43640737)...
Anyone plz guide me what i need to do to make it works fine...
- Dafuel
- September 02, 2013
- Like
- 0
- Continue reading or reply
Rerender Pageblocksection through visualforce checkbox via ajax
I am having a Checkbox on my vf page and what i want is when i click on my chekbox then only my certain pageblocksection/outpanel should be visible.
i am using following code on vf:
<apex:pageBlockSection title="Select Countries"> <apex:inputCheckbox value="{!reUSA}" label="USA"><apex:actionSupport event="onchange" reRender="USASection" id="Us"/></apex:inputCheckbox> </apex:pageBlockSection> <apex:outputPanel id="USASection" rendered="{!reUSA}"> <apex:inputField value="{!abc__c.myfield__c}" /></apex:outputPanel>
Apex code:
public Boolean reUSA{get; set;}
Now i have used various syntax for rendered attribute like: rendered="{!IF(reUSA==true,true,false)}"
OR this rendered={!reUSA=true} but the outpanel is not visible when i click on checkbox.
Onething i am confirmed about is when i click on checkbox ,its value is set to true...and i have even tried to display that value and i get true and onchanging the checkbox ,it shows me false and so on true..false.on further clicking..... but the thing i didn't understand is if its value sets to true/false..then y is it not able to substitute its "true/false" value in rendered attribute... in place of {!reUSA}.
Any suggestion wud be appreciated.. :)
- Dafuel
- August 19, 2013
- Like
- 0
- Continue reading or reply
Is it possible to create a custom Lookup field on Activity object
i want to create a new lookup field on activity object that points to my custom object
but i m not getting lookup entry when choosing the field type..
although i know we are having limits of 5 on lookup filters yet i wanna achieve this
so if there is any other way around...le me knw
- Dafuel
- August 19, 2013
- Like
- 0
- Continue reading or reply
How to acheive Recurring Task functionality On Overrired Task Vf Page
I have overrided the Task standard page with VF custom page and now what i want is to have "Create Recurrence Task" Functionality on Vf Page but i have no idea how to achieve this..
although i have created the Vf page that looks somewhat similar to original "Create RecurrenceTask" Section but what shuld i do in apex to create a series of tasks n shud i use javascript to calculate the frequency of tasks or any other way..
if anyone having ny solution plz hlp..
- Dafuel
- September 20, 2013
- Like
- 0
- Continue reading or reply
Error while importing wsdl
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.strikeiron.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.strikeiron.com"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://www.strikeiron.com"> <s:element name="ZIPCodeLookup"> <s:complextype> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="ZIPOrPostalCode" type="s:string" /> </s:sequence> </s:complextype> </s:element> <s:element name="ZIPCodeLookupResponse"> <s:complextype> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="ZIPCodeLookupResult" type="tns:SIWsOutputOfZIPCodeResult" /> </s:sequence> </s:complextype> </s:element> <s:element name="SIWsOutputOfZIPCodeResult"> <s:complextype> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="ServiceStatus" type="tns:SIWsStatus" /> <s:element minOccurs="0" maxOccurs="1" name="ServiceResult" type="tns:ZIPCodeResult" /> </s:sequence> </s:complextype> </s:element> <s:element name="SIWsStatus"> <s:complextype> <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="StatusNbr" type="s:int" /> <s:element minOccurs="0" maxOccurs="1" name="StatusDescription" type="s:string" /> </s:sequence> </s:complextype> </s:element> <s:element name="ZIPCodeResult"> <s:complextype> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="OriginalZIPOrPostalCode" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="FormattedZIPOrPostalCode" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="StateOrProvinceCode" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="StateOrProvinceName" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="CountryCode" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="CountryName" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="CountyName" type="s:string" /> </s:sequence> </s:complextype> </s:element> </s:schema> <xs:schema xmlns:tns1="http://ws.strikeiron.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://ws.strikeiron.com"> <xs:element name="LicenseInfo" type="tns1:LicenseInfo"> <xs:complextype name="LicenseInfo"> <xs:sequence> <xs:element minOccurs="0" name="UnregisteredUser" type="tns1:UnregisteredUser" /> <xs:element minOccurs="0" name="RegisteredUser" type="tns1:RegisteredUser" /> </xs:sequence> </xs:complextype> </xs:element> <xs:element name="UnregisteredUser"> <xs:complextype name="UnregisteredUser"> <xs:sequence> <xs:element minOccurs="0" name="EmailAddress" type="xs:string" /> </xs:sequence> </xs:complextype> </xs:element> <xs:element name="RegisteredUser"> <xs:complextype name="RegisteredUser"> <xs:sequence> <xs:element minOccurs="0" name="UserID" type="xs:string" /> <xs:element minOccurs="0" name="Password" type="xs:string" /> </xs:sequence> </xs:complextype> </xs:element> <xs:element name="SubscriptionInfo"> <xs:complextype name="SubscriptionInfo"> <xs:sequence> <xs:element name="LicenseStatusCode" type="xs:int" /> <xs:element minOccurs="0" name="LicenseStatus" type="xs:string" /> <xs:element name="LicenseActionCode" type="xs:int" /> <xs:element minOccurs="0" name="LicenseAction" type="xs:string" /> <xs:element name="RemainingHits" type="xs:int" /> <xs:element name="Amount" type="xs:decimal" /> </xs:sequence> </xs:complextype> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="ZIPCodeLookupSoapIn"> <wsdl:part name="parameters" element="tns:ZIPCodeLookup" /> </wsdl:message> <wsdl:message name="ZIPCodeLookupSoapOut"> <wsdl:part name="parameters" element="tns:ZIPCodeLookupResponse" /> </wsdl:message> <wsdl:message name="LicenseInfoMessage"> <wsdl:part xmlns:q3="http://ws.strikeiron.com" name="LicenseInfo" element="q3:LicenseInfo" /> </wsdl:message> <wsdl:message name="SubscriptionInfoMessage"> <wsdl:part xmlns:q4="http://ws.strikeiron.com" name="SubscriptionInfo" element="q4:SubscriptionInfo" /> </wsdl:message> <wsdl:portType name="AdvancedZipInfoSoap"> <wsdl:operation name="ZIPCodeLookup"> <wsdl:input message="tns:ZIPCodeLookupSoapIn" /> <wsdl:output message="tns:ZIPCodeLookupSoapOut" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="AdvancedZipInfoSoap" type="tns:AdvancedZipInfoSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="ZIPCodeLookup"> <soap:operation soapAction="http://www.strikeiron.com/ZIPCodeLookup" style="document" /> <wsdl:input> <soap:body use="literal" /> <soap:header message="tns:LicenseInfoMessage" part="LicenseInfo" use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> <soap:header message="tns:SubscriptionInfoMessage" part="SubscriptionInfo" use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="AdvancedZipInfo"> <wsdl:port name="AdvancedZipInfoSoap" binding="tns:AdvancedZipInfoSoap"> <soap:address location="http://ws.strikeiron.com/StrikeIron/ZIPPostalCodeInfo5/AdvancedZipInfo" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
I have this wsdl file n i want to generate apex code from wsdl...now wenever i try to import this file ....salesforce gives me an error..saying
Error: Failed to parse wsdl due to an internal error: 881300400-25869 (-43640737)...
Anyone plz guide me what i need to do to make it works fine...
- Dafuel
- September 02, 2013
- Like
- 0
- Continue reading or reply
Rerender Pageblocksection through visualforce checkbox via ajax
I am having a Checkbox on my vf page and what i want is when i click on my chekbox then only my certain pageblocksection/outpanel should be visible.
i am using following code on vf:
<apex:pageBlockSection title="Select Countries"> <apex:inputCheckbox value="{!reUSA}" label="USA"><apex:actionSupport event="onchange" reRender="USASection" id="Us"/></apex:inputCheckbox> </apex:pageBlockSection> <apex:outputPanel id="USASection" rendered="{!reUSA}"> <apex:inputField value="{!abc__c.myfield__c}" /></apex:outputPanel>
Apex code:
public Boolean reUSA{get; set;}
Now i have used various syntax for rendered attribute like: rendered="{!IF(reUSA==true,true,false)}"
OR this rendered={!reUSA=true} but the outpanel is not visible when i click on checkbox.
Onething i am confirmed about is when i click on checkbox ,its value is set to true...and i have even tried to display that value and i get true and onchanging the checkbox ,it shows me false and so on true..false.on further clicking..... but the thing i didn't understand is if its value sets to true/false..then y is it not able to substitute its "true/false" value in rendered attribute... in place of {!reUSA}.
Any suggestion wud be appreciated.. :)
- Dafuel
- August 19, 2013
- Like
- 0
- Continue reading or reply
Is it possible to create a custom Lookup field on Activity object
i want to create a new lookup field on activity object that points to my custom object
but i m not getting lookup entry when choosing the field type..
although i know we are having limits of 5 on lookup filters yet i wanna achieve this
so if there is any other way around...le me knw
- Dafuel
- August 19, 2013
- Like
- 0
- Continue reading or reply
sforce.connection.login giving errors in Sites
Hi I am using sforce.connection.login call from javascript in my VF page accessible from a Site that what is does is to log a user in Salesforce (the user exists in Salesforce and it is active), but I am getting the following error:
{faultcode:'UNKNOWN_EXCEPTION', faultstring:'UNKNOWN_EXCEPTION: Site under construction', }
here is my VF page:
<apex:page showheader="false" standardStylesheets="false"> <apex:includeScript value="/soap/ajax/17.0/connection.js"/> <apex:includeScript value="/soap/ajax/17.0/apex.js"/> <script type="text/javascript"> function approveCrf() { try{ sforce.connection.sessionId = '{!$Api.Session_ID}'; var username = document.getElementById('un'); var password = document.getElementById('pw'); var loginResult = sforce.connection.login(username.value, password.value); }catch(error) { if (error.faultcode.indexOf("INVALID_LOGIN") != -1) { alert("check your username and passwd, invalid login"); } else { alert(error); } } } </script> <form id="loginForm"> UserName: <input type="text" id="un" size="15" value=""/><br /> Password: <input type="password" id="pw" size="15" value=""/><br /> <p><input type="button" value="Login and Approve" onclick="approveCrf();"/></p> <apex:message styleClass="locationError" /> </form> </apex:page>
Any ideas?
Thanks
- lopezc
- December 17, 2009
- Like
- 0
- Continue reading or reply