Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Validation Batch Data
Post: RE: Validation Batch Data

JustJohnQ Wrote: (12-21-2022, 12:17 AM) -- Just to test, does this work: Code: -- '*.params_diagnose_early.*' => 'required', '*.params_diagnose_final.*' => 'required', '*.params_detail.*'       ...
1,463 Views
4 Replies
12-21-2022, 12:21 AM
flux1on
    Thread: Validation Batch Data
Post: RE: Validation Batch Data

JustJohnQ Wrote: (12-21-2022, 12:01 AM) -- After you json_decode the data, there is no json in the array as you will see with print_r($dataValidate) your 'valid_json' rule will fail. -- When you s...
1,463 Views
4 Replies
12-21-2022, 12:08 AM
flux1on
    Thread: Validation Batch Data
Post: Validation Batch Data

I have data JSON Batch from Upload File Code: -- [{"params_invoicenumber":"INVCPLCM02353642","params_member":1,"params_sdate":"2022-01-02 19: 01: 00","params_edate":"2022-12-31 15: 06: 00","params...
1,463 Views
4 Replies
12-20-2022, 11:46 PM
flux1on
    Thread: Replace old data to new data by Group ID
Post: Replace old data to new data by Group ID

I have table like Code: -- tb_class --------------------------------------------------------- id | group_id | name | class | hour --------------------------------------------------------- 1 ...
1,476 Views
1 Replies
07-12-2022, 07:35 PM
flux1on
    Thread: Validation more data by JSON request - CI 4
Post: RE: Validation more data by JSON request - CI 4

iRedds Wrote: (07-08-2022, 12:41 AM) -- This is a bug. Until it's fixed, you can validate each dataset individually. https://github.com/codeigniter4/CodeIgniter4/pull/6243 -- Thankyou for helpi...
4,745 Views
6 Replies
07-08-2022, 01:01 AM
flux1on
    Thread: Validation more data by JSON request - CI 4
Post: RE: Validation more data by JSON request - CI 4

If example input reading file Excel with SheetJS Result : ``` [     {         "params_id": "IP",         "params_name": "Inpatient",         "params_gender": "All",         "params_descripti...
4,745 Views
6 Replies
07-07-2022, 06:49 PM
flux1on
    Thread: Validation more data by JSON request - CI 4
Post: Validation more data by JSON request - CI 4

I have case user upload CSV/XLSX file in my website and convert to JSON. I want json request to insertBatch with Validation first Example JSON : Code: -- [     {         "params_id": "IP",  ...
4,745 Views
6 Replies
07-06-2022, 02:23 AM
flux1on
    Thread: createdField & updatedField & deleteUpdate Cant Update
Post: RE: createdField & updatedField & deleteUpdate Can...

kenjis Wrote: (06-02-2022, 02:30 AM) -- flux1on Wrote: (06-02-2022, 12:25 AM) -- But beforeInsert & beforeUpdate cant work, why? -- I don't know. It seems no problems. [hr] The constructor has w...
2,181 Views
4 Replies
06-02-2022, 07:23 PM
flux1on
    Thread: createdField & updatedField & deleteUpdate Cant Update
Post: RE: createdField & updatedField & deleteUpdate Can...

kenjis Wrote: (06-01-2022, 10:04 PM) -- Because you are using Builder's method. CodeIgniter Model is kind of wrapper for Builder, but if you want to use Model's functionality, you must use Model's ...
2,181 Views
4 Replies
06-02-2022, 12:25 AM
flux1on
    Thread: createdField & updatedField & deleteUpdate Cant Update
Post: createdField & updatedField & deleteUpdate Cant Up...

By user guide, i can be automatically updated field created,modified and deleted date with set name field on variable CI 4. My Table : https://i.postimg.cc/C1MW5MDv/image.png My Model : PHP C...
2,181 Views
4 Replies
06-01-2022, 09:53 PM
flux1on
    Thread: Double Insert Data in Filter Before CI4
Post: RE: Double Insert Data in Filter Before CI4

iRedds Wrote: (05-29-2022, 06:47 PM) -- You are calling the function twice. PHP Code: --     if (Services::validationApiKey($tokenApi)) {  // Services::validationApiKey($tokenApi), // $tokenApi...
2,188 Views
2 Replies
05-29-2022, 07:38 PM
flux1on
    Thread: Double Insert Data in Filter Before CI4
Post: Double Insert Data in Filter Before CI4

app/Config/Service.php PHP Code: -- public static function validationApiKey(string $apiKey)     {         $apiModel = new ApiModel();         $checkApi = $apiModel->checkApi($apiKey);       ...
2,188 Views
2 Replies
05-28-2022, 07:29 AM
flux1on
    Thread: Double Insert Data in Filter Before
Post: Double Insert Data in Filter Before

app/Config/Service.php PHP Code: -- public static function validationApiKey(string $apiKey)     {         $apiModel = new ApiModel();         $checkApi = $apiModel->checkApi($apiKey);       ...
692 Views
0 Replies
05-27-2022, 08:40 AM
flux1on
    Thread: Why unknow column 'slug_safelink' ?
Post: RE: Why unknow column 'slug_safelink' ?

mlurie Wrote: (11-04-2020, 10:45 AM) -- Did you initialize the $allowedFields array in your Model? PHP Code: -- protected $allowedFields = ['nama_safelink', 'slug_safelink', 'url_safelink', 'hits...
2,435 Views
3 Replies
11-04-2020, 11:25 PM
flux1on
  Question Thread: Why unknow column 'slug_safelink' ?
Post: Why unknow column 'slug_safelink' ?

I have problem Unknown column 'slug_safelink' in 'where clause' Controller : Code: --
2,435 Views
3 Replies
11-04-2020, 07:06 AM
flux1on

Theme © iAndrew 2016 - Forum software by © MyBB