-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
94 additions
and
13 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
Import/CustomModalDialog/Import/Action/labs_OpenMaxModalDialog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<AML> | ||
<Item type="Action" id="0807F3255CFD45C092B8CA16D69897E6" action="add"> | ||
<item_query /> | ||
<label xml:lang="en">Open Maximizable Modal Dialog</label> | ||
<location>client</location> | ||
<method keyed_name="labs_CallMaxModalDialog" type="Method"> | ||
<Item type="Method" action="get" select="id"> | ||
<name>labs_CallMaxModalDialog</name> | ||
</Item> | ||
</method> | ||
<target>none</target> | ||
<type>item</type> | ||
<name>labs_OpenMaxModalDialog</name> | ||
</Item> | ||
</AML> |
11 changes: 8 additions & 3 deletions
11
Import/CustomModalDialog/Import/Fixes/AddActionToItemTypes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<AML> | ||
<Item type="Item Action" action="add" id="A3CB23B870D44D31A3BA9CF5C034DCC6"> | ||
<related_id keyed_name="labs_OpenCustomModalDialog" type="Action">A4CDEF0ABB314323BDE27F782C0DDA1C</related_id> | ||
<source_id keyed_name="Part" type="ItemType" name="Part">4F1AC04A2B484F3ABA4E20DB63808A88</source_id> | ||
</Item> | ||
<related_id keyed_name="labs_OpenCustomModalDialog" type="Action">A4CDEF0ABB314323BDE27F782C0DDA1C</related_id> | ||
<source_id keyed_name="Part" type="ItemType" name="Part">4F1AC04A2B484F3ABA4E20DB63808A88</source_id> | ||
</Item> | ||
<Item type="Item Action" action="add" id="82481AFB9AE84F23AA59C09B512ECA8A"> | ||
<related_id keyed_name="labs_OpenMaxModalDialog" type="Action">0807F3255CFD45C092B8CA16D69897E6</related_id> | ||
<source_id keyed_name="Part" type="ItemType" name="Part">4F1AC04A2B484F3ABA4E20DB63808A88</source_id> | ||
</Item> | ||
</ | ||
</AML> |
46 changes: 46 additions & 0 deletions
46
Import/CustomModalDialog/Import/Method/labs_CallMaxModalDialog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<AML> | ||
<Item type="Method" id="6AF7D8756C8C40BEB509F97E88DEAAD9" action="add"> | ||
<execution_allowed_to keyed_name="World" type="Identity">A73B655731924CD0B027E4F4D5FCC0A9</execution_allowed_to> | ||
<method_code><![CDATA[// Aras Labs Project | ||
// Eli Donahue - 5/31/18 | ||
// | ||
// Based on labs_CallCustomModalDialog | ||
// Call a custom form in a maximizable modal dialog | ||
// Perform some action based on the values returned from dialog | ||
var topWnd = aras.getMostTopWindowWithAras(window); | ||
topWnd = topWnd.main || topWnd; | ||
// get form | ||
var formName = "labs_CustomModalDialogForm"; | ||
var fetchForm = this.getInnovator().newItem("Form","get"); | ||
fetchForm.setProperty("name",formName); | ||
fetchForm = fetchForm.apply("get"); | ||
// check form for error | ||
if (fetchForm.isError()) | ||
return alert("Can't find a form called " + formName); | ||
// get form params | ||
var params = { | ||
title: 'Test Dialog Parameter Passing', | ||
formId: fetchForm.getID(), // put your form's id here | ||
aras: aras, | ||
dialogWidth: 800, // set width int | ||
dialogHeight: 400, // set height int | ||
content: 'ShowFormAsADialog.html' | ||
}; | ||
var callback = function(res) { | ||
//Perform logic using dialog result here | ||
return alert("Param 1: " + res["param1"] + " ... Param 2: " + res["param2"] + " ... Param 3: " + res["searchResult"]); | ||
} | ||
// call form in dialog | ||
topWnd.ArasModules.MaximazableDialog.show("iframe", params).promise.then(callback); | ||
return null;]]></method_code> | ||
<method_type>JavaScript</method_type> | ||
<name>labs_CallMaxModalDialog</name> | ||
</Item> | ||
</AML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.