Search found 114 matches

by jsetzer
2019-04-11 14:06
Forum: Advanced Customizations > Others
Topic: Field for electronic signature
Replies: 8
Views: 2949

Re: Field for electronic signature

It's tricky, but finally I have managed to turn AppGini text-fields into Signature Pad areas: ezgif.com-optimize (1).gif Create a field (datatype = Text) in your TABLENAME Publish your app and ensure all fields have been rebuilt Include the JavaScript library from their CDN: https://www.jsdelivr.com...
by jsetzer
2019-04-11 09:08
Forum: Advanced Customizations > Others
Topic: Field for electronic signature
Replies: 8
Views: 2949

Re: Field for electronic signature

Stand by, I will have a look today.

Kind regards,
Jan
by jsetzer
2019-04-10 08:54
Forum: Advanced Customizations > Hooks
Topic: Readonly, but not for a specific group
Replies: 25
Views: 253

Re: Readonly, but not for a specific group

OK, no problem - there is no stupid question! In your browser open the developer tools. Press F12 -key on your keyboard. This should work in most modern browsers eg. Chrome. After a couple of seconds there will be an additional panel on the right hand side or at the bottom. There will be several tab...
by jsetzer
2019-04-10 06:51
Forum: Advanced Customizations > Hooks
Topic: Changing Color - Has anyone got this to work?
Replies: 7
Views: 201

Re: Changing Color - Has anyone got this to work?

Hmmm, strange. Can you please check the console output in you browser's developer tools to see if there is any javascript error and also check if any bootstrap-related file (css/js) could not be loaded. If there is no error, you should ensure that your script get's executed at all for example by ins...
by jsetzer
2019-04-10 06:38
Forum: Advanced Customizations > Hooks
Topic: Readonly, but not for a specific group
Replies: 25
Views: 253

Re: Readonly, but not for a specific group

Do the select-containers exist at the moment you try to change the attribute? You can check this by inserting the following line BEFORE your .attr(...) code: console.log($j("#countrykey-container").length); I guess there will be "0" in the console output window which means the #countrykey-container ...
by jsetzer
2019-04-07 13:30
Forum: Advanced Customizations > Hooks
Topic: Readonly, but not for a specific group
Replies: 25
Views: 253

Re: Readonly, but not for a specific group

Setting an INPUT readonly depends on a few parameters like the used DOCTYPE and the jquery version. Can you please try... .prop('readonly', 'readonly'); ...or... .attr('readonly', 'readonly'); ...or... .attr('readonly', true); I guess the second version will work. This is for INPUTs only. Dynamicall...
by jsetzer
2019-04-05 07:02
Forum: Advanced Customizations > Hooks
Topic: Changing Color - Has anyone got this to work?
Replies: 7
Views: 201

Re: Changing Color - Has anyone got this to work?

Did you define you own .danger class in CSS?

If not, you should do so or use bootstrap's 'text-danger' class or 'bg-danger' class instead of 'danger'.

Best,
Jan

PS: double check that .text() returns 'Important' with identical character casing and no whitespaces
by jsetzer
2019-04-02 14:06
Forum: Advanced Customizations > Hooks
Topic: Having the link when modification
Replies: 5
Views: 86

Re: Having the link when modification

I guess you have also forgotten $server, $path and $tn
by jsetzer
2019-04-02 14:05
Forum: Advanced Customizations > Hooks
Topic: Having the link when modification
Replies: 5
Views: 86

Re: Having the link when modification

You have forgotten $text variable
by jsetzer
2019-04-02 14:04
Forum: Advanced Customizations > Hooks
Topic: Having the link when modification
Replies: 5
Views: 86

Re: Having the link when modification

You must not put the code on the for-loop
by jsetzer
2019-04-02 10:50
Forum: Advanced Customizations > Hooks
Topic: How to change the color of a field according to a condition?
Replies: 2
Views: 79

Re: How to change the color of a field according to a condition?

Tableview: https://bigprof.com/appgini/tips-and-tutorials/customize-tableview-data https://forums.appgini.com/phpbb/viewtopic.php?t=2894 Detailview: Create a file named hooks/TABLENAME-dv.js Put the following code there: Save the file Test Code for hooks/TABLENAME-dv.js: $j(function(){ var condition...
by jsetzer
2019-04-02 10:37
Forum: Advanced Customizations > Hooks
Topic: Having the link when modification
Replies: 5
Views: 86

Re: Having the link when modification

The link should look like this: <a href="http://www.yourserver.com/path/tablename_view.php?SelectedID=12345">Click here</a> You need to replace servername, path, tablename and ID by the appropriate values. You can try this: $server = 'YOURSERVERNAME'; // eg. www.my-great-appgini-website.com $path = ...
by jsetzer
2019-03-30 10:57
Forum: Advanced Customizations > Hooks
Topic: Some one who helps ....pböttcher
Replies: 5
Views: 583

Re: Some one who helps ....pböttcher

+1 from me, thanks a lot ☆☆☆☆☆
by jsetzer
2019-03-30 10:35
Forum: Bugs/annoyances
Topic: Select2 strips out HTML tags
Replies: 2
Views: 108

Re: Select2 strips out HTML tags

@pböttcher You are my personal SuperHero #1! :!: Thank you for taking the time and precisely pointing me into the right direction. Yes, it's a matter of caching . Your solution works like charm. Instead of changing the template-code, which will be overwritten on next generation, I have found a slig...
by jsetzer
2019-03-28 16:10
Forum: Bugs/annoyances
Topic: Select2 strips out HTML tags
Replies: 2
Views: 108

Select2 strips out HTML tags

This is not really a bug but rather request for help :? I'm not sure if this is the right forum. If not, please move this post. Hi AppGineers, we can use HTML to beautify the dropdown content of standard lookups. This works pretty well for selection. But after save and reload of the page the HTML f...
by jsetzer
2019-03-18 19:24
Forum: Getting Started
Topic: Re-use a dv.js file
Replies: 4
Views: 138

Re: Re-use a dv.js file

As far as I have understood your question you are planning a non-normalized database model . From my experience you definately should avoid this. You do not need so many tables: If there is one database per client , you only need a Risks -Table and a Evaluations -Table in which each Evaluation is re...
by jsetzer
2019-03-17 12:06
Forum: Getting Started
Topic: how to return a row from database and get it
Replies: 5
Views: 126

Re: how to return a row from database and get it

// CREA SQL - SELEZIONA TUTTI I CAMPI $res = sql("select * from dt_plessi where id_plesso='{$aula_id}'", $eo); $rows = []; while($row = db_fetch_assoc($res)) { $rows[] = $row; } echo json_encode($rows); exit(); or $res = sql("select * from dt_plessi where id_plesso='{$aula_id}'", $eo); $rows = []; ...
by jsetzer
2019-03-17 12:02
Forum: Getting Started
Topic: how to return a row from database and get it
Replies: 5
Views: 126

Re: how to return a row from database and get it

You should fetch all records first, store them in an array and then return ONE result to the client. In other words: Do not echo the json-string within your while-loop.
by jsetzer
2019-03-17 11:32
Forum: Getting Started
Topic: how to return a row from database and get it
Replies: 5
Views: 126

Re: how to return a row from database and get it

I strongly recommend using JSON as de-facto standard nowadays. On serverside (PHP) you can return data for example like this: // include lib.php // check authorization using getMemberInfo() function // get data from your db for example by using AppGini's sql("...", $eo) function: // $rows = ... // i...
by jsetzer
2019-03-02 22:04
Forum: Tips And Tricks
Topic: How to hide a particular field from the children table view?
Replies: 4
Views: 207

Re: How to hide a particular field from the children table view?

You need to find out the children tab's id and prepend it like:

Code: Select all

#panel-××××××× table-field { ... }
Use your browser's developers tools to get the id.

Regards,
Jan

PS: I remember there was a blog post in AppGini Blog (not forum)
by jsetzer
2019-03-02 18:31
Forum: Tips And Tricks
Topic: How to hide a particular field from the children table view?
Replies: 4
Views: 207

Re: How to hide a particular field from the children table view?

You can use CSS to hide those columns.

Maybe the easiest way is to put something like this into your hooks/header-extras.php:

Code: Select all

<style>
    .YourTableName-YourColumnName {
        display: none;
    }
</style>
Replace table- and column-name according to your database.

Regards,
Jan
by jsetzer
2019-02-28 16:47
Forum: Tips And Tricks
Topic: (Multiple) File upload using dropzone.js
Replies: 3
Views: 287

Re: (Multiple) File upload using dropzone.js

This afternoon I went one step further: In this project users are allowed to upload PDF-files only. I have embedded a PDF-Viewer right into the detail view of AppGini which is loading and showing the uploaded attachments automatically. Here is how it looks like: pdf-viewer-embedded-res.png I am usin...
by jsetzer
2019-02-27 10:32
Forum: Tips And Tricks
Topic: (Multiple) File upload using dropzone.js
Replies: 3
Views: 287

(Multiple) File upload using dropzone.js

Hi @all, for a new project I wanted to improve the upload of single files and add upload of multiple files. Many web-apps provide a nice drag & drop upload for example the Media-Manager in WordPress. There are couple of JavaScript libraries out there. I have chosen dropzone.js https://www.dropzonejs...
by jsetzer
2019-02-18 17:34
Forum: Tips And Tricks
Topic: Need to get rid of the link on the detail view
Replies: 2
Views: 150

Re: Need to get rid of the link on the detail view

Hi, you can try the following: in hooks -directory, create a file named YOURTABLENAME -dv.js put the following code there and save $j(function() { $j("form > .page-header").hide() }); You can use .remove() instead of .hide() . If you want to keep the [Add new]-button, try the following code: $j(func...