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);

```
```
javascript:window.open('f?p=&APP_ID.:3002:&SESSION.:::3002:P3002_CPY_ID,P3002_RPM_ID,P3002_ACM_ID,    P3002_FORMAT,P3002_REPORT_PAGE_NO:'+$v("P1977_CPY_ID")+','+$v("P1977_RPM_ID")+','+$v("P1977_ACM_ID")+',VIEW,1977','_blank');

```

Use the above code 
Click the button and create the dynamic action and select Execute Js and paste the query.. pass the parameter and page no everything.. then try