Questions tagged [atk4]

Agile Toolkit is Object Oriented PHP framework for building rich Web UI

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

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..', '...
Magic Test's user avatar
0 votes
1 answer
83 views

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-...
Magic Test's user avatar
-1 votes
1 answer
99 views

Agile toolkit atk4 php set field value based on anther field value without submitting the form

I am using agile toolkit code for developing an application , i do have dropdown that get values from database, I want to show selected value from field 1 to field 2 without submit any thing. $...
Magic Test's user avatar
-1 votes
1 answer
32 views

Agile toolkit atk4 Select Multiple or Listbox field [closed]

I am developing a form using Agile toolkit (atk4), I am trying to do Listbox or multiple selection within Field, can you show me example of how i can do it as i couldn't find any control allow me to ...
Magic Test's user avatar
1 vote
1 answer
62 views

How to set up global database connection for "atk4\dsql" in Symfony5?

I would like to test the SQL Builder library atk4/dsql with Symfony 5 and am trying to set up the database connection. I tried following these instructions in the official docs. I do not have enough ...
Charles's user avatar
  • 189
1 vote
1 answer
52 views

ATK4 CRUD: Lookup reference table for data insertion

I have elements of certain types. I have bins of certain types. An element only belongs in the bin of the same type. One table in the DB contains the elements. Another table contains the bins. They ...
Marki's user avatar
  • 662
0 votes
3 answers
148 views

Adding addCondition() in a Form with fields from other tables

I don't know the syntax to access "CurrentTable.ForeignKey" nor "OtherTable.PrimaryKey" in a $model->addCondition() statement. This is a fragment of my code which works: $mm = new SYSPC_MODEL($...
Anciaux Frank's user avatar
1 vote
1 answer
36 views

How to fix Grid->addQuickSearch() + Field_Callback error?

It seems that Grid->addQuickSearch() method does not work will Field_Callback. I have the following model: class Country extends \AppAtk4\MyModel { public $title_field = 'calc_title'; ...
mvorisek's user avatar
  • 3,330
2 votes
1 answer
72 views

How to escape curly braces in Atk4 DQL

I have the following code in Atk4 model: $sql = 'REPLACE(\'[dnum]\', \'{DD}\', LPAD(DAY([issue_date]), 2, \'0\'))'; $f = $this->addExpression('calc_document_number', [$sql, 'type' => '...
mvorisek's user avatar
  • 3,330
0 votes
2 answers
88 views

Atk4 UI: callback/modal on table cell click

What is the best way to attach: a) PHP callback b) Open a modal to a table created like this: $table = $app->add(['Table', 'celled' => true]); $table->setModel($mod, false); $table->...
mvorisek's user avatar
  • 3,330
2 votes
1 answer
66 views

ATK4 Fatal Error atk4\core\Exception: Attempting to initialize twice

I am exploring the Atk4 UI. Below I am tried to use a View with several Table views (with array data), but the atk4 shows fatal error: Attempting to initialize twice. $mainDiv = new \atk4\ui\View(); $...
mvorisek's user avatar
  • 3,330
2 votes
1 answer
97 views

ATK4 autocomplete [closed]

I created an demo according https://github.com/atk4/money-lending-tutorial/blob/master/tutorial/en/step1.md , it works, but I can not manage to integrate the https://github.com/atk4/autocomplete addon....
mvorisek's user avatar
  • 3,330
2 votes
1 answer
111 views

Agile toolkit - how atk4_form.js is loaded?

I'm using agile toolkit version 4.2. I'm using a javascript function that creates a modal (popup) and the content is inserted via ajax call. The content was inserted via jquery's ".html()" function ...
Pascut's user avatar
  • 3,351
1 vote
1 answer
85 views

How do I get the HTML from agile toolkit virtual page

I'm using agile toolkit 4.3.2. I have a virtual page that contains a form. I created a button: $this->button = $this->addButton('') ->setAttr('title', 'Show Virtual Page'); And ...
Pascut's user avatar
  • 3,351
2 votes
1 answer
240 views

How do I render (get HTML of) a form object in Agile Toolkit?

I'm using PHP framework Agile Toolkit version 4.3.2 (latest at this moment). I'm on a page that extends the default Page class. Suppose I have a form object like: $form = $this->add('Form'); $...
Pascut's user avatar
  • 3,351
4 votes
3 answers
870 views

PHP Exception Arguments

I am working on a PHP library, which may be used in various environments by different PHP projects and I'm trying to be as minimalistic as possible. In some circumstances I have to throw exceptions, ...
romaninsh's user avatar
  • 10.6k
2 votes
1 answer
44 views

How to change atk4 PathFinder search paths priority or prepend a location from addon?

I want to make a jQuery-mobile addon for atk4 (version 4.3.1). In test case I want to conditionally override the template path by prepending a location to pathfinder's 'template' locations from my ...
gaabora's user avatar
  • 332
1 vote
1 answer
144 views

Agile Toolkit with custom CSS and HTML markup?

I would be interested in trying Agile Toolkit however I hate the CSS framework it uses and also the html markup.. is there any means to use a custom CSS framework like jeet and also to change the html ...
Hamburgersn Heroin's user avatar
1 vote
1 answer
270 views

Models data union PHP ATK

So I have only 1 model and 10 tables for example, I want to bring all the data from the tables into my 1 model, so I can use the Grid/Crud search/paginator etc. If I use setSource on the grid (and ...
Ryko's user avatar
  • 11
1 vote
1 answer
60 views

Does ATK4 have caching support?

I've gone through the documentation on ATK4, trying to find a reference point how to handle caching - partial or full page. Seems like there is no entry on the matter. Strange from a framework that ...
Máté's user avatar
  • 2,304
0 votes
1 answer
126 views

hasOne field not showing in add form from CRUD

I am trying to show a different fields from model in form and grid in CRUD. As I understood, when I use setModel() method for CRUD I need to set Model, second value should be array of fields from ...
marina's user avatar
  • 11
0 votes
1 answer
59 views

Agile toolkit 4.2.1, crud not working, add, edit or delete forms not showing

I am new to agile toolkit so i will need help to start crud example working. I created model Customer with fields name, email and password. After that I created page that looks like this: <?php ...
marina's user avatar
  • 11
1 vote
3 answers
191 views

How to setup up ATK4.3 on Windows 7 professional SP1

I have been trying to set up ATK4.3 on my Win7 machine. The following has been done: Install WAMP Download ATK4.3.0.de, Branch: 4.3, Build: 2014-12-16, ATK4 Revision: 4313 Unpack zip Copy ...
Padraig's user avatar
  • 11
1 vote
1 answer
100 views

Set focus on autocomplete field

I have a form that has some fields. One field is autocomplete . The field is filled with information from a table $f->addField('autocomplete','idfield','Field')->setValueList( $this->api->...
AJM.MARTINEZ's user avatar
1 vote
1 answer
88 views

ATK Upload Addon

I am attempting to add an uploading interface to my site that supports multiple-file selection and drag-and-drop uploading. The Filestore add-on has worked very well for me in the past, but I need ...
imaksikkar's user avatar
0 votes
0 answers
42 views

Form with setLayout and displayFieldError not working, workaround?

i have a code like this: $f = $this->add('Form', null, null, array('form/stacked')); $f->setModel('Application',false); $f->setLayout('form/create_brand_2'); $f_fbid = $f->...
Peter's user avatar
  • 728
0 votes
1 answer
88 views

Atk4 and popup from examples

im trying to get to work simple pop-up, form the examples, but none is working.. Using 4.3.0.dev. Tried from here: http://book.agiletoolkit.org/views/popover.html $i = $this->add('Icon')->set(...
Peter's user avatar
  • 728
0 votes
1 answer
92 views

Atk4 CSS and LESS compiler

im trying to play a little with default css of atk4 (4.3.0.dev) I found some instructions here: https://github.com/atk4/agiletoolkit-css#themes-and-examples I downloaded agiletoolkit-css, as i ...
Peter's user avatar
  • 728
1 vote
1 answer
119 views

ATK4: Handling many to many relationships in CRUD - Adding subCRUD without breaking Add New

I'm trying to gracefully handle extra many to many relationship data in an ATK4 CRUD object. I can manually add the current entry's linked tables as sub CRUD objects while isEditing(), but in doing so ...
Daniel Tosello's user avatar
1 vote
1 answer
100 views

Is ATK4 in some stable state?

currently I am looking for a new PHP framework, with which I can create some powerful business logic applications. I stumbled over ATK4. Since yesterday, I am trying to get a grip on this, but I must ...
Kai Neumann's user avatar
0 votes
1 answer
53 views

js() funcion and html characters

Im using $this->js(true, 'your js here');, but have a problem: If certain conditions are met, i redirect page to something else, with js function like this: top.location = "http://some-url.com?...
Peter's user avatar
  • 728
0 votes
1 answer
153 views

No records found ...Agiletoolkit and Oracle. Grid/CRUD elements

I am trying to test around Agile Toolkit with oracle, after seting up a model and trying to show a grid it says "No records found"... Let me tell you what I did, since i've been guessing most of all ...
Adrian's user avatar
  • 122
1 vote
1 answer
190 views

agile toolkit 4.3 installation error

I have downloaded the new version(4.3) but when I go to the http://localhost/agiletoolkit/ this error is shown: Parse error: syntax error, unexpected '[' in phar://D:/wamp/www/agiletoolkit/...
webelizer's user avatar
  • 418
1 vote
1 answer
69 views

'do_replace()' not working?

while trying ATK4 I've found a problem: $this->api->db->dsql()->table('person')->set('id', 1)->set('name', 'Test user')->do_replace(); This is not working. Then I looked a ...
ATL's user avatar
  • 25
0 votes
1 answer
112 views

Form autocomplete field - slow response

I have a form that has an autocomplete field like this $f = $this->add('Form'); $f->addField('autocomplete','item')->setValueList($this->api->db->dsql()->table('item')->field('nroitem,concat(nroitem,\...
AJM.MARTINEZ's user avatar
1 vote
1 answer
348 views

Agile Toolkit 4.3

Yesterday I downloaded the new Agile Toolkit 4.3 and found that the licensing and subscription model has been changed. Additionally a "developer sandbox" has been included which launches when the ...
Tim Blizard's user avatar
2 votes
1 answer
397 views

Installing Agile Toolkit

Could someone please explain to me, how do I get Agile Toolkit up and running ? I've cloned atk4 repository to my machine, moved it to my MAMP's webroot. When I access it from my browser http://...
user3717043's user avatar
1 vote
1 answer
110 views

CRUD how to set SetModel on Master/Detail

This is not a question, but a "detail" that I don't know how many of you know. Anyway I want to make it public due it take me a while to understand what problem it causes. I'm in the middle of a CRUD ...
Mack's user avatar
  • 11
0 votes
1 answer
44 views

Cannot iterate through model in ApiCLI

I am trying to make a simle CLI php script to automate some stuff in my APP. I need to get all items in my database and iterate through them using it's data. My script is as below include 'atk4/...
user3673820's user avatar
1 vote
1 answer
148 views

DropDown contents depending on multiple other DropDown values

I'm again. I've seen many threads which asking, how to create Dropdowns with content depending of a other Dropdown value. These logic works also for me. But now I have the problem, that the content of ...
ATL's user avatar
  • 25
0 votes
1 answer
212 views

Agiletoolkit-bundle 4.3 installation

i want to try new atk4 4.3 version. I know its still in development, but my hands itch ;) So i found this, and i thought this is good bundle to start with? https://github.com/atk4/agiletoolkit-bundle ...
Peter's user avatar
  • 728
0 votes
1 answer
120 views

ATK4 Autocomplete issue

I'm new to ATK4. I'm trying to implement an Autocomplete field, but I had only an error when I try to define the field. I'm running all on a MAC with the last version (4.2.4) of ATK4. All other ...
Mack's user avatar
  • 11
0 votes
1 answer
96 views

modifying shared.html in atk4

Just learning atk4. (4.2.4, I believe. Installed through curl -sS http://agiletoolkit.org/install | sh) How do I modify and load shared.html in atk4? I can only edit atk4/templates/shared/shared.html?...
T1000's user avatar
  • 928
0 votes
1 answer
119 views

Psd slice and creazing new design in atk4

What is the best way to create totally new design for my atk4 application. I have psd files, but i'm not sure if I convert psd to html grid system or some other, what are the best practices? Also, ...
Peter's user avatar
  • 728
0 votes
1 answer
194 views

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 ...
ATL's user avatar
  • 25
0 votes
1 answer
155 views

refSQL() cannot handle conditions based on expressions? (database query error "no such column")

This is a follow up from this question: Agile toolkit - access calculated fields (expressions) from dsql? . I'm not sure if this is a bug or if I'm just missing something. Here's my current code: ...
user3358561's user avatar
0 votes
1 answer
282 views

Agile toolkit - access calculated fields (expressions) from dsql?

I have a model with a calculated field: class Model_UsedItem extends Model_Table { public $table='usedItems'; function init() { parent::init(); $this->hasOne('Case', 'case_id', 'id'); ...
user3358561's user avatar
0 votes
1 answer
57 views

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','')->...
Jairo Ordaz Moreno's user avatar
0 votes
1 answer
73 views

Grid formatter for uploaded file

I'd like to create a link in my grid to download uploaded files. There is already several topics on it and the only solution that worked for me is: https://groups.google.com/forum/#!msg/agile-toolkit-...
Steff's user avatar
  • 41
0 votes
1 answer
114 views

SQLSTATE[HY093]: Invalid parameter number

This query has been a lot of trouble for me: /* Looking for a machine already attributed to a site: * - Date_started is in the given period * OR - Date_ended is in the giver ...
Steff's user avatar
  • 41

1
2 3 4 5
8