Search found 551 matches

by onoehring
2020-07-29 06:11
Forum: Getting Started
Topic: Auto change or populate date based on duration value
Replies: 9
Views: 726

Re: Auto change or populate date based on duration value

Hi,

why did you change the field type? Is there a reason when we are talking about harvest dates?
If nothing else helps (pbötcher is our man here :-) ) you could cut the time off the field contents and then do the calculation - and add the time back to it afterwards.

Olaf
by onoehring
2020-07-23 07:27
Forum: Tips And Tricks
Topic: Field Permissions (hide / lock fields by usergroup)
Replies: 48
Views: 20982

Re: Field Permissions (hide / lock fields by usergroup)

Hi,

I dropped you a PM. Please contact me by mail.
Olaf
by onoehring
2020-07-21 06:44
Forum: Feature Suggestions
Topic: AppGini updates
Replies: 4
Views: 569

Re: AppGini updates

Hi,

I agree with D Oliveira a lot. It's a nuisance to move fields (and tables) up or down.

One more: It would also be nice to have not only groups where tables are places but also sub groups (resulting sub menues).

Olaf
by onoehring
2020-07-19 08:34
Forum: Tips And Tricks
Topic: Field Permissions (hide / lock fields by usergroup)
Replies: 48
Views: 20982

Re: Field Permissions (hide / lock fields by usergroup)

Hi, Now I am getting different behaviour! When I miss out step 2 (editing the hooks / tablename.php of relevant tables) I can see a full list of all fields in the database in my dropdown. I can also save new entries to the db field permissions table. However the hiding field does not work (obviously...
by onoehring
2020-07-18 07:29
Forum: bizzworxx AppGini Helper JavaScript Library
Topic: How to redirect to a specific page/url after login
Replies: 6
Views: 286

Re: How to redirect to a specific page/url after login

Hi Jan,

did you notice this post from pbötcher: viewtopic.php?f=4&t=3744
Seems to me pretty similar.

Great post on your page.
Olaf
by onoehring
2020-07-18 07:04
Forum: Tips And Tricks
Topic: Simple but Cool Tricks
Replies: 2
Views: 352

Re: Simple but Cool Tricks

Him

thanks for submitting. Looks nice and easy.
Olaf
by onoehring
2020-07-18 07:01
Forum: Advanced Customizations > Hooks
Topic: Waiting indikation
Replies: 7
Views: 261

Re: Waiting indikation

Hi pbötcher,

very nice. Thank you for the code - once again.
Olaf
by onoehring
2020-07-18 06:59
Forum: Tips And Tricks
Topic: How can I give a better info to the user when a file is uploaded?
Replies: 6
Views: 292

Re: How can I give a better info to the user when a file is uploaded?

Hi,

but you need to define what "file is ok" means. My suggestion was concerning the contents of the file.
The red x might be the option to delete the file (not sure right now)?
Maybe have a field that displays the filename once uploaded?

Olaf
by onoehring
2020-07-17 12:06
Forum: Tips And Tricks
Topic: How can I give a better info to the user when a file is uploaded?
Replies: 6
Views: 292

Re: How can I give a better info to the user when a file is uploaded?

Hi,

well, does the user know "the file is ok"? You could generate a checksum of the uploaded file and display that. The user could then generate a checksum of his original and compare those.

Olaf
by onoehring
2020-07-17 12:03
Forum: Advanced Customizations > Hooks
Topic: Waiting indikation
Replies: 7
Views: 261

Re: Waiting indikation

Hi,

you could use CSS to change the cursor appearance - and change it back with some other CSS.
See: https://www.w3schools.com/csSref/pr_class_cursor.asp

Olaf
by onoehring
2020-06-28 05:41
Forum: Tips And Tricks
Topic: How do I enter text on the children tables
Replies: 6
Views: 1239

Re: How do I enter text on the children tables

Hi Ahmed,

thank you for the hint to the cookbook. As I had a similar problem which was solved here in the forum, I wonder, if the cookbook-solution will work with jsetzer's AppGiniHelper. Do you know?

Olaf
by onoehring
2020-06-26 15:46
Forum: Advanced Customizations > Hooks
Topic: automatic daily server email
Replies: 5
Views: 379

Re: automatic daily server email

Hi Oliveira,

glad, that it helped you.
All good.

Take care
Olaf
by onoehring
2020-06-26 12:30
Forum: Getting Started
Topic: prevent it from accepting duplicate values with the whole row
Replies: 5
Views: 279

Re: prevent it from accepting duplicate values with the whole row

Hi amyat, I also totally agree with pbötcher and Jan. To do what you want, you will need to run some SQL in the /hooks/tablename.php -> before_update and before_insert functions. This SQL could count all rows that have the same value as the "new" (or update) record. Something like (not tested) $coun...
by onoehring
2020-06-26 12:18
Forum: Advanced Customizations > Hooks
Topic: automatic daily server email
Replies: 5
Views: 379

Re: automatic daily server email

Hi Oliveira, there are several possibilities. a) you have access to a real cron on your system. You should be able to find some information about this on the web . Maybe https://crontab-generator.org or https://crontab.guru or https://foswiki.org/Support/CronWizard will do. b) your webprovider might...
by onoehring
2020-06-26 08:05
Forum: Advanced Customizations > Hooks
Topic: Directory Files Exposed after Uploading project files to cPanel
Replies: 3
Views: 178

Re: Directory Files Exposed after Uploading project files to cPanel

Hi, I do not know about the cPanel system. But: Make sure, all files have been transferred correctly. There should be the index.php in the main (root) directory. For security reasons you should (and probably can) disable directory listing on your server. This should prevent showing any directory str...
by onoehring
2020-06-26 07:57
Forum: Bugs/annoyances
Topic: bugs unauthorized users access pdf files knowing the link
Replies: 16
Views: 26850

Re: bugs unauthorized users access pdf files knowing the link

Hi Zala,

no need to apologize.
I am glad, that you were able to solve your problem (and the code works). Be assured - I see the unprotected "uploads" folder as a big problem as well.

Olaf
by onoehring
2020-06-24 13:34
Forum: Advanced Customizations > Hooks
Topic: Restrict Access to some fields in Detail View
Replies: 12
Views: 400

Re: Restrict Access to some fields in Detail View

Hi Angus, you may also want to take a look into my Column-Value-Based Fields Permission extension (see footer). With this you can hide records from users based on certain criteria (a value of some field). If your records get approved, this could mean, they get a different status in the column on whi...
by onoehring
2020-06-23 07:04
Forum: Tips And Tricks
Topic: get creation date and creator username of a record by calculated field
Replies: 4
Views: 267

Re: get creation date and creator username of a record by calculated field

Hi fgazza, I agree with pbötcher on the why are you doing it this way in the fist place, and that it's impossible to help without knowing more details. I suggest this: Create created at/by fields as readonly in AG. Then use php code in the /hooks/tablename.php -> after _insert and after _update and ...
by onoehring
2020-06-22 06:13
Forum: Advanced Customizations > Hooks
Topic: Customize the alert if a "not null" (required) field is left blank.
Replies: 13
Views: 448

Re: Customize the alert if a "not null" (required) field is left blank.

Hi fgazza, please use the proper way to display code. Use [code] and [/code] (with square brackets) and place your code in between. It will make it a lot easier for us to help. Please see the link in my footer: Custom (error) message (https://forums.appgini.com/phpbb/viewtopic.php?f=7&t=1740&p=10871...
by onoehring
2020-06-22 06:08
Forum: Bugs/annoyances
Topic: bugs unauthorized users access pdf files knowing the link
Replies: 16
Views: 26850

Re: bugs unauthorized users access pdf files knowing the link

Hi Zala, I do not understand. In my post above ( https://forums.appgini.com/phpbb/viewtopic.php?p=13800#p11378 ) there the script checks the filetype and arranges the header for download as needed. Besides, the original ( https://forums.appgini.com/phpbb/posting.php?mode=reply&f=11&t=2856#pr9355 ) s...
by onoehring
2020-06-18 13:23
Forum: Getting Started
Topic: How: Change "border" of table depending on value?
Replies: 17
Views: 1644

Re: How: Change "border" of table depending on value?

Hi,

you can also use some code to wait. Something like this maybe

Code: Select all

	<script>
	//set image again once document is ready
	$(function() {
		YOUR CODE HERE
	});
	</script>
or longer

Code: Select all

<script>
	$(document).ready(function () {
		YOUR CODE HERE
	});
	</script>
Olaf
by onoehring
2020-06-15 13:26
Forum: Getting Started
Topic: How: Change "border" of table depending on value?
Replies: 17
Views: 1644

Re: How: Change "border" of table depending on value?

Hi, please check out my post here https://forums.appgini.com/phpbb/viewtopic.php?f=4&t=3114&p=10463&hilit=root+copy#p10463 But: You might want to read a little more in the forum. I suggest finding the spot where to place your code (maybe I was wrong when I suggested the -tv.js / -dv.js files in the ...
by onoehring
2020-06-15 09:41
Forum: Getting Started
Topic: How: Change "border" of table depending on value?
Replies: 17
Views: 1644

Re: How: Change "border" of table depending on value?

Hi, what do you mean by child table? Do you mean the details view? I am not sure where you placed your code but in hook/footer-extras.php it would create such a behavior for _all_ tables. If you want specific tables only, you might want to place the code in hooks/tablename-tv.js or hooks/tablename-d...
by onoehring
2020-06-15 05:40
Forum: Getting Started
Topic: How: Change "border" of table depending on value?
Replies: 17
Views: 1644

Re: How: Change "border" of table depending on value?

Hi, just copy and pasted your code (with adjustments) but I did not test anything. Try something like the code below, where I removed .parents('tr') , as we do not want to add to parents, but to self <script> $j(function(){ $j('.projects-project_status').each(function(){ var project_status = $j(this...