Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
User avatar
By tellesmg
#781526
Hello!

During a task I changed the grid data, and in some moment I went back to a step with this grid (PMFRedirectToStep() ), but the changes don't appear..
how i do to force the dynaform / grid refresh this data?
User avatar
By vktRus
#784687
2 variants:

1 variant - AJAX.
read data for grid with java-script (AJAX)
http://wiki.processmaker.com/index.php/ ... ing_a_Grid

2 variant - java-script + PHP.
java-script
Code: Select all
saveForm()
PHP
delete current case, create new case + send new variables, open new case
Code: Select all
    $taskId  = '754187408569a139dd3b371026265761'; //lookup the starting task's unique ID
    $newCaseId = PMFNewCase(@@PROCESS, @@USER_LOGGED, $taskId, array());
    //----if a new case was created, change its status in the database
    if ($newCaseId) {
        // Auto delete current case and go to new case
        @@return = PMFDeleteCase(@@APPLICATION);
        $dataArray = array ('retMESSAGE' => 'Save', // replace to yours data
                            'CL_PSEVDONIM' => @@CL_PSEVDONIM,
                            'CLUID' => @@CLUID,
                           );
        PMFSendVariables($newCaseId, $dataArray);
        $phpResultURL = 'cases_Open?APP_UID=' . $newCaseId . '&DEL_INDEX=' . '1';
        header('Location: '.$phpResultURL);
        die();
    }
    else {
       $msg = "Unable to create new case." . isset(@@__ERROR__) ? @@__ERROR__ : '';
       G::SendMessageText($msg, 'ERROR');
    }
http://forum.processmaker.com/viewtopic ... tep#p17006
Case status draft

Alguien me puede ayudar? Mis casos siempre quedan […]

Download Processmaker version 3.8.3

Hello good people , anyone with Version 3.8. […]

Dappsfirm specializes in Poker Game Development, o[…]

Dappsfirm specializes in Keno Game Development, of[…]