This question already has an answer here:
MvvmCross: Bindings for Android
(1 answer)
Closed 9 years ago.
How would I bind to a grandparent in MVVMCross?
I have a List<string> which I'm binding to a MvxLinearLayout with its own item template "A". When the user clicks on the button in "A" I would like to fire an ICommand in its parent (i.e. the owner of the List<string>).
I also have a similar situation with a grandparent relation.
How would I do this?
There is no parent binding access in lists or any other mvx data binding context currently.
There are plenty of simple workarounds - see questions such as MvvmCross Android - Alternative to RelativeSource binding for button command for some suggestions.
I've answered questions similar to this several times. Each time i invite people to raise feature requests, ideas or pulls to issues such as https://github.com/slodge/MvvmCross/issues/35 . While there have been perhaps 3 or 4 of these questions, no-one ever seems bothered enough to follow up, so i guess it's not an important feature.
Related
Just to give you a brief, I'm working on a Chatbot, that will suggest the user some things, based on the answers of a few quetions. Now, most of the questions that the agent asks the user are in Yes/No and with a very little variation.
So here's the usercase:
The agent asks the user these two questions:
Did you have your meal(s) on time?
Did you work out today?
The answers to both these questions can be in a YES/NO.
In that case, if the user is asked the meal question and the user responds with a NO, the agent updates the parameter values for both the meal question as well as the workout question.
But that's something that I don't want.
I'm using the slot-filling technique here. Is there a way around this problem.
Here's my User Info Intent and the parameters that I have:
PS - I don't really want to create multiple intents for all these parameters and want to handle all these answers with just one intent
If the agent updates the parameter values for both the meal question as well as the workout question that means you're using the same parameter to host both answers, you need to use different parameters.
If would be very helpful if you shared how you have handled the dialog so far. And can I ask why do you want to use only one intent?
You can try creating a generic intent and setting both parameters as required, defining your questions as prompts for each parameter. That way the answers will be hosted in two different parameters.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I'm wondering what the best method is so associate TFS work items and bugs to customers so we can track what customers are waiting on particular bug or work item.
We have lots of customers using our product. If customers find a bug or request a feature, we would like to be able to associate that customer against a work item (There could also be multiple customers waiting on the same work item).
At the moment we are just creating a new task for a work item and assigning it a custom state called "Notify Customer" and including the client names in the title.
Can anyone think of a better method or have any suggestions on how they do this?
Update:
Decided to go with the tags for the customer name using the format "Client: Name". Then create a query for each customer.
I can think of two ways:
A: administrative access permitting, you can consider modifying the work item type using the Tools>Process Editor>Work Item Types>Open WIT from Server feature added to Visual Studio by the TFS Power Tools extension to include a custom text field which can then be used to enter the affected customer's name. If your customers are actually TFS users themselves you can mirror the functionality of the AssignedTo work item field. The latter (AssignedTo) topic however comes with a caveat.
B: depending on your TFS version, add a Tag to the work item. Example "customer:john.smith" which can later be queried as follows.
Tags are probably the easiest, or on an older TFS if you aren't using area path, then that can also be an easy place to add a customer name.
I would minimise/avoid edits to the tfs templates, as this will make your system "non standard" and will cause you problems when you next want to upgrade your tfs to a newer version or if you want to integrate any third party tools with tfs.
The company I work for just started using Team Foundation Server 2013 and it is my Task, to find answers for the open questions in our Team. By doing so, I found a problem I can't solve.
Is it possible, that only the author/creator of a Work Item is able to change the Status of a Work Item to Done?
The advantage of this would be, that Tasks can only be closed when the author is satisfied with the Result.
By editing the work item definitions, you can achieve this.
Same question asked earlier and you'll just have to use the question's answer in the transition to Done state for you.
I am creating a MVC4 application.
In it there is a view in which the user is allowed to create a list of questions.
Each question is added one by one.
Where i stand now is on addition of every question i have to invoke the controller and then add the question in the Data Base. Which is not appropriate because it would be extremely hard if the user want to edit any question.
i want the view to handle every thing. As the questions are been added the should recite on the client side in a list of question in my model. And on the click on some final button it should go to the controller and from there to data base.
My question adding method is when a question and all its choices are entered in model bounded textboxes.. When the user press add question the question should be added to the list and the textboxes will again be null.
Kindly suggest me some topics or methods that i can look into to accomplish my task. I guess it would be possible using JQuesry or AJAX. But i have very little knowledge of it.. So i really require help.. Thank You!
Kindly suggest me some topics or methods that i can look into to accomplish my task.
If you want to use AJAX: Editing variable length list
With knockoutjs: Editing variable length list - knockout style
I want to create many checklist templates and let users fill those in. For example,
Task | done? | Notes
Do Task 1 | yes/no | bal
Do Taks 2 | yes/no | bla
Do task 3 | yes/no | bala
Think about server checklist. It can be performed for different clients by different employees, so I want to have that information as well.
Any ideas on how to do it in Sharepoint? Preferably not using Sharepoing Designer or InfoPath. The best solution would be purely web-based.
This kinda looks like a combination of a questionnaire and a task list. I think using a questionnaire list might be able to provide this functionality, at least the yes no -> continue to next task bit, the notes i'm not so sure about. And a questionnaire stores information about the user who filled it in as well.
Another option is working with workflows, fired each time a user fills in a yes/no to take him to the next question, then goes to sleep until the user completes that task. This is SharePoint designer based though. (Or code based, if you go for creating a custom workflow in visual studio.)
The problem with questionnaire lists is that it would have to filled in completely in one time, there is no "save and continue later" functionality in a questionnaire list.
Another big issue here is security. You don't want employees of client A see what those of client B are doing. (A questionnaire list has the option of disallowing viewing of any answers but your own I believe).
Conclusion:
The security issue combined with the fact that a questionnaire will only get you so far (especially the fact it needs to be completed in one time) brings me to the complusion this is going to take some custom development. i.e.:
a custom page on which a user can fill in a checklist
a list to hold the different checklists
a list that holds the questions with a lookup to the checklist definition list
an answer list, where the answer plus notes are stored, with a lookup the the question list
the answer list will need to be able to set the security on the item level upon item creation (i.e. an itemeventreceiver), giving the person who answered nothing but read permissions to his / her own items only.
new answers will need to be added to the answer list using custom code that uses RunWithElevated priviliges, because the list itself will be full accessible to admins only.
The checklist entry page will need to check how far the user filled in a checklist. The checklist could be determined by:
a dropdown showing all checklists,
a link on the (support) homepage, by including the uniqueid of the checklist item in the querystring. Since i proposed to store checklists in a list, you can use the checklist listitem's uniqueid, which is a guid, so any tampering with the querystring is very unlikely to get them to another checklist.