Jump to content

wscwt01

Members
  • Posts

    16
  • Joined

  • Last visited

wscwt01's Achievements

Member

Member (2/5)

0

Reputation

2

Community Answers

  1. I built an application for a client of mine using PHPRunner about 3 years ago. It has functioned perfectly right up to today when they notified me that they were unable to Export any records. I have attached the error report that comes up when you run Export function. According to the report it is unable to find a file or path. I have been on to server with FTP client and all the paths, files and contents are present. Can anyone please give me any advise on what might suddenly cause this error after many years. All other functionality of the Database is fine. Many thanks, Carl.
  2. I have a single Form which allows user to create a new Gift Voucher record. It is split into 3 input areas Voucher Details, Payment Details and Delivery Details. ​ I want to add a button on the Payment details section which when activated will copy some of the entered fields from the Payment section to some of the fields in the Delivery section as follows: - FROM PAYMENT SECTION TO DELIVERY SECTION PurchaserName DeliveryName PAddressLine1 DAddressLine1 PAddressLine2 DAddressLine2 PCounty DCounty PPostCode DPostCode I am using a Code Building product called PHP Runner which when you add a button gives you a properties widget as per attachment in which to place your bespoke code.
  3. Hi there, Thanks for your response. The Button Properties as per my attachment is looking for JS coding so it may well be it will be fine.
  4. Hi again folks, I have a single Form which allows user to create a new Gift Voucher record. It is split into 3 input areas Voucher Details, Payment Details and Delivery Details. I want to add a button on the Payment details section which when activated will copy some of the entered fields from the Payment section to some of the fields in the Delivery section as follows: - FROM PAYMENT SECTION TO DELIVERY SECTION PurchaserName DeliveryName PAddressLine1 DAddressLine1 PAddressLine2 DAddressLine2 PCounty DCounty PPostCode DPostCode I am using a Code Building product called PHP Runner which when you add a button gives you a properties widget as per attachment in which to place your bespoke code. Hope you guys can help, Al the best, Carl.
  5. Fantastic............. Thanks a million
  6. Thanks this is result DateTime::modify(): Failed to parse time string (+730) days) at position 4 ()): Unexpected character
  7. Hi guys, I think I am getting confused now as probably so are you, so just to clarify This bit of the code works absolutely fine: - { if ($values['Workings1'] == "F") { $values['ExpiryDate'] = $values['Workings2']; } return true; Where "Workings1" contents is populated depending on what ever Voucher code is selected from a dropdown elsewhere on the Form. It will only ever be "F" or "D" Where "Workings2" contents is populated depending on what ever Voucher code is selected from a dropdown elsewhere on the Form. It will always be a date in shortform. Where "ExpiryDate" is empty field
  8. IssueDate is a Field in the Form which autopopulates with now()
  9. The actual code is: - if ($values['Workings1'] == "F") { $values['ExpiryDate'] = $values['Workings2']; } else if ($values['Workings1'] == "D") { $values['ExpiryDate'] = clone $values['IssueDate']; $values['ExpiryDate']->modify("+{$values['Workings3']}) days"); }
  10. It is located in a "Before record Add" event located in an Add New Record page. I create the code in PHPRunner which is then compiled and uploaded to live server.
  11. Thanks for getting back so quick but unfortunately Fatal error: __clone method called on non-object in /home/z14auch/public_html/vouchers/vouchers/include/tblVouchers_events.php on line 35
  12. Hi maxxd thanks so much for taking the time to look at my problem. I'm afraid that when I ran it it errored. I am using a code building product called PHP Runner and it doesn't seem to recognise the function "clone" which is where it errored.
  13. Hi, I have an application where I have a field containing an Issue Date and a field which contains a Number of Days. I need to add the Number of Days to the Issue Days to get a Expiry Date.(The bit in bold) My code as it stands which is not quite working is: - if ($values['Workings1'] == "F") { $values['ExpiryDate'] = $values['Workings2']; } else if ($values['Workings1'] == "D") { $values['ExpiryDate'] = date('Y-m-d',strtotime($values['IssueDate'])) + (60*60*24*$values['Workings3'])); }; return true; Any guidance would be much appreciated Working3 is field containing days i.e. 730 (2 years)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.