Search found 174 matches

by eddydeniro
13 Dec 2022, 09:02
Forum: Discussion
Topic: Record Visibility help
Replies: 2
Views: 219

Re: Record Visibility help

You wrote incorrect code.
Is this what you mean?

Code: Select all

$id = [id];
$Org = [853];
if( $Org == '0' ){
  db_query("UPDATE app_entity_40 SET field_853=$id WHERE id=$id");
}
by eddydeniro
17 Nov 2022, 06:37
Forum: Discussion
Topic: Plugins - Hello World!
Replies: 2
Views: 341

Re: Plugins - Hello World!

I never have any problem in creating plugin nor displaying the menu of it.
Can you access the page directly (e.g. [your site]index.php?module=hello/my_page/index)?
If it is shown correctly, the problem may be on how you write the menu.
If not, maybe it's on the folder structure.
by eddydeniro
17 Nov 2022, 06:23
Forum: Discussion
Topic: Relation
Replies: 1
Views: 263

Re: Relation

If I understand your question correctly, there are at least two ways I can think of that you may want to try. Of course the field pricelist (Project) and resource (Project/Diary/Resources) should have fieldtype entity that refers to entity Pricelists. 1. Use AJAX request in entity Project/Diary/Reso...
by eddydeniro
13 Sep 2022, 20:16
Forum: Discussion
Topic: Get Radio Button Value for onSubmit Form
Replies: 3
Views: 231

Re: Get Radio Button Value for onSubmit Form

Use checked property. If you want to get the value of the field, simply use the class of the elements and inspect with selector :checked. If you want to check if a specific radio button is selected, use the id. Example: //Case 1 if(!$('.field_XXX:checked').val()){ //Your action when no one selected ...
by eddydeniro
07 Sep 2022, 14:41
Forum: Discussion
Topic: History Back - Back button
Replies: 1
Views: 177

Re: History Back - Back button

You can simply use browser's back button.
And yes, with Javascript (form JS or custom HTML) you can add custom button to any existing HTML.
by eddydeniro
06 Sep 2022, 20:29
Forum: Discussion
Topic: Export Form to PDF/DOC
Replies: 6
Views: 450

Re: Export Form to PDF/DOC

I think I got typo. I meant jsPDF (by parallax), not PDFjs. You can save in folder js, load with custom HTML. If you convert from HTML block, usually it also requires html2canvas library. If the result is not satisfactory, I suggest you convert the HTML into canvas and export it to PDF. This post gi...
by eddydeniro
06 Sep 2022, 05:22
Forum: Discussion
Topic: Export Form to PDF/DOC
Replies: 6
Views: 450

Re: Export Form to PDF/DOC

Did you use domPDF and use JS to make the form layout/style?
It's hard to find the problem without looking the code, but AFAIK domPDF doesn't support JS.
In this case, you may want to try PDFjs or any other JS-based PDF generator.
by eddydeniro
29 Aug 2022, 20:15
Forum: Discussion
Topic: Access rules - JS or PHP
Replies: 1
Views: 165

Re: Access rules - JS or PHP

The fields with view-only access are not rendered or created when you call the form. CMIIW.
All access rules are controlled by PHP in server. So, if you need the field to function in the frontend or during opening the form but still inaccessible by users, you can use JS to disable or hide it.
by eddydeniro
29 Aug 2022, 19:42
Forum: Discussion
Topic: How to view and manage user activities (Non-nested entity) within multiple different entities
Replies: 2
Views: 173

Re: How to view and manage user activities (Non-nested entity) within multiple different entities

I dont know if I understand your issue. In my opinion, all types of project has the same pattern in terms of activities or tasks or milestones. So I think you can develop the example of Rukovoditel project entity which puts the activities/tasks/milestones as project's sub entity. You can create a dr...
by eddydeniro
29 Aug 2022, 19:25
Forum: Discussion
Topic: Display resulting image in qr field
Replies: 5
Views: 494

Re: Display resulting image in qr field

You can modify the last line of function output: function output($options) { //----------------------------------------------------------// if(isset($options['is_export'])) { return '<img src="data:image/png;base64,' . base64_encode(QRcode::png($html,false,$cfg->get('ecc'),$cfg->get('pixel_size...