Multiple Line Alert Box
The alert box is a great way to show our users quick results.
Is it possible to create multiply line alert box?
KEn
-
Hi Kenneth
take a look at this workflow as to one way to do this. Note the extra imported namespace Microsoft.VisualBasic which is required for the vbCrLf at the end of the first line of text
<Activity mc:Ignorable="sap sads" x:Class="{x:Null}" sap:VirtualizedContainerService.HintSize="273,297" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces"
xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:eac="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"
xmlns:eacg="clr-namespace:ESRI.ArcGIS.Client.Geometry;assembly=ESRI.ArcGIS.Client"
xmlns:eact="clr-namespace:ESRI.ArcGIS.Client.Tasks;assembly=ESRI.ArcGIS.Client"
xmlns:gce="clr-namespace:Geocortex.Core.Extensions;assembly=Geocortex.Core"
xmlns:gfc="clr-namespace:Geocortex.Forms.Client;assembly=Geocortex.EssentialsWpfApi"
xmlns:gfci="clr-namespace:Geocortex.Forms.Client.Items;assembly=Geocortex.EssentialsWpfApi"
xmlns:gr="clr-namespace:Geocortex.Reporting;assembly=Geocortex.Reporting"
xmlns:gwa="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow"
xmlns:gwa1="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow.Activities"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=Microsoft.VisualBasic"
xmlns:mv1="clr-namespace:Microsoft.VisualBasic;assembly=System"
xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
xmlns:s="clr-namespace:System;assembly=System.Core"
xmlns:s1="clr-namespace:System;assembly=System"
xmlns:s2="clr-namespace:System;assembly=mscorlib"
xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities"
xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
xmlns:sl="clr-namespace:System.Linq;assembly=System.Core"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Sequence sap:VirtualizedContainerService.HintSize="233,217" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<gwa1:Alert sap:VirtualizedContainerService.HintSize="211,93" Text="["First line" & vbCrLf & _
"Second Line"]" Title="Prompt" />
</Sequence>
</Activity>Regards
Ralph Price
0 -
This works well for the Silverlight Viewer, but not for the HTML Viewer. Anyone have a solution that will work for the HTML Viewer (or both)?
(I also tried Environment.NewLine)
Thanks,
Carmen
0 -
Carmen,
What version of the Essentials & HTML5 template are you using? Here is output using Essentials 4.3.1 & GVH 2.4.1 (latest html5 template) using "Environment.NewLine".
/customer/servlet/servlet.FileDownload?file=00P6000000em1RqEAI
Alert box text syntax:
"Longitude DMS: "+ xCoordDMS + Environment.NewLine + "Latitude DMS: "+ yCoordDMS + Environment.NewLine + "Longitude DD: "+ xCoordDD + Environment.NewLine + "Latitude DD: "+ yCoordDD + Environment.NewLine + "TX Stateplane Central East: " + xCoordSTP + Environment.NewLine + "TX Stateplane Central North: " + yCoordSTP
- Rick
0 -
Rick,
Thank you for your reply. So, it turns out that this DOES work in an Alert Box but not in the DisplayHyperlink "Message" . I am using HTML Viewer 2.4
I was using the same protocol in the "Message". It does not work in HTML, but will in Silverlight.
/customer/servlet/servlet.FileDownload?file=00P6000000elzUMEAY
0 -
Carmen,
I see what you mean. I tried it and it failed as well. Could you log this "bug" with LG support?
- Rick
0 -
Rick,
Thank you for verifying what I was seeing. I have submitted it as a bug to support.
Carmen
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
6 kommentarer