|
POST
|
Yes. Different domain. If not, then I think they'd like to just host the entire WAB on their site altogether. iFrame not an option for them it seems.
... View more
06-15-2018
12:56 PM
|
0
|
1
|
1101
|
|
POST
|
For lack of better description... What is the best way to embed a WAB we've developed in WAB Developer 2.7 and have hosted on our own domain? So far I've only found something to the effect: <iframe src="https://ourWABApp/index.html" width=800 height=600></iframe>
... View more
06-15-2018
12:04 PM
|
0
|
3
|
1175
|
|
POST
|
Ken, I took this post and implemented similar check to see if a feature exists but have it in a function that can be called when that button is clicked and evaluates to simply not execute based upon the count. Thanks!
... View more
06-15-2018
10:30 AM
|
0
|
0
|
886
|
|
POST
|
Ken, both of these evaluate in the enableBtn function as expected but again I still see the same result: the button works when I click on it (ie. it is "enabled" somehow). Browser cache? I'll run thru trying to clear history.
... View more
06-15-2018
07:46 AM
|
0
|
5
|
16855
|
|
POST
|
I'm probably misunderstanding here and not correctly implementing. I wanted to first make sure I'm not enabling that button/div somewhere else, so I double-checked that! With that verified, I was hoping to disable the div from the JavaScript in the Startup function based upon the existence of a feature/graphic --- that is, checking to see if it exists and if not then disable that button. Here's what I've got so far, no errors and it hops thru your suggested enableBtn function as expected but the button does not actually disable! HTML: <div class="workflow-step refine-application-boundaries" id="refine-button">
<div class="jimu-btn workflow-step-title" data-dojo-attach-event="click:activateRefineApplicationBorderTool">2. Refine Boundaries</div>
</div> JS: enableBtn: function (btn, isEnable) {
if (btn) {
if (isEnable) {
html.removeClass(btn, 'jimu-state-disabled');
} else {
html.addClass(btn, 'jimu-state-disabled');
}
}
},
beginWork_ExistingBoundary: function(){
this.getScratchGeometry().then(lang.hitch(this, function (scratchQueryResults) {
this.originalGraphic = this.getGraphicFromQueryResults(scratchQueryResults);
debugger
if (!this.originalGraphic) {
this.enableBtn(document.getElementById("refine-button"), false); //this is where & when I'd like to disable the button functionality
}
} Again, thanks for your suggestions and input!
... View more
06-15-2018
06:52 AM
|
0
|
7
|
16855
|
|
POST
|
Ken, thanks for this! Sorry for the late reply, still trying to implement and troubleshoot before posting. It does seem to disable (appearance of the button) but the click event still works. Looking to see if there's something else I have going on that is causing this.
... View more
06-15-2018
06:29 AM
|
0
|
9
|
16855
|
|
POST
|
Should be something simple I'm missing but having difficulty setting the property an html element. The sample below is not working as expected -- I can click the element and it seems to execute when it should be "disabled". This is the widget.html: <div class="workflow-step refine-application-boundaries" id="refine-button">
<div class="jimu-btn workflow-step-title" data-dojo-attach-event="click:activateRefineApplicationBorderTool">2. Refine Boundaries</div>
</div> This is the widget.js startup: function () {
// called on startup.
document.getElementById("refine-button").disabled = true;
... View more
06-13-2018
01:48 PM
|
0
|
11
|
20964
|
|
POST
|
This was an internal network problem and not related to the proxy page or WAB config.
... View more
06-13-2018
10:32 AM
|
0
|
0
|
2112
|
|
POST
|
Thanks Randall -- we develop in WAB developer 2.7 with the node.js rather than command line (as suggested in the link). However, the issue I'm having is with authenticating the deployed WAB itself. Thanks for this though as it'll likely fix the other issue when developing!
... View more
06-11-2018
09:04 AM
|
0
|
0
|
2112
|
|
POST
|
Thank you! I made the suggested change in the config.json but still getting the 404 when attempting to access outside our network. 1. The WAB opens fine when logged into corp network. 2. I can access the secured FS directly outside network with url specified in OP This seems to suggest that the proxy.jsp page is correctly setup and there is another issue with the WAB somewhere? The web map and wab are both shared to public from their AGOL items. Thanks again.
... View more
06-11-2018
08:43 AM
|
0
|
2
|
2112
|
|
POST
|
-WAB Developer 2.7 -.jsp proxy -https I have a WAB deployment that needs to authenticate secured feature services via proxy. Consider: 1. I am able to authenticate by clicking directly on a url with the proxy referenced as such: https://domain.com/proxy/proxypage.jsp?https://domain.com/sitename/rest/services/foldername/feature_service_name 2. Opening the WAB gives a 404 error. This is what's in the config.json: "wabVersion": "2.7",
"isTemplateApp": true,
"isWebTier": false,
"httpProxy": {
"useProxy": true,
"alwaysUseProxy": false,
"url": "https://domain.com/proxy/proxypage.jsp",
"rules": [
{
"urlPrefix": "https://domain.com/sitename/rest/services/foldername/feature_service_name/FeatureServer",
"proxyUrl": "https://domain.com/proxy/proxypage.jsp"
}
]
},
... View more
06-11-2018
07:26 AM
|
0
|
7
|
2245
|
|
DOC
|
I think I'm asking for the latter, Robert. That is, I had a request to specify the Search Layer's default value as the widget loads. Perhaps I was looking for a way to tweak the index, but it looks like much more would have to be altered than just the Search Layer. Thanks for your feedback!
... View more
06-07-2018
12:36 PM
|
0
|
0
|
15414
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-17-2020 10:47 AM | |
| 1 | 10-25-2022 11:46 AM | |
| 1 | 08-08-2022 01:40 PM | |
| 1 | 02-15-2019 08:21 AM | |
| 2 | 08-14-2023 07:14 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-22-2025
02:28 PM
|