Hi ,
I am in private cloud 3.0.5.
On master , when call rbv_api.getSelectedIds in server side, i get my ids.
But when i publis my apps on prod1 bv_api.getSelectedIds return always null.
It's a bug ?
I am able to reproduce your issue on version 3.0.5 by logging in to customer tenant using the the "Login" button in the master tenant. There is no defect logged for this issue but it is working fine in version 3.1.3.
Hi Adrien,
I tested rbv_api.getSelectedIds on 3.0.5 on a customer tenant but I didn't find anything wrong. The API returns all the record IDs selected on the records list page.
Here's my scenario:
1. Created an object script trigger to log the selected records.
2. Selected 3 records from the records list page.
3. Updated 1 random record to fire the object script.
Can you provide the replication steps on your end?
Thanks,
Godfrey
Sorry,
But is not working.
My production scenario:
in customer tennant:
user click on button, and this run server trigger from another objet
In master work.
In my scenario test , i delete all trigger of my objet, i create a trigger after udapte
with this code
var arr = rbv_api.getSelectedIds("collaborateur");
rbv_api.println(arr);
if i run mass update
arr is null.
I'm a bit confused with the steps you provided for the customer tenant. It seems to be different with the one made on the master zone.
On the customer tenant, did you select records from the records list page as seen on the screenshot below? I was able to get selectedIDs from another object, though.
While on the master tenant, you don't have to use rbv_api.getSelectedIds unless you need the IDs on a single trigger. The Mass update functionality allows you to Run "On Update" triggers on selected records.
Oki, i symply explain my situation:
I have 2 objet A and B.
On B object i have trigger TB (after create mode). with this code:
var selectedItem =rbv_api.getSelectedIds("A");
-------------------------------------------------------------------------
On page list of object A.
I have a button who run this code:
rbf_createRecord("B",arrayfield,function()
{
something....
}
------------------------------------------------------------------------
In my master tenant in my trigger TB i have all Object A i have selected.
But in my customer tenant (prod1) my trigger TB getSelectedIds() return null
Could you test this architecture ? i think is a bug?
Were you trying to get the selected IDs on the master tenant from the customer tenant? Please take note that the API only gets the selected IDs of the current user.
Attached is a sample application that you can install on your customer tenant. This way you can test my scenario and explain yours using the same application.
Here's my scenario:
1. On "Selected IDs Test" application, select 3 object A records from the record list view.
2. Create 1 object B record. An object script will log the selected IDs.
3. Navigate to object B definition and edit the "Log selected As" trigger.
4. Click log button. This should log all the selected records in object A.
I am able to reproduce your issue on version 3.0.5 by logging in to customer tenant using the the "Login" button in the master tenant. There is no defect logged for this issue but it is working fine in version 3.1.3.
Cool, this is the next vesion we are installe thx for your help