[Solved] Solving GL...
 
Notifications
Clear all

[Solved] Solving GLIBCXX_3.4.26 dependency

0 Posts
1 Users
0 Likes
5 Views
0
Topic starter
Arindam Ghosh Asks: Solving GLIBCXX_3.4.26 dependency
I have installed the R package metaboliteIDmapping using:

Code:
if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("metaboliteIDmapping")

But when I tried to load the package, it shows an error:

Code:
Error: package or namespace load failed for ‘metaboliteIDmapping’:
 .onLoad failed in loadNamespace() for 'metaboliteIDmapping', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Tools/Conda/miniconda3/envs/arindam/lib/R/library/Rcpp/libs/Rcpp.so':
  /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /Tools/Conda/miniconda3/envs/arindam/lib/R/library/Rcpp/libs/Rcpp.so)

However, GLIBCXX_3.4.26 is available through my conda env and is present in

Code:
Tools/Conda/miniconda3/envs/arindam/lib64

How to resolve this issue? How do I direct rstudio to be using this location without root permissions?

Interestingly, when I try to load the same library from the Rstudio terminal, it works fine.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

Unreplied Posts

[Solved] External website in iframe

Nagaraj Asks: External website in iframe
We currently have requirement to show external website in iframe. External website users will have user name and password and salesforce user name and password as well.As part of the authentication i am sending loggedin user salesforce session id in the iframe url parameter. Now the question using this session id can the external system grant access to 3rd party website by doing callback to salesforce and get the user information? Kindly help..

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.
 
 
 

[Solved] Apex: How to generate List of all Friday Dates for given month

Angelo Asks: Apex: How to generate List of all Friday Dates for given month
I am trying to create a List of date type which contains every Friday of the month in it. So for example, for the month of March, the list would contain the dates of March 3rd, 10th, 17th, 24th and 31st. Is there any standard function that would calculate this for me? Or perhaps a standard object that I could query which is simply a calendar so I could use the date query functions? I am not looking for something like

Code:
DAY_IN_WEEK(CreatedDate) = 6

In which it would get every friday from a query, but simply a list of Fridays for that month regardless of querying an object.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

[Solved] Can a community user edit their own contact record?

Hasantha Asks: Can a community user edit their own contact record?
Can a community user edit their own contact record?

I’ve seen few question on the stack exchange it self about community user’s editing their own contact record’s details directly.

Somehow could’t find a reference to a salesforce documentation. Could some one help me to confirm whether the community users can or cannot change their own contact record.

I found below idea explaining a workaround: Allowing Customer Portal Users To Edit Their Own Contact Information

and some sfse questions; Community User – Edit Contact Record/Change Account Allow contact to edit own record in customer community

Thanks

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

[Solved] Duplicate Management in Lightning – Matching Rules vs Duplicate Rules

Todd Sprinkel Asks: Duplicate Management in Lightning – Matching Rules vs Duplicate Rules
In Salesforce Classic experience, we can manually search for duplicate records and pick and choose which ones we want to merge. In Lightning, however, this is not possible, and only records identified in the “Potential Duplicates” page component can be merged manually.

The documentation is unclear in my mind on how the combination of matching rules and duplicate rules drive what records appear as “potential duplicates”. What I’d like to do is create some rules that don’t warn or prevent a user from creating or updating potential duplicates, but cast a wider net in terms of identifying potential duplicates so that a user can review manually. Is this best addressed through matching rules, duplicate rules, or a combination of both?

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

[Solved] Webservice or 3rd Party Integration Credentials in Production/Sandbox environment

BodegaBlanco Asks: Webservice or 3rd Party Integration Credentials in Production/Sandbox environment
Was wondering if there was a way to either use the UI or SOQL query to find the credentials being used by Webservices to access the Production/Sandbox environment. I’m not sure if there is a straight forward way to acquire this or a way to search within Apex classes potentially for Named Credentials for this information.

Any ideas?

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

[Solved] Conditional rendering for dual listbox depending on selection ” if:true={show…}”

jbuch Asks: Conditional rendering for dual listbox depending on selection ” if:true={show…}”
I have a search bar that returns: Users, Queues and Pub Groups. When I click on a user I want to show a UserDual-Listbox I’d like to show, and when clicking on the queues or pub groups I want to show in the UI a GroupsDual-Listbox. For the moment I have all the dual listboxes being displayed in the UI.

I tried creating a method in the code, when depending on the selection the right dual listbox will appear and then I call this method into each dual list, however it is not working. I hides everything and when I click an object from the search bar nothing appears either.

Code:
showResults(){
        if ( JSON.stringify( this.selectedQueues ) != JSON.stringify( this.updatedQueues ) ) {
            showDualSelectedUser = true;
        }
        if ( JSON.stringify( this.selectedPubGrps ) != JSON.stringify( this.updatedPubGrps ) ) {
            showDualSelectedUser = true;
        }
        if ( JSON.stringify( this.selectedUsers ) != JSON.stringify( this.updatedUsers ) ) {
            showDualSelectedGroup = true;
        }

I also tried declaring properties to false:

  • showDualSelectedUser= false;
  • showDualSelectedGroup= false;

and call them in each list on the HTML however it’s not working. I have different functions on JS, so I’m confused where should I call this properties. Does anyone have an idea where should I call this properties in the JS ?

JS

Code:
@track objName = '';
    @track usersList = []; 
    @track queuesList=[];
    @track pgList=[];
    @track usersGroupList=[];
    @track groupList=[];    
    @track objectApiName = 'User'
    @track objectApi= ''
    @track userFound = false;
    @track messageResult=false; //not found message
    @track isShowResult = true;   
    @track showSearchedValues = false;  
    @track selectedObj;
    @track showName;
    showDualSelectedUser= false;
    showDualSelectedGroup= false;
    //retrieveSelectedGroupsResult;
    //retrieveSelectedUsersResult;
    
    //declare properties dual listbox when selecting an USER
    availableQueues;
    selectedQueues;
    updatedQueues;
    availablePubGrps;
    selectedPubGrps;
    updatedPubGrps;
    
    //declare properties when selecting a Group
    availableUsers;
    selectedUsers;
    updatedUsers;
    showBoolGroup = false;
    buttonBoolGroup = false;

    //declare properties for Save method
    showBool = false;
    buttonBool = false;
    disableBool = false;  
   
    //calling data for SearchBar 
    @wire(getAllUsersGroups, {objName:'$objName'})
    retrieveUsers ({error, data}) {
       this.messageResult=false;
       if (data) {
           console.log('dataForSearch::'+ JSON.stringify (data));
           if(data.length>0 && this.isShowResult){
               this.usersGroupList = data;                
               this.showSearchedValues = true; 
               this.messageResult=false;

           }else if(data.length==0){

               this.usersGroupList = [];                
               this.showSearchedValues = false;
               if(this.objName!='')
                   this.messageResult=true;  

           }
       } else if (error) {
           this.selectedObj =  '';
           this.objName =  '';
           this.usersList=[];           
           this.showSearchedValues = false;
           this.messageResult=true;   
       }
   }
   
   handleClick(event){
       this.isShowResult = true;
       this.messageResult=false;
       this.userFound=false;
    }

    handleKeyChange(event){
        this.messageResult=false;
        this.objName = event.target.value;
        this.userFound=false;
    }
    
    handleDataSelection(event){
        console.log('parentEventID '+ (event.target.dataset.value));
        console.log('parentEvent'+ JSON.stringify(event.target.dataset));
        this.showSearchedValues = false;
        this.isShowResult = false; 
        this.messageResult=false;
        this.objName =  event.target.dataset.label;      
        console.log('objName::'+this.objName); 
        this.selectedObj = event.target.dataset.value; 
        this.showName= event.target.dataset.label; 
        console.log('selectedObj:'+this.selectedObj);
    }

    //call data for dual listbox when selecting an User
    @wire(fetchQueuesPubGrps, { userId:'$selectedObj'})
    retrieveSelectedUsers ({error, data,results}) {
        //this.retrieveSelectedUsers= results;
        //this.messageResult=false;
        console.log('This is the selectedUser' + JSON.stringify(this.selectedObj));
        if (data) {
            console.log( 'Data ===> ' + (data) );
            console.log( 'Records are ' + JSON.stringify( data ) );
            this.availableQueues = data.availableQueues;
             console.log('availableQueues:', data.availableQueues);
            this.selectedQueues = data.selectedQueues;
            console.log('selectedQueues:', data.selectedQueues);
            this.updatedQueues = data.selectedQueues;
            console.log('updatedQueues:', data.selectedQueues);
            this.availablePubGrps = data.availablePubGrps;
            this.selectedPubGrps = data.selectedPubGrps;
            this.updatedPubGrps = data.selectedPubGrps;
           

        } else if (error)  {
            this.dispatchEvent(
                new ShowToastEvent({
                    title: 'Error!!',
                    message: 'Some error occured. Please reach out to your Salesforce Admin for help!',
                    variant: 'error',
                    mode: 'sticky'
                }),
            );   
            //return refreshApex(this.retrieveSelectedUsersResult);  
        } 
    }

       //call data for dual listbox when selecting a Group
       @wire(fetchUsers, { groupId:'$selectedObj'})
       retrieveSelectedGroups ({error, data, results}) {
           //this.retrieveSelectedGroups= results;
           //this.messageResult=false;
           console.log('This is the selectedGroup' + JSON.stringify(this.selectedObj));
           if (data) {
               console.log( 'Data ===> ' + (data) );
               console.log( 'Records are ' + JSON.stringify( data ) );
               this.availableUsers = data.availableUsers;
                console.log('availableUsers:', data.availableUsers);
               this.selectedUsers = data.selectedUsers;
               console.log('selectedUsers:', data.selectedUsers);
               this.updatedQueues = data.selectedUsers;
               console.log('updatedQueues:', data.selectedUsers);
   
           } else if (error)  {
               this.dispatchEvent(
                   new ShowToastEvent({
                       title: 'Error!!',
                       message: 'Some error occured. Please reach out to your Salesforce Admin for help!',
                       variant: 'error',
                       mode: 'sticky'
                   }),
               );
               //return refreshApex(this.retrieveSelectedGroupsResult);
           } 
       }
    
    handleQueuesChange(event) {
        const selectedOptionsList = event.detail.value;
        console.log( 'Selected Queues to move to the right before saving  ' + JSON.stringify( selectedOptionsList ) );
        this.updatedQueues = selectedOptionsList;
        console.log( 'Queues that are already in the selected user ' + JSON.stringify( this.selectedQueues ) );
        //this.showUsersDual=false;
    }

    handlePubGrpsChange(event) {
        const selectedOptionsList = event.detail.value;
        console.log( 'Selected PubGrp opt are ' + JSON.stringify( selectedOptionsList ) );
        this.updatedPubGrps = selectedOptionsList;
        console.log( 'Updated Selected Public Groups are ' + JSON.stringify( this.selectedPubGrps ) );
       // this.showUsersDual=false;
    }

    handleUsersChange(event) {
        const selectedUsersList = event.detail.value;
        console.log( 'Selected Users are ' + JSON.stringify( selectedUsersList ) );
        this.updatedUsers = selectedUsersList;
        console.log( 'Updated Users are ' + JSON.stringify( this.selectedUsers ) );
        //this.showUsersDual=true;
    }

    /*showResults(){
        if ( JSON.stringify( this.selectedQueues ) != JSON.stringify( this.updatedQueues ) ) {
            showDualSelectedUser = true;
        }
        if ( JSON.stringify( this.selectedPubGrps ) != JSON.stringify( this.updatedPubGrps ) ) {
            showDualSelectedUser = true;
        }
        if ( JSON.stringify( this.selectedUsers ) != JSON.stringify( this.updatedUsers ) ) {
            showDualSelectedGroup = true;
        }
    }*/

    saveChanges() {
        let queuesUpdatedBool = false;
        let pubGrpsUpdatedBool = false;
        console.log( 'list of queues that the user already had ' + JSON.stringify( this.selectedQueues ) );
        console.log( 'list of previous queues plus the new one added ' + JSON.stringify( this.updatedQueues ) );
        console.log( 'selectedPubGrps is ' + JSON.stringify( this.selectedPubGrps ) );
        console.log( 'updatedPubGrps is ' + JSON.stringify( this.updatedPubGrps ) );
       
        if ( JSON.stringify( this.selectedQueues ) != JSON.stringify( this.updatedQueues ) ) {
            queuesUpdatedBool = true;
        }
        if ( JSON.stringify( this.selectedPubGrps ) != JSON.stringify( this.updatedPubGrps ) ) {
            pubGrpsUpdatedBool = true;
        }
        console.log( 'queuesUpdatedBool is ' + queuesUpdatedBool );
        console.log( 'pubGrpsUpdatedBool is ' + pubGrpsUpdatedBool );
     

        if ( queuesUpdatedBool || pubGrpsUpdatedBool ) {

            addRemove( {userId:this.selectedObj,
                selectedQueues : this.selectedQueues, updatedQueues : this.updatedQueues,
                selectedPubGrps : this.selectedPubGrps, updatedPubGrps : this.updatedPubGrps,
                queuesUpdatedBool : queuesUpdatedBool, pubGrpsUpdatedBool : pubGrpsUpdatedBool } )
            .then( result => {
                console.log( 'Result ' + JSON.stringify( result ) );
                let message;
                let variant;
                if ( result === 'Successful' ) {
                    message = 'Successfully Processed!';
                    variant = 'success';
                } else {
                    message = 'Some error occured. Please reach out to your Salesforce Admin for help!';
                    variant = 'error';
                }

                const toastEvent = new ShowToastEvent( {
                    title: 'Your changes have being saved',
                    message: message,
                    variant: variant
                } );
                this.dispatchEvent( toastEvent );
                return refreshApex(this.result);
            } )
            .catch( error => {
                console.log( 'Error' + JSON.stringify( error ) );
            } );
            this.buttonBool = true;
        } else {
            alert( "No changes made!!!" );
        }
    }

    saveChangesUser(){
            
        let updatedBool = false;
        this.disableBool = true;

        if ( JSON.stringify( this.selectedUsers ) != JSON.stringify( this.updatedUsers ) ) {
            updatedBool = true;
        }

        if ( updatedBool == true ) {
        addRemoveUsers( {groupId:this.selectedObj,
            selectedUsers : this.selectedUsers, updatedUsers : this.updatedUsers } )
        .then( result => {
            console.log( 'Result ' + JSON.stringify( result ) );
            let message;
            let variant;
            if ( result === 'Successful' ) {
                message = 'Successfully Processed!';
                variant = 'success';
            } else {
                message = 'Some error occured. Please reach out to your Salesforce Admin for help!';
                variant = 'error';
            }

            const toastEvent = new ShowToastEvent( {
                title: 'Your changes have being saved',
                message: message,
                variant: variant
            } );
            this.dispatchEvent( toastEvent );
            return refreshApex(this.result);
         
        } )
        .catch( error => {
            console.log( 'Error' + JSON.stringify( error ) );
        } );
        
    } else {
        alert( "No changes made!!!" );
    }
}
}

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

[Solved] REST DELETE Call To External System Returns Status Code 0

Alan Asks: REST DELETE Call To External System Returns Status Code 0
I have a REST API call that I’m trying to make using a DELETE method. However, the request is returning a status code of 0 with nothing in the response body. If I take my endpoint and run the request in Postman it works perfectly. Any ideas what’s wrong?

Here is the example code:

Code:
        Http http = new Http();
        HttpRequest request = new HttpRequest();
        request.setEndpoint('https://api.statuspage.io/v1/pages/' + PageId + '/subscribers/' + SubscriberId);
        request.setMethod('DELETE');
        request.setHeader('Authorization', 'OAuth ' + APIKey);  
        HttpResponse response = new HttpResponse();

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

[Solved] Using other user leads on my report chart

Bob Asks: Using other user leads on my report chart
We had only 1 user, so I add another user with administrator permission (like myself), I did some changes on my dashboard and I want the same exact dashboard shows in the other user too.

I couldn’t find a way, so I start manually, but it’s not possible. For example, when I add the “Report chart” component, it can’t find any leads, however, we have thousands of leads and this user can see leads on the report page using Filter


enter image description here

So my question is how can I manage this in the page dashboard? it doesn’t have any “Filter by Owner”.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

[Solved] Adding title to cms footer block

JensBourgeois Asks: Adding title to cms footer block
I added a second footer block with links by adding the following code to my default.xml in my theme: app/design/frontend///Magento_Theme/layout/default.xml

Code:
<referenceContainer name="footer">
    <block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
        <arguments>
            <argument name="css_class" xsi:type="string">footer links</argument>
        </arguments>
    </block>
</referenceContainer>

<referenceBlock name="footer_links_custom">
    <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
        <arguments>
            <argument name="label" xsi:type="string">Custom Links</argument>
            <argument name="path" xsi:type="string">page-url</argument>
        </arguments>
    </block>
</referenceBlock>

What is the easiest way to add a title to the my footer_links_custom block, is there any way to do this in a simple manner? I’ve tried setting an argument “title” but that didn’t work obviously. Is there any way we can know all the attributes there are for a certain block? (css_class, label, path, …) Is there no .phtml file for the footer links block?

Magento 2 leaves me behind with a lot of questions…Thanks for the help!

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

[Solved] not getting child product for bundle product, using Magento 2 REST API

Nikhil Joshi Asks: not getting child product for bundle product, using Magento 2 REST API
I am trying to get child products for a bundle product using Magento 2 REST api /V1/bundle-products/{productSku}/children. But it always return empty array

Code:
 "extension_attributes": {
   "bundle_product_options": [
      {
        "option_id": 76,
        "title": "curriculum2",
        "required": true,
        "type": "checkbox",
        "position": 1,
        "sku": "f2f89c0ef1-5f0a47c874",
        "product_links": []

  } ]}

I have tried to get details using product details api too but no success. When i login to magento admin i can see the child product in same bundle product.

Can any one help me finding what i should do?

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.

 

 


 

Share: