How to set the app to load Add Page directly ?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.

How to set the app to load Add Page directly ?

Postby sagmag » Fri Jan 12, 2018 3:49 pm

I have my default app that loads when user log in and for this app I don't need a list page nor update nor view, the only thing I need is Add Page. And What I really want is when the user log in my application must launch the Add Page to allow the user adding record directly and after Adding he must be redirected on the same page... In short the application purpuse is to add data only (no updating, no listing , no viewing). And also How can I change the Add button text from "Add" to "Send"?
sagmag
 
Posts: 46
Joined: Tue Jul 18, 2017 1:15 pm

Re: How to set the app to load Add Page directly ?

Postby kirondedshem » Fri Jan 12, 2018 7:14 pm

1.You can set your default to one of the list pages, then redirect to the add page, just put your code in page_redirecting event of your choosen, something like

// Page Redirecting event
function Page_Redirecting(&$url) {
// Example:
$url = "another_pageadd.php";
}

2. You can also set your add page to be the start page in generate options->start page put another_pageadd.php. ALthough I would prefer the first solution as you might at somepoint need to redirect different people to different pages.
kirondedshem
 
Posts: 330
Joined: Sat Jan 28, 2017 7:13 pm


Return to General Discussion (PHPMaker)