⚠ 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 forum is read-only and soon will be archived. ⚠


GaryW

Member Since 15 Aug 2019
Offline Last Active Private
-----

Topics I've Started

Increase size of Add Modal

02 October 2019 - 01:22 PM

Hi.

 

I have an Add Modal that only has one Relationship drop down in it, however the drop down menu is longer than the pop up window size.  An outer scroll bar appears, but its not very pretty to see the drop down menu chopping off because the Modals height is not high enough.

 

In inspector I can manually over ride the min-height:250px to min-height: 500px and it looks beautiful, however I cant find what governs that code to have it change in the real code.
 

<div class="modal-body gc-modal-body" style="min-height: 250px; max-height: 953px;"><div> 

Any help appreciated


Show related data

13 September 2019 - 04:57 PM

Hi, I am having major brain fade. This is a one to many relationship.  I have an order that contains many items.  Each item is a one off unique item.

 

I have a table that has order data, 

orderid

totalcost

date

item (show me all items in this order)

 

I have a table that has Items

itemid

itemname

orderid (which orderid this item is on)

 

Can anyone help?

 


callbackColumn URL help

16 August 2019 - 12:55 AM

Thank you for reading, I hope you can help, my goal is to change a column to a url.

 

I have two tables, batch and fginventory, I have a filename in the coafile column eg coa1234.pdf inside the batch table.

 

batch:

batch_id

name

coafile

 

fginventory

name

coafile_fk

 

fginventory has a relationship : 

 

$crud->setTable('fginventory');

$crud->setRelation('coafile_fk','batch','coafile');

$crud->callbackColumn('coafile_fk', function($value, $row) {
return "<a href='http://urlsite/". $row->coafile_fk ."' target='blank'>$value</a>";
});

 

I am getting the index key back, not the file file name.

 

To add, if i remove the callbackColumn the filename displays but without a URL link