Skip to profile content
Before update, the publish_events is true. So after update, it still true. [image] I dont know what’s the problem, but after update, my input mask does not work anymore. [image] And after i replace GCE file in vendor folder, it works. [image]
Hello @johnny , i confirm this not work with the latest version of GCE (V3.1.4). I just update my GCE using “composer update --prefer-dist” and my input mask not working anymore. I try to replace my GCE with the old one, and it working again. Any solution for this ?
In search and input form, my date format is dd/mm/yyyy, but when it showed in column, it became m/d/yyyy. How to make it so the format is the same ? [image] i used this for date input : $crud->fieldType('tanggal', 'native_date'); I can create callbackColumn function to make column format dd/mm/…
The problem is : my password is changing because i’'m getting a new license. If you’re having the same problem, change password manually in C:\Users<username>\AppData\Roaming\Composer\auth.json (Windows) with a new one, and your problem will be solved.
Hello @johnny , i try to update my old code with composer, and i got this : could not be fully loaded (Invalid credentials (HTTP 401) for 'https://composer.grocerycrud.com/packages.json', aborting.), package information was loaded from the local cache and may be out of date Why it not ask for my u…
Yes, there is a direct way. I solve this problem using this : $crud->where(['parameter' => array('aa', 'bb', 'cc', 'dd')]); I think this should be included in the documentation.
Hello. How to use or where in GCEnterprise ? like this one.
that’s the answer ! Thanks @nasrul :smiley:
Hello. How to use callbackBeforeInsert with parameter ? Example : Public function($id1, $id2){ $crud->callbackBeforeInsert(function ($stateParameters) { // i wanna use $id1 and $id2 here, but didn’t work return $stateParameters; }); }
hello @johnny i try to use like this : $crud->fieldType('nama', 'boolean', [1 => 'Debet', 2 => 'Kredit']); and the result is like this : [image] am i using it right ?
wow ! your blind guess work like a charm :smiley: Thank’s @johnny
i did used callbackEditField and callbackAddField to create something like that. first, i set addField : $crud->addFields([''parameter', 'terukur', 'satuan']); Then i set terukur field hidden. Then i use callbackAddField to create terukur and satuan inline like this : [image] but when i click…
is it possible to create inline form like this with GCE ? [image]
Thanks @nasrul . I did somethink like that too. But i think this solution should included in the next version of GCE, right @johnny ? :smiley:
Hello. I have problem with “setRelation” field. When i just have one or two input field that using setRelation (or fieldType enum), the form is not height enough to select the data in combobox [image] Like this image, i can’t see another option. And when i search with it, this is the result : […
i said update @johnny not upgrade :smiley: it’s update from v 3.0.15 to 3.0.16. But i’m not sure this is happened after GCE update or crome update. Never mind, $crud->fieldType(‘fieldName’, ‘native_date’); solved my problem. I preffer to use this date picker. HTML date picker now is awesome :smiley:
Thank’s @johnny @nasrul , after i remove this line : // We removed the line $data['fk_id_invoices'] = session('master_id'); and using callbackBeforeInsert that you suggested, it works ! But why this example not using callbackBeforeInsert ? Which example are you referring to ? this one ?
yes @nasrul , fk_id_invoices inserted to database. [image] fk_id_invoices should be 1. also, please see this video.
hello @johnny . after update, all my GCE date format changed to m/d/Y. Why is this happening ? [image] before update, my datepicker format was d/m/Y. Also, date format on config is no longer there.
yes john, it should be like this. But that didn’t work for me. Look at this video.
this is my code : public function index() { $crud = $this->_getGroceryCrudEnterprise(); $crud->setTable('kal_invoices'); $crud->setUniqueId('kal_invoices'); $crud->unsetCssTheme(); $crud->unsetExport(); $crud->unsetPrint(); //$crud->where(…
Hello john. I experienced an error when i try to add data using master detail. Let’s get to the case. I have two data. Let’s call it data number one and data number two. [image] Click master detail button on data number one [image] Click master detail button on data number two [image] …
Yes, that works for me. Thank you @johnny
hello @johnny i try to update and got this message : [image] what does it mean ? i’m sure i use valid credentials.
Woow that’s very good news. Now we don’t have to download and replace every update @johnny :smiley:
Finnaly.. i found slow internet and tested it. It works, i can use it on all my view. Thanks @nasrul
Thank’s @nasrul , but i haven’t tested it yet. To test it, i have to find slow internet connection, and it’s really hard to find slow internet from where i am now :smiley: I think people in big city never experience this problem, that’s why @johnny never thought about it.
Yeah, i never thought about that too. But some of my clients still use very slow internet connection, and i just found the same data inserted by my client with just 1 sec time difference. From my experience, it caused by slow internet connection. So when they click save button, insert process is so…
Hello @johnny , so i try to input data using GCE from slow internet. I fill the form, and click save 10 x. And it inserts data 10 x. It should be just inserted one times. So my question is, how to prevent multiple times insert with gce ?