• Abhishek Pal 33
  • NEWBIE
  • 15 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 22
    Questions
  • 30
    Replies
Hello,

I am using inlineEditSupport tag in VF page where the rows are getting displayed dynamically.
My requirement is that I need to uncheck the checbox on undo button of inlineEditSupport.

For this I am using the resetFunction but I am not to get the current row so that I can disable the checkbox.

Plese see code for reference :-

<apex:outputfield value="{!a.cAccount[f]}" rendered="{!f.type != 'picklist'  && f.fieldPath!='Name'}" id="AccValue">
                                                    <apex:actionSupport event="onchange" rendered="{!a.fieldIsChanged = true}"/> 
                                                    <apex:inlineEditSupport event="onClick" resetFunction="test(this)"/>
                                                </apex:outputfield>


I tried to use this operator but I am geting  [object window] at console and don't know how to retreive values if any.

Please help, I am stuck in this from last one week.

Thanks in advance.
Hello Everyone,

Please see below code:-

<apex:outputfield value="{!a.cAccount[f]}" rendered="{!f.type != 'picklist' && (EditEnabled == null || EditEnabled == false || a.isSelected == false) && f.fieldPath!='Name'}" id="AccValue">
                                                    <apex:actionSupport event="onchange"  rendered="{!a.fieldIsChanged = true}"/> 
                                                    <apex:inlineEditSupport event="onClick" rendered="{!DisableInlineEdit == false && (isMobile == false && (MultiEditOn == null || MultiEditOn == false))}" />
                                                </apex:outputfield>

I am not able to understand the code in bold.

Please help .

Thanks in advance.
Hello Everyone,

I want to use a Javascript function on inlineEditSupport tag which will check the checbox corresponding to the record on which I am editing the field.

Please see the code snippet:-

 <apex:outputfield value="{!a.cAccount[f]}" rendered="{!f.type != 'picklist' && (EditEnabled == null || EditEnabled == false || a.isSelected == false) && f.fieldPath!='Name'}" id="AccValue">
                                                    <apex:actionSupport event="onchange"  rendered="{!a.fieldIsChanged = true}"/> 
                                                    <apex:inlineEditSupport event="onClick" rendered="{!DisableInlineEdit == false && (isMobile == false && (MultiEditOn == null || MultiEditOn == false))}" />
                                                </apex:outputfield>

Thanks in advance.
Hello everyone,

I am using a VF page where user click on Execute Button then the Batch will execute. Now I am using Database.upsert(scope,false) which means if the record failed then the complete batch will not fail only the records which have error failed?

How can we show to the users which records are failed on VF page?

NOTE: What have read in the docs that you can't pass value from batch apex to controller.

Thanks in advance.

-Abhishek
Hello Everyone,
I am getting SOQL exception whenever I will insert records more than 1000. Now the scenario is when all the records inserted it only executes 3 SOQL statements but then Trigger fired (Before Insert,After Insert,Before Update,After Update) in a batch of 200. 

The same code of trigger repeats for each 200 batch of records and then the SOQL limits increased to 100 in the last batch and then ultimately failed.

The issue is it all executed in one apex transaction.(Apex Transaction Limit 100)

NOTE: I cannot change the functionality inside the trigger.

Is there any solution for this sceanrio?

Thanks in advance.

-Abhishek
Hello Everyone,

In one of the apex class I am hitting the SOQL queries governor limit. But I have not written any SOQL statements in it.
For the below code I am getting  Number of Queries used in this Apex code so far in updateStoreStatus: 100.

Code:-

 List<Account> updateAccounts = new List<Account>();
        List<Id> updateAccountIds = new List<Id>();
        // Check if the TD Status changed from closed to open or pending to open        for(Account newAccount : newAccounts.values()) {
            if( (newAccount.TD_Status__c == 'Open') && 
                (oldAccounts.get(newAccount.id).store_Status__c == 'Closed' || oldAccounts.get(newAccount.id).store_Status__c == 'Pending' )) {
                    updateAccountIds.add(newAccount.id);
            }
        }
        System.debug(LoggingLevel.INFO,'UpdateStoreList Size' + updateAccountIds.size());

Can someone please help how this code giving me 100 SOQL execution.?

NOTE:- If I check logs I can see lots of workflow and validation rules are executing.

Thanks in advance.

-Abhishek
I am using relationships in soql and have about 10k records. Does anyone knows how to export because I am getting an error as "Bulk API is not supported in salesforce.

Error:---> "FUNCTIONALITY_NOT_ENABLED: Foreign Key Relationships not supported in Bulk Query".

I saw lot of posts about this but dont find any solution yet.

I am facing this error for a quite while now. Please help if anyone found a solution for this.

Thanks in advance.

-Abhishek
I have a SOQL query which is returning approx(3 lacs) record. I want to import those record in excel can you please suggest some method/ways to do this?

I have tried using dataloader.io,query editor etc but no success.

One more question I was stuck in similar conditon when I am trying to delete those many records(3 lacs).

Thanks in advance.
I want to cover the below line in my test case but I am not able to do that. I have created the campaign ID and have set properly in Order_credit__c but in actual apex class the below query is not coverage in test cases.

In Test case:-

Before update Order_Credit__c:{RecordTypeId=012E00000005hDGIAY, Status__c=Submitted, Approval_Required_Reason__c=Test, Account__c=0012200000B6V66AAF, Id=a0A22000000GW5qEAG, Campaign__c=7012200000017LjAAI, Order_Type__c=Suggested}

When control goes to below code in actual class it doesnt find anything.

Code:

for(Order_Credit__c orderCredit: [SELECT id, Order_Type__c FROM Order_Credit__c WHERE Order_Campaign__c IN :campaignIdSet  AND Status__c = 'Submitted'])

NOTE: I can understand the data is generated locally and is available only in scope of that class but is there any way that I can cover the above query in test class.

Please help, thanks in advance.

-Abhishek
I have a query which I am using in workbench which includes a subquery in it. Now I want to generate a report with similar query. 

Can you please help?

Thanks in advance.

NOTE: Its in reports application in salesforce.
IS there any way through which I can add UserTerritory Object in salesforce. I dont want to use the APIs.
How to use DML operation in User Territory Object in salesforce. I searched on Google and they said use salesforce SOAP API to resolve this. Does anyone has some example I didnt have much idea about it?

Thanks in advance.

-Abhishek
Hello Everyone,

I am stuck at one point that My requirement is that I want to write data in csv once my record in inserted successfully in salesforce or failed. For eg: there is column in csv (Flag) I want to make it true when record in inserted succcess.

Thanks in advance.
I have a uploaded one excel file in folder called(New Data) in documents in salesforce. Now I want to read the contents of that excel file using apex code so that I can perform some logic and insert the data in salesforce standard object(user).

Anyone please help me in this.

Code: Document test=[select body from document where developerName='test'];
System.debug('Values :'+test);

String s= EncodingUtil.base64Encode(test.body);
System.debug('Blob value :'+s);

Result:12:29:29:009 USER_DEBUG [5]|DEBUG|Blob value :UEsDBBQABgAIAAAAIQBi7p1oXgEAAJAEAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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L19yZWxzL3dvcmtib29rLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAODoGfI3AgAAkQQAAA8AAAAAAAAAAAAAAAAA7wgAAHhsL3dvcmtib29rLnhtbFBLAQItABQABgAIAAAAIQAwQXUqFgEAABUCAAAUAAAAAAAAAAAAAAAAAFMLAAB4bC9zaGFyZWRTdHJpbmdzLnhtbFBLAQItABQABgAIAAAAIQCwtNs01wAAAEgBAAAjAAAAAAAAAAAAAAAAAJsMAAB4bC93b3Jrc2hlZXRzL19yZWxzL3NoZWV0MS54bWwucmVsc1BLAQItABQABgAIAAAAIQCLgm5YkwYAAI4aAAATAAAAAAAAAAAAAAAAALMNAAB4bC90aGVtZS90aGVtZTEueG1sUEsBAi0AFAAGAAgAAAAhAHNbCPXnAgAAIAcAAA0AAAAAAAAAAAAAAAAAdxQAAHhsL3N0eWxlcy54bWxQSwECLQAUAAYACAAAACEAAR/4YC8CAAAUBQAAGAAAAAAAAAAAAAAAAACJFwAAeGwvd29ya3NoZWV0cy9zaGVldDEueG1sUEsBAi0AFAAGAAgAAAAhAPRCZ8iQAQAAGAMAABAAAAAAAAAAAAAAAAAA7hkAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAkRpz80UBAABtAgAAEQAAAAAAAAAAAAAAAAC0HAAAZG9jUHJvcHMvY29yZS54bWxQSwUGAAAAAAsACwDRAgAAMB8AAAAA


Couldnt understand how to decode this? 
Also I want to write in excel once user is created in salesforce.
(Say Flag=true)

Thanks in advance.
Hi,

I have a field (Flag) in csv file , I want to set this field to true whenever new user is inserted in salesforce through apex code.

Below is the code:

public void getDataFromCsv(){
        Document documentTest=[select id, body from document where developername = 'New_Hire_Data'];
        List<User> userDetails= new List<User> ();
        string strCsvBody = '';
        string[] arrCsv;
        String[] inputvalues = new String[]{};
            List<String> roleList = new List<String>();
        List<Territory> createRole= new List<Territory>();
        User test = new User();
        UserRole createNewRole= new UserRole(); 
        
            strCsvBody = documentTest.body.toString();
            arrCsv = strCsvBody.split('\n');                
            System.debug('array value '+ arrCsv);
        
        for (Integer i=1;i<arrCsv.size();i++)   {
            
            inputvalues = arrCsv[i].split(',');
            System.debug('input :'+inputvalues);
            test.Alias= inputvalues[0];
            test.CommunityNickname=inputvalues[1];
            test.Email=inputvalues[2];
            test.FirstName=inputvalues[3];
            test.LastName=inputvalues[4];
            test.ProfileId=inputvalues[5];
            test.Username=inputvalues[6];
            test.EmailEncodingKey=inputvalues[7];
            test.LanguageLocaleKey=inputvalues[8];
            test.LocaleSidKey=inputvalues[9];
            test.TimeZoneSidKey=inputvalues[10];
            roleList.add(inputvalues[11]);
            System.debug('role :'+roleList);
            // test.UserRoleId=inputvalues[12];
            userDetails.add(test);
            System.debug('User details'+userDetails);
            insert userDetails;
        }
 
I have a uploaded one csv file in folder called(New Data) in documents in salesforce. Now I want to read the contents of that csv file using apex code so that I can perform some logic and insert the data in salesforce standard object(user).

Anyone please help me in this.

Thanks in advance.
I have one requirement where I have excel/csv file in shared folder in salesforce. The columns in that excel/csv has data which needs to be mapped in salesforce standard object(user).

Could you please help in this ,how to proceed in that. Any code or documentation you can share will be very helpful to me in this.

One last question when I have created document in the folder in document, I am not able to edit it online and save in salesforce. Everytime I have to download in my local then upload a new copy in salesforce. Can this situation be avoided?

Thanks in Advance.
Hello everyone,
I have one controller written below and while writing test class I need to set the values for the upcNumbers so that I can call the validate method.  Also I need to test the success or failure message which I have written in controller class. But I am unable to set these values can someone please help.

public pagereference validate()
    {
        
         List <String> upcNumbers = new List <String>();
     
for(String upcNo : upcNumbers){
            
            Upcs = Upcs + upcNo +'\''+ ','+'\'';
        }
        Upcs =Upcs.removeEnd('\',\'');
       
        HttpResponse response = UPCAdderUtil.validateCallout(Upcs);
}
Hello Everyone,

How do I get object id inserted through test cases in salesforce.

Code:-
//Method which i need to test 

 public static Product__c addProduct(Product__c product){
       
          Product__c productToPersist = product;
        
        Product__c  insertedProduct;
        
       
            try{
               
                insert productToPersist;
                insertedProduct=[select Id, Short_Material_Number__c from Product__c where UPC_Code_for_Consumer_Units__c = :productToPersist.Short_Material_Number__c];  // When I am calling this method I am getting System.QueryException: List has no rows for assignment to SObject in test method.
}


//This is my testcase for above method


@isTest static void save()
  {
         
Product__c insertedProduct;
// here I am inserting addProduct through json.
insertedProduct=MultiUPCAdderUtil.addProduct(addProduct);  
}

Note: As per my understanding the data is not persisted in test case then how do I get the object id from the object when I am trying to insert in salesforce. As we can see that the reason why I am getting this exception because it is returning 0 rows and unable to persist the data and cdnt get the object id also.


 
Hello everyone,
I have as service which is running in my test env. When I try to call this service in salesforce I am getting this error “Unable to tunnel through proxy. Proxy returns "HTTP/1.0 404 Not Found".
 
Can someone plz help?

Thanks in Advance.
if i create a case no one can modifyed before 48 hours, i want to send an email to the user or a group? how can i do this can any one suggest?
Hello Everyone,
I am getting SOQL exception whenever I will insert records more than 1000. Now the scenario is when all the records inserted it only executes 3 SOQL statements but then Trigger fired (Before Insert,After Insert,Before Update,After Update) in a batch of 200. 

The same code of trigger repeats for each 200 batch of records and then the SOQL limits increased to 100 in the last batch and then ultimately failed.

The issue is it all executed in one apex transaction.(Apex Transaction Limit 100)

NOTE: I cannot change the functionality inside the trigger.

Is there any solution for this sceanrio?

Thanks in advance.

-Abhishek
Hello Everyone,

In one of the apex class I am hitting the SOQL queries governor limit. But I have not written any SOQL statements in it.
For the below code I am getting  Number of Queries used in this Apex code so far in updateStoreStatus: 100.

Code:-

 List<Account> updateAccounts = new List<Account>();
        List<Id> updateAccountIds = new List<Id>();
        // Check if the TD Status changed from closed to open or pending to open        for(Account newAccount : newAccounts.values()) {
            if( (newAccount.TD_Status__c == 'Open') && 
                (oldAccounts.get(newAccount.id).store_Status__c == 'Closed' || oldAccounts.get(newAccount.id).store_Status__c == 'Pending' )) {
                    updateAccountIds.add(newAccount.id);
            }
        }
        System.debug(LoggingLevel.INFO,'UpdateStoreList Size' + updateAccountIds.size());

Can someone please help how this code giving me 100 SOQL execution.?

NOTE:- If I check logs I can see lots of workflow and validation rules are executing.

Thanks in advance.

-Abhishek
I am using relationships in soql and have about 10k records. Does anyone knows how to export because I am getting an error as "Bulk API is not supported in salesforce.

Error:---> "FUNCTIONALITY_NOT_ENABLED: Foreign Key Relationships not supported in Bulk Query".

I saw lot of posts about this but dont find any solution yet.

I am facing this error for a quite while now. Please help if anyone found a solution for this.

Thanks in advance.

-Abhishek
I have a SOQL query which is returning approx(3 lacs) record. I want to import those record in excel can you please suggest some method/ways to do this?

I have tried using dataloader.io,query editor etc but no success.

One more question I was stuck in similar conditon when I am trying to delete those many records(3 lacs).

Thanks in advance.
I want to cover the below line in my test case but I am not able to do that. I have created the campaign ID and have set properly in Order_credit__c but in actual apex class the below query is not coverage in test cases.

In Test case:-

Before update Order_Credit__c:{RecordTypeId=012E00000005hDGIAY, Status__c=Submitted, Approval_Required_Reason__c=Test, Account__c=0012200000B6V66AAF, Id=a0A22000000GW5qEAG, Campaign__c=7012200000017LjAAI, Order_Type__c=Suggested}

When control goes to below code in actual class it doesnt find anything.

Code:

for(Order_Credit__c orderCredit: [SELECT id, Order_Type__c FROM Order_Credit__c WHERE Order_Campaign__c IN :campaignIdSet  AND Status__c = 'Submitted'])

NOTE: I can understand the data is generated locally and is available only in scope of that class but is there any way that I can cover the above query in test class.

Please help, thanks in advance.

-Abhishek
I have a query which I am using in workbench which includes a subquery in it. Now I want to generate a report with similar query. 

Can you please help?

Thanks in advance.

NOTE: Its in reports application in salesforce.
How to use DML operation in User Territory Object in salesforce. I searched on Google and they said use salesforce SOAP API to resolve this. Does anyone has some example I didnt have much idea about it?

Thanks in advance.

-Abhishek
Hello Everyone,

I am stuck at one point that My requirement is that I want to write data in csv once my record in inserted successfully in salesforce or failed. For eg: there is column in csv (Flag) I want to make it true when record in inserted succcess.

Thanks in advance.
I have a uploaded one excel file in folder called(New Data) in documents in salesforce. Now I want to read the contents of that excel file using apex code so that I can perform some logic and insert the data in salesforce standard object(user).

Anyone please help me in this.

Code: Document test=[select body from document where developerName='test'];
System.debug('Values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J3epYS8twF+zbdh+wt5ivEfYpKMiGdAkeGLD1J8AwAA//8DAFBLAQItABQABgAIAAAAIQBi7p1oXgEAAJAEAAATAAAAAAAAAAAAAAAAAAAAAABbQ29udGVudF9UeXBlc10ueG1sUEsBAi0AFAAGAAgAAAAhALVVMCP0AAAATAIAAAsAAAAAAAAAAAAAAAAAlwMAAF9yZWxzLy5yZWxzUEsBAi0AFAAGAAgAAAAhAIE+lJfzAAAAugIAABoAAAAAAAAAAAAAAAAAvAYAAHhsL19yZWxzL3dvcmtib29rLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAODoGfI3AgAAkQQAAA8AAAAAAAAAAAAAAAAA7wgAAHhsL3dvcmtib29rLnhtbFBLAQItABQABgAIAAAAIQAwQXUqFgEAABUCAAAUAAAAAAAAAAAAAAAAAFMLAAB4bC9zaGFyZWRTdHJpbmdzLnhtbFBLAQItABQABgAIAAAAIQCwtNs01wAAAEgBAAAjAAAAAAAAAAAAAAAAAJsMAAB4bC93b3Jrc2hlZXRzL19yZWxzL3NoZWV0MS54bWwucmVsc1BLAQItABQABgAIAAAAIQCLgm5YkwYAAI4aAAATAAAAAAAAAAAAAAAAALMNAAB4bC90aGVtZS90aGVtZTEueG1sUEsBAi0AFAAGAAgAAAAhAHNbCPXnAgAAIAcAAA0AAAAAAAAAAAAAAAAAdxQAAHhsL3N0eWxlcy54bWxQSwECLQAUAAYACAAAACEAAR/4YC8CAAAUBQAAGAAAAAAAAAAAAAAAAACJFwAAeGwvd29ya3NoZWV0cy9zaGVldDEueG1sUEsBAi0AFAAGAAgAAAAhAPRCZ8iQAQAAGAMAABAAAAAAAAAAAAAAAAAA7hkAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAkRpz80UBAABtAgAAEQAAAAAAAAAAAAAAAAC0HAAAZG9jUHJvcHMvY29yZS54bWxQSwUGAAAAAAsACwDRAgAAMB8AAAAA


Couldnt understand how to decode this? 
Also I want to write in excel once user is created in salesforce.
(Say Flag=true)

Thanks in advance.

How many times a trigger will be executed when try to insert 1000 records to a standard object like Accounts. How to test this? Thank you very much in advance.

Hello,

InlineEditing allows us to show and hide buttons during and after editing inline.  However buttons I want hidden by default are displayed.

 

For instance, I have several buttons I want to show by default and hide when editing, plus a Save and Cancel button that I want hidden unless told to display by inline editing.  But when the page loads all of these buttons are displayed.  How am I supposed to make Save and Cancel hidden on page load, surely I dont have to use JS or CSS for that, it must be part of the inline editing capability surely?!

 

 

MORE INFO: Im not using a standard controller everything in the page is handled in a class.  Clicking the Save button (which calls a save method which updates the database, as you'd expect) doesnt save any changes made in inline editing.

I'm starting to think that inline editing will only work with a Standard Controller...

Hi,

 

I know as per documentation that we cannot have Dml operations on User Territory records in Apex.

 

But, I think using @future call we can have a method in a single class and have the operation done. But for me it is 2 controller classes for one page module so this too wont work.

 

Please let me know how can I have delete operations on User Territory object records?

 

 

Thanks,

 

Vimal 

When someone takes the time/effort to repspond to your question, you should take the time/effort to either mark the question as "Solved", or post a Follow-Up with addtional information.  

 

That way people with a similar question can find the Solution without having to re-post the same question again and again. And the people who reply to your post know that the issue has been resolved and they can stop working on it.