• Venkat Reddy 6
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi All,
I've a requirement, where i need to have the value persisting in the Multiselect picklist value. To be clear with the message, i would like to check if the Value in the multi picklist is BLANK or Not.

Here is the sample code, i've been trying in trial sandbox.
------------------------------------

{!Account.Multi_Test__c}{!REQUIRESCRIPT("/soap/ajax/24.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/24.0/apex.js")} 
var a = new sforce.SObject("Account");
a.Id = '{!Account.Id}';
var b = '';
b = '{!Account.Multi_Test__c}';
alert('dddddd --> '+b);
if(b!= null || b!= '' )
{
alert('multi select is not empty');
a.status__c = 'Closed';
result = sforce.connection.update([a]);
location.reload();
}
else{
  alert('multi select is empty');
}
------------------------

Where, Multi_Test__c is a multi select picklist field with some values say..a,b,c,d,.. and Status__c is a picklist field with lovs Open,closed, in-progress. both these fields are on account
I alert returns"multi select is not empty", and i never the alert "multi select is empty".

PLEASE SUGGEST...
Thanks in Advance

Venkat
Hi, I need a vf page to show a filter criteria as of like rule criteria (or) a like a new list view in vf page, please help me out to complete this.....thanks!
Hi, I need a vf page to show a filter criteria as of like rule criteria (or) a like a new list view in vf page, please help me out to complete this.....thanks!

I have a visualforce page that shows a related list and I was wondering if it was possible to add either a table row count at the bottom of a table or add row numbers?  I have tried a few different sets of code that I had found but nothing is working.   Any help would be great!  Thanks! Below is the e table:

 

<p><u>Related Claims</u></p>
<table id="claims" border="1" cellspacing="2" cellpadding="5">
<tr>
<th>Claim Number</th>
<th>Insured</th>
<th>Claimant Name</th>
<th>Policy Number</th>
<th>Claim Status</th>
<th>Date Reported</th>
<th>Examiner</th>
</tr>
<apex:repeat var="rc" value="{!Account.Claims__r}">
<tr>
<td>{!rc.Name} </td>
<td>{!rc.Insured_Lookup__r.name}</td>
<td>{!rc.Claimant_Name__c}</td>
<td>{!rc.Policy__r.name}</td>
<td>{!rc.Status__c}</td>
<td><apex:outputText value="{0,date,MM/dd/yyyy}"><apex:param value="{!rc.Date_Reported__c}"/></apex:outputText></td>
<td>{!rc.Assigned_Examiner2__r.name}</td>
</tr>
</apex:repeat>
</table>

  • November 18, 2011
  • Like
  • 0