This topic is locked

skip record on edit page

12/3/2009 3:01:50 AM
PHPRunner General questions
M
meirco author

In the edit page when the user click next button ">>>" I want to skip the record if the value of status field is not blank.

J
Jane 12/3/2009

Hi,
check status value in theEdit page: Before processevent and show/hide Next button if needed.

Here is just a sample:

$xt->assign("next_button", false);
M
meirco author 12/5/2009



Hi,
check status value in theEdit page: Before processevent and show/hide Next button if needed.

Here is just a sample:

$xt->assign("next_button", false);




I need to SKIP he record if status updated.

J
Jane 12/7/2009

Hi,
add where clause in the Edit page: Before SQL query event for this purpose.

M
meirco author 12/7/2009



Hi,
add where clause in the Edit page: Before SQL query event for this purpose.


I need to skip records when the updated date field is populated. only edit if field is empty.

I tried this



$strWhereClause = whereAdd($strWhereClause,"time.updated='"."'");



No edit is possible with this code.

J
Jane 12/8/2009

Hi,
I see what you're saying. Unfortunately it's impossible to skip record in these events.

You can remove edit links for these records on the list page. Use List page: After record processed event on the Events tab for this purpose.

Here is a sample:

if ($data["FieldName"])

$record["edit_link"] = false;