I created 4 different screens and each one of them has a detail screen which I created by scaffolding. All 4 screens are connected. 1st  screen is Customer, 2nd screen is CustomerInitiative, 3rd screen is InitiativeActivity and last screen is ActivityNotes. They are connected so that each Customer can have many different Initiatives, each initiative can have many activities, and each activity can have many notes. When I create or update a customer in CustomerDetail, that customer is saved to the Customer page in a list, and when I create or update a customer initiative in the CustomerInitiativeDetail page that initiative is saved in the CustomerInitiative page, etc. However, when I get to my ActivityNotesDetail page and I try to create a new note, it shows me the "saved successfully" message but it doesn't show the newly created note in Activity Notes page. It remains blank on the table. I suspect its adding it to the database, I just don't know why its not showing on the end user page. How do I get the new note to show on the ActivityNotes page after saving it?

Hi,

Do you realize that you're asking us to tell you the solution to a problem that we know nothing about, because you're not telling us how you're doing it?

Some advice on this type of situation.

Check if data is being stored. Just click the entity in Data layer to open context menu and than View Data. In the screen you can order or filter the data.

If the data is not there, check your save action. Use the debugger and execute the save step by step until you detect the problem.

If the data is there, check if it is correct. No missing FK? Everything is fine? If not, again, probably the problem is in the save action.

If data is there and is correct, than check the aggregate in the preparation of the list screen, as probably the problem is a fetching data problem. Check the filters. Check the join types and conditions. Misplaced Inner joins can kill your aggregate's ability to find data, as much as filters. Execute preparation in debug.

This will help you find the problem.

Cheers


When a screen action is triggered will it run the preparation automatically or we need to run it exclusively by data refresh and ajax refresh?

Singanamala Uday Bhaskar wrote:

When a screen action is triggered will it run the preparation automatically or we need to run it exclusively by data refresh and ajax refresh?

Depends on what you have the Submit Method property on the "Save" button.  If it's an AJAX submit then you need the Data Refresh and then the AJAX Refresh to update the data on the page and only the refreshed widget is updated.  Which means that the Preparation is not called.  

If the Button's Method is set to Submit, then the screen action is run and if that action ends in an End node, then the Screen's Preparation will run again and the whole screen will be re-rendered.

Scott Karabin wrote:

Singanamala Uday Bhaskar wrote:

When a screen action is triggered will it run the preparation automatically or we need to run it exclusively by data refresh and ajax refresh?

Depends on what you have the Submit Method property on the "Save" button.  If it's an AJAX submit then you need the Data Refresh and then the AJAX Refresh to update the data on the page and only the refreshed widget is updated.  Which means that the Preparation is not called.  

If the Button's Method is set to Submit, then the screen action is run and if that action ends in an End node, then the Screen's Preparation will run again and the whole screen will be re-rendered.


Thank you Scott