⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Can anyone help me to do this in CRUD? or any



Akiko Omal
  • profile picture
  • Member

Posted 08 July 2013 - 02:01 AM

1st i want to make a filled up form like this and having an ADD button in DRIVER NAME and HELPER NAME to show the list of EMPLOYEES. and etc.

 

then after that. i want to select the 1st employee that available.

then after i select it. it would be on the filled up form.

then the list of employees will sort after i select the 1st employees,

then the selected employee the status will change to ON DELIVERY or ON SCHEDULED

then after the delivery.

it would save the last date and time of delivery.

 

please someone help me to do this.

 


Amit Shah
  • profile picture
  • Member

Posted 08 July 2013 - 19:01 PM

Well.. to be frank, this is workable but quite some customizations needs to go in the same. And what is the purpose of you taking this in grocery crud is first question. Cuz grocery crud is usually an application library preferably useful for building applications like the admin / backend sections. That is where you have major crud operations. This looks more like an independent application in itself..and to achieve the same in grocery crud is possible but with quite an amount of alterations. 

 

If you wish to take the effort, i can guide you on the same..

1 - Wherever you need to have add button, you can give a callback column for each field and generate the necessary textbox with button in it. Now the text fields are the ones where you will be storing / displaying titles (descriptive data) but at the backend you will naturally like to store in id. So you can also pass on hidden field code for the same. (Mind it, you need to follow the norms of grocery crud for the field naming convention)

2 - You can define and add your custom JS and bind the functions to the buttons dynamically. On click of each you can have a lightbox popup as required which will avail you the list as required. On click of the list, you can make the ajax call to update the status of the driver .. and also set the name / id value in the add / edit form through javascript.

 

If required, you can callback insert to manage the insert yourway .. if required. This is the way you surely can achieve your desired solution.


davidoster
  • profile picture
  • Member

Posted 09 July 2013 - 09:03 AM

Hello [member=akimo omal] and welcome to the forums.

My short answer is: the Grocery CRUD library will not help you if you need this workflow.

For this to be honest nearly nothing out there will help you to build it.

 

It is one of this times that you build the system yourself.

This is actually the reason that we are called developers.

If you don't know how to build it hire an expert.

 

If you don't know one I can point you to a couple of people.