Search found 174 matches

by eddydeniro
27 Apr 2024, 18:31
Forum: Discussion
Topic: Change Header/Redirect Link for Certain Entity
Replies: 1
Views: 123

Re: Change Header/Redirect Link for Certain Entity

I don't quite understand your application scheme but if you want to display download link of your file with PHP code, you can write like this example: $filename = [XXX]; //XXX is your field ID that contains the file $id = [id]; if(strlen($filename)) { $output_value = link_to('<i class="fa fa-do...
by eddydeniro
27 Apr 2024, 10:36
Forum: Discussion
Topic: Auto Increment Problem
Replies: 2
Views: 125

Re: Auto Increment Problem

Just uncheck dynamic option because it will not store any value in that field. You can simplify the code into this: if(!strlen($current_field_value)){ $output_value = 0; //this 0 will be saved in the database in normal mode (non dynamic) after the record created } else { $output_value = $current_fie...
by eddydeniro
27 Apr 2024, 10:12
Forum: Discussion
Topic: Automation /Approval Help
Replies: 3
Views: 144

Re: Automation /Approval Help

You mean your parent entity has field Users and whoever chosen will be assigned for approval in those 4 subentities? You can automate this by using PHP code. You have to insert record in each subentity (app_entity_XX) with the same parent_item_id and user_id in corresponding fields, and also insert ...
by eddydeniro
03 Feb 2024, 19:25
Forum: Bug Report version 3.5.3
Topic: PHP warning and error page
Replies: 6
Views: 216

Re: PHP warning and error page

You have to consider the possibility of empty result of your query. Because if it is, it will give null value to $ts which caused the warning. Try changing your code like this: $status = [157]; $case_id = [id]; //$output_value = $case_id; $ts_query = db_query("SELECT app_comments.date_added AS ...
by eddydeniro
31 Jan 2024, 18:46
Forum: Discussion
Topic: CSS into an entity, via JS / PHP code
Replies: 2
Views: 200

Re: CSS into an entity, via JS / PHP code

The term "into an entity" is little ambiguous. I think the best way to insert CSS script is via custom CSS or Custom HTML. However, you can also modify the styling of form or item page via JS, as long as you know the element selector. $('some_selector').css('some_property', 'some_value'); ...
by eddydeniro
31 Jan 2024, 18:29
Forum: Discussion
Topic: Importing with linked fields
Replies: 2
Views: 186

Re: Importing with linked fields

What is the fieldtype of the heading of your Property entity?
Rukovoditel will easily import Entity field only when the heading of the related entity is using any of the following fieldtypes: Input, Input Masked, Static text by pattern, Input URL. If you use other types, it won't work.
by eddydeniro
25 Jan 2024, 05:44
Forum: Discussion
Topic: how to implement php code
Replies: 2
Views: 181

Re: how to implement php code

Try this function getRomanNumeral($month) { $romans = array( 1 => 'I', 2 => 'II', 3 => 'III', 4 => 'IV', 5 => 'V', 6 => 'VI', 7 => 'VII', 8 => 'VIII', 9 => 'IX', 10 => 'X', 11 => 'XI', 12 => 'XII' ); return $romans[$month]; } function generateNomorInventaris($sequenceNumber) { // Mendapatkan bulan s...
by eddydeniro
14 Jan 2024, 10:50
Forum: Bug Report version 3.4.4
Topic: User roles not working as expected
Replies: 2
Views: 141

Re: User roles not working as expected

Interesting. I've checked the demo and the by-role access is not applied to each item on listing page, but when you displayed the info page, it's running (meaning that the staff is denied to view the item). As a workaround, if you dont mind changing the core files, while waiting for the fixing, you ...
by eddydeniro
11 Jan 2024, 16:15
Forum: Discussion
Topic: Translations of Custom Entities
Replies: 21
Views: 4237

Re: Translations of Custom Entities

It's translation for global list and field choices, right?
Ok, I'll see what I can do but I can't promise any ETA.
Schelle wrote: 11 Jan 2024, 10:24
You are a LEGEND Eddy :-) I previously asked can I help in any way to get the dropdown lists translatable?
by eddydeniro
11 Jan 2024, 16:02
Forum: Discussion
Topic: Translations of Custom Entities
Replies: 21
Views: 4237

Re: Translations of Custom Entities

Hmm, I think I messed up with cross-module reference variable. You can fix this by adding one line in file actions/core.php case 'reinstall': $install = component_path(ROOX_PLUGIN."/{$_GET['name']}/_install"); if(is_file($install)) { $module_name = $_GET['name']; //add this line require $i...