Page 1 of 1

Automated actions for more records

Posted: 30 Dec 2022, 19:36
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

Re: Automated actions for more records

Posted: 04 Jan 2023, 11:02
by eddydeniro
What array do you mean? You can read more here https://docs.rukovoditel.net/index.php?p=125

Re: Automated actions for more records

Posted: 12 Jan 2023, 17:51
by gigaset
For all selected records I want to execute my php action

Re: Automated actions for more records

Posted: 01 Mar 2024, 20:32
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.

Re: Automated actions for more records

Posted: 04 Apr 2024, 13:16
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 ----->

Re: Automated actions for more records

Posted: 05 Apr 2024, 13:18
by Edition Nehemia
+1