|
POST
|
I don't want to hijack a thread but I have a tiny question about searching multiple fields. I noticed that you can't hit the enter key to run the search when you have multiple search fields, but you can any other time. Is there a remedy for this? Or maybe I'm making some dumb mistake? I know I'm going to get some complaint calls over this even though it's such a small thing. 🙂 thanks
... View more
06-27-2012
09:53 AM
|
0
|
0
|
430
|
|
POST
|
nothing? I think my issue may just be not knowing what "data" and "columns" to use here: Grid(data:Array, width:Number, height:Number, headerColor:IColor, cellColor:IColor = null, useAlternativeRowColor:Boolean = false, alternativeCellColor:IColor = null, borderColor:IColor = null, borderAlpha:Number = 1, headerHeight:int = 5, rowHeight:int = 5, joints:String = 0 j, columns:Array = null) Robert? What is the name of the data and columns in your widget? I have gone through it over and over and I just can't decipher what to use. What I have used (resultsGrid, dgHyperColumns, dgColArr, etc) did not work. I continue to have nothing happen at all when I click on my print button. But if I remove the addGrid method and use addImage I get a result. I just don't know what this means.
... View more
06-20-2012
11:31 AM
|
0
|
0
|
364
|
|
POST
|
Can anyone help me figure out how to get this working? (I'm a coding noob btw) I'm trying to use the addGrid method to print the grid results from the eSearch widget. I got the addImage method to work but it leaves much to be desired. I'd like to get addGrid working so that I can try tweaking it to see if it'll suffice or not but I can't get it do anything at this point. When I hit the print button, nothing happens. So what I've done is add a button to the SearchWidgetFloatDG.mxml of the eSearch widget which calls a function with the addGrid method. I think my problem lies in what grid/array/dataprovider/or whatever I need to add. I may also be missing parts....such as I'm unsure if I need to be adding columns or not or if that is part of the grid already. I've been trying to use "resultsGrid" but no luck. What I have done has been based on pieces of code I've found online. I haven't been able to find any examples that fit what I'm trying to do here. I'm using AlivePDF version 1.4. I couldn't get anything, including addImage, to work on 1.5. Here's the code I have in there currently, which doesn't work, but I'm changing it constantly. Anyone have something like this already working or can see what I may be doing wrong? FYI, there are probably some extra variables and imports from assorted things i've tried over the past many days of trying to get this to work. import org.alivepdf.colors.RGBColor;
import org.alivepdf.data.Grid;
import org.alivepdf.data.GridColumn;
import org.alivepdf.display.Display;
import org.alivepdf.drawing.Joint;
import org.alivepdf.fonts.*;
import org.alivepdf.images.ImageFormat;
import org.alivepdf.images.ResizeMode;
import org.alivepdf.layout.*;
import org.alivepdf.layout.Layout;
import org.alivepdf.layout.Orientation;
import org.alivepdf.layout.Size;
import org.alivepdf.layout.Unit;
import org.alivepdf.pdf.PDF;
import org.alivepdf.saving.Download;
import org.alivepdf.saving.Method;
import spark.components.Button;
import widgets.eSearch.SearchWidget;
import widgets.eSearch.skins.PopUpRendererSkin;
private var urlString:String;
private var pdfBinary:ByteArray;
private var method:String
private var mygrid:org.alivepdf.data.Grid; private function doPrint(event:Event):void{
var printPDF:PDF = new PDF( Orientation.LANDSCAPE, Unit.INCHES, Size.LETTER );
//var mygrid:Grid = new Grid ( resultsGrid.dataProvider.toArray(), 100,100, null,null,null,true,null,1 );
mygrid = new org.alivepdf.data.Grid(resultsGrid.dataProvider.toArray(), 100, 100, null, null, null, true, null, 1);
mygrid.columns = dgHyperColumns();
printPDF.setDisplayMode( Display.FULL_PAGE, Layout.SINGLE_PAGE );
printPDF.addPage();
//printPDF.addImage( resultsGrid, 0, 0, 0, 0, 'PNG', 100, 1,ResizeMode.FIT_TO_PAGE);
printPDF.addGrid(mygrid,50,50,false);
printPDF.save( Method.REMOTE, "http://map.exetertownship.com/createpdf/Default.aspx", Download.INLINE, "results.pdf" );
} <s:Button label="Print" id="_Print" click="doPrint(event)" skinClass="widgets.eSearch.skins.ExportButtonSkin" visible="true" includeInLayout="true"/> thanks!
... View more
06-18-2012
07:48 AM
|
0
|
1
|
724
|
|
POST
|
you'll probably be as amazed as I am...but I actually got this to work finally! 🙂 I get a pdf with an image of the data grid. Not really ideal but it appears as though it may work well enough. (as long as there isn't more data than window size!) My issue now is that I need to adjust things to get the image to display everything in the datagrid. Resizing the grid so that all of the columns and rows are visible works but I'd like to experiment with some things. There are two things I was hoping you could answer. Where do I adjust the font size of the data in your widget's datagrid? I can't seem to find it anywhere. And Is is possible to have the datagrid sized to fit all of the contents automatically? As in, no scroll bars. Oh and one other unrelated question. I have a number field that somehow gets interpreted by AGS as having around 13 digits after the decimal place (despite the data only having 2), so I'm using the widget config to set it back to 2 when displayed. However, it would seem that the code you have for sizing the column widths to fit the contents uses the data prior to the config's shortening of it. Is it possible for this to change so that the column fits the adjusted formatting? thanks!
... View more
06-13-2012
12:35 PM
|
0
|
0
|
779
|
|
POST
|
I assumed that your search widget created a graphics layer and then displayed the data from that layer in the results. So then I thought if it can be done with one record why not more than one? But not sure where I got the idea that a graphics layer was involved. Good to know that I'm on the right track with AlivePDF at least. There are tons of posts available talking about it but I can't find one that is a thorough description of how to use it. Most just say "here's my code" but I don't know where to put it. Also, they mention the need of a pdf creator and there's no explanation of that.....and if Alive is creating a pdf why would there need to be another component? grr. yes it's complicated. I'll just keep digging. Hopefully someone familiar with AlivePDF in this way can assist further. Thanks
... View more
06-13-2012
04:30 AM
|
0
|
0
|
779
|
|
POST
|
Also...I've been spending quite awhile looking into "AlivePDF" to see if that'll help with my issue but despite tons of info out there, it's still very confusing. Am I even on the right track looking into that? No one prints search results/datagrid?
... View more
06-12-2012
12:28 PM
|
0
|
0
|
779
|
|
POST
|
I didn't realize that it all had to be compiled together like that. I already had the FV project loaded up. I couldn't get it to compile due to some errors with eSearch and the new files I added but I don't think it matters as after looking at the code it seems like it won't work. It was hard coded to display a set list of data, not whatever data happened to listed in the datagrid at the moment. Plus, I'm in over my head as I'm unsure of how to begin to make changes and I can't find much of anything on the internet. I did find this thread from a few years ago: http://forums.esri.com/Thread.asp?c=158&f=2421&t=292246 and it sounds like it could be what i'm looking for (although dated) but I don't know what to do with the code, where it goes and what needs to be changed. Robert, in that thread you said that you are already doing this in an app of yours but here you said you won't in eSearch. Do you have some other method/widget you are using that you could suggest or do you just no longer print data in your apps? I really need to find a way to accomplish this (printing data from multiple selected parcels)...but I'm no developer thanks
... View more
06-11-2012
07:00 AM
|
0
|
0
|
779
|
|
POST
|
I'm pulling my hair out over here on the most simple thing. Certainly feel stupid! I can't for the life of me figure out how to bring the uncompiled files from eSearch into Flash Builder! I can't start learning more if I can't even begin. It's not a project that i can import and starting a new project doesn't seem to work either...maybe because I don't know where to put the files in the structure. I can't find any tutorial on how to do it. ugh. I found this article that seems to be something to work with http://flex.exposedout.net/2008/10/printing-datagrid-in-flex/ , at least to try out and see if it'll work for me. My assumption was that I would take the mxml files that are attached there and add them to the eSearch, compile, and see what happens. Am I even on the right track with that? But more importantly, how do bring the widget into FB? Thanks for any info that can get me started with my journey out of ignorance...
... View more
06-08-2012
07:37 AM
|
0
|
0
|
779
|
|
POST
|
I've been asked to come up with a way to have a print-friendly, and quick, list of the features returned from a search (i'm using the eSearch widget). Currently, the results appear in the data grid and can be exported to csv, which can be opened in Excel and formatted as-needed, but it's much more difficult than what our users were able to do with a previous system. There, the selected features' attributes would be sent to a table on a webpage that would be preset for printing the results on a letter-sized page. It was a quick way of selecting parcels and printing out a list of ownership information for them. I don't see any other widgets out there that may be able to help, but I may have missed something. Ideally it would be some adjustment to the eSearch widget anyway as it is already in use. I'm envisioning another export button that opens the data, in a structured way, in a webpage or a pdf, but I have no idea how to begin to go about that. Is this possible? Are there alternatives? Any suggestions on the best way to handle this? If it can be done with some editing of the eSearch, where do i begin? thanks!
... View more
06-07-2012
12:35 PM
|
0
|
8
|
1280
|
|
POST
|
I know I read something about this on another thread before but I'm having a hard time finding it now so I'll just ask this way. I've noticed that my popups will get "shifted" in such a way that the field names end up pushed over to the right and the attributes are pushed over as well causing them to be cutoff by the edge of the popup window itself. They are not wrapped as expected. This seems to be happening randomly as when it happens I (or others) refresh the page and it then displays correctly. But then a day or two later it happens again. I haven't found any reason for this behavior. (all users are on latest Flash Player) I know that the popup skin can be adjusted (with difficulty), which is not something I want to get into, but since this is a sporadic issue I'm not sure if that would even help. So, does anyone know what the source of such an issue might be so I can find a workaround? Is it a bug? Will the popups be getting any love in 3.0? I'm starting to get some gripes about this and would like to have an answer for them. Thanks
... View more
06-04-2012
12:16 PM
|
0
|
0
|
672
|
|
POST
|
what is the error you are getting when you try to access the app from another computer? Are you only trying to access from elsewhere on your network or open to the internet?
... View more
06-04-2012
11:49 AM
|
0
|
0
|
926
|
|
POST
|
ok I made that change in the MapManager.mxml and it seems to work perfectly. Thanks! As for the index.html, when I make that change the application doesn't load. I get a message about it requiring flash 10.2. I am up-to-date. Are you sure my code above is exactly right?
... View more
05-21-2012
07:35 AM
|
0
|
0
|
1308
|
|
POST
|
Graham, Yeah it seemed like a little less than 50% is correct but I don't see how I could expect a public user to do this. Even if I stated it somewhere in the "help", I doubt anyone would even read it. Tom, It's definitely a difference between the browsers and how they display. The image is the same from each browser but they each handle it differently. IE displays the image at 100% and wants to print as such but it is too big for the paper. Chrome shrinks the image to fit in the browser without having to scroll. For whatever reason, this is the correct size....at least when the browser window is full screen.(at least for me on this machine) However, if I adjust the browser window to not be full screen (in height) then it shrinks the image even further so that it fits in this smaller window....which then causes the print to be a small portion of the paper instead. I'm afraid to even try this on another machine with a smaller monitor or screen resolution. I realize this is some product of the print resolution vs the screen resolution vs the browsers' handling of it...but how do I make it work? In order to have the scale be correct, the images have to printed exactly as presented. The widget was designed to create these images for print, and to be in scale...how do I ensure that that happens? I going to force users to print to pdf, and that works perfectly, but for the rare user that doesn't have a pdf viewer, this would be a problem and I'd like to offer jpg as an option. Thanks
... View more
05-21-2012
06:59 AM
|
0
|
0
|
2658
|
|
POST
|
I haven't done anything to the index.html so I revisited that thread. So I should change this: swfobject.embedSWF(
"index.swf", "flashContent",
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes); to this? swfobject.embedSWF(
"${swf}.swf?ts=" + new Date().getTime(),
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes); as for the new .swz files, apparently they are required to go along with the new index.swf because it didn't work without them. I did notice that this cache fix did not work on the "MySplash" widget, but maybe the change above will take care of that. thanks
... View more
05-16-2012
11:51 AM
|
0
|
0
|
1308
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-02-2015 06:41 AM | |
| 1 | 01-28-2016 07:01 AM | |
| 2 | 01-07-2016 01:44 PM | |
| 4 | 02-27-2015 12:52 PM | |
| 2 | 05-27-2015 05:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|