Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Edit task-in-grid issue

[FIXED] Edit task-in-grid issue 07 Jan 2012 04:56 #905

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
If I add an edit task as the first column of my "plant find eng" layout, then viewing in the sandbox, all the fields in the grid (apart from the select checkbox) have disappeared. If I remove the edit task from the grid, its ok again. If I put the edit task at the end, then the fields are there, but no edit task. I have been trying to find the exact sequence of actions that makes it happen, because on one occasion it did actally work. but after many attempts have not managed. I also have an almost identical collection view "plant find de", and this one works fine. I have even tried recreating the view but the problem is still there.

The next problem is that in all the collections on my plants table, I put the publish and unpublish tasks in the toolbar, and in the sandbox, they show as empty buttons. Again, a strange thing is that the Edit task in the toolbar also becomes an empty button. I do have other collections on other tables though with all the toolbar buttons, including the edit, and publish/unpublish buttons.

the third, is that if I have an image thumbnail on a collection, where the image is coming from a foreign table, then the option for modal preview has gone.

none of these are major problems as I now think that I have all the elements I need working in various places and hopefully will be able to combine them in the code. So, I have left them as they are.


update
The publish and unpublish button problem has now gone, seems it didn't like the edit task being in both the grid and the toolbar. So that one is working ok now.

The plantfind eng problem still persists though. In the plant find eng layout, the fields have all disappeared as described above.

I then created a new one and called it "plant find c" in this one, no matter what I do, I cannot get an edit task to appear either in the grid or in the toolbar. Strange as there is a nearly identical layout called "plant find de" where it all works just fine.

thanks
Last Edit: 10 Jan 2012 09:12 by admin.
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 15:59 #930

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Well, I tried to reproduce your bug and I cannot.


I cloned your project in debug plateform.

I tried to add Edit in grid button. It works in FRONT and in BACK
I tried to add Publish and Unpublish tasks in toolbar and it works (Tried in 'Plants' BACK layout)


This issue seems to be difficult to reach, but I would be unfinitely gratefull if you could describe better the problem, and in wich situation it appears (seems that there is a conflict with something, but what ??).

When you created this issue again, please tell me, and I will clone your project to lock the bug.

Many many thanks.

IF OTHERS USERS GOT IT, thanks to post here.


For Foreign Modal, I check right now. Stay in touch.
Coding is now a piece of cake
Last Edit: 10 Jan 2012 16:18 by admin.
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 16:14 #931

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
About links on Foreign Keys :

The builder interface is limited with options in that case. I will modify this to open widely the functionality that can easily be handled.

In your case, just add the parameter 'preview' => 'modal' in the JDom Call :
<?php echo JDom::_('html.fly.file', array(
					'dataKey' => '_light_key_icon_picture',
					'dataObject' => $row,
					'width' => 'auto',
					'height' => 'auto',
					'attrs' => array('format:png'),
					'indirect' => true,
					'root' => '[DIR_ICONB_ICON_PICTURE]',


					'preview' => 'modal'        // <--   HERE
					));
?>


Easy, no ?

+1 for JDom !!!!
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 16:59 #932

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
I also had today several similar problems when just testing the new image and file upload feature:

1. Disappearing 'edit' task in the administration.
2. I could upload a file or image in the sandbox. That was OK.
3. There was an install error saying there was an error with the administration menu. No administration menu was installed.
4. There was the same error when deinstalling the component.The menu entry in the database was not cleared!
5. Although the component was installed (without administration menu), trying to upload files or images in the frontend did not work. The 'Save' button did nothing.
6. No problem regenerating the old projects and installing them.
Last Edit: 10 Jan 2012 17:00 by giori.
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 17:37 #933

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
thanks for the plus.

I did try last night to solve the prblem again, I renamed a couple of the collections and one thing was that I noticed that after I had renamed one, I noticed that a couple of the auto generated alais names had not changed to the same as the view. I can't think that this can make a difference though, but I changed them to what they logically should be anyway. I then tried to test in the sandbox, but my build wouldn't complete, I left it for 30 minutes but just kept whirring away on the last step.

I'll have a look tomorrow though with a fresh pair of eyes.

Having lots of fun now in Joomla now that have the images to play with.

also have lots of search boxes working, I came up with a lazy way to do it. I created a dummy enumerator field on the table I wanted the search box on, then added that as a filter to the list I wanted the search box on, then just did a search and replace in both front end and back end components on every mention of that dummy enumerator to the field I wanted to search on. (ran the search and replace case sensitive, first all lowercase and then second time all uppercase). I then changed the input type from select to text and the query test from "=" to "LIKE". And it all works.

Can you think of any big problem with this method. (the first time I did it manually and traced everything through, I learnt a lot but it took quite a while, with the search and replace takes about 2 minutes).

thanks again for the images functions. I think there is still a problem with having multiple image pickers on one page, if I get time tomorrow I'll have a look and see if I can work out why.
Last Edit: 11 Jan 2012 05:21 by mossss.
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 17:44 #934

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
great thanks
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 17:59 #935

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
couldn't resist a last test, and yes, all pages now showing correctly.

I did though add a delete task to the toolbar of my plant list thai frontend collection though. I already have delete task in the grid. and you can see that the edit button shows blank on the toolbar.

Should we be able to duplicate tasks in both toobar and grid?
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 19:41 #936

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Well,

I just come back.


I see a big mess here...
All these problems are strange and serious too.


For having 2 image pickers. this is solved in localhost. I will make an upload soon.

for the rest, I don't understand anything.
Yes, It is possible to have both tasks in toolbar and in grid. No problem.


Can I ask you to send me your projects though email (support A T j-cook .pro), with the concerned layouts and detailled problems, I will give a debug. Send me as many times as you want.

Why I ask you this ? It is because I cannot debug your project when you are using them. I mean, I can clone them and work in parrallel, but I don't know exactly when and wich problem you have.

Yes, it is a big mess.

I will be very gratefull and recognize your efforts.

Thanks.

Jocelyn
Coding is now a piece of cake
Last Edit: 10 Jan 2012 19:51 by admin.
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 19:50 #937

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Can I ask you to try in 1.5 sandbox, and in localhost ?
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 21:53 #938

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I did try last night to solve the prblem again, I renamed a couple of the collections and one thing was that I noticed that after I had renamed one, I noticed that a couple of the auto generated alais names had not changed to the same as the view. I can't think that this can make a difference though, but I changed them to what they logically should be anyway.

Not a problem, in the builder, the aliases can be what you want. Only entry-point for colection layout MUST be 'default' in joomla. The builder does it for you. Once the alias defined, it doesn't change automatically when you change the title. It is normal. You can change the alias when you whant if it respect the unique rule.
The only problem can be if you delete a layout that is an entry point and you don't define a new entry point. So your component view doesn't have an entry point. You get a blank layout.

Well the problem shouldn't come from that point.
I then tried to test in the sandbox, but my build wouldn't complete, I left it for 30 minutes but just kept whirring away on the last step.

The sandbox was not flushed since a week, and was little bit overloaded. Try it now, it should pass the last step easily. I change server next month, it will go faster for all processes.
Coding is now a piece of cake
Last Edit: 10 Jan 2012 21:54 by admin.
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 22:19 #939

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
Here my results:
I dropped all toolbars and recreated them in the project, regenerated and tested in the sandbox, both for version 1.5 and 1.7.

1. Everything seems to work very well in the sandbox. The disapearring edit icon is ther as usual.

2. Installed both 1.5 and 1.7. Installation now works without errors.
2a. On both versions I cannot upload .pdf and .doc files although it says that they are valid mime-types, neither in frontend nor in backend. Image files (.jpg) are uploaded, although I do not see where they go on localhost. Seems that only a link to original image is being created. I can upload .doc/.pdf files in the sandbox!
2b. "New" and "edit" work well in backend with the afore mentioned failure to upload .doc/.pdf files.
2c. In frontend of 1.7 the "save" button is displayed, but does not work, so it is impossible to edit or save the form.
2d. In frontend of 1.5 there is no toolbar in the grid and the form has only the "cancel" button, but no "save" button, so here also it is not possible to save in the frontend.

So there is improvement, but not yet everything error free. So I will mail the packages for further testing.
Last Edit: 10 Jan 2012 22:22 by giori.
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 22:27 #940

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Well, wait.. some of them are problem of use :

2a : Did you specified .doc and .pdf types in the properties of the table field ? (You must define wich types you allow)
2b : idem
2d : Quite sure it is because you are not logged in FRONT-END ! (As a user who can CREATE)


So...

2c :
Do you get an error message ?
Does your compoent contains the following classes ?
  • classes/file.php
  • classes/images.php
  • classes/upload.php
Coding is now a piece of cake
Last Edit: 10 Jan 2012 22:29 by admin.
The administrator has disabled public write access.

Re: Edit task-in-grid issue 10 Jan 2012 22:46 #941

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
2a. Yes in the table defintion I clicked / selected both the msword and the pdf mime type for file upload. I get the following error:

Mime type not valid (application/force-download), allowed Mimes are application/msword - text/html - image/jp2 - image/jpeg - application/pdf - image/png - image/psd - text/rtf - application/x-gzip - image/tiff - text/plain - image/xbm - application/x-zip :
There were some upload errors

2d. Yes, you are right about that. Forgot to set it to "Special".

2c. No error messag here. I see the 3 classes.
Last Edit: 10 Jan 2012 23:54 by giori.
The administrator has disabled public write access.

Re: Edit task-in-grid issue 11 Jan 2012 20:41 #943

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Task in grid Solved.


For the Mime check problem, please post in a new topic.

To my opinion it is about your apache version or something like that.
Let's see it in next topic.

Thank you very much mosss for your help.
Karma +2
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.091 seconds

Get Started