Laravel phpgrid_outpout and lookup-grid

QuestionsLaravel phpgrid_outpout and lookup-grid
Philippe D. asked 2 years ago

Hello

in my controller i declare a grid and i return a view with return view(‘personnes.index’, array(‘phpgrid_output’ => $out_master));

in my view i make {!! $phpgrid_output !!} but how do i make a {!! $phpgrid_output_MASTER!!} and the {!! $phpgrid_output_DETAIL !!} for the lookup-detail ?

thanks in advance,

Philippe

https://gist.github.com/philippedemaret33/0fb80ac6285ddadc628bc32f11c137f2

2 Answers
Philippe D. answered 2 years ago

Ok,

pick sources from lookup-grid.php demo

in the Controller

$opt[“edit_options”][“afterShowForm”] = ‘function (form) {

function initLookupGrid(baseGridId, baseField, detailGridId, detailField)
{

replace list1 and list2 with listMaster and listDetail

return view(‘MyView.index’, array(‘phpgrid_output_Master’ => $out_master, ‘phpgrid_output_Details’ => $out_detail));

 

In the view

<div class=”title m-b-md”> <div class=”quote”>{!! $phpgrid_output_Master !!}</div>
<div id=”lookup_listDetails” style=”display:none; width:70vw”>{!! $phpgrid_output_Uds !!}</div>

and it’s work !

 

Philippe D. answered 2 years ago

hoops

{!! $phpgrid_output_Details!!}

Your Answer

17 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?