POST
|
Here is what I was able to figure out... Create an Attribute Expression: var checkvalue = $feature.SOMEATTRIBUTE var img_blank = 'https://blankimage.png' var img_show = 'https://goodimage.png' iif(checkvalue=='Yes',img_show,img_blank) Then under CONFIGURE for Custom Popup, enter in any text you want. Add an image, and for the source, use the expression you just created. Some text and here is the pic: <img border="0" src="{expression/expr0}" width="25" /> It works really nice for me, however it would be nice to have a little more functionality to better it.
... View more
07-13-2017
04:14 PM
|
3
|
38
|
6255
|
POST
|
I'm trying to create a custom popup that will evaluate attributes and output a separate graphic for each. I started with a simple IIf statement to output text but get an error. My attribute use a domain with Codes 'Yes', 'No'. IIf($feature.BASEBALL = 'Yes','x','y') It returns: Execution Error:Feature is Immutable
... View more
07-12-2017
12:56 PM
|
0
|
1
|
6937
|
POST
|
You can try running Fiddler - http://fiddler2.com/. It may point out something?
... View more
05-29-2013
11:47 AM
|
0
|
0
|
309
|
POST
|
I've had this occur even if one minor code has an issue, that isn't necessarily reported as an error. Have you checked through all your other code?
... View more
05-28-2013
04:21 PM
|
0
|
0
|
309
|
POST
|
I'm not editing anything that was designed/implemented from the ArcGIS Install/Setup/Versioning process. I definitely want to work with what's available and how it's designed. I have however, found a work around that seems to work very well. MERGE INTO XYZ.DBO.Q_PARCEL_VW AS T USING (SELECT APN, APN11 FROM ABC.DBO.Q_POD) AS S ON (T.APN = S.APN) WHEN MATCHED AND (ISNULL(T.APN11,'') <> ISNULL(S.APN11,'')) THEN UPDATE SET T.APN11 = S.APN11; For non-numeric, I apply the ISNULL with '' as the replacement, otherwise I would use 0. The ISNULL was necessary I found out, because the MERGE doesn't like to run if the fields can have nulls - so you have to eliminate them. So in SQL, I create a version, open an edit session, run my edits using MERGE, close the edit session; then in ArcCatalog I reconcile, post, and delete that version to the DEFAULT; then compress. Everything seems to work great.
... View more
05-28-2013
04:19 PM
|
0
|
1
|
1892
|
POST
|
I'm told by support that this is a by-design issue with MS SQL "A view with an INSTEAD OF UPDATE trigger cannot be a target of an UPDATE with a FROM clause." There has to be workaround - anyone run across this? Essentially I am update my parcels attributes from data I received from another source. There are roughly 15 fields I update. SQL: UPDATE A SET A.APN11 = B.APN11 FROM XYZ.DBO.Q_PARCEL_VW A,ABC.DBO.Q_POD B WHERE A.APN = B.APN AND A.APN11 <> B.APN11 Error: UPDATE is not allowed because the statement updates view "XYZ.DBO.Q_PARCEL_VW" which participates in a join and has an INSTEAD OF UPDATE trigger.
... View more
05-23-2013
12:34 PM
|
0
|
6
|
7012
|
POST
|
I haven't figured that out either...but I am working it it again now in 10.1
... View more
05-08-2013
01:55 PM
|
0
|
0
|
220
|
POST
|
Has anyone been able to make the WindowPanel resizable by the user?
... View more
05-08-2013
07:19 AM
|
0
|
0
|
660
|
POST
|
I know this post is rather old, but wanted to share my solution. I believe I got it from this forum somewhere. MainPage.xaml.cs
//add this just inside the main usercontrol class
//Disclaimer
Disclaimer disclaimer = new Disclaimer();
public bool DisclaimerShown = false;
...
...
//add this in after the MainPage() section
#region Disclaimer
private void ShowDisclaimerOnLoad(object sender, EventArgs e)
{
if (DisclaimerShown == false)
{
if (GetCookie("GIS-Disclaimer") != "TRUE")
{
SetCookie("GIS-Disclaimer", "TRUE");
disclaimer.Show();
DisclaimerShown = true;
}
else
{
//MapBlackout.Visibility = Visibility.Collapsed;
}
}
if (sender.ToString() != "MyMap_Progress") { disclaimer.Show(); }
}
private void SetCookie(string key, string value)
{
// Expire in 7 days
DateTime expireDate = DateTime.Now + TimeSpan.FromDays(7);
string newCookie = key + "=" + value + ";expires=" + expireDate.ToString("R");
HtmlPage.Document.SetProperty("cookie", newCookie);
}
private string GetCookie(string key)
{
string[] cookies = HtmlPage.Document.Cookies.Split(';');
foreach (string cookie in cookies)
{
string[] keyValue = cookie.Split('=');
if (keyValue.Length == 2)
{
if (keyValue[0].ToString() == key)
return keyValue[1];
}
}
return null;
}
#endregion Disclaimer
Create a Disclaimer.xaml... <controls:ChildWindow x:Class="COVGIS.Disclaimer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
Width="400" Height="400"
Title="Disclaimer" HasCloseButton="False">
<Grid x:Name="LayoutRoot" Margin="2">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0">
<TextBlock TextWrapping="Wrap" FontWeight="Bold" TextAlignment="Center">
GIS(IT) makes no warranty, representation or guaranty as to the content, sequence, accuracy, timeliness or completeness of any of the database information provided herein.
</TextBlock>
<TextBlock TextWrapping="Wrap" Margin="0,10,0,0">
GIS(IT) makes no warranty, representation or guaranty as to the content, sequence, accuracy, timeliness or completeness of any of the database information provided herein.
</TextBlock>
<TextBlock TextWrapping="Wrap" Margin="0,10,0,0">
GIS(IT) makes no warranty, representation or guaranty as to the content, sequence, accuracy, timeliness or completeness of any of the database information provided herein.
</TextBlock>
<TextBlock TextWrapping="Wrap" Margin="0,10,0,0">
some text
</TextBlock>
<TextBlock TextWrapping="Wrap" Margin="0,10,0,0">
some text
</TextBlock>
<TextBlock TextWrapping="Wrap" Margin="0,10,0,0" FontStyle="Italic" FontWeight="Normal" FontStretch="Normal" FontSize="10" Foreground="DarkRed">
some text
</TextBlock>
</StackPanel>
<Button x:Name="OKButton" Content="OK" Width="75" Height="23" HorizontalAlignment="center" Grid.Row="1" Click="OKButton_Click" />
</Grid>
</controls:ChildWindow> In the codebehind...add this private void OKButton_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = true;
}
... View more
05-08-2013
06:57 AM
|
0
|
0
|
576
|
POST
|
You are correct. I was running this on my 9 box, but I checked my 10.1 test box and it's there. Thanks
... View more
03-27-2013
05:25 AM
|
0
|
0
|
519
|
POST
|
I'm trying to execute the next_rowid stored procedure based on the ArcGIS help, however SQL 'Could not find stored procedure 'dbo.next_rowid'' Anyone know where I can find the script to create the stored procedure? http://resources.arcgis.com/en/help/main/10.1/index.html#/in_SQL_Server/006z00000017000000/
... View more
03-26-2013
03:22 PM
|
0
|
3
|
3467
|
POST
|
Glad to here you got it working... For my ExcludeLayerList, I had added the declaration above 'public MainPage()' List<int> ExcludeLayerList = new List<int> { 14, 15 }; //These numbers come from the ID for each layer when you list them in REST
... View more
01-29-2013
06:24 AM
|
0
|
0
|
191
|
POST
|
Anyone have any luck with this. My connection is really slow too. I don't want to mess with the firewall settings if I don't have to and am hoping there is another resolution. Is there any testing to figure out where the bottleneck is?
... View more
01-28-2013
06:32 AM
|
0
|
0
|
454
|
POST
|
I have it all working now. No changes to my setup outlined before, but I did have an inconsistency with the arcgis password, so I re-ran the 'Configure ArcGIS Server Account' on the server and made sure my passwords were all the same.
... View more
09-10-2012
07:29 AM
|
0
|
0
|
268
|
Title | Kudos | Posted |
---|---|---|
3 | 07-13-2017 04:14 PM |
Online Status |
Offline
|
Date Last Visited |
08-16-2023
12:59 PM
|