Question: Oracle Apex 5.1, once click the button it will open new window its possible?, any one please provide the sample code

Answer: 
In dynamic action : create an on click DA that executes JS

```
var rowid= this.triggeringElement.id;
vUrl = apex.util.makeApplicationUrl({
//appId: $v("pFlowId"),                   // default is $v("pFlowId") - current app
pageId:10,                     // default is $v("pFlowStepId") - current page
//session: $v( "pInstance" ),   // default is $v("pInstance") - current session
// request: 'TEST_REQUEST',      // default is $v("pRequest") - current request
//debug: 'YES',                 // default is $v("pdebug") - debug YES/NO
itemNames:['P10_SHP_APPLICATIONS_TBL_ROWID'],        
// item names array (no value by default)
itemValues:[rowid]      // item values array (no value by default)
  //printerFriendly: 'YES'        // no value by default 
});//console.log(vUrl);
window.open(vUrl);

```
Flow below step

```
Go to Button
Go to button Behavior
Action : Redirect to URL
javascript:window.open('f?p=&APP_ID.:1:&SESSION.::NO:1:P1_PID:'+$v("P2_PID")+'');

```