Search found 174 matches

by eddydeniro
07 Sep 2021, 14:17
Forum: Discussion
Topic: Inserting new record
Replies: 20
Views: 1347

Re: Inserting new record

You can add extra button with form JS. Example: const urlParams= new URLSearchParams($('#items_form').attr('action')); //Set this for new item only, excluding update if(!urlParams.has('id')){ var extraButton = $('<button type="button" class="btn btn-danger btn-primary-modal-action&quo...
by eddydeniro
31 Aug 2021, 17:49
Forum: Discussion
Topic: PHP error when running autostatus.php cron
Replies: 10
Views: 506

Re: PHP error when running autostatus.php cron

Ben, As Sergey implied, I think the array of choices is not created, it is a string instead. This 'Illegal string offset' generally resulted when we're trying to use a string as a full array. To find out what happened, open your autostatus.php and uncomment this line: //print_r($autostatus_fields); ...
by eddydeniro
31 Aug 2021, 08:29
Forum: Discussion
Topic: User Check-box Uniqueness
Replies: 6
Views: 330

Re: User Check-box Uniqueness

Glad it's working now.
Yes, you'd better upgrade.
Sergey gave more cool features in the lates version :D
by eddydeniro
31 Aug 2021, 07:52
Forum: Discussion
Topic: User Check-box Uniqueness
Replies: 6
Views: 330

Re: User Check-box Uniqueness

Yes, users must be assigned to record to receive notifications. That's what the docs said. What version are you using? Because my 2.9.2 doesnt give any warning about duplicates of the checkbox id. Anyway, dont mind the ids, all checkbox have the same class, you can use that to manipulate them. Dont ...
by eddydeniro
30 Aug 2021, 17:35
Forum: Discussion
Topic: Function MySQL
Replies: 6
Views: 436

Re: Function MySQL

Maybe your app logic is incorrect in the first place. If the "status" that changed involving either [768] or [995], it will and must change to satisfy the formula. If you want to apply the fine and interest after the transaction date exceeds due date, I think the formula's supposed to be: ...
by eddydeniro
30 Aug 2021, 14:47
Forum: Discussion
Topic: Inserting new record
Replies: 20
Views: 1347

Re: Inserting new record

Rukovoditel refresh the page when redirecting, so all client-side variables are reset. We need temporary storage that retains itself. In this case, I chose localStorage. What Im explaining here is only one way to achieve your purpose. First, open your form configuration of selected entity, click Add...
by eddydeniro
30 Aug 2021, 07:20
Forum: Discussion
Topic: Inserting new record
Replies: 20
Views: 1347

Re: Inserting new record

You can at once upload your data in xlsx file. Of course that's not ideal in realtime entry. In that case, the simplest way to me is client-side programming like JS. You can use JS in form to put a marker when to continuously trigger clicking Add button, when to stop. For trigger, unfortunately no J...
by eddydeniro
30 Aug 2021, 00:30
Forum: Discussion
Topic: Rest API questions
Replies: 13
Views: 1503

Re: Rest API questions

I see. Too bad I don't have both Wunder plugin and Rukovoditel extension. Anyway, from the example here https://docs.rukovoditel.net/index.php?p=52 I can see that the post fields is sent in url-encoded format, not JSON. Both auth and API key are loaded in request body, so you dont need to check basi...
by eddydeniro
29 Aug 2021, 14:05
Forum: Discussion
Topic: Rest API questions
Replies: 13
Views: 1503

Re: Rest API questions

How does exactly this plugin work, by sending request to Rukovoditel via AJAX?
If I see the coding, content-type of Rukovoditel is mostly x-www-form/urlencoded.
One thing you have to handle is CSRF protection (access token).
by eddydeniro
29 Aug 2021, 10:23
Forum: Discussion
Topic: Export with paths for uploads
Replies: 3
Views: 308

Re: Export with paths for uploads

How do you migrate your db? What I understand, Rukovoditel saves attachments data in this pattern: 10digittimestamp_filename. You might want to open phpmyadmin, pick one entity, lets say Project (app_entity_21), see the field Attachments (field_162), there you can see the data, for example '16297237...