• Prad47
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi All ,

 

         I am not awre how to use java script in visualforce , I have a requriment if the user provides some value in input text box and if he click on command button then i need an aleret , i am awre that how to call to java script function when user click on command button, but i am not awre how add condition in java script function if(opp!=null) then alert('WC');

 

however it's working fine.

<script>

  function check() {

  alert('Welccome ');

}

</script>

<apex:commandbutton value="DO" action={!submit} onclick="return check();"/>

 

If change my code to this. it's not working.

 

<script>

  function check() {

 if(opp!=null){

  alert('Welccome ');

} }

</script>

<apex:commandbutton value="DO" action={!submit} onclick="return check();"/>

<apex:inputtext value="{!opp}"/>

 

and one more thing. i have outputlink when i click on that it will redirects to new page.however if my selectlist value is null menas i don't want to call this method and i need a pop up says please select existing record. 

 

 

 

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,

 

Need help with the error below

 

Here is the trigger handler class where iam implementing the before insert trigger

 

public void OnBeforeInsert(Sales_Target__c[] newRecords){


newRecords = trigger.new;
for(Sales_Target__c newSalesTarget : newRecords)
{
if ((newSalesTarget.Officer_Code__c != null) &&
(newSalesTarget.Officer_Code__c= System.Trigger.oldMap.get(newSalesTarget.Id).Officer_Code__c))

}

 

and the error i got is "Field expression not allowed for generic SObject '' at the line highlighted in red. Not sure what that mean.

 

Thanks

Hi All,

 

I have below test Visualforce page , in which i am trying to call onclick event for tab but it not working.

 

Can someone help me ..

 

code//

 

 

<apex:page standardController="Account" ><head> <script language="javascript"> function setfirst() { alert("first"); } function setsecond() { alert("second"); } </script></head> <apex:tabPanel switchType="client" selectedTab="tabdetails" id="tabPanel"> <apex:tab label="General" name="General" id="tabGeneral" onclick="setfirst()"> </apex:tab> <apex:tab label="Professional" name="Professional" id="tabProfessional" onclick="setsecond()"> </apex:tab> </apex:tabPanel></apex:page>

 

Regards,

Deepak