LocationDialog. Incorrect flow of dialog
See original GitHub issueHi, thanks for component, though i have an issue. All flow is working well, all asking of address, showing images, confirmation, but when i hit “Yes” in confirmation second step of waterfall doesn’t hit, when i type smth more, it hits but WaterfallStepContext.Result is null and WaterfallStepContext.Reson is “EndCalled”
here’s the code: ` … //location AddDialog(new LocationDialog(“eSXXarWY1t6T2MQS-Ibdc2lqbZ42kWvYNADhiVpFMmk”, “Please enter a location”, _userState, useAzureMaps: true, requiredFields: LocationRequiredFields.PostalCode, options: LocationOptions.SkipFavorites ));
AddDialog(new WaterfallDialog("LocationFullDialog", new WaterfallStep[]
{
BeginLocationCollectDialog,
OnCollectLocationDialog
}));
}
private async Task<DialogTurnResult> OnCollectLocationDialog(WaterfallStepContext dc, CancellationToken cancellationToken)
{
if (dc.Result is Place returnedPlace)
{
await dc.Context.SendActivityAsync($"Location found: {returnedPlace.Address.ToString()}");
}
else
{
await dc.Context.SendActivityAsync($"No location found");
}
return await dc.EndDialogAsync();
}
private async Task<DialogTurnResult> BeginLocationCollectDialog(WaterfallStepContext dc, CancellationToken cancellationToken)
{
return await dc.BeginDialogAsync(LocationDialog.DefaultLocationDialogId, cancellationToken);
}
public async Task<DialogTurnResult> AskForPhone(WaterfallStepContext sc, CancellationToken cancellationToken)
{
return await sc.BeginDialogAsync("LocationFullDialog", cancellationToken);
`
This is tjus another dialog that is also started from main dialog by BeginDialogAsync
NetCore app 2.1 AspNetCore.App 2.1.6 BotBuilder 4.1.5 Dialogs.Location 1.0.100
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Receive error before click Ok on Location Dialog Bog
Problem is right after the dialog box pop up, OnFailureListener is already called. Even before I click Ok or Cancel. The error log:...
Read more >Copy folder to user selected location (dialog box)
Solved: Hi, I am trying to build flow: User trigger action. Flow will copy the template folder (with sub folders & files). User...
Read more >Conditionalize Dialogs in Sequence
PS : I have tried just throwing all the dialogs in sequence and as an init telling it to close if the condition...
Read more >Dialog Box: Problem Report
To access this Intel Inspector dialog box: In the Summary window, right-click one or more code locations, problems, or problem sets to display...
Read more >14002 – [CVS UI] Better flow when creating invalid repo location
2) Here is the flow I was proposing (probably not clear in my original message). The new repo location dialog opens up, user...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Unders0n Hi. New version published to NuGet just now. 👍 Will close this, just re-open if you still have the issue.
Hi, Any updates?