select record box

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
jeannov
Posts: 11
Joined: 2015-04-01 17:14
Location: Trois-Rivieres,QC Canada

select record box

Post by jeannov » 2015-05-13 14:07

Is it possible to remove the select record boxes at the left of each record in the table view ?

Thanks.
Jean

Satya Kavala
Veteran Member
Posts: 45
Joined: 2015-04-15 06:33
Location: Hyderabad
Contact:

Re: select record box

Post by Satya Kavala » 2015-05-14 11:40

Hi jeannov ,

yes it is possible, but you have to make small changes

see the files i attached.
open the required file_dml.php there you can find the code like below.


// process foreign key links
if($selected_id){
$templateCode=str_replace('<%%PLINK(CRnumber)%%>', ($combo_CRnumber->SelectedData ? "<span id=\"Pateint_Registration_plink1\" class=\"hidden\"><a class=\"btn btn-default\" href=\"Pateint_Registration_view.php?SelectedID=" . urlencode($combo_CRnumber->SelectedData) . "\"><i class=\"glyphicon glyphicon-search\"></i></a></span>" : ''), $templateCode);
$templateCode=str_replace('<%%PLINK(Department)%%>', ($combo_Department->SelectedData ? "<span id=\"Departments_plink2\" class=\"hidden\"><a class=\"btn btn-default\" href=\"Departments_view.php?SelectedID=" . urlencode($combo_Department->SelectedData) . "\"><i class=\"glyphicon glyphicon-search\"></i></a></span>" : ''), $templateCode);
$templateCode=str_replace('<%%PLINK(Referred_To)%%>', ($combo_Referred_To->SelectedData ? "<span id=\"Departments_plink3\" class=\"hidden\"><a class=\"btn btn-default\" href=\"Departments_view.php?SelectedID=" . urlencode($combo_Referred_To->SelectedData) . "\"><i class=\"glyphicon glyphicon-search\"></i></a></span>" : ''), $templateCode);
}

in the above code we can see three arguments depending upon the comma separator, So remove the second argument and place single codes(' ') in the plae of second argument like below.





// process foreign key links
if($selected_id){
$templateCode=str_replace('<%%PLINK(CRnumber)%%>','', $templateCode);
$templateCode=str_replace('<%%PLINK(Department)%%>','', $templateCode);
$templateCode=str_replace('<%%PLINK(Referred_To)%%>','', $templateCode);
}





if you have any doubts on this please PM me.

I'm happy to help you.
Attachments
search2.PNG
search2.PNG (50.9 KiB) Viewed 6547 times
search.PNG
search.PNG (47.96 KiB) Viewed 6547 times
Thanks&Regards
Satya Kavala
[email protected]

Satya Kavala
Veteran Member
Posts: 45
Joined: 2015-04-15 06:33
Location: Hyderabad
Contact:

Re: select record box

Post by Satya Kavala » 2015-05-14 11:51

Hi,
Sorry for the above reply

go to datalist.php


if(!$Print_x) $this->HTML .= '<th style="width: 18px;" class="text-center"><input class="hidden-print" type="checkbox" title="' . htmlspecialchars($Translation['Select all records']) . '" id="select_all_records"></th>';


$this->HTML .= "<td class=\"text-center\"><input class=\"hidden-print record_selector\" type=\"checkbox\" id=\"record_selector_{$attr_id}\" name=\"record_selector[]\" value=\"{$attr_id}\"{$checked}></td>";



search for the above two lines and just comment those two lines with (double slash) //

these lines may be at the line numbers of 865 and 1030 approximately in datalist.php


if you have any doubts on this please PM me.

I'm happy to help you.
Attachments
select2.PNG
select2.PNG (58.49 KiB) Viewed 6547 times
select.PNG
select.PNG (57.29 KiB) Viewed 6547 times
Thanks&Regards
Satya Kavala
[email protected]

Satya Kavala
Veteran Member
Posts: 45
Joined: 2015-04-15 06:33
Location: Hyderabad
Contact:

Re: select record box

Post by Satya Kavala » 2015-05-14 12:13

Hi,

If your issue is solved then please place me on code helper.
Thanks&Regards
Satya Kavala
[email protected]

jeannov
Posts: 11
Joined: 2015-04-01 17:14
Location: Trois-Rivieres,QC Canada

Re: select record box

Post by jeannov » 2015-05-15 00:56

Thanks Satya,

it is working very well, no more little select record boxes, looks cleaner.

Code helper topic is to pay tribute to Uday !
Should we start Satya code helper topic ?

Jean

Satya Kavala
Veteran Member
Posts: 45
Joined: 2015-04-15 06:33
Location: Hyderabad
Contact:

Re: select record box

Post by Satya Kavala » 2015-05-15 05:09

Hi,
if you satisfied by my solution then start code helper topic.
Thanks&Regards
Satya Kavala
[email protected]

Satya Kavala
Veteran Member
Posts: 45
Joined: 2015-04-15 06:33
Location: Hyderabad
Contact:

Re: select record box

Post by Satya Kavala » 2015-05-19 09:01

Hello,
Please Refer to your friends for working on tasks which are payable for coding to solve the issues
Thanks&Regards
Satya Kavala
[email protected]

Post Reply