function back() { $ok = new InputBoolean(); $ok = Interop::Confirm('Do you want to close Gecko CRM app ?'); if ($ok == true) { return; } }
function back() { $ok = new InputBoolean(); $ok = Interop::Confirm('Are you sure you want to close?'); if ($ok == true) { return; } }
function delete() { $isOk = new InputBoolean(); $isOk = Interop::Confirm("Do you want to delete company ?"); if ($isOk == true) { ProgressIndicator::Show(); $httpC = new httpClient(); $httpC->addVariable("CompanyId", $id); $httpC->Execute('POST', "http://demo.kikapptools.com/CRMManager/crud/deleteCompany.php"); ProgressIndicator::Hide(); return; } }
function removeTask() { $isOk = new InputBoolean(); $isOk = Interop::Confirm("Do you want to delete this task ?"); if ($isOk == true) { //Make JSON request $urlDelete = "http://demo.kikapptools.com/taskManager/crud/deleteTask.php?action=delete&taskID=" . $id; $httpClient = new httpClient(); $result = $httpClient->Execute('GET', $urlDelete); //Cast response data type $sdtError = array("response" => DataType::Character(100)); Data::FromJson($sdtError, $result); $rsValue = new InputText(100); $rsValue = $sdtError['response']; //returns to the app home page. AndroidAction::GoHome(); } }
function delete() { $input_boolean = new InputBoolean(); $input_boolean = Interop::Confirm("Are you sure you want to delete this movement?"); if ($input_boolean) { ProgressIndicator::ShowWithTitle("Deleting..."); $httpC = new httpClient(); $httpC->addVariable("idMov", $idMov_trans); $httpC->addVariable('value', $value); $httpC->addVariable('dates', $date); $httpC->addVariable('move_type', $move_type); $httpC->addVariable("id", $token); $httpC->Execute('POST', "http://demo.kikapptools.com/Gastos/crud/deleteMovement.php"); ProgressIndicator::Hide(); return; } }
function changeToDone() { //Ask user confirmation $isOk = new InputBoolean(); $isOk = Interop::Confirm("Do you want to mark this task as done ?"); if ($isOk == true) { //Make JSON request $urlDelete = "http://demo.kikapptools.com/taskManager/crud/deleteTask.php?action=update&taskID=" . $id; $httpClient = new httpClient(); $result = $httpClient->Execute('GET', $urlDelete); //Cast response data type $sdtError = array("response" => DataType::Character(100)); Data::FromJson($sdtError, $result); $rsValue = new InputText(100); $rsValue = $sdtError['response']; //Refresh the screen $win->Refresh(); } }
function delete() { $isOk = new InputBoolean(); $isOk = Interop::Confirm("Do you want to delete your cart?"); if ($isOk == true) { ProgressIndicator::Show(); $url = "http://demo.kikapptools.com/magento/apiKikApp/api.php?metodo=clearUserCart&customerToken=" . $token; $httpClient = new httpClient(); $result = $httpClient->Execute('GET', $url); $sdt_rs = array("error" => DataType::Character(50)); Data::FromJson($sdt_rs, $result); $rs = new InputText(300); $rs = $sdt_rs["error"]; ProgressIndicator::Hide(); if ($rs == "0") { AndroidAction::GoHome(); } else { echo $rs; } } }
function delete() { $isOk = new InputBoolean(); $isOk = Interop::Confirm("Do you want to delete this task ?"); $urlDelete = "http://52.34.247.215/frameWorkExamples/taskManager/crud/deleteTask.php?taskID=" . $id; if ($isOk == true) { $httpClient = new httpClient(); $result = $httpClient->Execute('GET', $urlDelete); $sdtError = array("response" => type::Character(100)); Data::FromJson($sdtError, $result); $rsValue = new InputText(100); $rsValue = $sdtError['response']; //$win -> setCaption("Guarda"); echo $rsValue; $win->Refresh(); //return; } }