• Cristian-Ovidiu Trif
  • NEWBIE
  • 30 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 3
    Replies

Hi, I want to change my column from 'Name' into 'Queue Name'. Is it possible?

User-added image

my VF code

 

<apex:page controller="Search_For_User">
<apex:form style="width: 500px" >
       <apex:pageBlock tabStyle="Account" >

              <apex:inputText value="{!keyword}"/>
              <apex:commandButton value="Search" action="{!searchUser}"/>

            <Apex:pageblockTable value="{!results}" var="r" style="width: 450px">
                  <apex:column value="{!r.FirstName}" />
                  <apex:column value="{!r.LastName}" />
                  <apex:column value="{!r.ProfileId}"/>
            </Apex:pageblockTable>
              <Apex:pageblockTable value="{!groupMembers}" var="g" style="width: 200px">
                  <apex:column value="{!g.Group.Name}"/>
           </Apex:pageblockTable>
            
       </apex:pageBlock>
</apex:form>
</apex:page>


Hi, I have this error on my code:

 

public class Search_For_User
{
    String keyword;

    List<user>results = new List<user>();
    
    public String getkeyword(){
    return keyword;
    }
   
    public List<user> getresults(){
    return results;
    }
    
    public void setkeyword(String input){
    keyword = input;
    }
    
    public PageReference searchUser(){
    results = (List<User>)[FIND :keyword IN NAME FIELDS RETURNING USER(FirstName, LastName, ProfileId)][0];
    return null;
 
    }

     System.debug(results);
 
    
}
Can someone help me please...
I created a multiselect picklist in jQuery and it looks like this:User-added imagenow the code for this is: 
<!DOCTYPE html>
<html lang="en-us">
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>

<body>
<table>
<tr>
<td><select id="picklist1" multiple></select></td><td></td>
<td><select id="picklist2" multiple></select></td><td></td>
<td><select id="picklist3" multiple></select></td><td></td>
</tr>
</table>

<script>
(function($) {
	$.fn.multipicklist = function( options ) {
		var source = $(this[0]);
		var target = $(this[1]);
		if (options && options.length > 0) {
			$.each(options, function (i, item) {
				source.append($('<option>', {
    					value: i,
    					text: item
				}));
			});
		}

		var td = source.parent().next();
		td.append($('<p><a id="addTo' + target.attr('id') + '" href="#">&gt;</a></p>'));
		td.append($('<p><a id="subtractFrom' + target.attr('id') + '" href="#">&lt;</a></p>'));

		 $("#addTo" + target.attr('id')).click(function (e) { 
			target.append(source.find(":selected"));
			source.find(":selected").remove();
		});
		$("#subtractFrom" + target.attr('id')).click(function (e) { 
			source.append(target.find(":selected"));
			target.find(":selected").remove();
		});
	};

}(jQuery));

$("#picklist1, #picklist2").multipicklist(["option1","option2","option3","option4"]);
$("#picklist2, #picklist3").multipicklist();
</script>
</body>
</html>

And for this requirement I need the values from my picklist field instead of "option1","option2","option3","option4". Question is: How can get the values from my picklist field? I created a variable like this:

public Visit_Report__c record {get; set;}


then somewhere in my code, in my VF page i need to add this, I think:​​​​​​​

!record.Innovation_presented_to_customer__c
Any ideas how to implement this?
hi, i'm a newbie in development and i have this task to add one more box in the VF page. Now, we have only 2 boxes one is Available and the other one is Chosen.. but now the client wants one more box and it has to be like this: First box - Available, Second box - Presented, third box - Interested... and I don't know how to add the third box. I tried to look up in the code and I found the code which make this boxes...User-added imageUser-added imageI'm not sure how to add the third box in here... some suggestions, please?

Hi, I want to change my column from 'Name' into 'Queue Name'. Is it possible?

User-added image

my VF code

 

<apex:page controller="Search_For_User">
<apex:form style="width: 500px" >
       <apex:pageBlock tabStyle="Account" >

              <apex:inputText value="{!keyword}"/>
              <apex:commandButton value="Search" action="{!searchUser}"/>

            <Apex:pageblockTable value="{!results}" var="r" style="width: 450px">
                  <apex:column value="{!r.FirstName}" />
                  <apex:column value="{!r.LastName}" />
                  <apex:column value="{!r.ProfileId}"/>
            </Apex:pageblockTable>
              <Apex:pageblockTable value="{!groupMembers}" var="g" style="width: 200px">
                  <apex:column value="{!g.Group.Name}"/>
           </Apex:pageblockTable>
            
       </apex:pageBlock>
</apex:form>
</apex:page>
hi, i'm a newbie in development and i have this task to add one more box in the VF page. Now, we have only 2 boxes one is Available and the other one is Chosen.. but now the client wants one more box and it has to be like this: First box - Available, Second box - Presented, third box - Interested... and I don't know how to add the third box. I tried to look up in the code and I found the code which make this boxes...User-added imageUser-added imageI'm not sure how to add the third box in here... some suggestions, please?