POST
|
Robert, I am updating the FV for the Construction viewer you helped me out with a few years ago (gis.stlouiscountymn.gov/PWviewer). I'm at FV 3.1 and eSearch 3.1.13. A brilliant co-worker modified the PopUpRendererSkin.mxml with the following if/else statement for the popups, which results in two hyperlinks as shown
if (fieldInfo.label == " ")
{
label = new Label();
htmlText = '<a href="' + htmlText + '" target="_blank">' + "<b>Click to view past updates" + "</b></a>";
}
else if (fieldInfo.label == " ")
{
label = new Label();
htmlText = "<a href='http://gis.stlouiscountymn.gov/PW/WebForm1.aspx?FirstName=" + FlexGlobals.topLevelApplication.firstName + "&LastName=" + FlexGlobals.topLevelApplication.lastName + "&email=" + FlexGlobals.topLevelApplication.email + "&ConstId=" + htmlText + "'target='_blank'><b>Click to subscribe to updates</b></a>";
}
else
{
label = new Label();
}
[ATTACH=CONFIG]25232[/ATTACH] I'm having a heck of a time trying to duplicate this for the eSearch... if I use code as follows in the eSearch.xml the entire URL shows in the popup for the 1st link and the project number is all that shows for the 2nd link Neither hyperlink. I saw that you are using PopUpRendererSkin.mxml from the API so I do not have a separate popup file in the eSearch folder as before.
<field name="NEWS_RPT" alias=" " hyperlinkgridfield="true" hyperlinkaliastext="Click to view project history" />
<field name="PROJNUM" alias=" " hyperlinkgridfield="true" hyperlinkaliastext="Click to subscribe to updates"/> I'm sorry if I'm missing something very obvious here, and appreciate any help you can provide. Andrea
... View more
06-12-2013
12:26 PM
|
0
|
0
|
512
|
POST
|
Thanks all for your help, I found it and was able to successfully add it to the viewer: Added to viewer under src > com.esri.viewer > skins > supportClasses Added the following to defaults.css so the viewer would use the file: esri|PopUpRenderer
{
skin-class: ClassReference("com.esri.viewer.skins.supportClasses.PopUpRendererSkin");
}
... View more
04-19-2013
11:36 AM
|
0
|
0
|
340
|
POST
|
Sorry Yann, I'm just not seeing it: https://github.com/Esri/arcgis-viewer-flex/tree/develop/src/com/esri/viewer/skins
... View more
04-16-2013
02:11 PM
|
0
|
0
|
340
|
POST
|
Was the PopUpRendererSkin.mxml replaced in 3.1? I'm looking for it to change the size of the PopUp window. Thank you.
... View more
04-09-2013
12:55 PM
|
0
|
6
|
859
|
POST
|
Robert, I want to thank you for your assistance with this; without your help I don't know that this project would've been completed. Here is a link to the site if you are curious as to the end use. Best, Andrea
... View more
05-17-2012
09:53 AM
|
0
|
0
|
224
|
POST
|
Robert, Thank you, I figured there was a global variable, but didn't come across FlexGlobals. I have a few questions: Which mxml do I need to add the import and code to, SplashTitleWindow or SplashWidget? Also, where in the code do I add FlexGlobals.topLevelApplication.lastName =lastName.text ? I've tried a few places based on other threads (after the import statement, after the text boxes) and searches but I get errors, mostly undefined property of lastName. If I'm declaring the variables in the index.mxml do I need to declare them in the Splash Widget also? Thank you for your help and generosity; so many of us would not be dabbling into Flex without your amazing widgets and support! Andrea
... View more
03-15-2012
02:04 PM
|
0
|
0
|
224
|
POST
|
Hello, I asked a similar question in the wrong (API) forum a while back, so am rephrasing after looking through other posts and making a bit of progress. On Viewer load the splash screen and eSearch widgets are loaded. The user is prompted to enter their First Name, Last Name, and email into text boxes on the splash screen then click an OK button which closes the splash screen. I'm trying to add these 3 fields (FirstName, LastName, email) to a URL to create a link that will subscribe the user to project updates. If possible, I'd like to implement this in a popup window (PopUp or Info Template) and eSearch results. I've been able to utilize the modified code from this thread (thank you Robert!) to have each project number become a clickable link in the eSearch results. Is there way with Widget Communication to take the first name, last name, and email from the splash screen and incorporate those values into the URL string? Ultimately the URL would be: http://webistehere/PW/WebForm2.aspx?FirstName=Joe&LastName=Mapper&email=jmapper@maps.com&ConstId=ProjectNumber Where Joe, Mapper, and jmapper@maps.com are text fields entered on the splash screen and ProjectNumber is from an attribute field called PROJNUM With my limited knowledge, I think the final link would look conceptually something like this (in PopUpRendererSkin.mxml of eSearch)..but I need help in figuring it out: if (match && match.length > 0) { label = new mx.controls.Label(); htmlText = '<a href="' + match[1] + '" target="_blank">' + match[1] + "</a>"; } else if (match2 && match2.length > 0){ label = new mx.controls.Label(); htmlText = '<a href=" http://webistehere/PW/WebForm2.aspx?FirstName={firstName.text}&LastName={lastName.text}&email={email.text}&ConstId=PROJNUM" target="_blank">' + '<b>MP 116-1284</b>' +"</a>"; continued for all project numbers.... Thank you all kindly!!
... View more
03-13-2012
07:46 AM
|
0
|
5
|
553
|
POST
|
Isaiah, I am trying to accomplish a slightly similar result to what you have done with the PopUps and the Search Widget. Were you able to get the result you were after for the Search Widget? Thank you!
... View more
03-01-2012
03:03 AM
|
0
|
0
|
446
|
POST
|
Robert, Sorry about the miss-posting. Thank you for your reply. Andrea
... View more
02-23-2012
03:56 AM
|
0
|
0
|
162
|
POST
|
I added 3 text inputs to the Splash Widget (code follows) and am referencing the "Flex Viewer Widget Communication Explained" PDF (Thank you Robert) to pass the values to use in the links element of the eSearch Widget. Are there changes to this document for use in 2.5? The resulting URL will be like http://blahblahFirstName=fname&LastName=lname&email=email&ID=PROJNUM Where fname, lname, and email are user entered data on the splash screen. PROJNUM references a project number from the feature layer used by eSearch Widget. The eSearch Widget is opened when the Viewer is launched. I'm getting stuck on what I need to include in the functions; any advice or resources would be very appreciated. Thank you. <s:Form> <s:layout> <s:FormLayout paddingLeft="150" gap="-14"/> </s:layout> <s:FormItem label="First Name" textAlign="right"> <s:TextInput id="fname" width="100%"/> </s:FormItem> <s:FormItem label="Last Name" textAlign="right"> <s:TextInput id="lname" width="100%"/> </s:FormItem> <s:FormItem label="email" textAlign="right"> <s:TextInput id="email" width="100%"/> </s:FormItem> </s:Form>
... View more
02-22-2012
07:01 AM
|
0
|
2
|
732
|
POST
|
I am using Bing, Esri, and OSM basemaps, along with a tiled custom basemap (in Web Mercator). Yesterday all of the basemaps would not display starting at 1:36,112. I added the LOD scales from my custom basemap and the basemaps now display. Do LODs always need to be included in the config file to prevent this issue from happening? Thanks-
... View more
02-01-2012
06:07 AM
|
0
|
1
|
777
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|