Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Controller acts different between two different pages.

My problem is that a Controller acts differently from two different pages even though the code that creates the Modal Form is 100% the same code.
My Setup is:
Page 1 (Parent List) > editForm1 > Shows a list of rows which has a custom button to shows NonConformanceQuestionDocument
Page 2 (Parent List) > Shows a list of rows which has a custom button to shows NonConformanceQuestionDocument

The code that creates a Modal Form for DocumentController is 100% the same (same JS file),
$app.touch.show({
controller: 'NonConformanceQuestionDocument',
startCommand: 'New',
startArgument: 'createForm1',
tags: ncQuestionId,
values: [
{ name: 'NonConformanceQuestionID', value: ncQuestionId }
],

filter: [
{ name: 'NonConformanceQuestionID', value: ncQuestionId }
],
done: function (result) {
$app.find('NonConformanceQuestion', 'Controller').sync();
}
});

When viewing the Model Form from Page 1, the NonConformanceQuestionDocument shows with Save/Save and New/Cancel. The issue is when viewing NonConformanceQuestionDocument from Page 1, the Save and New button
re-opens the same form again again (which I like), however when NonConformanceQuestionDocument is called from Page 2, the Save And New keeps the first record open and creates another (slides to the right) and
acts different (fails with error).

The only difference that I can see is Page 1 goes from a list to a edit form then shows NonConformanceQuestionDocument as where Page 2 shows a list then shows NonConformanceQuestionDocument (missing the edit form).

Any advice would be great.
Regards
Paul.
1 person has
this question
+1
Reply