Search found 1497 matches

by jsetzer
2022-11-29 12:16
Forum: Getting Started
Topic: Problem with CSV import
Replies: 2
Views: 41

Re: Problem with CSV import

I have an error message.
More details, please!
by jsetzer
2022-11-28 23:57
Forum: Feature Suggestions
Topic: Field encryption feature
Replies: 1
Views: 51

Re: Field encryption feature

I clearly understand the possible risk you are referring to. If this is critical to you, why don't you just create protected fields by yourself by encrypting the plain text values in before insert and before update hook and by decrypting them in _dv hook or by using an ajax call, replacing then encr...
by jsetzer
2022-11-24 13:28
Forum: Advanced Customizations > Hooks
Topic: Display one field in two different tabs
Replies: 7
Views: 118

Re: Display one field in two different tabs

You are right, getValue -function on lookups behaves differently from getValue -function on other field types: getValue() on lookups For lookups, dv.getField("fieldname").getValue() returns an object containing id and text , if available, or null . onChange handler for lookups The same for dv.getFie...
by jsetzer
2022-11-24 12:54
Forum: Advanced Customizations > Hooks
Topic: Display one field in two different tabs
Replies: 7
Views: 118

Re: Display one field in two different tabs

Idea no. 4 This is more complicated but should be close to what you have requested: In this example, once again, I'm using reference field. I'm "cloning" it, then placing the clone above created_on field, which is in last tab "Meta": insertClone("reference", "created_on"); function insertClone(fiel...
by jsetzer
2022-11-24 12:29
Forum: Advanced Customizations > Hooks
Topic: Display one field in two different tabs
Replies: 7
Views: 118

Re: Display one field in two different tabs

Idea no. 3 Change DV title and update on change // function for updating the DV-title function updateTitle() { dv.setTitle("Akte: " + dv.getField("reference").getValue()); } // initially update title (on load) updateTitle(); // update title on change dv.getField("reference").onChange(function() { u...
by jsetzer
2022-11-24 12:27
Forum: Advanced Customizations > Hooks
Topic: Display one field in two different tabs
Replies: 7
Views: 118

Re: Display one field in two different tabs

Idea no. 2
Change the dv-title

Code: Select all

dv.setTitle("Akte: " + dv.getField("reference").getValue());
chrome_6pRgoma3Os.png
chrome_6pRgoma3Os.png (19.98 KiB) Viewed 113 times

The DV-title will be updated on load. If you need a dynamic title, see next idea.
by jsetzer
2022-11-24 12:21
Forum: Advanced Customizations > Hooks
Topic: Display one field in two different tabs
Replies: 7
Views: 118

Re: Display one field in two different tabs

Interesting. There are several ideas in my mind: Idea no. 1 Instead of moving the (=one) field into one tab, just don't move the field (which keeps it as a "remaining field" outside the custom tabs) and then place the tabs below the remaining fields. See the first field "Aktenzeichen" which remains ...
by jsetzer
2022-11-23 12:33
Forum: Advanced Customizations > Hooks
Topic: redirect
Replies: 2
Views: 65

Re: redirect

What about redirecting in TABLENAME_after_update-hook?

(replace 'TABLENAME')

Code: Select all

function TABLENAME_after_update($data, $memberInfo, &$args)
{
    redirect("https://appgini.bizzworxx.de/blog", true);
}
Result
ezgif.com-gif-maker.gif
ezgif.com-gif-maker.gif (105.68 KiB) Viewed 61 times
by jsetzer
2022-11-23 11:21
Forum: Advanced Customizations > Hooks
Topic: Table View Highlight
Replies: 13
Views: 154

Re: Table View Highlight

Replace that one line by the following:

Code: Select all

$j(this).closest('td').addClass('custom-warning');
Note the difference at .closest('td') instead of .parents('tr')

Everything you need is on this page.
by jsetzer
2022-11-23 01:35
Forum: Advanced Customizations > Hooks
Topic: Table View Highlight
Replies: 13
Views: 154

Re: Table View Highlight

There are certain default classes with predefined color settings in your selected theme: success info warning danger if(Status == 'MC'){ $j(this).parents('tr').addClass('warning'); } It is recommended to use those because users are used to those colors and should immediately understand the meaning. ...
by jsetzer
2022-11-22 11:11
Forum: Advanced Customizations > Hooks
Topic: Table View Highlight
Replies: 13
Views: 154

Re: Table View Highlight

There should be an error message in console, telling FIELD is undefined. Try Status instead of FIELD.
by jsetzer
2022-11-22 10:41
Forum: Advanced Customizations > Hooks
Topic: Calculated Fields or Hooks?
Replies: 3
Views: 72

Re: Calculated Fields or Hooks?

In most programming languages '=' is a right-to-left assignment whereas '==' is a left against right comparison, returning boolean.

$a = 1;
$a = $a == 2;
// $a is false now 😉
by jsetzer
2022-11-02 22:47
Forum: Advanced Customizations > Hooks
Topic: Link to open form in modal on custom page
Replies: 4
Views: 310

Re: Link to open form in modal on custom page

Check AppGini's modal_window function in javascript. Use options.url.
by jsetzer
2022-11-01 18:50
Forum: AppGini Plugins
Topic: AdminLTE Plugin for AppGini
Replies: 78
Views: 5541

Re: AdminLTE for AppGini Plugin

help me Appgini js helper.
Sorry, AppGini Helper is not involved in any AdminLTE development nor can we give free support on this or other inofficial plugins.

Please ask the vendor of your plugin for support.
by jsetzer
2022-11-01 18:16
Forum: Advanced Customizations > Others
Topic: Store current record ID as a variable
Replies: 1
Views: 199

Re: Store current record ID as a variable

Include lib.php, then:

Code: Select all

$pid = (string)Request::val('project_id', '');
by jsetzer
2022-10-28 18:52
Forum: Advanced Customizations > Hooks
Topic: Need some help AG family
Replies: 11
Views: 302

Re: Need some help AG family

What about removing access permission for certain group/s in Admin Area?

Then those users will not see that table in Homepage nor menu nor when directly accessing TABLENAME_view.php.
by jsetzer
2022-10-21 10:31
Forum: Getting Started
Topic: delete_x
Replies: 15
Views: 369

Re: delete_x

Great, Ahmed! Glad it works now.
Thanks @pböttcher for the simple hack, brilliant idea to just pass the token in GET-parameter!
by jsetzer
2022-10-20 07:25
Forum: Getting Started
Topic: delete_x
Replies: 15
Views: 369

Re: delete_x

I have searched the code for the error message you have given "csrf token expired or invalid". It occurs multiple times in code. Related to delete_x , it occurs in datalist.php : ... elseif($delete_x != '') { // delete only if either a csrf or jwt token is provided if(!csrf_token(true) && !jwt_check...
by jsetzer
2022-10-19 18:55
Forum: Getting Started
Topic: Subtract a field from one table from a field in second table
Replies: 32
Views: 646

Re: Subtract a field from one table from a field in second table

With respect I do not understand why you need to work from the previously recorded weight. We are not looking for a measure by measure weight loss. We are only interested in what the total weight loss is. This gives the user a constant positive. The user does not heed to know they have not lost wei...
by jsetzer
2022-10-19 15:27
Forum: Getting Started
Topic: Subtract a field from one table from a field in second table
Replies: 32
Views: 646

Re: Subtract a field from one table from a field in second table

For calculating the difference you will need to find the previous rec-weight first and read that record's rec_kgs. Due to the specifics of calculated fields, this will lead to unexpected results in case you insert rec-weights having date in between existing records. If I was you I would not use a ca...
by jsetzer
2022-10-19 14:37
Forum: Getting Started
Topic: Subtract a field from one table from a field in second table
Replies: 32
Views: 646

Re: Subtract a field from one table from a field in second table

Thanks for uploading the images using the forum's attachment function. This will help us helping you. With reference to your comment about seeing files on my hard disk, I do realise you cannot see these files, you misunderstood me. What I meant but perhaps was not clear about, was that including the...
by jsetzer
2022-10-19 10:48
Forum: Getting Started
Topic: delete_x
Replies: 15
Views: 369

Re: delete_x

From generated sourcecode I can see that you need to be logged in. Deleting requires CSRF token AND JWT authentication. ... elseif($delete_x != '') { // delete only if either a csrf or jwt token is provided if(!csrf_token(true) && !jwt_check_login()) die($this->translation['csrf token expired or inv...
by jsetzer
2022-10-19 09:59
Forum: Getting Started
Topic: Subtract a field from one table from a field in second table
Replies: 32
Views: 646

Re: Subtract a field from one table from a field in second table

Open Full Editor. You can add and upload attachments there.

No, we cannot see images on your HDD.
by jsetzer
2022-10-19 09:51
Forum: Getting Started
Topic: delete_x
Replies: 15
Views: 369

Re: delete_x

Are you replacing %ID% by a real Primary Key before opening the URL?

Something like...

Code: Select all

TABLENAME_view.php?SelectedID=1&delete_x=1
should work.

The string "%ID%" is probably not a real primary key in your table.
by jsetzer
2022-10-19 09:16
Forum: Getting Started
Topic: Subtract a field from one table from a field in second table
Replies: 32
Views: 646

Re: Subtract a field from one table from a field in second table

... but there must be a link between the two tables in order to do what you need ... Or maybe he's just relying on record ownership. Relation can then be built using membership_userrecords, which makes it a bit more complicated. It would be helpful if you could give some more information about your...