Search found 55 matches

Go to advanced search

by jamesarthur
Thu Apr 03, 2014 12:22 pm
Forum: Development Chats
Topic: Fail installing module
Replies: 1
Views: 1111

Fail installing module

Hi I have a module and I want to be able to fail at the install stage if a config option hasn't been set by the user. I've done some hunting round, and there is a problem, because even if the install method in GO_Base_Module fails, the module db record has already been entered, so when the system tr...
by jamesarthur
Mon Mar 24, 2014 5:17 pm
Forum: Contributed development
Topic: ((Very) very) small template function
Replies: 0
Views: 2311

((Very) very) small template function

I made a little template function :). It does simple text replacement of {foo} with bar if $params contains 'foo' => 'bar'.     /**      * Simple quick and dirty templating system, required new-ish php (for closure)      *       * @param String $template The template with tags like {this}      * @pa...
by jamesarthur
Sun Mar 23, 2014 1:37 pm
Forum: Development Chats
Topic: JSON Request payload
Replies: 1
Views: 1179

JSON Request payload

Would you consider adding something like

Code: Select all

if ($_SERVER["CONTENT_TYPE"] === 'application/json') {
  $params = array_merge($params, json_decode(file_get_contents('php://input'), true));
}
 
in the AbstractController - so that we could use json in requests as well as responses?
by jamesarthur
Fri Mar 07, 2014 2:19 pm
Forum: Development Chats
Topic: Accessing columns with custom SQL
Replies: 3
Views: 1398

Re: Accessing columns with custom SQL

What if there can't be a relation representing the data? For example the above is a 1-1 relation, but it doesn't have id's in each table.
by jamesarthur
Thu Mar 06, 2014 2:45 pm
Forum: Development Chats
Topic: Accessing columns with custom SQL
Replies: 3
Views: 1398

Accessing columns with custom SQL

Hi I have a query which joins another table and then filters it down so there is a 1-1 relationship. An example: I have something like SELECT t.id, t.something as something ... other.id as other@id other.something as other@something ... FROM table t INNER JOIN other ON other.table_id = table.id WHER...
by jamesarthur
Fri Feb 28, 2014 9:52 am
Forum: Development Chats
Topic: Tab become not activated
Replies: 8
Views: 2413

Re: Tab become not activated

Getting the initial setup working can be tricky - all names etc must be exactly correct for it to work.

I made a module generator here: https://github.com/derekdreery/goadmin. Maybe use this as a starting point rather than an empty module?
by jamesarthur
Sat Feb 22, 2014 3:29 pm
Forum: Development Chats
Topic: HtmlComponent
Replies: 0
Views: 1413

HtmlComponent

HI I implemented some extra functionality on the htmlcomponent. I post the changes below in the hope they will be useful to you guys. GO.form.HtmlComponent = Ext.extend(Ext.BoxComponent, { constructor : function(config) { GO.form.HtmlComponent.superclass.constructor.call(this, config); this.origHtml...
by jamesarthur
Fri Feb 21, 2014 5:11 pm
Forum: Development Chats
Topic: [BUG] [FIXED] Installing of 5.1 branch
Replies: 1
Views: 1008

[BUG] [FIXED] Installing of 5.1 branch

Hi

When I installed off the 5.1 branch, I couldn't add a company because I got an database error about photos not being set. Going into phpmyadmin and changing the photo field on ab_companies to allow NULL solved the problem. Not sure if this is a bug or something else.
by jamesarthur
Fri Feb 21, 2014 5:09 pm
Forum: Development Chats
Topic: namesapces
Replies: 2
Views: 1167

Re: namesapces

I'm still looking forward to it. :D
by jamesarthur
Thu Feb 20, 2014 9:38 am
Forum: Development Chats
Topic: namesapces
Replies: 2
Views: 1167

namesapces

Hi

I've just downloaded the trunk and noticed you're now using php namespaces rather than underscore. Will this be in 5.2? When will this change happen? (I'll need to rewrite all my custom modules)
by jamesarthur
Thu Feb 20, 2014 9:31 am
Forum: Development Chats
Topic: Tab become not activated
Replies: 8
Views: 2413

Re: Tab become not activated

There is a groupoffice module for tickets in the professional modules. Maybe there is a conflict there? Otherwise I'm not sure why it isn't working.
by jamesarthur
Thu Feb 20, 2014 9:30 am
Forum: Development Chats
Topic: Tab become not activated
Replies: 8
Views: 2413

Re: Tab become not activated

Hint: if you use

Code: Select all

 it will hilight php for you
by jamesarthur
Wed Feb 19, 2014 9:24 pm
Forum: Development Chats
Topic: Tab become not activated
Replies: 8
Views: 2413

Re: Tab become not activated

Is it possible to post the code for your MainPanel.js?
by jamesarthur
Fri Feb 14, 2014 3:28 pm
Forum: Development Chats
Topic: Custom SQL and formatColumns
Replies: 1
Views: 975

Re: Custom SQL and formatColumns

NOTE: I'm planning for now to use a view to get round the problem.
by jamesarthur
Fri Feb 14, 2014 2:38 pm
Forum: Development Chats
Topic: Custom SQL and formatColumns
Replies: 1
Views: 975

Custom SQL and formatColumns

If I was to add a custom join to a `FindParams`, how do I subclass the `AbstractModelController` to return those fields I've selected in a store? I cannot use joinRelation because I use some unusual criteria, meaning I have a 1-to-1 relationship without keys in each table. I think the problem comes ...

cron