⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. Very soon this forum will be read-only and archived. ⚠


fdias

Member Since 31 Jan 2012
Offline Last Active Jul 21 2016 11:43 PM
-----

#13809 example doesn't work !

Posted fdias on 22 February 2016 - 06:10 PM

Put your base url. In this case http://localhost/backofficeFuego




#13802 Is this Forum/Product Dead?

Posted fdias on 22 February 2016 - 12:12 PM

Hi, I've been a GC user since 2012 and I noticed that lately a good number os threads are not even aswered.

I know the product is open source and free, but is it dead?

 

Do bugs get noticed?

 

I've seem several posts about problems with the only paid product (which I too purchased) the Bootstrap Theme, go unanswered, 

 

If Johnny sees this, please take a look at those issues, because I'm sure many others like myself would be willind to purchase other products from you, as long as we got some answers to our questions.

 

Mine in particular is about that I believe is a bug in the theme.

 




#2988 Kohana

Posted fdias on 13 August 2012 - 05:38 PM

I liked web-johnny's post comparing Laravel to CI. The main reason why I haven't tried Laravel yet is GC :) If and when GC supports Laravel then I'm going to test it for sure.

Cheers


#2792 How to use set_model function ?

Posted fdias on 20 July 2012 - 04:57 PM

Check this post as I believe will help you:

http://www.grocerycr...ample-included/

Cheers.


#2750 Incorrect table info showing up

Posted fdias on 17 July 2012 - 08:56 PM

I suggest you update to GC 1.2.3 and CI 2.1.2 and test. A lot has been fixed on both GC and CI...


#2736 Disable edit and delete actions for specific rows

Posted fdias on 16 July 2012 - 11:33 PM

If you are using flexigrid theme, find the ajax_refresh_and_loading functions on the file below and play with it. Try calling your function there.

assets\grocery_crud hemes\flexigrid\js\flexigrid.js

Cheers


#2714 Add entry in related field

Posted fdias on 15 July 2012 - 06:29 PM

I was checking out this for a project myself and I'm thinking about using fancybox jquery plugin.

Check out the iframe demo:

http://fancybox.net/

If you call the other crud on the iframe and refresh the parent frame (your current crud) on a onClosed event. I think it could work well.

Let me know how it works out for you. I'm thinking about not only using this but perhaps add it as a plugin for GC as I find it very usefull.

Cheers.


#2713 Add entry in related field

Posted fdias on 15 July 2012 - 06:23 PM

If you don't mind having another tab or a popup I would suggest using a link on the crud by using a callback function such as this:

On crud before render:

$crud->callback_add_field('somefield',array($this,'add_field_callback_1'));

Then the function:


function add_field_callback_1()
{
    return '<input type="text" maxlength="50" value="" name="somefield" style="width:462px"> - <a href="LINK_TO_ADD_AUTHOR CRUD" target="_blank">Add Author</a>';
}

Check the docs for the callback_add_field http://www.grocerycr...lback_add_field and callback_edit_field http://www.grocerycr...back_edit_field

You could have it so it opens on a pop up (using a window.open javascript function or a lightbox iframe style jquery plugin to make it fancy) and even set it to refresh the parent page once you close it, this way you will be able to see the newly added author on the relation list.

I hope I was clear :)

Cheers.


#2695 Uppercase, Lowercase or Capitalized text on input

Posted fdias on 13 July 2012 - 05:32 PM

I'm sharing here what I answered Anto on a support thread.

You can use this code when you wish the input is converted to uppercase, lowercase or capitalized letters.

TO UPPERCASE:

On the crud method you use before render:

$crud->callback_add_field('fieldname',array($this,'callback_to_upper'));


Callback function:

function callback_to_upper()
{
	return '<input type="text" name="fieldname" style="text-transform:uppercase;">';
}


TO LOWERCASE:

On the crud method you use before render:

$crud->callback_add_field('fieldname',array($this,'callback_to_lower'));


Callback function:

function callback_to_lower()
{
	return '<input type="text" name="fieldname" style="text-transform:lowercase;">';
}


TO CAPITALIZE:

On the crud method you use before render:

$crud->callback_add_field('fieldname',array($this,'callback_to_cap'));


Callback function:

function callback_to_cap()
{
	return '<input type="text" name="fieldname" style="text-transform:capitalize;">';
}


Hope you like it!

Cheers.


#2649 Fltring drop down list in add or edit function

Posted fdias on 11 July 2012 - 05:16 PM

You mean having a set_relation combo that will change according to the record's ID on edit?
On add that would be a simple where clause.


#2640 How to integrate color picker with add form?

Posted fdias on 11 July 2012 - 02:06 PM

You can include the js script on your view and use the callback_add_field function

http://www.grocerycr...lback_add_field

Let me know if you have any further questions.

Cheers.


#2524 Need to modify the add view

Posted fdias on 01 July 2012 - 04:45 PM

I'm afraid there's no easy way of doing this. web-johnny please correct me if I'm wrong, but I believe you would need to change the function
showAddForm()
of the grocery_crud.php library (around line 1456) and have a condition before you call
$this->_theme_view('add.php',$data);
in order to call your custom add views.


#2517 Codeigniter Version 2.1.2 is released today!

Posted fdias on 01 July 2012 - 01:19 AM

Nice catch, perhaps you should join the CI dev team at Ellis Lab ;)


#2300 Start grid with search/Filter box open

Posted fdias on 15 June 2012 - 01:32 AM

I replied this to another thread and I thought I would post it here as an extra code for a small feature in case someone else is interested.

If you wish to have the search/filter box open when you start the grid so the user won't have to click on the magnifier button, then all you need to do is have this code on the head section of your view:

<script type="text/javascript">
$(document).ready(function() {
  $('#quickSearchButton').trigger('click');
});
</script>

I hope this helps someone else.

Cheers.


#2298 Default state for search section

Posted fdias on 14 June 2012 - 08:39 PM

Use this code on the head area of your view:
<script type="text/javascript">
$(document).ready(function() {
  $('#quickSearchButton').trigger('click');
});
</script>

Cheers.