Code Monkey home page Code Monkey logo

Comments (7)

PaulNieuwelaar avatar PaulNieuwelaar commented on May 26, 2024

Hi, you'll need to create a separate JavaScript function for your button command to call, then your function should make the call to Alert.js to show the dialog using the dynamic parameters. You can see examples of this on the documentation tab, including the usage from ribbons. Hope that helps, Paul

from alertjs.

crooney2016 avatar crooney2016 commented on May 26, 2024

Yeah, I tried to figure that out, I think it's just beyond my technical abilities. I don't know how to write the custom function to call Alert.js properly

I was able to get the show iFrame function to work for a simple url. Thanks for publishing this!

from alertjs.

PaulNieuwelaar avatar PaulNieuwelaar commented on May 26, 2024

Hi, you're pretty close already, just need to wrap your logic in a function, either inside your mag_testingdialog web resource, or another web resource, like:

function callDialog() {
    Alert.showDialogProcess("{the-guid-of-your-dialog}", "lead", Xrm.Page.data.entity.getId(), function() { Xrm.Page.data.refresh(); }, 1600, 900);
}

Then in your ribbon command, just set the function name to callDialog. Note: you also don't need to specify any parameters in the ribbon command, as they're now all handled directly inside the function.

from alertjs.

crooney2016 avatar crooney2016 commented on May 26, 2024

from alertjs.

crooney2016 avatar crooney2016 commented on May 26, 2024

from alertjs.

PaulNieuwelaar avatar PaulNieuwelaar commented on May 26, 2024

Hi, looks like you just need to wrap cen_hubspotpublicurl in quotes, e.g. "cen_hubspotpublicurl".

from alertjs.

PaulNieuwelaar avatar PaulNieuwelaar commented on May 26, 2024

Hi, Haven't heard back from you so I'm going to assume you've managed to solve this now. Please feel free to to reply again if need any further assistance. Cheers, Paul

from alertjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.