• SATZ
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 23
    Questions
  • 12
    Replies

Hi.

I have an requirement like follows:

 in a visual force page displays a set of account fields like account name,email,address... With check box  in side of the field name 

 

 AccountName  

checkbox

 

email

checkbox

 

account name field id checked ,then the name of the all the account will be displayed in page or email is selected vice versa. And both is selected the two column want to be showed.

How to solve this. Give me the solution

 

Thanks

sathish.

 

 

  • September 12, 2012
  • Like
  • 0

Hi all,

I am trying to create the apex class from WSDL The created class contains error like following

 

Error: Compile Error: Method does not exist or incorrect signature: WebServiceCallout.invoke(tempuriOrg1.ServiceSoap, tempuriOrg1.HelloWorld_element, MAP<String,PackageTesting.tempuriOrg1.HelloWorldResponse_element>, LIST<String>) at line 22 column 13

 

Created class

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

 

 //Generated by wsdl2apex

public class tempuriOrg1 {
    public class HelloWorld_element {
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{};
    }
    public class ServiceSoap {
        public String endpoint_x = 'http://173.15.158.230/webservice/Service.asmx';
        public Map<String,String> inputHttpHeaders_x;
        public Map<String,String> outputHttpHeaders_x;
        public String clientCertName_x;
        public String clientCert_x;
        public String clientCertPasswd_x;
        public Integer timeout_x;
        private String[] ns_map_type_info = new String[]{'http://tempuri.org/', 'tempuriOrg1'};
        public String HelloWorld() {
            tempuriOrg1.HelloWorld_element request_x = new tempuriOrg1.HelloWorld_element();
            tempuriOrg1.HelloWorldResponse_element response_x;
            Map<String, tempuriOrg1.HelloWorldResponse_element> response_map_x = new Map<String, tempuriOrg1.HelloWorldResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/HelloWorld',
              'http://tempuri.org/',
              'HelloWorld',
              'http://tempuri.org/',
              'HelloWorldResponse',
              'tempuriOrg1.HelloWorldResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.HelloWorldResult;
        }
    }
    public class HelloWorldResponse_element {
        public String HelloWorldResult;
        private String[] HelloWorldResult_type_info = new String[]{'HelloWorldResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'HelloWorldResult'};
    }
}


My WSDL URL IS:  http://173.15.158.230/webservice/Service.asmx?WSDL

 

what is the problem in the code.Give me the solution for this problem.

 

thanks

sathish

  • August 22, 2012
  • Like
  • 0

Hi All.,

I am trying generating apex class form WSDL But It shows Error

      

Apex Generation Failed

Unable to find soap 1.1 address

 

how to solve this issue.

 

Thanks in advance

sathish

  • August 20, 2012
  • Like
  • 0

Hi all.,

I'm trying to create a apex class form WSDL file ,but I shows error

        Error: Failed to parse WSDL: Found schema import from location http://schemas.xmlsoap.org/soap/encoding/. External schema import not supported

 

I created WSDL file from following URL   http://thylaksoft.gostorego.com/api/v2_soap/?wsdl

 
I need to convert the WSDL file to apex methods.

plz help

thanks

sathish

  • August 16, 2012
  • Like
  • 0

Hi all.,

I'm trying to create a apex class form WSDL file ,but I shows error

        Error: Failed to parse WSDL: Found schema import from location http://schemas.xmlsoap.org/soap/encoding/. External schema import not supported

 

I created WSDL file from following URL   http://thylaksoft.gostorego.com/api/v2_soap/?wsdl

 
I need to convert the WSDL file to apex methods.

plz help

thanks

sathish

  • August 16, 2012
  • Like
  • 0

Hi all.

how to write test class for follwing trigger.

trigger

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

trigger ConvertContactEventToCoachingNotes on Event (before insert,after insert,after update,after delete){


    //*** Prevent the Event Creation with out Existing Education ***//

    if(Trigger.isBefore && Trigger.isInsert) {
        Set<ID> ACCs = new Set<ID> {};
        List<Educations__c> EDLIST = new List<Educations__c>();
        ACCs.add(Trigger.new[0].WhatId);
        String stype = Trigger.New[0].Type__c;

        if(stype =='Included in Program'){
            EDLIST = [Select RecordTypeId, Id From Educations__c   where  Account__c in : ACCs and  RecordTypeId='012Q00000008pHh'];
        }else if(stype =='A la Carte'){
            EDLIST = [Select RecordTypeId, Id From Educations__c   where  Account__c in : ACCs and  RecordTypeId='012Q00000008pHc'];
        }
        
        if(Trigger.isBefore && Trigger.isInsert){
            if(EDLIST.size()==0){
                trigger.new[0].addError('<b>An education record or education tracker record needs to be created before scheduling this type of event.</b>');
            }
        }
    }

    //*** Prevent the Event Creation  with out Tobsesch Program ************//

    if(Trigger.isBefore && Trigger.isInsert) {
        Set<ID> acc = new Set<ID> {};
        acc.add(Trigger.New[0].WhatID);
        List<String> ETobe = new List<String>();
        System.debug('Trigger collection:'+Trigger.new[0]);
        List<EducationTracker__c> EDT = new List<EducationTracker__c> {};
        String stype = Trigger.New[0].Type__c ;
        System.debug('Stype:'+stype);
        if(stype =='Included in Program'){
            EDT = [select id,Account__c,Classes_Scheduled__c, Education__r.RecordTypeID, Classes_Completed__c, To_Be_Scheduled__c from EducationTracker__c where Account__c in :acc and Education__r.RecordTypeID='012Q00000008pHh'];
            System.debug('Exit Education:'+EDT);

        }else if (stype =='A la Carte'){
            EDT = [select id,Account__c,Classes_Scheduled__c, Education__r.RecordTypeID, Classes_Completed__c, To_Be_Scheduled__c from EducationTracker__c where Account__c in :acc and Education__r.RecordTypeID='012Q00000008pHc'];
        }


        for(EducationTracker__c et:EDT){
            ETobe.add(et.To_Be_Scheduled__c);
        }
        System.debug('ETOBE FOR:'+ETobe);

        String st = Trigger.new[0].Subject;
        System.debug('ETobse list:'+ETobe);
        try{
            if(ETobe != Null){
                for(String s:ETobe){
                    if(!s.Contains(st)){
                        Trigger.New[0].addError('<b>What you are scheduling in not in this contact’s Education Tracker. Please fix before continuing.</b>');
                    }
                }
            }
        }catch(Exception e){
            Trigger.New[0].addError('<b>What you are scheduling in not in this contact’s Education Tracker. Please fix before continuing.</b>');
        }
    }

    //*** Call the EducationTracker Util Class  for Inserting Coahcing Notes *******//

    if(!Trigger.isBefore && Trigger.isInsert){
        Event[] e= Trigger.New;
        EducationTrackerUtilClass.addevent(e);
        System.debug('Test3:'+e);
    }

    //*** Update the Event ***********************************************************//

    Set<ID> setCon = new Set<ID> {};
    Set<ID> setCCon = new Set<ID> {};

    if(Trigger.isUpdate ) {
        for(Event e: Trigger.new) {
            System.debug('Event:'+e);
            if(e.Subject == 'Private Coaching Session' && e.Coaching_Session_Number__c != null && e.Coaching_Total_Signeds__c != null ){
                setCon.add(e.AccountId);
            }else {
                if(e.Subject =='Career Guidance Session' && e.Type__c != null){
                    setCCon.add(e.AccountId);
                    System.debug('CGS Account:'+setCCon);
                }
            }
        }

        if(!setCon.isEmpty() && setCon.size()>0) {
            NewStudentProgressTracker SPT = new NewStudentProgressTracker(setCon,'Program');
            SPT.UpdateEducationTracker();
        }

        if(!setCCon.isEmpty() && setCCon.size()>0) {
            NewStudentProgressTracker SPT = new NewStudentProgressTracker(setCCon,'Program');
            SPT.UpdateEducationTracker();
        }
    }

    //***  Delete the Coahing Notes Once Delete the  Related Event ****************//

    if(Trigger.isDelete){

        set<ID> DEWList = new set<ID>();
        set<ID> DESList = new set<ID>();
        List<Coaching_Notes__c> DelCoachList = new List<Coaching_Notes__c>();
        for(Event  ev:Trigger.old) {
            DEWList.add(ev.whatid);
            DESList.add(ev.AccountId);
            System.debug('Delete WhatId:'+DEWList);
            System.debug('Delete Student:'+DESList);
        }  

        DelCoachList = [select id,Name,Account__c from Coaching_Notes__c  where id in :DEWList and Account__c in : DESList];
        if(DelCoachList.size() >0) {
            delete DelCoachList;
        }
    }
}

 

 

 

  • July 19, 2012
  • Like
  • 0

Hi All,

 I am created custom visualforce page . Shows error for passing password value to controller.

 

Error: Read only property 'PackageTesting.login.password' 

 

Note : its working without that password field .

 

 Page:

----------

<apex:page showHeader="false" sidebar="false" controller="login">
<apex:form >
<br><apex:image value="{!$Resource.AnimFlag}" width="100" height="100"/></br>
<apex:pageBlock >
<apex:pageBlockSection title="Account New">
<br>User Name<apex:inputText value="{!username}"/></br>
<br>Pass Word<apex:inputText value="{!password}"/></br>
<apex:commandButton value="Submit" onclick="{!login}"/>
<apex:outputLink > ForgetPassword </apex:outputLink>
<apex:outputLink value="https://packagetesting.ap1.visual.force.com/apex/AccountDisplay"> Create new Account</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>

</apex:form>
</apex:page>

 

 

Controler

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

public with sharing class login{

String username;
String password;

public String getusername() {return username;}
public void setusername(String un){this.username=un;}
public String getpassword() {return password;}
public void getpassword(String pw){this.password=pw;}

public String getLogin(){
List<Account> a = [select id from Account where Name like:username+'%'and PackageTesting__Password__c like:password+'+'];
if(a.isEmpty()){
some Logic goes here;
}
else{
some logic goes here;
}
return null;
}

 

Plz help me 

Regards

Sathish

 

  • July 12, 2012
  • Like
  • 0

Hi.

  I am creating custom login page .When user enters the value that is saved in Account object. there is two field for saving user name and password.

  

 In the login page user enter the user name and password . That is already saved in account. Based on that we checking availability of user name and password in account and doing further action.

    

    how to save the user inputs in apex variable in controller .

My code is

 

page:

----------

<apex:page showHeader="false" sidebar="false" controller="login">
<apex:form >
    <br><apex:image value="{!$Resource.AnimFlag}" width="100" height="100"/></br>
        <apex:pageBlock >
        <apex:pageBlockSection title="Account New">
              <br>User Name<apex:inputText value="{!passValue}"/></br>
              <br>PassWord<apex:inputSecret value="{!passValue1}" /> </br>
              <apex:commandButton value="Submit" onclick="{!login}"/>
              <apex:outputLink >   ForgetPassword </apex:outputLink>
              <apex:outputLink value="https://packagetesting.ap1.visual.force.com/apex/AccountDisplay">   Create new Account</apex:outputLink>
        </apex:pageBlockSection>      
        </apex:pageBlock>     
    
</apex:form>
</apex:page>

 

 

controller

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

public with sharing class login{

    public String passValue{get;set;}
    public String passValue1{get;set;}
    

    public String getLogin(){
List<Account> a = [select id from Account where Name='{!passValue}' and                           PackageTesting__Password__c='{!passValue1}'];
       

if(a.isEmpty()){
           // some logic goes here.
        }
        else{
        // some logic goes here.
        }
        return null;
    }
}

 

give me any suggestion

Thanks & regards

sathish

  • July 10, 2012
  • Like
  • 0

Hi All ..

I am using Account and event and one custom object called Education tracker.

In Education tracker,Account is an master object.

 

I am created account for that account i created event. When event is created
Education tracker is Updated using trigger.

In event I am using Date and Time field.The in event is created with start datetime

10 am and end datetime 11am.

 

It is automatically updated Education tracker. But Time is 1hour different in Education tracker

start date time displays 9Am(1hr different was came).

 

Plz help me 

Thanks 

sathish..

  • June 28, 2012
  • Like
  • 0

Hi.

I want deploy my Development  to Production account using ANT(Migration Tool).I am using Eclipse IDE .

How to deploy directly form eclipse-IDE to Production using ANT.

Any one please suggest me to do this.

 

Thanks &Regards

satz 

  • May 21, 2012
  • Like
  • 0

Hi.

 

I created one class in my development account . I want to move that class to another organization (devp account )without packages . Is there any other option .plz suggest me.

 

Thanks & regards 

      satz

  • May 16, 2012
  • Like
  • 0

Hi all.

Is there Any possible For Add The User In Debug Log Automatically Using Apex Code or Trigger.

Give me Any suggestions.

 

Regards

Satz..

 

  • May 12, 2012
  • Like
  • 0

Hi all,
I am using class object as lookupfield in Enrollment object.Both are custom object.
For class i want to add a filter condition the Class start date and time is equal to today .
here i want  to specify today date and timecompare date and time or date
But It shows error .

  • May 01, 2012
  • Like
  • 0

Hi All,

I created one custom object called Education .In that i created multipiclist field for list of class .

If one contact selected some values from the picklist  and saved.

and agian that contact wants to select the same values from the picklist.that values are not displayed.

is there any option to reload the picklist values for same contact.

 

regards,

satz..

  • April 27, 2012
  • Like
  • 0

HI all.,

I am using check box field in my visual force page.

In my page  header check box controlling the column checkbox field.

when i  check the header column are checked wise versa and any one of the column is unchecked the header is unchecked and all the column  check box is checkd manually than the header is automatically checked like standard page.

 

suggest me any validation ..

 

Thanks & Regards

satz 

  • April 25, 2012
  • Like
  • 0

 

Hi ,

I loading data to sandbox account to production .

 

In sandbox and production account The user profile id are same or Different.

 

Thanks & Regards

satz..

  • April 24, 2012
  • Like
  • 0

Hi all,

I am using EDUCATION custom object In education contact is master detail object.

Education  has two record types namely Phase and A la Carte

 

For each contact I create education In both record type. 

In both records type I want one only record must  be insert 

in Phase==1 and A la carte==1 

 

 

for this how to write condition in trigger on Education

 

regards satz

 

 


  • April 23, 2012
  • Like
  • 0

Hi,

 

 i create the custom object called ProgramTracker . this object contain tobeschduled and classschduled fields.


 Auto populate the values in Tobeschduled field  from Program  object. Tobeschduled field contain mulitple values. after i select the one value from Tobeschduled field to ClassScheduled field.
        
 we need to remove the selected value from Tobeschduled field .



Any help can be greatly Appreciated.

 

Thanks

SATZ

  • April 06, 2012
  • Like
  • 0

Hi all,

 

I created a education Custom object, In that object having two fields name  Phase 3 and Phase 3 Subsciption end date fields.

 

1) Using the trigger autopopulate the phase 3 field from Education object to Education tracker custom object.

The condition is :  Phase 3 Subsciption end date >= Today.     \\This is working fine

 

2) Once  Phase 3 Subsciption end date <= TODAY  we need to remove the phase 3 field value in Education tracker object

I written a logic in trigger.       But how to system invoke the this trigger logic automatically based on this condition   Phase 3 Subsciption end date <= TODAY

 

I think Using workflow is this possible to invoke the trigger automatically

 

Your valueable suggestions are welcome

Thanks 

  • April 06, 2012
  • Like
  • 0

Hi,

 

Field name called - To be scheduled. At present im using a rich text box to enter the list of class names

 

Field name called  - scheduled classes. Here im using a normal text box to enter one of the value from (To be scheduled) 

 

Both fields are in same object and,

Once i saved a record the selected value in scheduled classes will remove from the richtext box(To be scheduled)

 

Example:

 

To be scheduled contains

Value 1

value 2

value 3

 

Scheduled class contains

value 2

 

Once saved the record "value 2" should be remove from the To be scheduled field

So it looks like

 

To be scheduled contains

Value 1

Value 3

 

Thanks

Any help will be appreciated greatly

  • April 05, 2012
  • Like
  • 0

Hi All.,

I am trying generating apex class form WSDL But It shows Error

      

Apex Generation Failed

Unable to find soap 1.1 address

 

how to solve this issue.

 

Thanks in advance

sathish

  • August 20, 2012
  • Like
  • 0

Hi all.

Is there Any possible For Add The User In Debug Log Automatically Using Apex Code or Trigger.

Give me Any suggestions.

 

Regards

Satz..

 

  • May 12, 2012
  • Like
  • 0

HI all.,

I am using check box field in my visual force page.

In my page  header check box controlling the column checkbox field.

when i  check the header column are checked wise versa and any one of the column is unchecked the header is unchecked and all the column  check box is checkd manually than the header is automatically checked like standard page.

 

suggest me any validation ..

 

Thanks & Regards

satz 

  • April 25, 2012
  • Like
  • 0

Hi all,

I am using EDUCATION custom object In education contact is master detail object.

Education  has two record types namely Phase and A la Carte

 

For each contact I create education In both record type. 

In both records type I want one only record must  be insert 

in Phase==1 and A la carte==1 

 

 

for this how to write condition in trigger on Education

 

regards satz

 

 


  • April 23, 2012
  • Like
  • 0

Hi All,

 

I just  need to ensure about the workflow

Is it possible to invoke a triiger using a workflow action

 

I tried some what, But i cant able to go further,

Here i was stumped and i need some one assistance to acheive

 

Any help can be appreciated greatly

Thanks

Vinu 

  • April 06, 2012
  • Like
  • 0

Hi all,

 

I created a education Custom object, In that object having two fields name  Phase 3 and Phase 3 Subsciption end date fields.

 

1) Using the trigger autopopulate the phase 3 field from Education object to Education tracker custom object.

The condition is :  Phase 3 Subsciption end date >= Today.     \\This is working fine

 

2) Once  Phase 3 Subsciption end date <= TODAY  we need to remove the phase 3 field value in Education tracker object

I written a logic in trigger.       But how to system invoke the this trigger logic automatically based on this condition   Phase 3 Subsciption end date <= TODAY

 

I think Using workflow is this possible to invoke the trigger automatically

 

Your valueable suggestions are welcome

Thanks 

  • April 06, 2012
  • Like
  • 0

I am using a two checkbox fields Present And absent  in visualforce page.That is an  fields  in custom object (Attendance)

 

I requiemnt is

1)once open the visualfroce page(popup window)must should be we need to select the present or absent checkboxes for each row untill selected is not to be saved in object.


i try multiple ways but still i am not get any idea about this task. pls help me............

 


  • March 23, 2012
  • Like
  • 0

Hi..

     can we create an simple calculater application in the apex page.if it s possible in saelsforce..

        help me..

  • January 24, 2012
  • Like
  • 0