• Nitish 73
  • NEWBIE
  • 50 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 10
    Replies
Hi All, 

We have an issue with the email settings on our org. 
We have a third party app that sends out emails to the concerned contacts and it ONLY works if the Outgoing Email Settings is configured as Salesforce. But, the problem is that all the users system wide have the Outgoing Email Settings configured to Office 365

User-added image


Is there a way I can change the Outgoing Email Settings for all the users in my org?

I couldnt find anything related to the Outgoing Email Settings on the Salesforce SOAP API Developer Guide. 

I'd really appreciate any help on this. 

Thanks!
Nitish
Hi guys, 

I am trying to deploy a permission set from my Eclipse project to my salesforce org with 'Save to server' option. But I am constantly getting this error 

Description Resource Path Location Type
Save error: Unable to create/update fields: UserLicenseId. Please check the security settings of this field and verify that it is read/write for your profile or permission set.



I checked the field access in respect to this error. I am performing this operation with Sys Admin profile who has access to all the possible fields. 

I have been at it for quite some time now and havent been able to figure out whats the issue. 

I would really appreciate it, if you guys could help me with this. 


Thanks
Nitish
Hi All, 

I have a requirement where I need to find if there are any URLs in a long text area and replace them with clickable links on a VF page.


User-added image


In the above screenshot, I need to make the URL clickable on the VF page. 

Here is the VF page and Apex class code 


 
<apex:page standardController="account" extensions="longtorich">
  <apex:form >
      <apex:pageBlock >
          <apex:pageBlockSection >
          <apex:outputPanel >
           <p>PARAGRAPH -------------- {!wizardQuestion}</p><br/>
          </apex:outputpanel>
          </apex:pageBlockSection>
      </apex:pageBlock>
  </apex:form>
</apex:page>







******************Controller ***********************


public class longtorich {

public String wizardQuestion { get; set; }
        public longtorich(ApexPages.StandardController controller) {
     Account a = [SELECT ID,Name, long_to_rich__c FROM Account WHERE ID=:'001j000000G7bfA'];
    wizardQuestion = a.long_to_rich__c;

    }
   
}


I would be thankful if any of you could help me with this. 


Thanks
Nitish
 
Hello All, 

I have a requirement where I need to present a Master detail objects in the form of a question(master) and radio button options (detail)

Example:

1. What is the Capital of USA
  • Washington DC
  • Newyork
2. What is the Capital of India
  • New Delhi
  • Mumbai
  • Hyderabad
  • Bangalore
  • Chennai
3. What color is a Rose
  • Red
  • Pink
  • Yellow

Here the Master record is the Question and the Child options are the detail records. 

User-added image

I have achieved half of it, but I am finding difficulty associating the detail records to their respective masters on the VF page

User-added image

Here is the code 
 
<apex:page standardController="EFL_Inspection_Questionnaire__c" extensions="CARPOL_inspection_questionnaire" showHeader="true" >
  <h1>This is how the Questionnaire is going to look</h1>
  <apex:form >
  <apex:repeat value="{!qs}" var="q" id="theRepeat">
        <apex:outputText value="{!q.Question__c}" id="question"/><br/>
        <apex:selectRadio value="{!country}">
            <apex:selectOptions value="{!items}"/>
        </apex:selectRadio>
        <apex:inputField value="{!q.Comments__c}" style="width: 400px; height: 40px" id="comments"/><br/><br/><br/>
    </apex:repeat>
    
    

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



**********************************************controller*************************************

public class CARPOL_inspection_questionnaire {
    String country = null;
    List<EFL_Inspection_Questionnaire_Questions__c> questionnairequestions = new List<EFL_Inspection_Questionnaire_Questions__c>();
    Id questionnaireid;
    public CARPOL_inspection_questionnaire(ApexPages.StandardController controller) {
    questionnaireid = ApexPages.currentPage().getParameters().get('id');
    }
    
    public List<EFL_Inspection_Questionnaire_Questions__c> getqs() {
       questionnairequestions= [SELECT ID,NAME,Question__c,Comments__c,Answer__c FROM EFL_Inspection_Questionnaire_Questions__c WHERE EFL_Inspection_Questionnaire__c=:questionnaireid];
        return questionnairequestions;
    }
    
    public List<SelectOption> getItems() {
        List<SelectOption> options = new List<SelectOption>();
        
        List< EFL_Inspection_Questionnaire_Responses__c > responseoptions = new List< EFL_Inspection_Questionnaire_Responses__c >();
        responseoptions = [SELECT ID,NAme, EFL_Inspection_Questionnaire_Questions__c, Response__c FROM EFL_Inspection_Questionnaire_Responses__c WHERE EFL_Inspection_Questionnaire_Questions__c IN:questionnairequestions];
        
        for(EFL_Inspection_Questionnaire_Responses__c r:responseoptions){
            options.add(new SelectOption(r.Response__c,r.Response__c));
        }
        return options;
    }
    
    public String getCountry() {
        return country;
    }
                     
    public void setCountry(String country) { 
        this.country = country; 
    }
}




I would be grateful if anyone could help me out with this. 


Thanks a lot
Nitish
Hi everyone, 

I have a client requirement, where I have to de-duplicate a list before inserting. But I have to de-duplicate it on a field (Signature Regulation field), not the Record ID


User-added image

How can I de-duplicate this list. Just need to check if there are any records with the same SRJN and remove them from the list before inserting. 

Any help is much appreciated. 


Thanks!
Hi Everyone, 

I have 2 lists of type String and I want to compare both of them and see if the elements inside them match and return something. 
Here is the code snippet. 
 
List<Required_Documents__c> Docslist = [SELECT ID, Decision_Matrix__c, Required_Docs__c FROM Required_Documents__c WHERE Decision_Matrix__c IN: DMList];
    
    
    List<String> dmside = new List<String>();
    for(Required_Documents__c req : Docslist){
        dmside.add(req.Required_Docs__c);
    }

//output of dmside  ----- Health Certificate; Medical History Certificate ; Treatment Certificate

 List<Applicant_Attachments__c> Lineattachments = [SELECT ID, Document_Types__c FROM Applicant_Attachments__c WHERE AC__c=:LineList[0].Id];
    List<String> lineside = new List<String>();
    for(Applicant_Attachments__c a: Lineattachments){
        lineside.add(a.Document_Types__c);
    }

//output of lineside ----- Health Certificate; Treatment Certificate; Medical History Certificate

The order doesnt matter, all I need to check is 'Do the elements in lineside list match with elements in dmside' . How can I compare them and achieve this. 
Any help is appreciated. 

Thanks
 
Hi everyone, 

I am trying to build a dynamic SOQL Query and I am getting this error. If any of you can help, I'd be very thankful. 
Here is the code
 
SObjectType objToken = Schema.getGlobalDescribe().get('AC__c');
system.debug('<<<! objToken'+objtoken);
       DescribeSObjectResult objDef = objToken.getDescribe();
       Map<String, SObjectField> fields = objDef.fields.getMap(); 
system.debug('<<<!!!! fields'+fields);
       AC__c newline = new AC__c();

		newline.Is_it_for_Commercial_Use__c   = 'No';
		newLine.Movement_Type__c = 'Import';
		String var='';
	List<SObjectField> sfield = fields.values();

	for(sobjectfield c: sfield){
       
        var+=c+',';
    }
var = var.removeEnd(',');
String q = 'Select '+var+' FROM AC__c WHERE ID=\'' + 'a00r000000164eq' + '\'';

//ID=\'' + varID + '\''
system.debug('<<!!! AC Fields'+q);

List<sObject> sobjList = Database.query(q);
system.debug(' <<<!!! sobjList ACCCCCCCC'+sobjList);
system.debug('AC size '+sobjlist.size());




SObjectType objDM = Schema.getGlobalDescribe().get('Regulations_Association_Matrix__c');
       system.debug('<<< objDM'+objDM);
DescribeSObjectResult objDeff = objDM.getDescribe();
Map<String, SObjectField> DMfields = objDeff.fields.getMap(); 

system.debug('<<<<<<<<<DM Fields'+DMFields);
      // AC__c newline = new AC__c();
		//newline.Is_it_for_Commercial_Use__c   = 'No';
		String var2='';
	List<SObjectField> sfielddm = DMfields.values();

	for(sobjectfield c: sfielddm){
       
        var2+=c+',';
    }
var2 = var2.removeEnd(',');

system.debug('var2'+var2);
String[] varlist = var2.split(',');
system.debug('((((((((((((( varlist'+varlist);
String dmm = 'Select '+var2+' FROM Regulations_Association_Matrix__c';
system.debug('<<!!! DM Fields'+dmm);

List<sObject> sobjListDM = Database.query(dmm);
system.debug('<<<!!!! SobjListDMMMMMMMMMM'+SobjListDM);
system.debug('DM size '+sobjlistDM.size());

List<String> fingers = new List<String>();
List<SObjectField> lop = new List<SobjectField>();
String str='';
string first='';
Map<String, SObjectField> finalmap = new Map<String, SObjectField>();

    for (String d: varlist){
        if(fields.containsKey(d))
        { 	
            system.debug('@@@@@@@@d'+d);
            fingers.add(d);
            finalmap.put(d,fields.get(d));
         }
        
        for(sobjectfield s: finalmap.values()){
            lop.add(s);
        }
        
    }

	for(sobjectfield md: lop){
            str+=+'('+md+' = :'+newline+'.'+md+' OR '+md+' = '+'\'\'   '+');'+' AND ';
            
        } 
    
system.debug('<<<<<<<!!!!!!!!!!!! str '+str);
String kjax = 'Select '+var2+' FROM Regulations_Association_Matrix__c WHERE '+str;
system.debug('<<<! kjax'+kjax);

List<sObject> dmlist = Database.query(kjax);

Everything works fine. Even the Query string I formed in 'kjax' variable is also what I wanted. 

But when I execute, I am getting the error 

System.QueryException: unexpected token: ':' 

When I remove the ':'  , Iam getting this error

System.QueryException: expecting a colon, found 'AC__c' 


Can you guys guide me as to where am I going wrong on this. Would be really grateful


Thanks
Nitish
Hi Everyone, 

I have a requirement where I need to capture the field API Name and the response given to that in a map (in an apex class). 
Like, If on the object record edit page, the Applicant answers 

Country : Canada (Answer is a picklist) 

So, then I need to capture this as a map like

(Country__c, Canada) 


Can you guys guide me on how to achieve this ? 


Thanks
 
Hi All, 

I am trying to conditionally run a trigger with an IF condition.

But this is the error I get

"Comparison arguments must be compatible types"


Here is my code. My requirement is that, this trigger has to run when the Status is not 'Approved' or 'Issued'
trigger Insert_Junction on Authorizations__c (After update) {
if(Authorizations__c.Status__c<>'Approved' || Authorizations__c.Status__c<>'Issued'){
    CreateJunction createjunction = new CreateJunction();
    createjunction .createJunctionRecord(trigger.new);
}
}

Any help is appreciated. 


Thanks
Nitish
Hi All, 

I am trying to display the address of a contact on a visualforce page. I am trying to reference the field 'Mailing Address' so that I would get that little google maps snapshot, like we do on the standard Contact detail page

User-added image
But I am getting an error 

Unsupported type: common.api.soap.wsdl.Address used in expression: Contact.MailingAddress

I have leanrt from some forums that the Mailing address is a compounded field and hence cannot be referenced . Is there a way I can mimic this Mailing Address and display that little google snapshot ? 


Any help is appreciated. 


Thanks
Nitish
Hi All, 

I have a requirement where I need to render a button based on certain condition. 
The condition is 
  • Show the 'View All' button if there are more than 3 records in the table that is displayed on the visualforce page. So that when they click that , it will show more records. 
Kind of like mimicing 'Show more' link in related list records. 
 
<apex:commandButton rendered="{!if(({!AC.size} >3) ,true,false)}"   value="View All" onclick="return false;" html-data-toggle="modal" html-data-target="#myModal" styleClass="btn-success"/>
It is throwing an error . Can anybody help me with this? 


Thanks
Nitish
 
Hi Everyone, 

I have a requirement where in I am leveraging twitter bootstrap (from Visualstrap - The app exchange tool) in my visualforce page and I hit a road block. 

I have a 2 look up fields (Applicant Name, Owner) on my VF page, but they isnt rendering like a normal once. PFA the picture attached.I would like them to render like a normal field (without those separations). 


User-added image

Here is my code. I would be greatful, if you can help me resolve this issue
 
<apex:page standardController="Application__c" >
 <vs:importvisualstrap />
 
 
   <script>
      function goToDetailPage(recId){
          if(typeof sforce != 'undefined' && typeof sforce.one != 'undefined'){
              sforce.one.navigateToSObject(recId);
          }
          else{
              window.location.href = '/'+recId;
          }
          return false;
      }
   </script>
   
   <vs:visualstrapblock style="font-size: 15px;"  >
       <apex:form >
       <apex:pageBlock >
       <center>
         <vs:pageheader style="color:#006600"  title="New Application" icon="file" subtitle="{!Application__c.Name}"/>
      </center>
      <center>
           <vs:formblock alignment="horizontal" style=" margin-top: 20px; marrgin-bottom: 20px;  margin-left: 20px;" >
        <div class="span7 text-center">
                  
                     <apex:commandButton value="Save" styleClass="btn-success"/> &nbsp;
                     <apex:commandButton value="Edit" styleClass="btn-success"/> &nbsp;
                     
                  
               </div><br/><br/>
   <vs:row style="align:center">
   <vs:column type="col-md-6">
     
      
            <apex:outputLabel >Applicant Name</apex:outputLabel>
            
        <apex:inputfield id="Employee" value="{!Application__c.Applicant_Name__c}" styleClass="form-control">
            </apex:inputfield>
    <br/><br/>
 </vs:column>


<vs:column type="col-md-6">
           <apex:outputLabel >Record Type</apex:outputLabel>
     <apex:inputfield value="{!Application__c.RecordTypeID}" styleClass="form-control" html-placeholder="Record Type"></apex:inputfield>
     <br/><br/>
     
      <apex:outputLabel >Status</apex:outputLabel>
            <apex:inputfield value="{!Application__c.Application_Status__c}" styleClass="form-control" html-placeholder="Status"></apex:inputfield>
     <br/><br/>
     
     <apex:outputLabel >Owner</apex:outputLabel>
       <apex:inputHidden id="Employee_lkid" value="{!Application__c.OwnerID}"/>
     <apex:inputfield value="{!Application__c.OwnerID}" styleClass="form-control" html-placeholder="Owner"></apex:inputfield><br/>
    
    </vs:column>
    </vs:row>
    
    </vs:formblock>
    </center>
    </apex:pageblock>
    </apex:form>
    </vs:visualstrapblock>
</apex:page>

Thanks
Nitish

 
Hi All,

I have a visualforce page which displays thumbnails of the attached images to that record. I put up checkboxes under each thumbnail to select the ones the user wants to delete, and have a remove button at the bottom. I want to pass the parameters of the selected checkboxes into the controller and delete only the selected ones. How can I achieve this ?

Any help is much appreciated. Thanks
Hi guys, 

I am trying to deploy a permission set from my Eclipse project to my salesforce org with 'Save to server' option. But I am constantly getting this error 

Description Resource Path Location Type
Save error: Unable to create/update fields: UserLicenseId. Please check the security settings of this field and verify that it is read/write for your profile or permission set.



I checked the field access in respect to this error. I am performing this operation with Sys Admin profile who has access to all the possible fields. 

I have been at it for quite some time now and havent been able to figure out whats the issue. 

I would really appreciate it, if you guys could help me with this. 


Thanks
Nitish
Hello All, 

I have a requirement where I need to present a Master detail objects in the form of a question(master) and radio button options (detail)

Example:

1. What is the Capital of USA
  • Washington DC
  • Newyork
2. What is the Capital of India
  • New Delhi
  • Mumbai
  • Hyderabad
  • Bangalore
  • Chennai
3. What color is a Rose
  • Red
  • Pink
  • Yellow

Here the Master record is the Question and the Child options are the detail records. 

User-added image

I have achieved half of it, but I am finding difficulty associating the detail records to their respective masters on the VF page

User-added image

Here is the code 
 
<apex:page standardController="EFL_Inspection_Questionnaire__c" extensions="CARPOL_inspection_questionnaire" showHeader="true" >
  <h1>This is how the Questionnaire is going to look</h1>
  <apex:form >
  <apex:repeat value="{!qs}" var="q" id="theRepeat">
        <apex:outputText value="{!q.Question__c}" id="question"/><br/>
        <apex:selectRadio value="{!country}">
            <apex:selectOptions value="{!items}"/>
        </apex:selectRadio>
        <apex:inputField value="{!q.Comments__c}" style="width: 400px; height: 40px" id="comments"/><br/><br/><br/>
    </apex:repeat>
    
    

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



**********************************************controller*************************************

public class CARPOL_inspection_questionnaire {
    String country = null;
    List<EFL_Inspection_Questionnaire_Questions__c> questionnairequestions = new List<EFL_Inspection_Questionnaire_Questions__c>();
    Id questionnaireid;
    public CARPOL_inspection_questionnaire(ApexPages.StandardController controller) {
    questionnaireid = ApexPages.currentPage().getParameters().get('id');
    }
    
    public List<EFL_Inspection_Questionnaire_Questions__c> getqs() {
       questionnairequestions= [SELECT ID,NAME,Question__c,Comments__c,Answer__c FROM EFL_Inspection_Questionnaire_Questions__c WHERE EFL_Inspection_Questionnaire__c=:questionnaireid];
        return questionnairequestions;
    }
    
    public List<SelectOption> getItems() {
        List<SelectOption> options = new List<SelectOption>();
        
        List< EFL_Inspection_Questionnaire_Responses__c > responseoptions = new List< EFL_Inspection_Questionnaire_Responses__c >();
        responseoptions = [SELECT ID,NAme, EFL_Inspection_Questionnaire_Questions__c, Response__c FROM EFL_Inspection_Questionnaire_Responses__c WHERE EFL_Inspection_Questionnaire_Questions__c IN:questionnairequestions];
        
        for(EFL_Inspection_Questionnaire_Responses__c r:responseoptions){
            options.add(new SelectOption(r.Response__c,r.Response__c));
        }
        return options;
    }
    
    public String getCountry() {
        return country;
    }
                     
    public void setCountry(String country) { 
        this.country = country; 
    }
}




I would be grateful if anyone could help me out with this. 


Thanks a lot
Nitish
Hi Everyone, 

I have 2 lists of type String and I want to compare both of them and see if the elements inside them match and return something. 
Here is the code snippet. 
 
List<Required_Documents__c> Docslist = [SELECT ID, Decision_Matrix__c, Required_Docs__c FROM Required_Documents__c WHERE Decision_Matrix__c IN: DMList];
    
    
    List<String> dmside = new List<String>();
    for(Required_Documents__c req : Docslist){
        dmside.add(req.Required_Docs__c);
    }

//output of dmside  ----- Health Certificate; Medical History Certificate ; Treatment Certificate

 List<Applicant_Attachments__c> Lineattachments = [SELECT ID, Document_Types__c FROM Applicant_Attachments__c WHERE AC__c=:LineList[0].Id];
    List<String> lineside = new List<String>();
    for(Applicant_Attachments__c a: Lineattachments){
        lineside.add(a.Document_Types__c);
    }

//output of lineside ----- Health Certificate; Treatment Certificate; Medical History Certificate

The order doesnt matter, all I need to check is 'Do the elements in lineside list match with elements in dmside' . How can I compare them and achieve this. 
Any help is appreciated. 

Thanks
 
Hi everyone, 

I am trying to build a dynamic SOQL Query and I am getting this error. If any of you can help, I'd be very thankful. 
Here is the code
 
SObjectType objToken = Schema.getGlobalDescribe().get('AC__c');
system.debug('<<<! objToken'+objtoken);
       DescribeSObjectResult objDef = objToken.getDescribe();
       Map<String, SObjectField> fields = objDef.fields.getMap(); 
system.debug('<<<!!!! fields'+fields);
       AC__c newline = new AC__c();

		newline.Is_it_for_Commercial_Use__c   = 'No';
		newLine.Movement_Type__c = 'Import';
		String var='';
	List<SObjectField> sfield = fields.values();

	for(sobjectfield c: sfield){
       
        var+=c+',';
    }
var = var.removeEnd(',');
String q = 'Select '+var+' FROM AC__c WHERE ID=\'' + 'a00r000000164eq' + '\'';

//ID=\'' + varID + '\''
system.debug('<<!!! AC Fields'+q);

List<sObject> sobjList = Database.query(q);
system.debug(' <<<!!! sobjList ACCCCCCCC'+sobjList);
system.debug('AC size '+sobjlist.size());




SObjectType objDM = Schema.getGlobalDescribe().get('Regulations_Association_Matrix__c');
       system.debug('<<< objDM'+objDM);
DescribeSObjectResult objDeff = objDM.getDescribe();
Map<String, SObjectField> DMfields = objDeff.fields.getMap(); 

system.debug('<<<<<<<<<DM Fields'+DMFields);
      // AC__c newline = new AC__c();
		//newline.Is_it_for_Commercial_Use__c   = 'No';
		String var2='';
	List<SObjectField> sfielddm = DMfields.values();

	for(sobjectfield c: sfielddm){
       
        var2+=c+',';
    }
var2 = var2.removeEnd(',');

system.debug('var2'+var2);
String[] varlist = var2.split(',');
system.debug('((((((((((((( varlist'+varlist);
String dmm = 'Select '+var2+' FROM Regulations_Association_Matrix__c';
system.debug('<<!!! DM Fields'+dmm);

List<sObject> sobjListDM = Database.query(dmm);
system.debug('<<<!!!! SobjListDMMMMMMMMMM'+SobjListDM);
system.debug('DM size '+sobjlistDM.size());

List<String> fingers = new List<String>();
List<SObjectField> lop = new List<SobjectField>();
String str='';
string first='';
Map<String, SObjectField> finalmap = new Map<String, SObjectField>();

    for (String d: varlist){
        if(fields.containsKey(d))
        { 	
            system.debug('@@@@@@@@d'+d);
            fingers.add(d);
            finalmap.put(d,fields.get(d));
         }
        
        for(sobjectfield s: finalmap.values()){
            lop.add(s);
        }
        
    }

	for(sobjectfield md: lop){
            str+=+'('+md+' = :'+newline+'.'+md+' OR '+md+' = '+'\'\'   '+');'+' AND ';
            
        } 
    
system.debug('<<<<<<<!!!!!!!!!!!! str '+str);
String kjax = 'Select '+var2+' FROM Regulations_Association_Matrix__c WHERE '+str;
system.debug('<<<! kjax'+kjax);

List<sObject> dmlist = Database.query(kjax);

Everything works fine. Even the Query string I formed in 'kjax' variable is also what I wanted. 

But when I execute, I am getting the error 

System.QueryException: unexpected token: ':' 

When I remove the ':'  , Iam getting this error

System.QueryException: expecting a colon, found 'AC__c' 


Can you guys guide me as to where am I going wrong on this. Would be really grateful


Thanks
Nitish
Hi All, 

I am trying to conditionally run a trigger with an IF condition.

But this is the error I get

"Comparison arguments must be compatible types"


Here is my code. My requirement is that, this trigger has to run when the Status is not 'Approved' or 'Issued'
trigger Insert_Junction on Authorizations__c (After update) {
if(Authorizations__c.Status__c<>'Approved' || Authorizations__c.Status__c<>'Issued'){
    CreateJunction createjunction = new CreateJunction();
    createjunction .createJunctionRecord(trigger.new);
}
}

Any help is appreciated. 


Thanks
Nitish
Hi All, 

I am trying to display the address of a contact on a visualforce page. I am trying to reference the field 'Mailing Address' so that I would get that little google maps snapshot, like we do on the standard Contact detail page

User-added image
But I am getting an error 

Unsupported type: common.api.soap.wsdl.Address used in expression: Contact.MailingAddress

I have leanrt from some forums that the Mailing address is a compounded field and hence cannot be referenced . Is there a way I can mimic this Mailing Address and display that little google snapshot ? 


Any help is appreciated. 


Thanks
Nitish
Hi All, 

I have a requirement where I need to render a button based on certain condition. 
The condition is 
  • Show the 'View All' button if there are more than 3 records in the table that is displayed on the visualforce page. So that when they click that , it will show more records. 
Kind of like mimicing 'Show more' link in related list records. 
 
<apex:commandButton rendered="{!if(({!AC.size} >3) ,true,false)}"   value="View All" onclick="return false;" html-data-toggle="modal" html-data-target="#myModal" styleClass="btn-success"/>
It is throwing an error . Can anybody help me with this? 


Thanks
Nitish
 
Hi All,

I have a visualforce page which displays thumbnails of the attached images to that record. I put up checkboxes under each thumbnail to select the ones the user wants to delete, and have a remove button at the bottom. I want to pass the parameters of the selected checkboxes into the controller and delete only the selected ones. How can I achieve this ?

Any help is much appreciated. Thanks

Hi All,

 

I have one scinario. in that scinario I am making a multiple record editing page. Where user can add, Edit , delete multiple records at a time.

I have some of the fields required in that object. Please have a look of following image for better understading : 

 

https://drive.google.com/file/d/0B-kKCGMuue-fdFpqT19YMDhWbEU/edit?usp=sharing

 

Problems : 

1. suppose user hit on '+' button he will get a new row. But if he want to do undo, by selecting 2nd row and click on '-' sign than also it is asking to enter required field.

2. If i use Immediate or apex:actionregion than selected list is not passing to controller and it showing error please select a row (Which i am thorwing)

 

Can anyone provide best solution for this type of scinario

 

---- Lot of thanks for the help ---