• Poornima Sampathbabu
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
I am using standard force:createRecord to create Account. but I dont get create window when I clcik on a button.
I am hosting this lightning app from a VF page (as I want to overide standard button). I have written handler for createRecord event.

But when I host this lightning component from left navigation panel then it works. Please advise what am I missing?.
VF Page :

<apex:page standardController="Account" standardStylesheets="false" showHeader="false" sidebar="false">
    
    <apex:includeLightning />
<apex:includeScript value="/lightning/lightning.out.js" /> 
    <div id="lightning" />

    <script>
        $Lightning.use("c:TestClientCreationApp", function() {
          $Lightning.createComponent("c:TestClientCreation",
          { },
          "lightning",
          function(cmp) {
            // do some stuff
          });
        });
    </script>
</apex:page>

Lightning App : c:TestClientCreationApp

<aura:application access="Global" extends="ltng:outApp" implements="force:appHostable,flexipage:availableForAllPageTypes">
    
    <ltng:require styles="/resource/SLDS201/assets/styles/salesforce-lightning-design-system-ltng.css" />
     <ltng:require styles="/resource/SLDS201/assets/styles/salesforce-lightning-design-system-vf.min.css" />
   
    <aura:dependency resource="c:TestClientCreation"/>
 </aura:application>

Lightning Component : TestClientCreation

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId,force:hasSObjectName" access="global" controller="ThemeCLass">
    
     <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<aura:dependency resource="markup://force:createRecord" type="EVENT" />
<aura:handler event="force:createRecord" action="{!c.createClient}" />

    
     <ui:button class="slds-button slds-button--brand" aura:id="btnCreateClient" press="{!c.showCreateClientModal}" label="">Create New Client </ui:button> 
</aura:component>

TestClientCreation Js Controller :

showCreateClientModal : function (component, event, helper) {
        
        var createRecordEvent = $A.get("e.force:createRecord");
         createRecordEvent.setParams({
            "entityApiName": "Account"
        });
        createRecordEvent.fire();
        
    },
    
    createClient : function (component, event, helper) {
        
    console.log('Yay');
        
    }

 

I am getting this error while creating apex from WSDL.

 

Unable to find schema for element; {http://www.w3.org/2001/XMLSchema}string

 

this is my wsdlfrom axis2 web service), someone help me?

 

<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.example.org/isms/" targetNamespace="http://www.example.org/isms/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema targetNamespace="http://www.example.org/isms/">
<s:element name="isms">
<s:complexType>
<s:sequence>
<s:element name="in" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ismsResponse" type="s:string" />
<s:element name="ismsRequest" type="s:string" />
</s:schema>
</wsdl:types>
<wsdl:message name="ismsRequest">
<wsdl:part name="parameters" element="tns:ismsRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="ismsResponse">
<wsdl:part name="parameters" element="tns:ismsResponse">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="isms">
<wsdl:operation name="isms">
<wsdl:input message="tns:ismsRequest">
</wsdl:input>
<wsdl:output message="tns:ismsResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ismsSOAP" type="tns:isms">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="isms">
<soap:operation soapAction="http://www.example.org/isms/isms"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="isms">
<wsdl:port name="ismsSOAP" binding="tns:ismsSOAP">
<soap:address location="http://172.168.2.235:8080/axis2/services/isms/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

 

Message Edited by china.leaf on 04-23-2009 01:48 AM
Message Edited by china.leaf on 04-23-2009 02:15 AM
Message Edited by china.leaf on 04-23-2009 02:16 AM