|
POST
|
Not really sure what's incorrect then. I am receiving the error; Uncaught ReferenceError: dijit is not defined serviceRequest.js:1638(anonymous function).
... View more
10-14-2014
02:22 PM
|
0
|
9
|
1770
|
|
POST
|
Thank you for your help Robert. cbRequestType has the values which are to be passed to the next cb, which I will hardcode and not pass from the feature layer. So again, if I select E-WASTE from cbRequestType, I'd like cbEWASTE to populate with e-waste types such as copier, scanner, pc, etc. But if WHITE GOODS is selected from cbRequestType I would like my cbEWASTE to populate with white goods types, such as refrigerators, metals, etc. cbRequestType populates from my feature layer, but based on the script, it would be easier to hard code the statement which links cbRequestType to cbEWASTE. So I would like to pass a function which populates cbEWASTE on change of cbRequestType...I will have many other fields which follow the same format, so e-waste is just an example...
... View more
10-14-2014
12:36 PM
|
0
|
11
|
1770
|
|
POST
|
Yes, so if cbRequestType is set with E-WASTE then cbSubType is to populate with e-waste types.
... View more
10-14-2014
11:50 AM
|
0
|
13
|
1770
|
|
POST
|
I am getting back around to this, I am fairly novice with JavaScript. The code snippet above is ideal for my application, if E-WASTE is chosen in cbRequestType then cbEWASTE populates with different types of e-waste commodites. See my code below; what could be wrong with this that it does not pass to the combo box? I have a function which populates the e-waste combo box from the feature layer, should this be removed? (dijit.byId("cbRequestType").on('change', function(MFValue) { if (MFValue == 'E-WASTE') { dijit.byID("cbEWASTE").set('value', 'Copy Machine'); } else if (MFValue == '...') { dijit.by.ID('cbEWASTE').set('value', 'Printer'); } });
... View more
10-14-2014
09:01 AM
|
0
|
15
|
1770
|
|
POST
|
I would like to maintain range value as the data that I am passing should be integers. I have changed the domain to coded values 1-99 for the time being.
... View more
10-14-2014
08:38 AM
|
0
|
0
|
260
|
|
POST
|
Not sure what this indicates unfortunately, with overwriting you maintain previous service definitions. Id stop all services temporarily and see if you can publish a new map service. If so id say you have too many processes consuming resources.
... View more
10-10-2014
04:13 PM
|
1
|
3
|
1413
|
|
POST
|
Have you attempted to overwrite previously published map services or just create a service definition and publish from server manager?
... View more
10-10-2014
02:53 PM
|
1
|
5
|
1413
|
|
POST
|
If your SOC processes are consuming many resources then yes, in my experience after stopping SOC processes server performance increased significantly.
... View more
10-10-2014
12:37 PM
|
1
|
7
|
1806
|
|
POST
|
Have you tried publish the service draft from your root folder or overwrite an exisiting service?
... View more
10-10-2014
12:13 PM
|
0
|
0
|
1806
|
|
POST
|
How many services are you running? It is recommended 4 per core, it looks like you are well under with the given screen shot.
... View more
10-10-2014
11:34 AM
|
1
|
1
|
1806
|
|
POST
|
Visit your task manager and see how many SOC processes you are running, these are map services, if your server is hosed down with these processes it might affect your publishing tasks. Is your data registered with the server?
... View more
10-10-2014
10:46 AM
|
2
|
0
|
4228
|
|
POST
|
Sometimes map documents may become corrupt. Have you tried to re-create your .MXD?
... View more
10-10-2014
09:48 AM
|
1
|
17
|
1814
|
|
POST
|
Hi Riyas, Please see Public Information Center I have an application using this template and I have added a number of other requests fields such as quantity. See my screen shot. I would like the quantity field to be a value domain.
... View more
10-09-2014
08:47 AM
|
0
|
2
|
1721
|
|
POST
|
I would like two combo boxes to be required before submitting a request, so if one value is chosen in the origin box, two other combo boxes are required to submit the request. This allows for the type of request; if a certain request is chosen, say E-WASTE from this box, then before the user submits the request, the TYPE of e-waste must be required, in addition to the quantity. All combo boxes reference the same layer. First block of code (taken from a related question) is somewhat of a start, where should the layer be reference to loop through and set the value of my E-Waste request type field? Second block shows the function for populating the request type combo box, in this case E-WASTE is chosen from the second block of code and passed to the first.
dijit.byId("cbRequestType").on('change', function (EWASTEVALUE) {
if (EWASTEVALUE== 'E-WASTE') {
dijit.byID("cbEWASTE").set('value', '');
}
else if (MFValue == '...') {
dijit.by.ID('cbEWASTE').set('value', '');
}
});
function PopulateRequestTypesPriority(serviceRequestLayerFieldsPriority) {
var serviceRequestFieldsPriority
for (var i = 0; i < serviceRequestLayerFieldsPriority.length; i++) {
if (serviceRequestLayerFieldsPriority.name == serviceRequestLayerInfo.RequestPriorityFieldName) {
serviceRequestFieldsPriority = serviceRequestLayerFieldsPriority.domain.codedValues;
break;
}
}
var serviceRequestPriority = { identifier: "id", items: [] };
for (var i = 0; i < serviceRequestFieldsPriority.length; i++) {
serviceRequestFieldsPriority.items = { id: serviceRequestFieldsPriority.name, name: serviceRequestFieldsPriority.name };
}
var serviceRequestStorePriority = new dojo.data.ItemFileReadStore({ data: serviceRequestTypesPriority });
dijit.byId('cbRequestPriority').attr('store', serviceRequestStorePriority);
}
function PopulateRequestTypesPriority(serviceRequestLayerFields) {
var serviceRequestFields
for (var i = 0; i < serviceRequestLayerFields.length; i++) {
if (serviceRequestLayerFields.name == serviceRequestLayerInfo.RequestPriorityFieldName) {
serviceRequestFields = serviceRequestLayerFields.domain.codedValues;
break;
}
}
var serviceRequestTypes = { identifier: "id", items: [] };
for (var i = 0; i < serviceRequestFields.length; i++) {
serviceRequestTypes.items = { id: serviceRequestFields.name, name: serviceRequestFields.name };
}
var serviceRequestStore = new dojo.data.ItemFileReadStore({ data: serviceRequestTypes });
dijit.byId('cbRequestPriority').attr('store', serviceRequestStore);
}
... View more
10-08-2014
11:17 AM
|
0
|
0
|
595
|
|
POST
|
Hi Riyas, This solution is not successful. I have domains chosen as short integer from 0-99 on my database side. See my edited code below. unction PopulateQuantity(serviceRequestLayerFieldsQuantity) { var serviceRequestFieldsQuantity for (var i = 0; i < serviceRequestLayerFieldsQuantity.length; i++) { if (serviceRequestLayerFieldsQuantity.name == serviceRequestLayerInfo.QuantityFieldName) { serviceRequestFieldsQuantity = serviceRequestLayerFieldsQuantity.domain.minValue + "-" + serviceRequestFieldsQuantity.domain.maxValue; break; } } var Quantity = { identifier: "id", items: [] }; for (var i = 0; i < serviceRequestFieldsQuantity.length; i++) { serviceRequestFieldsQuantity.items = { id: serviceRequestFieldsQuantity.name, name: serviceRequestFieldsQuantity.name }; } var QuantityStore1 = new dojo.data.ItemFileReadStore({ data: QuantityFieldType }); dijit.byId('cbQuantity').attr('store', QuantityStore1); } function PopulateQuantity(serviceRequestLayerFields) { var serviceRequestFields for (var i = 0; i < serviceRequestLayerFields.length; i++) { if (serviceRequestLayerFields.name == serviceRequestLayerInfo.QuantityFieldName) { serviceRequestFields = serviceRequestLayerFieldsQuantity.domain.minValue + "-" + serviceRequestFieldsQuantity.domain.maxValue; break; } } var QuantityType = { identifier: "id", items: [] }; for (var i = 0; i < serviceRequestFields.length; i++) { QuantityType.items = { id: serviceRequestFields.name, name: serviceRequestFields.name }; } var QuantityStore = new dojo.data.ItemFileReadStore({ data: QuantityType }); dijit.byId('cbQuantity').attr('store', QuantityStore); }
... View more
10-08-2014
08:55 AM
|
0
|
4
|
1721
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-16-2017 02:33 PM | |
| 1 | 01-18-2022 07:40 AM | |
| 1 | 04-28-2021 09:29 AM | |
| 1 | 10-24-2016 12:07 PM | |
| 1 | 04-28-2016 09:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-18-2022
03:08 PM
|