• ziros
  • NEWBIE
  • 25 Points
  • Member since 2008

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 13
    Replies
Hello all I have this code :
<apex:repeat value="{!familyObjectWrapper}" var="currentContact">
    <apex:outputpanel id="healthDeclarationPanel" >
       <c:vfc_health_declaration objid_Att="{!currentContact.dataObject.Id}"  id="hdComponent" />                      </apex:outputpanel>
 </apex:repeat>

The need is to display the same specific apex component several times according to repeater.
By default the components should not be rendred. 

I wanted to ask if with "ActionFunction" I can reRender a specific component to be shown ?

IF  I do a reRender of the apex outputPanel all the components in the repeater are rendered which is not good for me

 Hope for any help solving this.

Many Thanks

  • August 22, 2017
  • Like
  • 0
Hello all,
I'm using the lightning design system CSS on a visual force page. (all componots that I need get the lightinig design system styles)
however as we know,  we need to implement the javascript to make them alive..

I want to ask if there is a sample of how to use a picklist with the ability for multi select on that picklist ? also with autocomplete ?

here is a smaple from the Lightning Design System page of what I need

https://www.lightningdesignsystem.com/components/picklist/#flavor-base-picklist-open-item-multi-selected

Hope you can direct me to how to be able to add the js needed.

Thank you very much
Ronen
  • February 03, 2017
  • Like
  • 0

Hello, we have a small application involved apex vf page a controller and some js code.

we created a test class for out controller and all went well, than we packaged it all.

when we installed the package to other org , we got errors on the test class , for example on
Account object. (it seems that the other org have testing on account too and our test isn't enought)

for the purpose of the test class we can use any object instead of accout but it's still not gaurentee us that we won't fall on those objects.
is there any Dummy object or some other way to use "our" object so it won't be conflicted with other org's test classes ?
TIA

 

  • February 18, 2014
  • Like
  • 1
Hello all I'll explain the case that I have.
 
let's take for example the contacts...
 
Someone is updating a contact on salesforce..(change a certain field and saves)
There is a trigger on contact object which calls
an asp.net WebService (with @future) when a certian field is changed.
 
The asp.net web service do some work and at the end, it logins to salesforce and update another field on the same record.
 
until now all seems ok and working...
 
when the salesforce user continues to change the same record it get the error message above
The record you were editing was modified by XXXXXX
 
How to overcome this behaviour ??
 
another question regarding this case ,
is there any option that after the webservice finishes to do its work, to refresh the
salesforce contact page ?
 
TIA
 
  • December 11, 2008
  • Like
  • 0
Hello,
I search and found the fieldsToNull, but I can't get how to work with it.
 
I have apex class which calls to webservice, and I want to pass parameter of type Datetime with null value
to .net webservice.
 
how to do it ?
 
TIA
 
 
 
  • November 09, 2008
  • Like
  • 0
Hello
 
Im updating opportunity object , from c# class and I mange to update strings , but can't update date,datetime fields.
I have searched and found this thread
I guess it has to do with the problem ?
if so...
this KB fix : http://support.microsoft.com/kb/925272 speaking about vista SP1. (which I do have on my own dev PC)
 
anyway the host for my webservice is a server which running on windows 2003.
 
what im doing in the c# for example :
 
Opportunity opp = new Opportunity();
opp.Questionnaire_date__c = DateTime.Today;
....
...
 
but those dates fields not getting updated.
 
TIA for any help
 
 
 
  • November 05, 2008
  • Like
  • 0
Hello,
 
After gathering all the data for accomplishing calling to external asp.net webservice, I face through I hope the last problem.
 
I genereated a class form wsdl and wrote apex class which calls to asp.net webservice, I just need to know
how can I pass username,password,domainname to the webservice.
 
here are the main part which instantiate the webservice wsdl class
 
WSIchlusSalesForce.ServiceIchlusSoap soap = new WSIchlusSalesForce.ServiceIchlusSoap();
now is there any way to call it with Credentials ?
 
In ASP.NET webservice on IIS , Directory Security, Authentication methods those things are set:
Enable anonymous access is set
Integrated Windows authentication is set
 
Thanks for any help on this.
 
  • November 03, 2008
  • Like
  • 0
Hello
 
I have a need to call to external Web Service (asp.net) to do some work from sales force.
The scenario that I have is:
 
From Opportunity Object when saved, I need to call the external web service and pass it data , but not only from
opportunity but from many object Like contact, ContactRoles, Account and more... I'm gathering my data with SOQL,
and passing the data as a class to the asp.net web service.
 
The best solution for me was to call This web service from a Trigger, but that is not supported by salesforce !
 
so the other method I know of are:
 
1)  Creating a Scontrol button this button will call an apex class which wil call the Web Service.
     This technique is working but far from be sufficeint in my case.
      Becuase save button can't be overide so It leaves the user the choice to press that button or not, which is not good.
      Maybe there is a workaround for that ??
 
2) Creating workflow on Opportunity which will call an outbound message when a save occure.
    I guess this will work too, but I have from start couple of problems.. or lack of knowledge.
 
    a) It stated that if the outbound message could not be delivered after 24H the message dropped from the queue.
        which is not good at all for the case I work for...
    b) when defining an outbound message there is a need to choose what fields to pass, "Fields to send"
        but what if I need to pass many fields and not just from the Opportunity object ? can it be done ?
 
 
Thanks for any help on this
 
  • October 27, 2008
  • Like
  • 0
Hello
is there an option to call an apex class which is not webservice from an scontrol
 
I understand that this call sforce.execute calls apex class which exposed as web service,
but for my case I don't want to expose this class as webservice.
 
TIA
  • October 16, 2008
  • Like
  • 0
Hello, I have the next simple scenario:
 
scontrol which calls an apex class that calls ASP.NET webservice as the following :
(all is working fine)
 
global class WSIchlusSalesForceHelper
{
    global class ContactIchlus
    {
            webservice String ContactRole;
            webservice String BirthDate;
            webservice String arg1;
            webservice String arg2;
            webservice String arg3;
            webservice String arg4;
            ...
            ...
    }
 
    WebService static string test1(ContactIchlus data)
    {
        WSIchlusSalesForce.ServiceIchlusSoap soap = new WSIchlusSalesForce.ServiceIchlusSoap();
        return soap.IchlusProtocol(data.BirthDate);
     }
}
 
My question is,
In the inner class ContactIchlus which will have at least 20 variables or more, that I need to pass to the webservice...
I can't just pass the variable data...
 
Is there a simple way to convert that inner class to XML and pass it to the webservice ?
or I will have to concat string and build the xml myself ?
or maybe I will have to define 20 args to the webservice
 
TIA (it's my first webservice)
  • October 16, 2008
  • Like
  • 0
Hello, [new to salesforce development]
 
I saw that there is a way to put a page as like s-control lets say into contacts through page-layout.
As I did this , the vf page included in my contacts but only in view mode.
When I press the Edit button of contacts , I no longer can see the vf-page.
 
Is there any way to include this vf-page also in edit mode ?
 
TIA
  • September 16, 2008
  • Like
  • 0

Hello, we have a small application involved apex vf page a controller and some js code.

we created a test class for out controller and all went well, than we packaged it all.

when we installed the package to other org , we got errors on the test class , for example on
Account object. (it seems that the other org have testing on account too and our test isn't enought)

for the purpose of the test class we can use any object instead of accout but it's still not gaurentee us that we won't fall on those objects.
is there any Dummy object or some other way to use "our" object so it won't be conflicted with other org's test classes ?
TIA

 

  • February 18, 2014
  • Like
  • 1

I don't know what is wrong with this wsdl? when I click Parse WSDL, it gives that error message, can anyone help me fix the file?
Thanks
the original code is posted below
 
 
Code:
<—xml version="1.0" encoding="utf-8"–>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
      <s:element name="SForceLogin">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="UID" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Pwd" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="SForceLoginResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="SForceLoginResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="Query">
        <s:complexType />
      </s:element>
      <s:element name="QueryResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="QueryResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="SForceLoginSoapIn">
    <wsdl:part name="parameters" element="tns:SForceLogin" />
  </wsdl:message>
  <wsdl:message name="SForceLoginSoapOut">
    <wsdl:part name="parameters" element="tns:SForceLoginResponse" />
  </wsdl:message>
  <wsdl:message name="QuerySoapIn">
    <wsdl:part name="parameters" element="tns:Query" />
  </wsdl:message>
  <wsdl:message name="QuerySoapOut">
    <wsdl:part name="parameters" element="tns:QueryResponse" />
  </wsdl:message>
  <wsdl:portType name="ServiceSoap">
    <wsdl:operation name="SForceLogin">
      <wsdl:input message="tns:SForceLoginSoapIn" />
      <wsdl:output message="tns:SForceLoginSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="Query">
      <wsdl:input message="tns:QuerySoapIn" />
      <wsdl:output message="tns:QuerySoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="SForceLogin">
      <soap:operation soapAction="http://tempuri.org/SForceLogin" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="Query">
      <soap:operation soapAction="http://tempuri.org/Query" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="SForceLogin">
      <soap12:operation soapAction="http://tempuri.org/SForceLogin" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="Query">
      <soap12:operation soapAction="http://tempuri.org/Query" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="Service">
    <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
      <soap:address location="http://localhost:1908/Salesforce_Origination/Service.asmx" />
    </wsdl:port>
    <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
      <soap12:address location="http://localhost:1908/Salesforce_Origination/Service.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

 
Hello,
I search and found the fieldsToNull, but I can't get how to work with it.
 
I have apex class which calls to webservice, and I want to pass parameter of type Datetime with null value
to .net webservice.
 
how to do it ?
 
TIA
 
 
 
  • November 09, 2008
  • Like
  • 0
Hello
 
Im updating opportunity object , from c# class and I mange to update strings , but can't update date,datetime fields.
I have searched and found this thread
I guess it has to do with the problem ?
if so...
this KB fix : http://support.microsoft.com/kb/925272 speaking about vista SP1. (which I do have on my own dev PC)
 
anyway the host for my webservice is a server which running on windows 2003.
 
what im doing in the c# for example :
 
Opportunity opp = new Opportunity();
opp.Questionnaire_date__c = DateTime.Today;
....
...
 
but those dates fields not getting updated.
 
TIA for any help
 
 
 
  • November 05, 2008
  • Like
  • 0
Dear All,
Please help me out, I am interested to handle Save event on Opportunity Object., Once the user will fill Opportunity at this level
i needed to tranfer records to my Local DataBase using WebService.
I can develop s-Control, and this Control will call Apex Class WebService , and this WEbService will send data to my Local machine , please suggest some relevant code to send data from salesforce. I already used OutBound meaage. But i am interested to call method on save Button.
 
 
Regards:
Amul
  • November 01, 2008
  • Like
  • 0
Hello
 
I have a need to call to external Web Service (asp.net) to do some work from sales force.
The scenario that I have is:
 
From Opportunity Object when saved, I need to call the external web service and pass it data , but not only from
opportunity but from many object Like contact, ContactRoles, Account and more... I'm gathering my data with SOQL,
and passing the data as a class to the asp.net web service.
 
The best solution for me was to call This web service from a Trigger, but that is not supported by salesforce !
 
so the other method I know of are:
 
1)  Creating a Scontrol button this button will call an apex class which wil call the Web Service.
     This technique is working but far from be sufficeint in my case.
      Becuase save button can't be overide so It leaves the user the choice to press that button or not, which is not good.
      Maybe there is a workaround for that ??
 
2) Creating workflow on Opportunity which will call an outbound message when a save occure.
    I guess this will work too, but I have from start couple of problems.. or lack of knowledge.
 
    a) It stated that if the outbound message could not be delivered after 24H the message dropped from the queue.
        which is not good at all for the case I work for...
    b) when defining an outbound message there is a need to choose what fields to pass, "Fields to send"
        but what if I need to pass many fields and not just from the Opportunity object ? can it be done ?
 
 
Thanks for any help on this
 
  • October 27, 2008
  • Like
  • 0
Hello, I have the next simple scenario:
 
scontrol which calls an apex class that calls ASP.NET webservice as the following :
(all is working fine)
 
global class WSIchlusSalesForceHelper
{
    global class ContactIchlus
    {
            webservice String ContactRole;
            webservice String BirthDate;
            webservice String arg1;
            webservice String arg2;
            webservice String arg3;
            webservice String arg4;
            ...
            ...
    }
 
    WebService static string test1(ContactIchlus data)
    {
        WSIchlusSalesForce.ServiceIchlusSoap soap = new WSIchlusSalesForce.ServiceIchlusSoap();
        return soap.IchlusProtocol(data.BirthDate);
     }
}
 
My question is,
In the inner class ContactIchlus which will have at least 20 variables or more, that I need to pass to the webservice...
I can't just pass the variable data...
 
Is there a simple way to convert that inner class to XML and pass it to the webservice ?
or I will have to concat string and build the xml myself ?
or maybe I will have to define 20 args to the webservice
 
TIA (it's my first webservice)
  • October 16, 2008
  • Like
  • 0
Hello, [new to salesforce development]
 
I saw that there is a way to put a page as like s-control lets say into contacts through page-layout.
As I did this , the vf page included in my contacts but only in view mode.
When I press the Edit button of contacts , I no longer can see the vf-page.
 
Is there any way to include this vf-page also in edit mode ?
 
TIA
  • September 16, 2008
  • Like
  • 0