Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    1. Home
    2. Joseph Benguira
    3. Best
    • Profile
    • Following 1
    • Followers 18
    • Topics 5
    • Posts 869
    • Best 131
    • Groups 1

    Best posts made by Joseph Benguira

    • Parametrized SQL queries are now supported in appdrag-cloudbackend

      Hey dear community,

      We have updated our appdrag-cloudbackend NPM package to allow parametrized SQL queries.

      If you want to compose the SQL query by yourself with input parameters you must escape the user inputs to avoid SQL injection with cloudbackend.escape() like this:

      cloudbackend.sqlSelect("SELECT * FROM Products WHERE category = '" + cloudbackend.escape( event.POST.category ) + "'")
      .then( function(response) {
      	console.log(response);
      });
      

      But there is now a better way with parametrized queries, You can use ? characters as placeholders for values you would like to have escaped. Multiple placeholders are mapped to values in the same order as passed.

      cloudbackend.sqlSelect('SELECT * FROM Products WHERE category = ? and id > ?', ["Software", 500])
      .then( function(response) {
      	console.log(response);
      });
      

      You can check the full documentation on NPM:
      https://www.npmjs.com/package/appdrag-cloudbackend

      posted in Announcements
      Joseph Benguira
      Joseph Benguira
    • RE: [TM] Broken Database

      Hey Pierre,

      your issue is coming from "-" in table name ... it's a forbidden character with MySQL ...
      Internally we do have a trick to be able to use it but it's really not recommended ... you will have to backtick the table name everywhere in your queries because of this...

      My advice, follow best pratices a just don't use forbidden characters in your table names πŸ˜‰

      posted in Cloud Backend (Cloud DB
      Joseph Benguira
      Joseph Benguira
    • Hello Community!

      Hello,

      AppDrag migrates its one to one support to a general community. We aim to provide high-quality answers available to everyone. After some time we would have a strong questions/answers database bringing a lot of value to our users to build their web applications with confidence. We also want to create a dynamic community to improve the platform and our reactivity to build and fix things based on what you as website builders really need.

      Here are the 3 main rules to respect when asking a support question on the board:

      • Don’t post until you’ve searched the Community for the answer first

      • When posting, provide as much information as possible so that your problem can be fully and clearly understood. You can include an appID, link, screenshot, detailed description, etc.

      • Be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

      Don’t forget that if you want somebody else to consult on or develop your AppDrag solution for you, we can provide you with paid support or connect you with one of our certified partners.

      posted in Announcements
      Joseph Benguira
      Joseph Benguira
    • Improved support documentation

      Hey dear community,
      We worked hard to improve appdrag documentation with more content, use cases and a better search engine (full-text with scoring)
      There is now 147 articles including 14 use cases tutorials

      You can check it here: https://support.appdrag.com/

      πŸ™‚

      posted in Announcements
      Joseph Benguira
      Joseph Benguira
    • RE: How-to section in the forums

      Hey Thomas, indeed great idea!
      I have just added the new section "How-to, Tutorials" πŸ™‚

      posted in Features requests
      Joseph Benguira
      Joseph Benguira
    • RE: Node v.14 and/or ES2020

      Hey Daniel,

      since we use AWS Lambda under the hood, we are waiting for AWS to add it and we will get it the same day on AppDrag Cloudbackend πŸ™‚

      You can check this page for more details about supported Node.js versions:
      https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html

      Based on the latest update for Node 12, (https://aws.amazon.com/blogs/compute/node-js-12-x-runtime-now-available-in-aws-lambda/)
      There is a 6-7 months delay between on official LTS release of node and it's availability on AWS Lambda

      posted in Cloud Backend (Cloud DB
      Joseph Benguira
      Joseph Benguira
    • RE: Homepage not displaying correctly.

      I can see you have a script on the page that is crashing ...
      and it's making crash the render of the page

      Please try to remove your custom script (or fix it)

      Also, instead of placing scripts directly in the source code of your page or in the head of the page, place it in a block of code, this way it will be safe πŸ™‚

      posted in Cloud CMS (Pagebuilder
      Joseph Benguira
      Joseph Benguira
    • AppDrag CLI tool is now available!

      Hey Community, we are happy to announce that our CLI tool is now available on NPM
      https://www.npmjs.com/package/appdrag

      deploy your full-stack apps to the cloud. Work with your local tools (VS Code, Atom, ...) and build process, then push your compiled code to your app in appdrag

      This tool is recommended for:

      • Develop locally with your usual tools (VS Code, Atom, ...) and build process (Webpack, ...)
      • Setup a CI/CD pipeline
      • Setup an external backup of your app
      • Export/Import full-stack projects
      posted in Announcements
      Joseph Benguira
      Joseph Benguira
    • RE: Alternative error pages

      In that case DO NOT USE the option 404 if no result because this is linked to 404 page (as it name says :p)
      and then handle in JS the situation with few 2 lines of JS, like if the fields are empty ... redirect to page X ...

      posted in Features requests
      Joseph Benguira
      Joseph Benguira
    • RE: Scheduling API calls based on day of the week

      Hey Franck,
      yes it's possible, when you configure your scheduling select "Every-week" in the recurrence type dropdown
      you can then indicate the days of the week and hour

      dc4a523b-ac9f-4b9b-a1de-1e6aad92c7ae-image.png

      posted in Cloud Backend (Cloud DB
      Joseph Benguira
      Joseph Benguira
    • RE: Most of the text elements are default set to h1

      Hey Daya

      In our SEO assistant there is a button to Fix all duplicated H1 and replace them by H2
      This should save you tons of times πŸ™‚

      posted in Cloud CMS (Pagebuilder
      Joseph Benguira
      Joseph Benguira
    • RE: Enable/Disable Documentation for certain functions

      Hey Daniel, we do have this option πŸ™‚

      When you edit a cloud function, there is a checkbox to tell if you want to include it in the documentation or not πŸ˜‰

      421d104b-f97b-4f8e-a5a0-f64434fea026-image.png

      posted in Features requests
      Joseph Benguira
      Joseph Benguira
    • RE: api sql question...

      @Pablo-Garcia here could you provide your full SQL query and code? probably your code is calling an SQL query ... but since you didn't provided anything we can only guess πŸ˜‰

      also your partial syntax seems wrong

      It should be:

      SELECT * FROM Table WHERE column_name != 'YOUR_VALUE' AND column_name IS NOT NULL;
      
      posted in Cloud Backend (Cloud DB
      Joseph Benguira
      Joseph Benguira
    • RE: How to re-initialize button events/triggers?

      Hey Thomas,

      after adding new elements with Ajax add this to init buttons and links:

      setupButtons();
      handleLinks();
      
      posted in Cloud CMS (Pagebuilder
      Joseph Benguira
      Joseph Benguira
    • RE: Upload asset file, the file-name is just random UID.

      This make sense, I'm adding it to our task list πŸ™‚

      posted in Features requests
      Joseph Benguira
      Joseph Benguira
    • RE: Video Galleries

      @Daniel-Mulroy said in Video Galleries:

      I would prefer this to be dynamic - so from the CloudBackend or YouTube playlist, it automatically fetches thumbnails, Titles, etc. and renders the gallery objects with the links already set. Keeping this a manual process is not desirable.

      Hey Daniel,

      in this tutorial we show how to generate a gallery with data coming from cloud backend database
      https://academy.appdrag.com/FullStack-with-cloud-backend-Episode-5.html

      9a2129a1-dea4-4167-aae6-81d4e9e8c36a-image.png

      It's based on the factory pattern, we call the api in JS to get the rows from the DB and we do a FOR loop on each row, and for each row we generate a gallery item and add it

      In that loop you could also do a simple replace in the youtube url to shape it like you need (/embed/) πŸ™‚

      OR a total different way ... with dynamic datasources (repeating a column containing an iframe ...)

      posted in Cloud CMS (Pagebuilder
      Joseph Benguira
      Joseph Benguira
    • RE: [TM] SSL Configuration blocked

      Hey Pierre, it seems to be a display mistake that we will fix soon

      since you are creating an ssl cert for a subdomain, it needs to be in the url:
      _eb094f4ff4de86fa7195f7300edc807f.decouvrir.teambrain.fr

      Please create this key:
      _eb094f4ff4de86fa7195f7300edc807f.decouvrir

      with this value:
      _ddf8e44ffa9d7f577c9d64ffa0cb06c6.wggjkglgrm.acm-validations.aws

      posted in Domains & Emails
      Joseph Benguira
      Joseph Benguira
    • RE: Pop-up window

      Hey Laure,

      1. You need to create a new page and configure it in the pages options to have NO header/footer
        In that new page you can design your popup content

      2. on your home page drop a button to subscribe to your newsletter on the page and configure the link to open your new popup page inside a Modal popup (it's an option in the Link brush)
        edit your button with the config brush > go to Advanced (identification) > there set an ID like MyPopupButton

      3. if you want to auto open the popup after 15 sec you can do this
        a) drop a block of jQuery code on your page
        b) double click on it, and paste this into the block of code

      <script>
      addEventListener('JqueryLoaded', function(e) {
         setTimeout(function(){
               $("#MyPopupButton").trigger("click");
         }, 15000)
      });
           
      </script>
      
      posted in How-to
      Joseph Benguira
      Joseph Benguira
    • RE: WhiteLabel Configuration Warning:

      @Bernard-Piette Hey Bernard, you can activate white label only on a domain you own directly on appdrag

      I recommend you to purchase a new domain specifically for your white label, eg: konobo.cloud available for $2.77 for 1 year!
      this way you won't mess with your main domain πŸ˜‰

      the other option is to transfer your existing domain to us, once done you will be able to use a subdomain for your whitelabel, and www for your main website

      but option 1 is simpler, faster, cheap, no risks ...

      posted in Domains & Emails
      Joseph Benguira
      Joseph Benguira
    • RE: Do I really have to learn to code to do anything useful?

      @ThomasD FYI we do have plans to add a premade auth system for Authentication, but as ALL premade components it will be limited in terms of features and customization.

      Our process is to always focus first on having fully customizable solutions with source code and with cloud backend
      then later we do create plugins based on that.

      posted in General Discussion
      Joseph Benguira
      Joseph Benguira