locked
AddNew screen: new record shows in the list to early RRS feed

  • Question

  • I want to create a new record and call the AddNew screen. Because a field of my record points to a father (same table), I add a list in the AddNew screen to choose from who the new record will be the son of.

    The problem is that this list shows not only the other created records but also the current newly record ! And of course I do not want that the father of my new record is the record itself !

    I have tried and tried to filter by Id, by createdBy not null, etc... but now I realize that the list query in the AddNew screen does not refresh with my filter but add systematically the new record in the list.

    I really do not know how i can resolve this problem.

    Yves


    Yves Pflieger

    Friday, March 6, 2015 9:32 AM

Answers

  • Is it a work flow issue? Your post is hard to understand maybe show shoe pictures via print screen and paste in paint or some code samples.

    If you going to the right screen after you save a new record works then  try this code.

            partial void AddScreenName_Saved()
            {
                // Write your code here.
                this.Close(false);
                Application.ShowScreenName();
                //original code 
                //Application.Current.ShowDefaultScreen(this.AddScreenNameProperty);
            }


    • Edited by reigh7 Sunday, March 8, 2015 4:02 AM
    • Marked as answer by Angie Xu Monday, March 16, 2015 5:49 AM
    Sunday, March 8, 2015 4:01 AM