Automated actions for more records

Ask your questions here.
Post Reply
gigaset
Posts: 4
Joined: 15 Oct 2022, 13:38
Name: Federico
Location: Pisa - Italy

Automated actions for more records

Post by gigaset »

Hy Sergey,
i want to apply automated action (php script) to two or more records. How can I move through the array in my php code?

Thank You
eddydeniro
Posts: 174
Joined: 23 Feb 2021, 16:31
Name: Edi Supriyadi
Location: BDG Indonesia

Re: Automated actions for more records

Post by eddydeniro »

What array do you mean? You can read more here https://docs.rukovoditel.net/index.php?p=125
gigaset
Posts: 4
Joined: 15 Oct 2022, 13:38
Name: Federico
Location: Pisa - Italy

Re: Automated actions for more records

Post by gigaset »

For all selected records I want to execute my php action
Attachments
Cattura.JPG
karahan
Posts: 225
Joined: 09 Jul 2021, 22:14
Name: Edin Karajić
Location: Bosnia and Herzegovina
Company Name: KARAHAN d.o.o.
Contact:

Re: Automated actions for more records

Post by karahan »

Hi,

I have a similar problem with one of my automatic actions.
The action is set to generate jasper report. Everything works, but the problem is when multiple records are selected, each report is generated in separate browser tab. This is irritating because mass printing is not possible.

Below is my code:
$val1= [id];
$val2= [1717];

$link = "<script>window.open('https://test.ba/...param1=$val1&param2= ... =xyz.jrxml')</script>";
echo $link;
echo "<script>window.history.back()</script>";
First parameter "val1" is id of the record inside database.

I understand there should be a method to call multiple parameters "id" as array, also method "window.open" is probably not what is needed here. Unfortunately I am not an expert in php and cannot find the solution.

Hope someone could help. I would appreciate it.
p.dimitrov
Posts: 166
Joined: 12 Jul 2017, 09:35
Name: Pavel
Location: Varna

Re: Automated actions for more records

Post by p.dimitrov »

I'm also interested in this, if it means what it think it is. For example for multiple selected records, an action in performed for each selected record:
-selected record -----> 1 action is run for this record
-selected record -----> 1 action is run for this record
-selected record -----> 1 action is run for this record

I need a way to get the selected records as an array and use it in the action:
-selected record ----->
-selected record -----> 1 action is run for these 3 selected records
-selected record ----->
Edition Nehemia
Posts: 56
Joined: 18 Feb 2023, 16:44
Name: Christoph Berger
Location: Steffisburg, Switzerland

Re: Automated actions for more records

Post by Edition Nehemia »

+1
Post Reply