Quantcast
Channel: ASPRunner forums
Viewing all 2520 articles
Browse latest View live

Inserting into 2nd Joined Table

$
0
0
I've been using PHPRunner for 10 years and this is my first post.

My objective:
I would sincerely appreciate some insight with my issue using PHPRunner 9.8

I want one form for adding records that will do an insert on both tables (add to the Master and then to the Detail). I have two tables that are Master - Detail in relationship and are inner joined on key fields of id. I understand that MYSQL won't allow insert two tables at the same time. I'm wanting to perform this function in PHPRUNNER rather than having to write a Trigger in Mysql or write two queries using LAST_INSERT_ID ().

To keep it simple I'm just working with one field on the inner join table (call_notes_c), which is in the detail table. I have many more; however if someone can point me in the right direction I'll be able to add more fields after I understand the logic.

My Issue:
When I do an add record and fill in the inner joined fields and then save. I can't get the inner joined field (call_notes_c) from Details table (prospectcstm_crm) to do an insert into the table.

MY Tables:
Master is prospects_crm and detail is prospectscstm_crm. Key fields are prospects_crm = id and foreign key in prospectscstm_crm = id_c. Both tables (prospect_crm and prospectcstm_crm have Auto Increment on the Key fields = id.

My Query:
SELECT
prospects_crm.id,
prospects_crm.FirstName,
prospects_crm.LastName,
prospects_crm.FullName,
prospects_crm.MobilePhone,
prospects_crm.Address,
prospects_crm.City,
prospects_crm.State,
prospects_crm.Zip,
prospectscstm_crm.call_notes_c
FROM prospects_crm
INNER JOIN prospectscstm_crm ON prospects_crm.id = prospectscstm_crm.id

//////////////////////

My Event Code:
Prospects_Crm/Add Page /Before Record Added
global $dal;
$tblDetail = $dal->Table("prospectscstm_crm");
$tblDetail->Value["call_notes_c"] = $values["call_notes_c"];
$tblDetail->Value["id_c"] = $keys["id"];
$tblEvents->Add();
unset($values["call_notes_c"]);
unset($values["id_c"]);
return true;

/////////////////


In addition, does PHPRunner support LAST_INSERT_ID() in the events code?

Thanks in advance for help.

Error [Unable to test]

$
0
0
I need to make drop-down dependent, so i pick a field called "kode" that is presents in both parent-filter table,
obviously i made the field as a link for both table.

But when i click the [Test it] button:

Unable to test
Setup "kode" as Lookup wizard first.

I can't find any explanation from the help file for this error.

Any idea, folks?

Click Event - URL Field

$
0
0
Hi,
Is there a way to have a List page field level Click Event that opens a url in a pop-up where the url is pulled from a database field?
Thanks

Button to prompt for attachment

$
0
0
Hi Sergy

I have inserted a button in list page which will update value of a cell in same row but I also want it to prompt to insert a file (pdf or jpg) into another cell in same row.

Inserting button is easy and updating the value of same row is also easy but how to make it prompt for a file.

Master - Detail Page - Formatting

Master - Detail Page - Formatting

$
0
0
Any suggestions on how to have the Detail Page fields in a Master - Detail situation align in columns vertically - something similar to bootstrap_3_column like in Styles/ Add Pages, instead of horizontally. It's very cumbersome when adding Master - Detail records to have to scrolling through the fields. Even by creating a View for the Detail Page and limiting the fields it's still not very user friendly.

This is the only reference I found and it's not helping accomplish my objective.
https://xlinesoft.com/phprunner/docs/display_details_table_on_tab_on_add_edit_view_page.htm

Any insight would be greatly appreciated.

Thank You.

Email Page as it looks

$
0
0
Hi All, I've built a view page with borders, tables etc for a form. Is there any way to email the page as it looks?

Thanks.

change insert button style

$
0
0
I'd like to personalize insert buttons.
I try whith

ctrl.addStyle('color: red');
or
ctrl.addStyle('color: "#009300"');

in Client before tab, but it doesn't work.

any solution?

thanks
Fabio

(Phprunner 9.8 build 29213 x64)

Deleted tables

$
0
0
Today while working on a project, I suddenly received an message that the database has been synchronized an all tables were removed from the project.
What is causing this? It seems like I have lost all work done thus far.

Page Layout

$
0
0
am trying to modify the login page layout.
to look like the image below

Posted Image

if the image is not visible i have tried to illustrate with text

[login form][slider]
[paragraph1][paragraph2][paragraph3]

for now i have inserted variables in html mode
for the
slider = {$sliderdiv}
paragraph1 = {$textcontent_1}
paragraph2 = {$textcontent_2}
paragraph3 = {$textcontent_3}

the content is displayed but it not arranged the way i want.
am looking for someone to teach me how to modify layout

Current Layout
@version=3
beginblock top
	begincontainer container page
		begincontainer column md-offset=3 col-md=6 class="bs-standalone-page" page
		begincontainer column class="bs-pagepanel panel panel-primary" panel 
			begincontainer column class="panel-heading" header
				brick bsloginheader_panel
			endcontainer
			begincontainer column class="panel-body" body
					begincontainer column col-md=12 header
						brick bsmessage
					endcontainer
					begincontainer column col-md=12 fields
						brick bsloginfields1
					endcontainer
					
					begincontainer column md-offset=4 col-md=8 header
						brick bsloginbuttons
					endcontainer
					begincontainer column md-offset=4 col-md=8 fb
						brick bsfacebook
					endcontainer
			endcontainer 
		endcontainer 
		begincontainer column col-md=12 align=center register
			brick bsloginregister1
		endcontainer
		
		endcontainer 
	endcontainer 
endblock


i tried adding the slider block by
changing
beginblock top

to
beginblock left


then i adding a new block

beginblock right
	begincontainer test
	endcontainer 
endblock


the login form get squeezed to the left with like 5% of original width
does anyone have a sample of how to do this ?. i will be able to modify other pages if i see how this is done

Email a HTML form (with PHP embedded code) upon pressing button

$
0
0
I have created a HTML form with embedded PHP code that logs into the database and auto-fills in the form fields in the HTML form from a database I created with PHP Runner.

What I need to do is have an ADMIN only button in the PHP Runner Database that, when pressed, emails that record's data with the HTML form code I created.
How can I do this in PHPRunner and WHERE would I put the button?

I was thinking of putting the custom 'SEND PDA FORM' button in the EXPORT function or on a VIEW page at the bottom or top.

How do I format the HTML code with the embedded php code to work in a PHPRunner button?

Thank you.

Mike

email with new data

$
0
0
Hi All,

I've succesfully incorporated the "Send email with new data" pre defined event in my project. An email is sent with the new (and old) data a user changed. I also use the "update selected"function in the list page where users can change multiple records in one go by ticking the checkbox. (love this function)

I'm wondering if it's possible to use this "Send email with new data"-event with the "update selected" function so that all the new data is presented in only one email. So let's say I update 10 records at once using the "update selected" function. Instead of sending 10 seperate emails with the new data, would it be possible to combine the 10 emails into 1 email with all the new data from the 10 updated records?

I hope this makes sense to you.

Where do start?

Thanks,

Jack

Sort issue with lookup value

$
0
0
When I have a field on a list page that is displaying a lookup value via lookup wizard, clicking the column header in the generated app sorts on the underlying field value rather than the displayed (lookup) field value. This is not very intuitive and not at all helpful to my users.

Is there a way to make it sort on the displayed text from the lookup table rather than the underlying value from the list table page?

Table updates

$
0
0
When on the pages to build screen, I have the ability to check all the boxes on some tables but not on others. What is the reason for this please?

Converting Query to work with PHPRunner

$
0
0
PHPRunner Enterprise 9.8

I have a query that was provided to me. When I paste into PHPRunner I am not able to view on the Design Tab. I get an error stating that PHPRunner was unable to parse SQL query. I am able to publish my application and the query works fine. Any ideas on how to make the query PHPRunner friendly so that I can view with the Design Tab?



My Query

Select `pr`.`shift_date` as `shift_date`, `pr`.`Total_Units` as `total_units`, `pr`.`total_revenue` as `Revenue`, `hp`.`total_hours` as `Total_Hours`, `hp`.`Total_Payroll` as `Total_Payroll`, (`pr`.`Total_Revenue`-`hp`.`Total_Payroll`) as `NET`, (`pr`.`total_units`/`hp`.`total_hours`) as `Units_per_hour`, (`pr`.`Total_Revenue`/`pr`.`total_units`) as `Revenue_Per_unit`, (`hp`.Total_Payroll/`pr`.`total_units`) as `Cost_per_unit`

FROM

(SELECT `shift_date` ,Sum(`parts`+`majors`+`customized`+(`recrate`*0.5)+`returns`+`p`.`rstatus`) as `Total_Units` ,Sum((`parts`*`parts_accessories_base`)+(`majors`*`major_base`)+(`customized`*`customize_base`)+(`returns_base`*(`returns`*0.5))+(`recrate`*`recrate_base`)+(`p`.`rstatus`*`r`.`rstatus`)) as `total_revenue`

FROM `wp_daily_production` as `p`,`wp_transaction_rates` as `r`

where `p`.`DC`=`r`.`DC`

group by `shift_date`) as `pr`

inner join (SELECT `shift_date`,Sum(`Hours`) as `total_hours` ,sum(`wages`) as `Total_Payroll` FROM `kronos_employee_hours_by_labor_account_daily`

where department=293

Group by `shift_date`) as `hp`

on `pr`.`shift_date` =`hp`.`shift_date`

Thanks
Hopper

Search doesn't work anymore

$
0
0
Okay, am I the only one that can't search the forums anymore? Every browser returns no results. Here's what I get searching for "print":


Your search - site:asprunner.com print - did not match any documents.
No pages were found containing "site:asprunner.com print".

Suggestions:
Make sure all words are spelled correctly.
Try different keywords.
Try more general keywords.

What is the issue here?

Printer friendly page

$
0
0
I'm sure this is answered in this forum somewhere, but since I can't search for it, I guess I have to ask...

The font prints unreadably small when trying to print a Master table that has several Details tables. It prints all the data, but ridiculously small.

When I try to increase the font size in the editor on the print friendly page, it reverts as soon as I save or build the project. Any ideas?

Thanks,
Ed

Navigating to Specific Dashboard Record

$
0
0
So I am able to have links in child list that when clicked you can jump to a page easy enough as shown below. The code is in a custom field setting and I have that all figured and working.

"http://xxxx/parts/pn_list.php?q=(PNPartNumber~equals~290028)"

What I want to do is be able to jump to a dashboard record but so far haven't found a way to do that.

Trying the same thing like above doesn't do any filtering. It just opens the dashboard to the default view.

"http://xxxx/parts/Item_Dashboard_dashboard.php?q=(PNPartNumber~equals~290028)"

Any help is greatly appreciated.

Thanks-

Paul

Password reset email - PHPRunner 9.8

$
0
0
Hi, I am guessing that I am missing something.

I have upgraded a project to PHPRunner 9.8, and have discovered the new way that it emails a link to reset the users password.

What I would like to know is if its possible to change the email that is sent.

At this time, it only has the link. I would like to put some text around it..

Gordon.

Fixed position table headers on list pages

$
0
0
Hi,
Is there a way to make the table header row that has the labels for each column stay fixed in one position? I'd like to be able to see the label for each column as I scroll through the results. Thanks,
Brett
Viewing all 2520 articles
Browse latest View live