2024 Nov 11 1:33 PM - edited 2024 Nov 11 1:46 PM
Hi,
I have a problem when trying to transfer binding from Action to Page.
When I click on object table row and afterwards navigate directly to a Page, all works fine, the fields on that page show the binding informations.
If i click on the same Object Table but i navigate on a Popup(choose an operation(buttons) that affects the target page) and from Popop to the Page, the Page does not receive the binding from the first action:
Object Table -> OnPress(NavToPopup) -> Press Button on Popup -> OnPress(Initialize and Fetch data) -> NavToShowSalesOrderPage
I tried to use rules in the OnPress event of Popup Buttons but I was unable to transfer the binding.
OnPress Event of Pupup Button(Initialize)
let pageProxy = clientAPI.getPageProxy(); clientAPI.showActivityIndicator(clientAPI.localizeText('Loading')); clientAPI.executeAction("/App/Actions/ClosePage.action"); pageProxy.setActionBinding(pageProxy.getBindingObject()); return clientAPI.executeAction("/App/Rules/CreateSalesOrder/FetchSalesOrder.js");
export default async function FetchSalesOrder(clientAPI) { let pageProxy = clientAPI.getPageProxy(); //get action binding var binding = pageProxy.getActionBinding(); //get client data let appClientData = pageProxy.getAppClientData();
....Fetch Operations...
clientAPI.dismissActivityIndicator(); return clientAPI.executeAction("/App/Actions/ShowSalesOrderActions/NavToShowSalesOrder.action"); }
How I can transfer the binding ?
Thank you.
Request clarification before answering.
Hi Bill,
I made a mistake in the explanation.
It isn't an ObjectTable but a DataTable(the customer need a more data to show in columns).
Unfortunately the DataTable does not have actions like ObjectTable(ex.: swipe actions) than when I click on a Sales Order a new modal page appears where through buttons you can choose to Show Details, Copy, Reject sales order.
When I click Show Details button, the first rule was called, than the Fetch Rule and finally the NavToShowSalesOrder execute action.
The detail page have empty header data fields because the binding is empty.
I need to know how to transfer the binding of DataTable row press to detail page.
I tried setActionBinding just before NavToShowSalesOrder but it seems to not work.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@bill_froelichmodal page. I'm not trying to use popover menu.
User | Count |
---|---|
77 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.