I have a table of Incomes. I want to have a row action that redirects to a Make Payment page. I want to pass a few of the selected row’s fields as URL parameters to the new page. I do this in a number of places where I’m dealing with a model that HAS only one row. In those cases, I use this syntax: ?id={{$Model.Income.data.0.Donor__c}} This works in cases where the model has only a single row, because ‘0’ is the index of the first row in the model. I know that skuid.utils.merge has a notion of “index” for a row, but I don’t know if there is any way to use that in this context. Here is my full redirect URL: apex/c__AddPayment?id={{$Model.Income.data.0.Donor__c}}&donor={{$Model.Income.data.0.Donor__c}}&income={{$Model.Income.data.0.Id}}&finishURL=%2Fapex%2FIncomePaymentTab&cancelURL=%2Fapex%2FIncomePaymentTab What I want to know is how (if) I can replace ‘0’ with something that will give me the index of the row for which the row action was clicked.
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
