Recent content by wildmanmatt

  1. W

    Custom Button - Send email with PDF attachment

    Hi, I have a custom button setup that generates a PDF from the currently open record which works well. Is there a way of adding a custom button that would send the PDF attachment to the email address record from that entry? Thanks, Matt -- You are using DaDaBIK version 11.11-Elba PHP...
  2. W

    Search Operator %like%

    Thanks for that - the problem was I had a select multiple in the same search which was bringing through its search as an is_null the display_sql really helped
  3. W

    Search Operator %like%

    Hi, I am trying to implement a search within a dadabik database of a notes field. The "contains" operator seems to be mysql "like" which doesn't bring back enough search results within a text area. Is there an option for a %like% search? Or is there a way that I can bring one in? Thanks, Matt
  4. W

    Calculate Age from Date of Birth

    Thanks for that. If anyone is looking to do something similar, this is the code that I added to calculated_fields_functions.php that worked for me function dadabik_age ($params){ //get age from date or birthdate //explode the date to get month, day and year $birthDate =...
  5. W

    Calculate Age from Date of Birth

    Hi, I am trying to have a field display the current age of a person's record based on their date of birth. I have created my field for Age and setup a calculated field function like this function dadabik_age ($params){ //explode the date to get month, day and year $birthDate =...
  6. W

    Custom PDF Button

    I've adjusted the function name and corrected that error, but I still can't get the button to show up. What kind of checks are there within the system before showing a custom button? I've even tried copying over a button from one of the prepackaged app (along with its associated function) but...
  7. W

    Custom PDF Button

    Hi, I am trying to create a custom button that will generate a PDF from an existing template. I already have the PDF template working via the PDF button and dropdown. The template file is called Card.php (and the associated Card_settings.php I have added the following settings to my...
  8. W

    Edit Date Format

    Is it possible to disable the datepicker on a field by field basis or only globally?
  9. W

    Calculated Field & Custom Format

    However, as I'm now using $value for my return, I'm not getting my custom date format back in the list, it's coming out in MySQL format yyyy-mm-dd I've tried the following: function dadabik_date_format_status($value){ $value2 = date('d/m/Y', $value); if (strtotime($value) > time()) {...
  10. W

    Calculated Field & Custom Format

    I resolved this in a different way - I used this custom format function: function dadabik_date_format_status($value){ if (strtotime($value) > time()) { return '<span style="color:green"><b>'.$value.'</b></span>'; } else{ return '<span...
  11. W

    Edit Date Format

    Is there a way to allow typing in the date box as well as the datepicker? It seems that the datepicker disables the typing in the box? Thanks, Matt
  12. W

    Calculated Field & Custom Format

    Hi, I am trying to calculate a field and then custom format it based on a date field expiry date... I have added the following to calculated_fields_functions.php function dadabik_get_status ($params){ // first, check if price and tax are not empty and not null if...
  13. W

    Edit Date Format

    Perfect, that did it. Thank you! For reference, I set them as this: $date_format_edit = 'j/m/Y'; $date_time_format_edit = 'j/m/Y';
  14. W

    Edit Date Format

    You are using DaDaBIK version 10.6-Manarola enterprise System info PHP Version: 7.4.16 mysql version: 10.3.29-MariaDB-cll-lve Web server: LiteSpeed Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Hi, I have set my date...
Top