Editable grid view turn off lines for editing..

Ok, Here goes nothing…
I have a requirement that users add lines to an master detail form.
The detail is an editable grid view.
There is a field that is on the grid line and if it is filled in the that line needs to be locked. (non editable)
I have tried OnLoad and Onloadrecord but neither give the desired result.
If one record that the field filled in the all records cant be edited.

Has to be a way…

Come on guys throw a bone to the old dog.

Kev

to hide use CSS to hide onload then AJAX onchange to show the fields again

what code you already tried to use?

To hide field(s):

onscriptinit

[val]=0;

onRecord

[val]+=1;
echo'
<style>
    #id_ajax_img_logo_'.[val].'{display:none;}
</style>';

to show: do the opposite in ajax OnChange event:
display:block;

lost me completely…
put your code on the detail on the script init and the on record
no change…

picture worth…

any rows that have prism entered should not be editable… all other should…

[ATTACH=JSON]{“data-align”:“none”,“data-size”:“large”,“data-attachmentid”:88283}[/ATTACH]

Capture.JPG

What I am trying to accomplish in easy terms…
If the Entered In Prism has any value in it I need to hide the Pencil and the trash can.

Kev

search for ‘pencil’ in forum or look at https://forum.scriptcase.net/forum/scriptcase-8/discussion-aa/71652-edit-from-grid-clicking-on-row