I think I have the ext figured out but I'm not familiar with PHP
Can you give me an idea on how the commands get called in the php code? I'm not familiar with php at all. I'm trying to do this in java and looking at what you are doing in the php is a little hard with my level of syntax knowledge.
I see that you create a variable $osql which is instantiating the csql but what does this do?
I would assume that it some how knows which method below to call but unsure of how?
Never mind I found a friend with PHP knowledge.
Last edited by macdoug1; 8 Jan 2010 at 12:40 PM.
The download package contains everything necessary to run the example. Of course, your server needs to have PHP 5.2+ with PDO and sqlite support installed. Also, webserver must have a write privilege to db.sqlite.
First of all, I love working with your gridForm plugin, it takes away a lot of the "pain" so thank you for sharing this!! I have it all working great with PHP/MySQL now! Having got this far, I am really hoping, to wrap this all up, I can somehow define my own form and layout and still use your plugin. Obviously this is possible and I know at this point your plugin doesn't support this but would you be prepared to help me get this to work?
I thought that if I passed a pre-configured form to class Ext.ux.grid.RecordForm, I could somehow make this work but unfortunately, at this point, my EXTJS knowledge is dangerous and I just end up breaking everything and having to start from the beginning each time.
Hope you have some time to get me going on this change.
If you want a custom layout of the form, the best solution is to take the logic of the original RecordForm and build upon it. The original tries to be as universal as possible making no assumptions on placement/layout of the fields. You need to add this part if you want it otherwise.
Sure that makes sense and I understand that I would have to build onto your existing Logic, I guess I'm still pretty clueless about how to go about that. Could you suggest a good way of going about it? From what I can gather, there is a function in Ext.ux.grid.RecordForm that iterates through the grid columns and builds a simpleForm with those fields. I'm guessing this is where the changes will apply most? If this is the case, would it be as simple as parsing some values to that function?
Sorry to sound so helpless but I'm learning as I go here..