locked
Delete item modal details picker lightswitch html RRS feed

  • Question

  • Hi,

    I have this table.

    As you can see, I relationship table 'Employee' with itself. But, on the screen in the modal details picker, I have this situation when I am creating new Employee:

    I would don't see the same Employee which I am creating. It's possible do it?

    Thanks, best regards.

    Ale

    Monday, October 14, 2013 1:52 PM

Answers

All replies

  • Hi Arenaut,

    According to your description, I'd like to suggest you to select Modal Picker value from code. In this way, you can set the value you want.

    You may refer to the link below for more details:

    LightSwitch HTML Client - Select Modal Picker value from code

    http://social.msdn.microsoft.com/Forums/en-US/c3b1b4f8-f267-4f31-878c-36e111ab074f/lightswitch-html-client-select-modal-picker-value-from-code?forum=lightswitch

    Hope it helps.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, October 15, 2013 7:53 AM
  • Hi

    this post I already saw. However I don't want selected a item in a Modal Picker, but I want 'changing' the 'dataSource' of it. For example:
    DataSource of Employee initial is -> Jhon Morris, Homer Smith and Brad Washington.
    I would 'changing' it like this: 
    DataSource ->Homer Smith and Brad Washington.
    Is it possible?
    thanks, regards

    Tuesday, October 15, 2013 8:05 AM
  • Hi Arenaut,

    I am not sure the meaning of 'changing' the 'dataSource'. If you want to change the initial datasource you may change it directly. If you want to change the datasource by filtering, you may refer to the link below:

    How to Use a Picker as a Filter in your LightSwitch apps

    http://blogs.msdn.com/b/bethmassi/archive/2013/08/29/how-to-use-a-picker-as-a-filter-in-your-lightswitch-apps.aspx

    Please let me know if I have misunderstood you.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, October 17, 2013 1:19 PM
  • Hi 

    your response is correct. But the 'dataSource' of Modal Picker contains the same Employee which I am creating. Then, if I selected the Employee which I am creating, the program catch the error because the object 'Employee' dosen't already create. I don't know if I explain good, but I just must hide the new Employee which I am creating. How can I do?

    Thanks, best regards.

    Ale

    Thursday, October 17, 2013 1:30 PM
  • Hi Ale,

    Based on my experience, we can set default the value of the modal picker to accomplish the intention.

    Regarding setting the default value, you may refer to the links below:

    How To: Using the Created Method to Set Default Property Values

    http://blogs.msdn.com/b/lightswitch_rocks1/archive/2011/08/09/how-to-using-the-created-method-to-set-default-property-values.aspx

    Setting the default value in LightSwitch

    http://stackoverflow.com/questions/7376527/setting-the-default-value-in-lightswitch

    You new ideas about the issue are very appreciated.

     


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Saturday, November 2, 2013 12:27 PM