Comments (7)
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.
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.
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.
from alertjs.
from alertjs.
Hi, looks like you just need to wrap cen_hubspotpublicurl in quotes, e.g. "cen_hubspotpublicurl".
from alertjs.
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)
- Popup dialog box useing Alert.js and ribbon workbench HOT 4
- Pass value to Callback function from HTML HOT 3
- question before buying the third version HOT 4
- Alert.showWebResource -404 ERROR HOT 1
- Buttons not working HOT 1
- Unable to call a function inside a webresource from OK button HOT 1
- Use alert.showwebresource to get message from user HOT 9
- Supportability for Unified Interfaace HOT 1
- Alert.showWebResource fail in CRM build 1710 HOT 5
- Alert.getCrmWindow() is not working HOT 6
- Alert.showWebResource custom button closing alert HOT 4
- Buttons have no ID optionality HOT 3
- Dynamics CRM 365 (v9) compatibility HOT 7
- Issue with populating lookups in the new Dynamics 365 UCI (Unified Client Interface) HOT 5
- Issue using input fields on UI on Android devices in "portrait mode" HOT 1
- Xrm.Page / formContext HOT 1
- Theme colors HOT 2
- Change font-size issue HOT 2
- TypeScript "Cannot find module" errors HOT 4
- Alert js is not working on HTML web resource HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alertjs.