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
Automated actions for more records
-
- Posts: 174
- Joined: 23 Feb 2021, 16:31
- Name: Edi Supriyadi
- Location: BDG Indonesia
Re: Automated actions for more records
What array do you mean? You can read more here https://docs.rukovoditel.net/index.php?p=125
Re: Automated actions for more records
For all selected records I want to execute my php action
-
- Posts: 232
- 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
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:
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.
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:
First parameter "val1" is id of the record inside database.$val1= [id];
$val2= [1717];
$link = "<script>window.open('https://test.ba/...param1=$val1¶m2= ... =xyz.jrxml')</script>";
echo $link;
echo "<script>window.history.back()</script>";
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.
-
- Posts: 166
- Joined: 12 Jul 2017, 09:35
- Name: Pavel
- Location: Varna
Re: Automated actions for more records
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 ----->
-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 ----->
-
- Posts: 59
- Joined: 18 Feb 2023, 16:44
- Name: Christoph Berger
- Location: Steffisburg, Switzerland