• Technossus
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 6
    Replies

Can any one please point out what I am doing wrong , I need the id of Case_Accession__c  on click of edit in data table in text box but not getting

 

public class Worklist
{
   

    public List<Case_Accession__c> objWorklist {get;set;}
     public String var {get;set;}


    public Worklist()
    {
        objWorkList = new List<Case_Accession__c>();
        objWorkList = [Select ID,PatientName__c,PhysicianName__c  from Case_Accession__c limit 1];
    }

 

}
 }

 

 

VF Page::

 

<apex:page controller="Worklist">
     <apex:Form >
     <apex:pageBlock >
             <apex:pageblockSection >
                 <apex:dataTable id="dtWorklist" value="{!objWorklist }" var="wrklst"  cellspacing="16%">
                  <apex:column headerValue="Patient Name" >
                   <apex:outputField value="{!wrklst.PatientName__c}" />
                   </apex:column>
                   <apex:column headerValue="Physician Name" >
                   <apex:outputField value="{!wrklst.PhysicianName__c}" />
                   </apex:column>
                
                   <apex:column headerValue="Edit Case">
                   
                   <apex:commandLink value="Edit" /> 
                   <apex:param name="var" assignTo="{!var}" value="{!wrklst.id}" />  
                    </apex:column>
                  
                 </apex:dataTable>
                 <apex:inputText value="{!var}"/>
                </apex:pageblockSection>
     </apex:pageBlock>
     </apex:Form>
</apex:page>
   

Hi all,

 

I have one master- Child relation between two objects Case_Accession (Master) , Apcase(Child). Now I want to access the different fileds in one object only of Case_Accession so that I can show it on VF page in the form of Data Table. But I am getting  error "Error: Could not resolve field 'CaseNo__c' from <apex:outputField> value binding '{!wrklst.CaseNo__c}' in page WorkList". 

 

My Code is this

 

public class Worklist
{
    public List<Case_Accession__c> objWorklist {get;set;}
   
    public Worklist()
    {
        objWorkList = new List<Case_Accession__c>();
        objWorkList = [Select PatientName__c,PhysicianName__c ,(select CaseNo__c from ApCase__r) from Case_Accession__c];
    }

 

Visual Foce

 

<apex:page controller="Worklist">
     <apex:Form >
     <apex:pageBlock >
             <apex:pageblockSection >
                 <apex:dataTable id="dtWorklist" value="{!objWorklist }" var="wrklst"  cellspacing="16%">
                  <apex:column headerValue="Patient Name" >
                   <apex:outputField value="{!wrklst.PatientName__c}" />
                   </apex:column>
                   <apex:column headerValue="Physician Name" >
                   <apex:outputField value="{!wrklst.PhysicianName__c}" />
                   </apex:column>
                 <apex:column headerValue="Physician Name" >
                   <apex:outputField value="{!wrklst.CaseNo__c}" />
                   </apex:column>
                   <apex:column headerValue="Edit Case">
                   <apex:commandLink title="Edit" value="Edit"/>
                   </apex:column>
                 </apex:dataTable>
         </apex:pageblockSection>
     </apex:pageBlock>
     </apex:Form>
</apex:page>

 

Please help, Thanks in advance
   
}

Hi all,

May be I am asking a silly question still I am vey eager to know this. We can create multiple Application in sales Force by using API, VF, or by Apex. But This thing every time bother me why we are using the Force.com platform where we have alsready so good technologies like Java, C#, Oracle and SQl. So what is advantage of this SF.

I know that this is based on Cloud Model so noe need to maintain the DB servers and all there, but this is not the satisfactory thing to use this. Please tell me something usefull.

Regards
Raman

Hi All,

I am planning to publish one APP on Appexhange which is free, I have gone through the ISV guide and below article

http://wiki.developerforce.com/page/Publish_Your_First_App_with_AppExchange_Checkout

But none of article explaining how to install LMA on my production environment because As mentioned in ISV that LMA is required to publish the App.

Please help me in this

Regards
Raman

Hi,

 

I created the Custom object named by Patient, i want custom page for save the relevant data in this object ...so i create the page controller class as given below

 

public with sharing class ExtentionController
{
Patient__c objPatient = new Patient__c();
Physician__c objPhysician = new Physician__c();
Case_Accession__c objAccession = new Case_Accession__c();

public void save()
{
try
{
Insert objPatient;
Insert objPhysician;
objAccession.Patient__c = objPatient.id;
objAccession.Physician__c = objPhysician.id;
Insert objAccession;
}
catch(Exception ex){ }
}
}

 

VF page

 

<apex:page controller="ExtentionController" >
<apex:form >
<apex:pageblock title="Hello {!$User.FirstName}!" >
<h1>Congratulations</h1>
This is your Accession Page !!<p/>
<apex:pageBlockSection >
<apex:inputText value = "{!objPatient.FirstName__c}"/>
<apex:inputtext value = "{!objPhysician.FirstName__c }"/>
</apex:pageBlockSection>
<apex:pageBlockButtons >
<apex:commandButton action="save()" value="Go"/>

<apex:commandButton action="{!cancel}" value="Cancel">
</apex:commandButton>
</apex:pageBlockButtons>
</apex:pageblock>
</apex:form>
</apex:page>

 

 

Hi guys,

 

I have one Custom object  XYZ, and I want when I will insert any record into that object  after save the records, One VF page should be open and in that VF page all the records should be displayed as PDF.

 

regrads

Raman

Hi all,

 

I have deployed  my App included all objects and tabs from SandBox to production. But problem is I am not able to see the tabs under particular App.

I chekecd with the Create -> tabs option , all tabs are available there, But not visible in Accessioning app. Is ther anything wrong in deploymenyt, I cheked the result fo deployment also there is no error, Please help ASAp

 

Regards

Raman

Hi,

 

I just uploaded a change set from sandbox to production, and I did not receive  the email stated that the upload was successful.

and  I login to the production, I don't see any change set awaiting for deployment. 

Did anybody face the same issue before?

Any workaround to make to change set appear?

 

Regards

Raman

Hi All,

 

Can anyone please tell me How to import and Export Bulk records from Salesforce to our Db and viceversa. I have records more than 20k, I used DBAmp trila version  but its showing, time out error.

 

Please help ASAP, Thanks in Advance

 

Regards

Raman

Hi all,

I want to import th external WSDL to SalesForce This is the wsdl

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="FaxService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://www.deferopro.com/FaxService/FaxService.svc?xsd=xsd0" namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="http://www.deferopro.com/FaxService/FaxService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
<xsd:import schemaLocation="http://www.deferopro.com/FaxService/FaxService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/Technofax.WCF"/>
</xsd:schema>

</wsdl:types>
<wsdl:message name="IFaxService_SendFax_InputMessage">
<wsdl:part name="parameters" element="tns:SendFax"/>
</wsdl:message>
<wsdl:message name="IFaxService_SendFax_OutputMessage">
<wsdl:part name="parameters" element="tns:SendFaxResponse"/>
</wsdl:message>
<wsdl:message name="IFaxService_GetFaxStatus_InputMessage">
<wsdl:part name="parameters" element="tns:GetFaxStatus"/>
</wsdl:message>
<wsdl:message name="IFaxService_GetFaxStatus_OutputMessage">
<wsdl:part name="parameters" element="tns:GetFaxStatusResponse"/>
</wsdl:message>
<wsdl:portType name="IFaxService">
<wsdl:operation name="SendFax">
<wsdl:input wsaw:Action="http://tempuri.org/IFaxService/SendFax" message="tns:IFaxService_SendFax_InputMessage"/>
<wsdl:output wsaw:Action="http://tempuri.org/IFaxService/SendFaxResponse" message="tns:IFaxService_SendFax_OutputMessage"/>
</wsdl:operation>
<wsdl:operation name="GetFaxStatus">
<wsdl:input wsaw:Action="http://tempuri.org/IFaxService/GetFaxStatus" message="tns:IFaxService_GetFaxStatus_InputMessage"/>
<wsdl:output wsaw:Action="http://tempuri.org/IFaxService/GetFaxStatusResponse" message="tns:IFaxService_GetFaxStatus_OutputMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="serviceBasicHttpBinding" type="tns:IFaxService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="SendFax">
<soap:operation soapAction="http://tempuri.org/IFaxService/SendFax" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetFaxStatus">
<soap:operation soapAction="http://tempuri.org/IFaxService/GetFaxStatus" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="FaxService">
<wsdl:port name="serviceBasicHttpBinding" binding="tns:serviceBasicHttpBinding">
<soap:address location="http://www.deferopro.com/FaxService/FaxService.svc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

 

But I am getting " External schema import not supported" I tried some solution like remove the import tag and compy paste the content of that tag, but  no solution, 

 

Can anyone give the solution properly with changes in above code ASAP   , It will be great help, Thanks in advance

 

Raman

Can anyone please tell me that how to get the ID of Custom Object like, I am loading all the Custom Object by describeglobal() and than setting the name, label and plural label as the datasource for a gridview.

Now I want ID of that particular custom object on click in GridView. My code is this ::

DataTable table = new DataTable();
table.Columns.Add("Name", typeof(string));
table.Columns.Add("Label", typeof(string));
table.Columns.Add("labelPlural", typeof(string));

SforceService binding = (SforceService)Session["myobject"];

DescribeGlobalResult dgr = binding.describeGlobal();
DescribeSObjectResult[] dsrArray;

for (int i = 0; i < dgr.sobjects.Length; i++)
{
//DescribeSObjectResult[] arr = new DescribeSObjectResult[500];
if (dgr.sobjects[i].name.Contains("__c"))
{
dsrArray = binding.describeSObjects(new string[] { dgr.sobjects[i].name });

for (int j = 0; j < dsrArray.Length; j++)
{
string Name = dsrArray[j].name;
string Label = dsrArray[j].label;
string Plural_Label = dsrArray[j].labelPlural;
table.Rows.Add(Name, Label, Plural_Label);
}
}
}

grdObjects.DataSource = table;
grdObjects.DataBind();

I am setting the label as linkbutton in the gridview

Regards
Raman

Hi all,,

 

I want the Synchronization of salesforce and  MS-Sql-Server , means Is there any way so that I can perform CRUD operation on Account, Lead ......... of SalesForce , from SQL Server...

 

 

Thanks

Hi guys!!

I have created the custom object from the C# code into sales force, now I want to show the details of that Custom object on my application like Custom object name, label, description I got some solution regarding that "describeobject" but its don't have any property like description,, created by and modified by how I can do that,, I want load all the fields which saleforce shows in its UI.

 

 

thanks in Advance

Can any one please point out what I am doing wrong , I need the id of Case_Accession__c  on click of edit in data table in text box but not getting

 

public class Worklist
{
   

    public List<Case_Accession__c> objWorklist {get;set;}
     public String var {get;set;}


    public Worklist()
    {
        objWorkList = new List<Case_Accession__c>();
        objWorkList = [Select ID,PatientName__c,PhysicianName__c  from Case_Accession__c limit 1];
    }

 

}
 }

 

 

VF Page::

 

<apex:page controller="Worklist">
     <apex:Form >
     <apex:pageBlock >
             <apex:pageblockSection >
                 <apex:dataTable id="dtWorklist" value="{!objWorklist }" var="wrklst"  cellspacing="16%">
                  <apex:column headerValue="Patient Name" >
                   <apex:outputField value="{!wrklst.PatientName__c}" />
                   </apex:column>
                   <apex:column headerValue="Physician Name" >
                   <apex:outputField value="{!wrklst.PhysicianName__c}" />
                   </apex:column>
                
                   <apex:column headerValue="Edit Case">
                   
                   <apex:commandLink value="Edit" /> 
                   <apex:param name="var" assignTo="{!var}" value="{!wrklst.id}" />  
                    </apex:column>
                  
                 </apex:dataTable>
                 <apex:inputText value="{!var}"/>
                </apex:pageblockSection>
     </apex:pageBlock>
     </apex:Form>
</apex:page>
   

Hi guys!!

I have created the custom object from the C# code into sales force, now I want to show the details of that Custom object on my application like Custom object name, label, description I got some solution regarding that "describeobject" but its don't have any property like description,, created by and modified by how I can do that,, I want load all the fields which saleforce shows in its UI.

 

 

thanks in Advance

Hi Everyone,

when I try to install Eclipse Juno 4.2 with the force.com IDE I get the following error message:

 

Cannot complete the install because one or more required items could not be found.
  Software being installed: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021)
  Missing requirement: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021) requires 'org.eclipse.update.ui 0.0.0' but it could not be found

 Does anyone know how to fix this?

 

Kind regards,

 

Otto

  • July 02, 2012
  • Like
  • 0

hi i have a vf page  picklist "countries".i have each section for countries on change of my selection in picklist i want the section visibilty for selected country.

 

Kindly give me solution urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

  • September 27, 2011
  • Like
  • 0

Hi all,

 

I can successfully connect to the Metadata API and create a custom field, but what I would like to do is create three custom fields all at the same time. From reading the Metadata specifications it appears I can provide the .create() method with up to 10 metadata components, so technically I should be able to pass it an array of 3 custom fields instead of a single custom field, and it should process them all with only one .create() call.

 

My code to create one custom field is as follows:

 

SFMetadataWSDL.CustomField customField = new SFMetadataWSDL.CustomField();

 

customField.fullName = "Account.TestField__c";

customField.description = "This is a custom field created by the API";

customField.label = "Test Field;

customField.formula = "HYPERLINK(\"http://www.cnet.com\", \"Open Cnet\")";

customField.type = SFMetadataWSDL.FieldType.Text;

 

SFMetadataWSDL.AsyncResult asyncResult = sfMetadata.create(new SFMetadataWSDL.Metadata[] { customField })[0];

 

This works just fine, but if I modify it to pass the .create() method an array of 3 custom fields, I cannot compile.

 

SFMetadataWSDL.CustomField[] customField = new SFMetadataWSDL.CustomField[3];

 

customField[0].fullName = "Account.Testfield1__c";

customField[0].description = "This is a custom field number 1 created by the API";

customField[0].label = "Test Field 1";

customField[0].formula = "HYPERLINK(\"http://www.cnet.com\", \"Open Cnet\")";

customField[0].type = SFMetadataWSDL.FieldType.Text;

 

customField[1].fullName = "Account.Testfield2__c";

customField[1].description = "This is a custom field number 2 created by the API";

customField[1].label = "Test Field 2";

customField[1].formula = "HYPERLINK(\"http://www.cnet.com\", \"Open Cnet\")";

customField[1].type = SFMetadataWSDL.FieldType.Text;

 

customField[2].fullName = "Account.Testfield3__c";

customField[2].description = "This is a custom field number 3 created by the API";

customField[2].label = "Test Field 3";

customField[2].formula = "HYPERLINK(\"http://www.cnet.com\", \"Open Cnet\")";

customField[2].type = SFMetadataWSDL.FieldType.Text;

 

SFMetadataWSDL.AsyncResult[] asyncResult = sfMetadata.create(new SFMetadataWSDL.Metadata[] { customField });

 

The compilation error I receive is "Cannot implicitly convert type 'SFMetadataWSDL.CustomField[]' to 'SFMetadataWSDL.Metadata'". I think I'm being an idiot here and have just missed something out - can someone point it out?

 

Thanks

Matt 

  • January 20, 2010
  • Like
  • 0
I get this error constantly while trying to deploy. Where the issue may be?

  • January 09, 2009
  • Like
  • 1