|
POST
|
Nobody knows how to fix this problem? I tried the same developing a code in JS and it works. Idk why the bin release version in flex doesnt show the identity manager and the debug version triggered by the IDE works.... Anyone can help me? Thanks in advice
... View more
06-17-2015
08:51 AM
|
0
|
4
|
2139
|
|
POST
|
Also, the Identity Manager that im using is not opening at the beginning, and i have placed it in the initialize function on the app. The identity Manager windows only shows if i test the app in the flash builder, but when i export it for a webserver, i try to access it and then just the website opens , but it doesnt load the identitymanager window. Why? idk the reason. Here i have the examples: I know that we change the html name but the thing is why the identitymanager doesnt show in the webserver but in the debug app does.
... View more
06-16-2015
11:35 AM
|
0
|
0
|
2139
|
|
POST
|
it is placed and it has the correct config. So what else can be the problem? We just updated the arcgis server to the last version and we are getting this problem, what could it be?
... View more
06-16-2015
11:24 AM
|
0
|
1
|
2139
|
|
POST
|
I have this error with the debugger: SecurityError: Error #2048: Security sandbox violation: file:///C:/Users/ehernanr/Desktop/2015_AP_CHQ/Compilado/valpo/AP_VALPO.swf cannot load data from mapserver/8. at com.esri.ags.tasks::BaseTask/handleFaultEvent() at mx.rpc::AsyncResponder/fault() at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault() at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders() at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/redirectEvent()
... View more
06-15-2015
12:20 PM
|
0
|
3
|
2139
|
|
POST
|
Hello, I have an application that when i go to test through flex builder (web app) the first thing that it does is showing the IdentityManager to access to the rest service layers. It works perfectly in that way. But when i export the bin release version of that app, i go to check it accessing through the Server and it gets me the following message: The thing is, i dont have any error trying to accessing through the flex builder. It only happens when it is in the Web server. I checked the rest service and its working well.. What can i do to solve this issue? Thanks in advice
... View more
06-15-2015
10:44 AM
|
0
|
9
|
5205
|
|
POST
|
Well , after 3 days i solved my problem doing this. public function verificarRealizacion():void{
var fotosEncontradas:int;
var cantidadDetalle:int=0;
var cantidadFotosTotales:int=0;
var myDetalle:FeatureLayer = new FeatureLayer(widgets.MantenimientoPodas.URLS.URL_DETALLE_ACTIVIDADES);
var fotosTotales:int;
//VALIDAR EXISTENCIA DE ACTIVIDADES RELACIONADAS
var queryTask:QueryTask = new QueryTask(widgets.MantenimientoPodas.URLS.URL_DETALLE_ACTIVIDADES);
var query:Query = new Query();
query.where = "CODIGO_SAP= " +int(DataSolicitudes.selectedItem['CODIGO_SAP']);
query.outFields = ['OBJECTID','ID_ACTIVIDAD'];
query.returnGeometry = true;
queryTask.execute(query, new AsyncResponder(onResultQuery, onFaultQuery));
//si hay conexion con el servicio
function onResultQuery(featureSet:FeatureSet, token:Object = null):void
{
//si no hay actividades asociadas a esa solicitud
if (featureSet.features.length<=0){
Alert.show("NO HAY DETALLES DE ACTIVIDADES ENCONTRADOS, asegúrese de haberlas creado alguno junto con su actividad especificada.");
lblCantDetalleSolicitud.text = String(featureSet.features.length);
//Si hay detalles asociados. Verificar existencia de fotos. Ex detalle 10, fotos = detallex2
}else{
//VALIDAR EXISTENCIA DE DOS FOTOS EN EL SERVICIO POR CADA DETALLE DE ACTIVIDAD
//lblCantDetalleSolicitud.text = String(featureSet.features.length);
cantidadDetalle = featureSet.features.length;
cantidadFotosTotales = cantidadDetalle*2;
for (var i:int = 0; i < featureSet.features.length; i++)
{
myDetalle.queryAttachmentInfos(featureSet.features.attributes["OBJECTID"],new AsyncResponder(onResult1,onFault1));
function onResult1(event:Array, token:Object=null):void{
//tiene attachment
if (event.length==2)
{
cantidadFotosTotales = cantidadFotosTotales - 2;
//Verifica que estén todas las fotos.
if (cantidadFotosTotales ==0) {
//Alert.show("Estan todas");
var ModificarEstadoSolicitud:* = new Object;
ModificarEstadoSolicitud["OBJECTID"]= DataSolicitudes.selectedItem['OBJECTID'];
ModificarEstadoSolicitud["ID_ACTIVIDAD"]= int(DataSolicitudes.selectedItem['CODIGO_SAP']);
ModificarEstadoSolicitud["ESTADO_SOLICITUD"]= DDLEstadoPoda.selectedItem.descripcion;
var graficoEditadoActual:Graphic = new Graphic;
graficoEditadoActual = new Graphic(null,null,ModificarEstadoSolicitud);
var mySolicitud:FeatureLayer = new FeatureLayer(widgets.MantenimientoPodas.URLS.URL_SOLICITUD);
mySolicitud.applyEdits(null,[graficoEditadoActual],null, false,new AsyncResponder(onResult, onFault));
function onResult():void
{
Alert.show("Estado de Solicitud de Poda Modificado");
querySolicitudes();
}
function onFault(info:Object, token:Object = null):void
{
Alert.show("Error al modificar el estado de solicitud "+info.toString());
}
}//fin if
}
//no tiene attachment
else
{
Alert.show("Faltan fotografías, asegúrese que cada detalle de actividad contenga ambas fotos.");
}
}
function onFault1(event:Object,token:Object=null):void{
Alert.show("No se pudo conectar al servicio de fotos adjuntas. .");
}
}
}
}
//no hay conexion
function onFaultQuery(info:Object, token:Object = null):void
{
Alert.show("No se pudo contactar con el servicio.","Carga de Actividades");
}
... View more
06-10-2015
06:01 AM
|
0
|
0
|
835
|
|
POST
|
Hello, Im working on a widget that has the following structure: request (as solicitud in the code) activity (as actividad in the code) activityDetail (as detalleActividad in the code). 1 request can have 1..* activities. 1 activity can have 1..* detailActivity. 1 detailActivity can have 2 attachment associated (pictures) (its done through arcgisServer) Im developing a code in a button that it has to validate the existence of 2 pictures on each detailActivity and say to the user: if alldetailsActivityHasAttachment change the requestState to Complete else Msg(you need to make sure that all the detailsActivity has their pictures before to change the state to Complete. So, my function that it is trigged by a button is the following: publicfunction verificarRealizacion():void{
var validado:String = "NO";
//VALIDAR EXISTENCIA DE ACTIVIDADES RELACIONADAS
var queryTask:QueryTask = new QueryTask(widgets.MantenimientoPodas.URLS.URL_ACTIVIDADES);
var query:Query = new Query();
query.where = "COD_SAP= " +int(DataSolicitudes.selectedItem['CODIGO_SAP']);
query.outFields = ['*'];
query.returnGeometry = true;
queryTask.execute(query, new AsyncResponder(onResultQuery, onFaultQuery));
//si hay conexion con el servicio
function onResultQuery(featureSet:FeatureSet, token:Object = null):void
{
//si no hay actividades asociadas a esa solicitud
if (featureSet.features.length<=0){
Alert.show("NO HAY Actividades encontradas, asegúrese de haberlas creado junto con su detalle especificado.");
//Si hay actividades asociadas. Verificar existencia de detalle
}else{
//Validar existencia de detalle
for(var k:int=0;k<featureSet.features.length;k++){
//VALIDAR EXISTENCIA DE DETALLE DE ACTIVIDAD RELACIONADOS
var queryTask:QueryTask = new QueryTask(widgets.MantenimientoPodas.URLS.URL_DETALLE_ACTIVIDADES);
var query:Query = new Query();
query.where = "ID_ACTIVIDAD= " +int(featureSet.features .attributes[ "ID_ACTIVIDAD"]);
query.outFields = ['*'];
query.returnGeometry = true;
queryTask.execute(query, new AsyncResponder(onResult, onFault));
function onResult(featureSet2:FeatureSet, token:Object = null):void
{
//Hay detalle de actividades
if(featureSet2.features.length>0){
//VALIDAR EXISTENCIA DE DOS FOTOS EN EL SERVICIO POR CADA DETALLE DE ACTIVIDAD
for(var m:int=0;m<featureSet2.features.length;m++)
{
//Alert.show(featureSet2.features .attributes["OBJECTID"]);
var myDetalle:FeatureLayer = new FeatureLayer(widgets.MantenimientoPodas.URLS.URL_DETALLE_ACTIVIDADES);
var objActividad:int= featureSet2.features .attributes[ "OBJECTID"];
myDetalle.queryAttachmentInfos(objActividad,new AsyncResponder(onResult,onFault));
function onResult(event:Array, token:Object=null):void
{
//tiene attachment
if (event.length==2)
{
var ModificarEstadoSolicitud:* = new Object;
ModificarEstadoSolicitud["OBJECTID"]= DataSolicitudes.selectedItem['OBJECTID'];
ModificarEstadoSolicitud["ID_ACTIVIDAD"]= int(DataSolicitudes.selectedItem['CODIGO_SAP']);
ModificarEstadoSolicitud["ESTADO_SOLICITUD"]= DDLEstadoPoda.selectedItem.descripcion;
var graficoEditadoActual:Graphic = new Graphic;
graficoEditadoActual = new Graphic(null,null,ModificarEstadoSolicitud);
var mySolicitud:FeatureLayer = new FeatureLayer(widgets.MantenimientoPodas.URLS.URL_SOLICITUD);
mySolicitud.applyEdits(null,[graficoEditadoActual],null, false,new AsyncResponder(onResult, onFault));
function onResult():void
{
Alert.show("Estado de Solicitud de Poda Modificado");
querySolicitudes();
}
function onFault(info:Object, token:Object = null):void
{
Alert.show("Error al modificar el estado de solicitud "+info.toString());
}
}
//no tiene attachment
else
{
Alert.show("Falta adjuntar alguna fotografia. Revise por favor.");
//Alert.show(event[0].url + " "+ event[1].url+ ""+ validado);
}
}
function onFault(event:Object,token:Object=null):void{
Alert.show("No se pudo conectar al servicio de fotos adjuntas");
}
}//for
}//if
else {
Alert.show("No hay detalle de actividades asociado, asegúrese de haber ingresado al menos uno por cada actividad");
}
}
function onFault(info:Object, token:Object = null):void
{
Alert.show("Error obteniendo el estado de la solicitud: "+ info.toString());
}
}
}
}
//no hay conexion
function onFaultQuery(info:Object, token:Object = null):void
{
Alert.show("Error al validar las actividades","Carga de Actividades");
}
} My issue is im just getting if the detailActivity has their attachment one by one. Is there a way to ask for all of them or another way to validate (the logic mainly). Thanks in advice
... View more
06-09-2015
11:30 AM
|
0
|
1
|
3069
|
|
POST
|
Yes, it works perfectly. I will try to do the deleteAttachments getting the ID from the attachments that i have with certain objectid. I guess i can obtain the attachmentid using something like queryAttachmentinfos and then getting in the event:array the event[0].id is that correct?
... View more
06-03-2015
01:42 PM
|
0
|
1
|
1649
|
|
POST
|
i will try it and i will tell u how is going! Thanks Nigel
... View more
06-02-2015
05:21 AM
|
1
|
0
|
1649
|
|
POST
|
Yeah i saw that already, but how im making a widget is not the same. The widget needs to get all the attachment infos related with the objectid selected in a datagrid element. There is a after picture and before picture as attachment for each objectid. So i need to previsualize both pictures in a different canvas on the widget, one for each one. And then, how i cannot update the pic, i need to delete it and then add a new one if i the user wanna change it. Idk how to integrate those example to this code, this is what i have until now: public function buscarCargarFotografias():void{
var arrayInfos:ArrayCollection = new ArrayCollection;
var objActividad:int= DataActividades.selectedItem['OBJECTID'];
myActividadLayer.queryAttachmentInfos(objActividad,new AsyncResponder(onResult,onFault));
function onResult(event:Object, token:Object=null):void{
var arry:Array = new Array(event.attachmentInfos);
var attachmentInfo:AttachmentInfo = arry[0];
var imageUrl:String = String(attachmentInfo.url);
//var attachmentInfo:AttachmentInfo= arry[0];
var imageUrlAntes:String = imageUrl;
/*
var attachmentInfo2:AttachmentInfo= arry[1];
var imageUrlDespues:String = attachmentInfo2.url;
*/
var imageAntes : Image = new Image();
imageAntes.source = imageUrlAntes;
imageAntes.scaleContent = true;
imageAntes.maintainAspectRatio =false;
imageAntes.percentWidth = 150;
imageAntes.percentHeight = 150;
pbMODAntes1.addChild(imageAntes);
/*
var imageDespues : Image = new Image();
imageDespues.source = imageUrlDespues;
imageDespues.scaleContent = true;
imageDespues.maintainAspectRatio =false;
imageDespues.percentWidth = 150;
imageDespues.percentHeight = 150;
pbMODDespues1.addChild(imageDespues);
*/
}
function onFault(event:Object,token:Object=null):void{
Alert.show("It is not doing anythingAnd i ");
}
} If u can show me an example will be useful and thanks again for all ur help
... View more
05-28-2015
11:52 AM
|
0
|
4
|
1649
|
|
POST
|
Ur welcome . It will be useful if u write some code and show us how u solve ur problem cuz anyone else can have the same question.
... View more
05-28-2015
10:55 AM
|
0
|
0
|
1641
|
|
POST
|
Thanks again Nigel , you will save my day again , i will wait for ur examples
... View more
05-28-2015
10:53 AM
|
0
|
6
|
1649
|
|
POST
|
Maybe u can make a mix with this and the other link that i just showed u, adding the extent based on user interaction. Find features in Map Layers—ArcGIS API for Flex | ArcGIS for Developers
... View more
05-28-2015
09:57 AM
|
0
|
3
|
1641
|
|
POST
|
Maybe u can do this. Select Graphics within Extent—ArcGIS API for Flex | ArcGIS for Developers
... View more
05-28-2015
09:35 AM
|
0
|
6
|
1641
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-21-2017 02:09 PM | |
| 1 | 04-10-2015 07:52 AM | |
| 1 | 03-23-2016 02:08 PM | |
| 1 | 02-22-2016 05:01 AM | |
| 1 | 10-09-2018 07:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-01-2024
03:05 AM
|