I was wondering if there was a way on version 10.x to edit what the responsive grid looks like? On a few of my list pages, I would like to keep them looking like a list page on a mobile phone, but just condensed data instead of blobs for each row.
↧
Edit responsive grid layout
↧
E-Mail multiple recipients and have reply to all
Piggy backing off a previous code that used to work that no longer works properly at https://asprunner.com/forums/topic/26421-email-from-database-but-cc-all-the-emails/
The e-mail gets sent to everyone from my database, but it doesn't show all the e-mails that it was sent to. I need this to happen so when someone who gets the e-mail, they can click Reply to all and everyone will get the reply back. As it works now, the e-mail it sent to member 1, 2, 3, 4, and 5. When it's received, each e-mail is received individually and when hitting reply, it will only be sent to the person who submitted the form and not member 1-5. Here is the code I'm using:
The values of email is the 5 members that should be getting the email. The value of email_address is the email of the user submitting the form. When the email is received and reply to all is hit, it should show both the values of all the email and email_address fields. Right now, it only shows the "email" of the person receiving it, and they can reply to the person with the email_address. Just trying to see if I;m missing anything in the code that used to work.
The e-mail gets sent to everyone from my database, but it doesn't show all the e-mails that it was sent to. I need this to happen so when someone who gets the e-mail, they can click Reply to all and everyone will get the reply back. As it works now, the e-mail it sent to member 1, 2, 3, 4, and 5. When it's received, each e-mail is received individually and when hitting reply, it will only be sent to the person who submitted the form and not member 1-5. Here is the code I'm using:
global $dal; $email=""; $tblUsers = $dal->Table("bod_members"); $rs = $tblUsers->QueryAll(); while ($data = db_fetch_array($rs)) { $email.=$data["email"].","; } $email=rtrim($email,','); $from="WorkOrder@website.co"; $fromName="Work Order System"; $msg=""; $subject="Work Order Request"; $msg.= "<html><body> e-mail is truncated to save space. HTML e-mail is what's sent"; $ret=runner_mail(array('to' => $email, 'subject' => $subject, 'htmlbody' => $msg, 'fromName'=> $fromName, 'from'=>$from, 'replyTo' => $values["email_address"])); if(!$ret["mailed"]) echo $ret["message"]."<br>";
The values of email is the 5 members that should be getting the email. The value of email_address is the email of the user submitting the form. When the email is received and reply to all is hit, it should show both the values of all the email and email_address fields. Right now, it only shows the "email" of the person receiving it, and they can reply to the person with the email_address. Just trying to see if I;m missing anything in the code that used to work.
↧
↧
Create a PDF with Master-Detail tables
Hello All
I have three tables set up as the following:
Customer Demographics (this would be things like First name, Last name, phone number). It is connected to a detail table of Bills
Bills is just a small table that lists each customer's bills. It has Bill Number, Date of sale, and total. This connects to the final table of Details
Details will have the individual items bought on that particular bill.
So one of our users will choose a Customer, from there they will choose a Bill, and finally they will see the Details in that bill. We want to be able to create a simple PDF that will have the Detail lines AND information from both of the other tables. Right now, when I am viewing the Details, if I try to create a PDF it shows the details and ONLY information from the Bills Table. I also need to see information from the Customer table. So for example the report would look like this:
John Smith
Bill R-0909 Date of Sale 09/09/2019
Item one
Item two
Item three
Right now all I am getting is
Bill R-0909 Date of Sale 09/09/2019
Item one
Item two
Item three
I am not getting the name from the Main table to print
THANKS!
I have three tables set up as the following:
Customer Demographics (this would be things like First name, Last name, phone number). It is connected to a detail table of Bills
Bills is just a small table that lists each customer's bills. It has Bill Number, Date of sale, and total. This connects to the final table of Details
Details will have the individual items bought on that particular bill.
So one of our users will choose a Customer, from there they will choose a Bill, and finally they will see the Details in that bill. We want to be able to create a simple PDF that will have the Detail lines AND information from both of the other tables. Right now, when I am viewing the Details, if I try to create a PDF it shows the details and ONLY information from the Bills Table. I also need to see information from the Customer table. So for example the report would look like this:
John Smith
Bill R-0909 Date of Sale 09/09/2019
Item one
Item two
Item three
Right now all I am getting is
Bill R-0909 Date of Sale 09/09/2019
Item one
Item two
Item three
I am not getting the name from the Main table to print
THANKS!
↧
Error relationship
hello dear, I have an error in phprunner 9. when creating a database relaionship. after making a visualization of the detail of a load. when I am going to load a record again the field that is related appears to me only reading
![Posted Image]()
![Posted Image]()
![Posted Image]()
![Posted Image]()
https://drive.google.com/open?id=19GvNfVChmk3Iyxckog57s6_i-sav2xP1
https://drive.google.com/open?id=1qnb-C0yzcw71ctNnFvzUuSQuOvNSSNQv
https://drive.google.com/open?id=1psiiZIcOtylu_voR9fR2kDcG4ZM52LrG
https://drive.google.com/open?id=1Onq41Zs2tVxXWHmZIYa9lHyiNakyKr0F
I await your help
https://drive.google.com/open?id=19GvNfVChmk3Iyxckog57s6_i-sav2xP1
https://drive.google.com/open?id=1qnb-C0yzcw71ctNnFvzUuSQuOvNSSNQv
https://drive.google.com/open?id=1psiiZIcOtylu_voR9fR2kDcG4ZM52LrG
https://drive.google.com/open?id=1Onq41Zs2tVxXWHmZIYa9lHyiNakyKr0F
I await your help
↧
Help with Field Event
Hoping someone can help with a field event. I have the code working, but I want to check if we get a result and if not I want the event to stop and tell the user and then they can edit again. I have
Client before:
params["value"] = this.getValue();
Server:
$sql = "Select oid from location_master where
location_id = '".$params["value"]."'";
$rs = CustomQuery($sql);
$data=db_fetch_array($rs);
$result["locoid"]=$data["oid"];
$result["SQL"] = $sql;
$result["upper"] = strtoupper( $params["value"] );
Client After:
var ctrlLoc = Runner.getControl(pageid,'Location_oid');
this.setValue( result["upper"] );
If the sql returns nothing I want to prompt the user - they did not enter a valid location and stay in the field for them to enter again.
Client before:
params["value"] = this.getValue();
Server:
$sql = "Select oid from location_master where
location_id = '".$params["value"]."'";
$rs = CustomQuery($sql);
$data=db_fetch_array($rs);
$result["locoid"]=$data["oid"];
$result["SQL"] = $sql;
$result["upper"] = strtoupper( $params["value"] );
Client After:
var ctrlLoc = Runner.getControl(pageid,'Location_oid');
this.setValue( result["upper"] );
If the sql returns nothing I want to prompt the user - they did not enter a valid location and stay in the field for them to enter again.
↧
↧
[SOLVED] Field valuw on a record-row
Hi,
Can anyone help me out
On a list_page each row has a field named main_ID
Now I want to add a code-snippet on each row doing something with that record based on the value main_ID
question
How do I obtain the value of main_ID programaticly in the code-snippet without adding a button that I need to click
thanks fot thinking
Can anyone help me out
On a list_page each row has a field named main_ID
Now I want to add a code-snippet on each row doing something with that record based on the value main_ID
question
How do I obtain the value of main_ID programaticly in the code-snippet without adding a button that I need to click
thanks fot thinking
↧
Calculating a Field
When I run this in either edit or add mode can change the Miles field, I get nothing in the mile_pay field.
This is in the Client Before
var ctrlMilepay = Runner.getControl(pageid, 'mile_pay');
var ctrlMile = Runner.getControl(pageid,'Miles');
ctrlMilepay.setValue(this.getValue() + (.58 * ctrlMile.getValue()));
return false;
This is in the Client Before
var ctrlMilepay = Runner.getControl(pageid, 'mile_pay');
var ctrlMile = Runner.getControl(pageid,'Miles');
ctrlMilepay.setValue(this.getValue() + (.58 * ctrlMile.getValue()));
return false;
↧
Help with lookup option
I am thinking about creating a mileage reimbursement form for my school system. Was curious if anyone could make some recommendation on how I might setup a calculated field based on what the users picks from two lists. I Plan to have one drop down pick list that has the start location which would be one of our 17 schools. The second pick list would be the same list but would be the destination. I have all of the possible combination already, example building A to building B is 2.5 miles; building A to building C is 3.2 miles etc....I would also like this to be a repeating field on the form so that they could enter at least 20 or 25 entries before having to submit the form
Any suggestions on how to, or the best method to go about configuring it so the combination of what is picked in the 2 fields can pull from something to put the miles traveled into a distance field?
Any suggestions on how to, or the best method to go about configuring it so the combination of what is picked in the 2 fields can pull from something to put the miles traveled into a distance field?
↧
call a php function from javascript
How can I run here in "Javascript onload event" a php function (x, y) found in "After table Initialize"?
and the return assign it to a javascript variable?
something like this, but without AJAXS (external file):
Runner.runnerAJAX('xhr.php?group='+proxy["group"]+"&original_url="+proxy["original_url"], null, function(respObj) {
if (!respObj.success) {
console.log(respObj.data.url);
document.getElementById("original_url").value=respObj.data.url;
window.location.href=respObj.data.url;
return ;
}else{ console.log('error xhr');}
});
and the return assign it to a javascript variable?
something like this, but without AJAXS (external file):
Runner.runnerAJAX('xhr.php?group='+proxy["group"]+"&original_url="+proxy["original_url"], null, function(respObj) {
if (!respObj.success) {
console.log(respObj.data.url);
document.getElementById("original_url").value=respObj.data.url;
window.location.href=respObj.data.url;
return ;
}else{ console.log('error xhr');}
});
↧
↧
error connecting to excel
When i connect to excel file i can see the content in query but after build i have the above error \
"Fatal error: Source: ADODB.Connection
Description: Provider cannot be found. It may not be properly installed. in E:\PHPRUNNER\Project1\output\connections\Connection.php on line 611"
Any idea how to solve it?
I use office 2016 and the 64 bit odcb driver downloaded from microsoft
In Phprunner i choose in Database type page from other the excel icon
"Fatal error: Source: ADODB.Connection
Description: Provider cannot be found. It may not be properly installed. in E:\PHPRUNNER\Project1\output\connections\Connection.php on line 611"
Any idea how to solve it?
I use office 2016 and the 64 bit odcb driver downloaded from microsoft
In Phprunner i choose in Database type page from other the excel icon
↧
Import feature
Is it possible to change the type of query used by the file import feature for a specific table? I suppose INSERT is used but I would instead use REPLACE
Thank you in advance.
Thank you in advance.
↧
report - how to make searchable a sum field
good day ,
i have a report with a field called overtime hours .
I sum the overtime hours for that field in that report.
Is there any way on the search panel to have the sum(overtimehours) field so in case i need to find the users that have a sum of overtime hours for example more than 50 to add that value in the search panel and to return the users with sum of overtime hours more than 50 ?
thanks in advance
i have a report with a field called overtime hours .
I sum the overtime hours for that field in that report.
Is there any way on the search panel to have the sum(overtimehours) field so in case i need to find the users that have a sum of overtime hours for example more than 50 to add that value in the search panel and to return the users with sum of overtime hours more than 50 ?
thanks in advance
↧
[SOLVED] Code to set project logo causes undefined constant warning
Following the manual to set the project logo in the AfterAppInit event code caused a warning message ".. Use of undefined constant Labels .."
It worked fine on my test system (Windows/XAMPP) but gave the warning on the target system (Linux/Nginx) - possibly due to different PHP versions?
Anyway from what I can see the manual says: Labels.setProjectLogo
and it should be: Labels::setProjectLogo
Just a few dots missing?
It worked fine on my test system (Windows/XAMPP) but gave the warning on the target system (Linux/Nginx) - possibly due to different PHP versions?
Anyway from what I can see the manual says: Labels.setProjectLogo
and it should be: Labels::setProjectLogo
Just a few dots missing?

↧
↧
after record added delete records other table
Hi,
I have two tables
1 stock table with a number_part column
2 table export with a number_part column
and wanted to add the data in export to delete it from stock. it's possible?
I did tests with the afetr aded event
with this code
global $conn;
$StockData = $pageObject->getMasterRecord(); // Returns an array of the master record
$StockData["part_stock"]; //Get current stock count
IF($values["mvt_type"] == "I")
{
$NewStock = $StockData["part_stock"] + $values["mvt_qty"]; // Add value to current stock
}
ELSE
{
$NewStock = $StockData["part_stock"] - $values["mvt_qty"]; // Deduct value from current stocck
}
//Update the new stock count to the parent stock part number
$StockUpdate = "UPDATE stock SET `part_stock` = ".$NewStock." where `part_no` = ".$values["part_no"]."";
db_exec($StockUpdate,$conn);
I have two tables
1 stock table with a number_part column
2 table export with a number_part column
and wanted to add the data in export to delete it from stock. it's possible?
I did tests with the afetr aded event
with this code
global $conn;
$StockData = $pageObject->getMasterRecord(); // Returns an array of the master record
$StockData["part_stock"]; //Get current stock count
IF($values["mvt_type"] == "I")
{
$NewStock = $StockData["part_stock"] + $values["mvt_qty"]; // Add value to current stock
}
ELSE
{
$NewStock = $StockData["part_stock"] - $values["mvt_qty"]; // Deduct value from current stocck
}
//Update the new stock count to the parent stock part number
$StockUpdate = "UPDATE stock SET `part_stock` = ".$NewStock." where `part_no` = ".$values["part_no"]."";
db_exec($StockUpdate,$conn);
↧
default values
Hallo, I am a complete newbie with respect to phprunner but I hve managed to create my fist site without too many difficulties. Nevertheless, i have encountered the following problem: I have create a dasboard with search, list and details - so far so good. In the search form it is possible to define defaul values für the search criteria - there are two on my search panel. However, when the dasboard opens/loads, the default values do not work, the list page is not restricted to the data filtered by the default values defined.
Thank for your help!
franzrueh
Thank for your help!
franzrueh
↧
Login questions
Dear all,
I do not really understand the difference between the database user login and the user groups like admin, user with all resp. restricted permissions on table level.
If I use database user login, I cannot put the user into one of the user groups - the form doesn't allow mit to combine user and user group.
Please help me to understand.
Thanks,
franzrueh
I do not really understand the difference between the database user login and the user groups like admin, user with all resp. restricted permissions on table level.
If I use database user login, I cannot put the user into one of the user groups - the form doesn't allow mit to combine user and user group.
Please help me to understand.
Thanks,
franzrueh
↧
mouse over ToolTip for list page
I have tried without success to add a tooltip to a field on the list page using a field value from another table
and have reverted to using a custom value - ie. doing an sql query and modifying the list filed by adding a field value from
another table. This works, but is not an ideal solution.
I would like to be able to add a mouseover event to show a tooltip on the list page.
e.g. a customers list page... when the mouse is over the account_id field, I would like to show a boat name which is from another
table - linked on account_id
is this possible ?
and have reverted to using a custom value - ie. doing an sql query and modifying the list filed by adding a field value from
another table. This works, but is not an ideal solution.
I would like to be able to add a mouseover event to show a tooltip on the list page.
e.g. a customers list page... when the mouse is over the account_id field, I would like to show a boat name which is from another
table - linked on account_id
is this possible ?
↧
↧
[SOLVED] Database / Project Sync Issue
When modifying a field in the database from the tables screen and syncing database I am seeing some issues
For Example
Changing a field name from Credit_Limit to credit_limit
or fldemail to Email.
Issue 1. The fields are not changing in the table screen nor in designer. The Old field name is present and/Or it makes it a new field. I have seen both happen.
Issue 2. The Query Screen does not change field to lower or uppercase after sync.
I never had an issue with changing field names before this build. not sure when this changed but it is present now. any advice would be appreciated.
The project is too large to upload to demo account, so looking for advice as to what changed.
For Example
Changing a field name from Credit_Limit to credit_limit
or fldemail to Email.
Issue 1. The fields are not changing in the table screen nor in designer. The Old field name is present and/Or it makes it a new field. I have seen both happen.
Issue 2. The Query Screen does not change field to lower or uppercase after sync.
I never had an issue with changing field names before this build. not sure when this changed but it is present now. any advice would be appreciated.
The project is too large to upload to demo account, so looking for advice as to what changed.
↧
upgrading project from version 9.8 to 10.X
Hi All am I the only person that is having problems upgrading a project which was built using PHP Runner V9.8 for use in Version 10.3...
When I open the project in Version 10.3:
Sections are renamed in Add / Edit pages so none of my custom code works, Details tables are no longer showing correctly in Edit pages, Add pages which load lightning fast in sites built using V 9.8 project are now taking 12 seconds to load, just seems like I need to scrap everything and start the project from scratch which I don't really want to do as ive spent 2 years so far developing what I have...
Surely its not just me experiencing these issues?
can anyone shed any light on this?
When I open the project in Version 10.3:
Sections are renamed in Add / Edit pages so none of my custom code works, Details tables are no longer showing correctly in Edit pages, Add pages which load lightning fast in sites built using V 9.8 project are now taking 12 seconds to load, just seems like I need to scrap everything and start the project from scratch which I don't really want to do as ive spent 2 years so far developing what I have...
Surely its not just me experiencing these issues?
can anyone shed any light on this?
↧
dashboard publically acccessible
My current project is for a small amateur sports association in Austria (fistball). The dashboard presents the league table and the results of the matches played. Only this page should be accessible without any login as it is usual with all the other sports league tables. I know about the guest login as a possible solution but people want to see the league table immediately when they access the page.
Franz
Franz
↧