Search found 14 matches

by dannybridi
2019-02-15 19:45
Forum: Advanced Customizations > Hooks
Topic: How to produce a pop up message based on a test in a hook script
Replies: 2
Views: 131

How to produce a pop up message based on a test in a hook script

Hi,

I'd like test for a condition in a table's hook file before_insert and/or before_update functions and accordingly display a pop (modal) message to the user. How can I do that?

Your help would be appreciated.

Thanks
by dannybridi
2019-02-11 10:09
Forum: Bugs/annoyances
Topic: Error when generating project with 5.73/5,74
Replies: 3
Views: 113

Re: Error when generating project with 5.73/5,74

Update,
The PHP version is 7.0.33
Thanks
by dannybridi
2019-02-11 07:28
Forum: Bugs/annoyances
Topic: Error when generating project with 5.73/5,74
Replies: 3
Views: 113

Re: Error when generating project with 5.73/5,74

Hello peebee,

Thanks for your reply. My hosting server's cPanel says PHP version 7.0.33, but phpMyAdmin says PHP version 5.6.30.

Thanks for your help
by dannybridi
2019-02-10 22:08
Forum: Bugs/annoyances
Topic: Error when generating project with 5.73/5,74
Replies: 3
Views: 113

Error when generating project with 5.73/5,74

Hello, I have been using ver 5.62 without issues. I downloaded and installed the latest version 5.74, but when I regenerate the project, I get a 500 error. The PHP error log file error_log shows the following: [09-Feb-2019 14:45:34] PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')'...
by dannybridi
2018-04-19 17:09
Forum: Advanced Customizations > Hooks
Topic: Read-only field for a group
Replies: 3
Views: 895

Re: Read-only field for a group

Thank you Tammam and pböttcher for your help. I will test and will report back.
by dannybridi
2018-04-11 15:29
Forum: Advanced Customizations > Hooks
Topic: Read-only field for a group
Replies: 3
Views: 895

Read-only field for a group

Hello, I have successfully used the following code in tablename-dv.js to make a field read only: document.getElementById("fieldname").readOnly = true; I’d like to make this functionally dependent on the group membership of a logged in user. Or, make the field read only for all users, except for for ...
by dannybridi
2018-02-01 02:07
Forum: Advanced Customizations > Hooks
Topic: Unable to do a calculation
Replies: 34
Views: 15724

Re: Unable to do a calculation

Thanks Tammam,
It seems to work in the before update hook function.
by dannybridi
2018-02-01 02:03
Forum: Advanced Customizations > Hooks
Topic: Introduce a visual break between fields in detail view
Replies: 6
Views: 1526

Re: Introduce a visual break between fields in detail view

Sorry Tammam,
Where exactly should I add this code?
Thanks for your help.
by dannybridi
2018-01-12 10:04
Forum: Advanced Customizations > Hooks
Topic: Unable to do a calculation
Replies: 34
Views: 15724

Re: Unable to do a calculation

grimblefritz, I'm having similar issues as ronwill: I have a Participants table with a field ExtraAmount. Placing the following code (for testing) under Participants_before_update and/or after_update does not change anything to the field: $data['ExtraAmount'] = $data['ExtraAmount']+1; Then I realize...
by dannybridi
2018-01-11 12:56
Forum: Advanced Customizations > Hooks
Topic: Introduce a visual break between fields in detail view
Replies: 6
Views: 1526

Introduce a visual break between fields in detail view

Hi everyone,

I'd like to be able to separate fields displayed in the generated detail view to form sections. In other words, I'd like to insert the HTML equivalent of <HR /> between fields in DV:
FIELD1
FIELD2
<HR />
FIELD3
FIELD4
<HR />
FIELD5
How do I go about doing this?

Thanks
by dannybridi
2016-03-21 19:40
Forum: Advanced Customizations > Others
Topic: Current row
Replies: 0
Views: 1094

Current row

Hi everyone, In the details of a field, I chose lookup table and modified the default SQL statement to include additional logic. I would like to make further modifications based on the current record selected. How can I get the currently selected record? Is there some global variable that would give...