I am encountering an issue with a custom dialog (Ask / Simple Dialog) that works correctly in the Web UI but does not behave as expected in the Mobile App.
Screen
-
PO302020 – Receive and Put Away
Issue Description
I have implemented a custom Action Button that opens a dialog (popup) to display Adjacent Locations.
The dialog works correctly in the web application, but in the mobile app, the dialog opens and displays data, however the OK (Save) button does not work.
Actual Behavior (Mobile App)
-
Dialog opens successfully
-
Data is displayed in the list
-
Clicking OK / Save does nothing
Mobile Screen Customization Code
update screen PO302020 {
update container "HeaderView" {
update layout "FooterLayout" {
update layout "Line2" {
add recordActionLink "AdjLocations"
}
}
add recordAction "AdjLocations" {
displayName = "Adjacent Locations"
behavior = Void
redirect = true
redirectToDialog = "AdjacentLocationsDlg"
}
}
add dialog AdjacentLocationsDlg {
openAs = List
add dialogAction "Ok" {
displayName = "Save"
dialogResult = "OK"
closeDialog = true
}
add dialogAction "Cancel" {
displayName = "Cancel"
dialogResult = "Cancel"
closeDialog = true
}
add container "AdjLoc" {
type = SelectionActionList
includeDialogActions = true
add field "LocationCD"
add field "Selected" {
special = "ListSelection"
}
add containerAction "OK" {
displayName = "Save"
}
add containerAction "Cancel" {
displayName = "Cancel"
}
}
}
}ASPX Code (Web UI – Working Correctly)
<px:PXSmartPanel runat="server" ID="CstSmartPanel1"
Height="500px" Width="500px"
LoadOnDemand="True"
ShowAfterLoad="True"
Caption="Adjacent Locations"
Key="AdjLoc">
<px:PXGrid runat="server" ID="CstPXGrid1"
Height="300px" Width="100%"
DataSourceID="ds"
SkinID="Details"
SyncPosition="True">
<Levels>
<px:PXGridLevel DataMember="AdjLoc">
<Columns>
<px:PXGridColumn DataField="Selected" Type="CheckBox" Width="60" />
<px:PXGridColumn DataField="LocationCD" Width="140" />
</Columns>
</px:PXGridLevel>
</Levels>
</px:PXGrid>
<px:PXPanel runat="server" ID="CstPanel2">
<px:PXButton runat="server" ID="CstButton3" Text="SAVE" DialogResult="OK" />
<px:PXButton runat="server" ID="CstButton4" Text="CANCEL" DialogResult="Cancel" />
</px:PXPanel>
</px:PXSmartPanel>