how do I custom search button with the button for example I made a button above the list page. expired button post date and get the expired.server event field what to use…
the example is:
at the top of the list I make an expired button that takes datenow (). after clicking the expired button the list automatically displays the filter in the expired field with where = “datenow ()”.
I have made it native and can only I want to know whether it can be more easily applied in php maker.
thanks.
oke im create on frame work this code view.
Open
Approve
Reject
Close
{{--
--}}
@foreach ($request as $item)
\
\
@endforeach
| No |
Action |
Status |
NO REQ |
Pelapor |
No SPK |
Cabang |
Penyebab |
Permintaan |
Akibat |
| {{$loop->iteration}} |
@if($item->status == 'approved')
@elseif($item->proseshelp == Auth::user()->name && $item->status == 'proses helpdesk')
@elseif($item->status != 'open')
@endif
|
{{$item->status ." (". $item->updated_at.")"}} |
{{$item->no_req}} |
{{$item->pelapor}} |
{{$item->spk}} |
{{$item->cabang->nama_cabang}} |
{{$item->penyebab == null ? $item->dll_penyebab : $item->rel_penyebab->penyebab}} |
{{$item->permintaan}} |
{{$item->akibat == null ? $item->dll_akibat : $item->rel_akibat->akibat}} |
{{--
Launch demo modal
--}}
Detail Request Note
×
\
\
| Nomor Request |
: |
- |
| Pelapor |
: |
- |
| Permintaan |
: |
- |
| Status |
: |
- |
| MetodeSolved |
: |
- |
| Approval |
: |
- |
| Tgl Approve |
: |
- |
| Solved |
: |
- |
| Tgl Solved |
: |
- |
| Tgl Close |
: |
- |
| Lampiran |
: |
- |
here the key is only to play route
ex.
Open
and create function:
public function open(){
$cabang = Auth::user()->cabang_id;
$request = RequestModel::where([ ‘status’ => ‘open’])->get();
return view(‘helpdesk/index’,compact(‘request’));
}
this on code frame work and work well.
I want to apply at least the business logic like this. is it possible? and where should i write the code? thanks
You may use “Page_DataRendering” server event to display the button above the table in List Page, and you may customize the code for that button to link to List Page that displaying the search result from another Advanced Search (that generated by PHPMaker) based on your criteria.
oke thanks…
is there an example in php maker to make a custom search like this … I still don’t know the parameters for which search variable to put it in and where to write the code. thank you for your help
It seems there are no example available regarding this. However, you may create it by youself based on the related available server events.