Questions tagged [agiletoolkit]

Agile Toolkit is a PHP framwework

Agile Toolkit is an object-oriented web development framework for PHP.

75 questions
0
votes
0 answers

php agile toolkit Table and Grid UI components how to refresh/reload from a click of button after conditions are changed

I would like to ask how to refresh Table and Grid components with an updated set of database conditions. Lets say we have a filter form with 'customer name' and we would like to filter and refresh Table or Grid with an other customer name triggered…
nick
  • 229
  • 2
  • 9
0
votes
0 answers

In php Agile Toolkit Button component how do I call a function when clicked

I would like to call a php function with parameters after clicking a Button. For example something like the following: $buttonNew = new Button('Click me'); $buttonNew ->onClick(function (Form $form) { $form->model->set('dbUserId',…
nick
  • 229
  • 2
  • 9
0
votes
1 answer

How to Export grid as CSV file in Agiletoolkit atk4

I am using agiletoolkit atk4, and I would like to export grid to CSV file, I am using below code how ever i am facing issue below is the detail: Code: $grid->menu->addItem(['Export as CSV..', 'icon' => 'add square'], new…
0
votes
1 answer

left join and non id join in agiletoolkit atk4

SELECT t1.field1, t1.field2, t1.field3, t2.field4, t2.field5,t2.field6 FROM table1 AS t1 LEFT JOIN table2 AS t2 ON t1.field1 = t2.field1 AND t1.field2 = t2.field2 WHERE t1.fieldstart <='2021-10-13' AND t1.fieldend >= '2021-10-31' OR…
0
votes
1 answer

Jquery double click event after appending element to another element

I'm using agile toolkit, a framework that generates javascript code from PHP. I have a div element (I'll call it "top-element") that contains some other div elements, some buttons. I want to move the "top-element" to another element, to change it's…
Pascut
  • 3,291
  • 6
  • 36
  • 64
0
votes
1 answer

Stopping reload timer for grid in ATK4

I'm testing ATK4 for some scenarios to decide, if I can go with it. One of these Scenarios is a status page for groups and members, which should reload automatically the grids, which contains dynamic group and member informations. The grid reload…
ATL
  • 25
  • 5
0
votes
1 answer

date range search atk4

i want to do a search of range date using quicksearch item, but until now i realize that in the class quicksearch is a line with this code : $this->search_field=$this->addField('line','q','')->setNoSave(); the only thing i did is to change into…
0
votes
1 answer

Agile Toolkit : Redirect on another page with arguments

I just started learning ATK. In my project, I have a grid of a Model 'A'. There are many rows for Model 'A'. I have a separate page for that Model that shows its details. Now, I want, my grid rows clickable and it should redirect to that page with…
Akshat
  • 720
  • 9
  • 24
0
votes
0 answers

How do i export grid to csv,pdf, xls in Agile ToolKit?

How do I export a grid to pdf or excel files? I have the next code, buttons of export are shown, but when I click one of those buttons gives me the next error: Application Error: File not found Exception_PathFinder, code: 0 Additional…
0
votes
1 answer

Field Length validation - Agile toolkit

In a model User I have this field. $this->addField('login')->mandatory(true)->caption('Login')->length(10); But when I enter text longer than 10 characters, the validation never occurs, and never shows the red message below the field saying:…
Javier del Saz
  • 846
  • 1
  • 9
  • 16
0
votes
1 answer

File upload callback in Agile tookit

I have a agile File input, im using the model File from addons, at the moment without any extend or modifications. $f=$this->add('Form'); $modelo = $this->add($this->model); $f->addField('upload','Upload_test','Upload…
Javier del Saz
  • 846
  • 1
  • 9
  • 16
0
votes
1 answer

How to log Atk4 auth/login event

I'm new to Agile Toolkit and I'm trying to make some sort of trigger/log on user auth. For example, after successful login, I want to execute some query like: UPDATE `user_login` SET `user_id` = XXX, `login_date` = NOW(); I've searched…
Dusty Raven
  • 183
  • 1
  • 8
0
votes
1 answer

How to check if the email is existing or not in Agiletoolkit Framework and mysql

I have built up a page named sign up page for user registration and a login page in Agiletoolkit with mysql. How to check whether the email is existing in Agiletoolkit Framework on the sign up page while registration? I have tried with this…
ankan
  • 1
  • 4
0
votes
1 answer

How to display image from filestore/Field_Image in agiletoolkit?

I have a model Profile add('filestore/Field_Image'); } } Now in my index.php, i am trying to set the full…
Zeeshan Abbas
  • 821
  • 6
  • 20
0
votes
2 answers

Agiletoolkit login cookie issue on subdomains

i am using the atk4 basic auth so when i login here http://subdomain1.DOMAIN.pk/index.html i see all the details you are visiting: subdomain1 your site : subdomain2 This is not your site string(23) "abc@gmail.com" You are logged in as…
Zeeshan Abbas
  • 821
  • 6
  • 20