cancel
Showing results for 
Search instead for 
Did you mean: 

Binding transfer problem

Angelo_Ab
Participant
0 Kudos
276

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.

View Entire Topic
Angelo_Ab
Participant
0 Kudos

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.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
You are popping up an actual modal page or a popover menu?
Angelo_Ab
Participant
0 Kudos

@bill_froelichmodal page. I'm not trying to use popover menu.