This topic is locked
[SOLVED]

 How to set form with all dependent records in inline edit?

10/15/2017 7:45:14 AM
PHPRunner General questions
fhumanes author

I have a problem and it's pretty simple but I do not know how to do it in PHPRunner 9.8.

I need to update a master record and the child recordset at a time to establish validations for the "master and child" dataset.

I need:

  • Call the form in edition of the master and at the same time that it is in "inline" edition to all the children of the registry.

    Right now I do this by making the list of the child records and through ajax updates the check fields of the child records. the problem is that not being in the same database transaction I can not rollback if the validations are not correct.

    The example of the application - is Spanish - is on this portal.

fhumanes author 10/16/2017


To understand what I'm trying to do.

When you pass to the EDIT form of the master record "date" have to appear the children records in EDIT mode, all of them.

Sergey Kornilov admin 10/17/2017

You can click 'Select all' check box and then 'Edit selected' button programmatically.
Another option is to perform validation before saving any data.
For instance here is how you can click 'Select all' check box programmatically:

$("input[id^=chooseAll]").trigger('click');
fhumanes author 10/22/2017



You can click 'Select all' check box and then 'Edit selected' button programmatically.
Another option is to perform validation before saving any data.
For instance here is how you can click 'Select all' check box programmatically:

$("input[id^=chooseAll]").trigger('click');




With this javascript create check field select all but that does not involve clicking the edit button which is what i expected.
many thanks

fhumanes author 10/22/2017

Thank you.
The first event checks all fields and the second does the click function on the "edit".

function OnPageLoad(pageObj,pageid,proxy,inlineRow)
$("input[id^=chooseAll]").trigger('click');

$("#edit_selected2").trigger('click');