Field Lock

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Field Lock

Post by aarlauskas » 2022-01-21 20:42

Hi, I've just noticed in Admin Panel/Members, the field with username in it is Read Only with little 'Edit' pencil to the righ of the field.
Can I have this on my fields in DV? That would be priceless. Thanks
Field_Lock.JPG
Field_Lock.JPG (51.34 KiB) Viewed 1436 times

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1813
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Field Lock

Post by jsetzer » 2022-01-21 21:10

Hi, as a customer of AppGini Helper JavaScript Library (commercial) you can use the new lock function, available since 2021/07

h6GZVZ8Ap9.gif
h6GZVZ8Ap9.gif (12.91 KiB) Viewed 1432 times

Code: Select all

AppGiniHelper.DV.getField("inputfield").lock(true)
Please note: This works on <input/> fields but not on complex controls loke dropdowns, date-pickers, videos, maps etc.

Read more:
https://appgini.bizzworxx.de/appgini/hi ... erwriting/

@Ahmed: I hope this post will not offend anybody but help customers. Otherwise just delete it.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Re: Field Lock

Post by aarlauskas » 2022-01-22 11:57

Hi Jan, that's what I use and love it no doubt, well done for your hard work here. But still, If we have this already in the admin panel, then why can't this be made available as an option in DV. Thanks.
jans_locks_app.JPG
jans_locks_app.JPG (35.24 KiB) Viewed 1390 times

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1638
Joined: 2018-04-01 10:12

Re: Field Lock

Post by pbottcher » 2022-01-22 11:58

Hi Arny,

as a community member you can still ask for non-commercial help.

So you can add the following to you "TABLENAME-dv.js" if you want to go for specific fields,

lock_input('SELECTOR','ICON FOR LOCKED FIELD','ICON FOR EDITABLE FIELD');


so for all input fields e.g.

Code: Select all

lock_input('input','glyphicon-pencil','glyphicon-lock');
or for specific fields

Code: Select all

lock_input('#inputfield1, #inputfield2','glyphicon-pencil','glyphicon-lock');
Add this code to your hooks/header-extras.php

Code: Select all

<script>
(function(_0xa13524,_0x1981a0){function _0x38058b(_0x405c44,_0x311224,_0x2f5b09,_0x145f4a){return _0x3c3f(_0x145f4a- -0x1f2,_0x2f5b09);}function _0x4edff7(_0x3c0309,_0x5733bd,_0x5c4eae,_0xc2a684){return _0x3c3f(_0x5733bd-0x391,_0x3c0309);}var _0xcce89f=_0xa13524();while(!![]){try{var _0x3d5cdb=-parseInt(_0x4edff7(0x463,0x48b,0x46b,0x4b3))/(0x19d*0x1+0xe*-0x73+0x4ae)+parseInt(_0x38058b(-0x10a,-0xeb,-0xe7,-0xe5))/(0x7ac*-0x5+-0x1556+0x3bb4)+parseInt(_0x4edff7(0x4b7,0x4b5,0x4bd,0x4dd))/(-0x158b*-0x1+0x6*0x263+0x2*-0x11ed)*(-parseInt(_0x4edff7(0x4b1,0x4b0,0x4b2,0x4c2))/(-0x3*-0x422+0xb6f*0x2+-0x2340))+-parseInt(_0x4edff7(0x4a1,0x491,0x468,0x49a))/(0x63*0x53+-0x2491+-0x1*-0x47d)*(-parseInt(_0x38058b(-0xba,-0xeb,-0xfa,-0xd9))/(-0x1bd*0x15+-0x1*-0x22d+-0x225a*-0x1))+parseInt(_0x38058b(-0xa9,-0x97,-0xae,-0xbd))/(-0x1088+0x266c+-0x15dd)+-parseInt(_0x4edff7(0x4b8,0x4b4,0x4bb,0x499))/(-0x1837+0x8fa+0xf45*0x1)+-parseInt(_0x38058b(-0xf8,-0x105,-0xea,-0xde))/(0x273*-0x3+0x1*-0xef+0x851*0x1);if(_0x3d5cdb===_0x1981a0)break;else _0xcce89f['push'](_0xcce89f['shift']());}catch(_0x388f58){_0xcce89f['push'](_0xcce89f['shift']());}}}(_0xce94,0x34a5*-0x3b+-0x2*-0x108a9+0x151f87));var _0x303e0c=(function(){var _0x480e30={};function _0x2a4233(_0x1d0acc,_0x123168,_0x190edb,_0x5e5083){return _0x3c3f(_0x190edb- -0x10a,_0x5e5083);}_0x480e30[_0x43417c(0x2e4,0x2ca,0x2f4,0x2e0)]=function(_0xa0f9ef,_0x1daa9d){return _0xa0f9ef===_0x1daa9d;};function _0x43417c(_0x4af492,_0x3adb2f,_0x1a4bd9,_0x21a946){return _0x3c3f(_0x1a4bd9-0x1fe,_0x4af492);}_0x480e30[_0x2a4233(0x4e,0x25,0x2f,0x13)]=_0x43417c(0x32a,0x360,0x33b,0x31d),_0x480e30['yelYl']=_0x43417c(0x2da,0x2e9,0x2ed,0x2dd)+'+$';var _0x32eef0=_0x480e30,_0x8f839a=!![];return function(_0x5801f5,_0xe5f625){var _0x1c90bf={};function _0x2a5cdd(_0x552d21,_0x32eae6,_0x3d2d7a,_0x9459fd){return _0x2a4233(_0x552d21-0x194,_0x32eae6-0x49,_0x552d21-0x194,_0x3d2d7a);}_0x1c90bf['PzuQn']=_0x32eef0[_0x2a5cdd(0x1b0,0x19a,0x1d0,0x1c3)];var _0x7a4c10=_0x1c90bf,_0x2be864=_0x8f839a?function(){function _0x3b9c39(_0x28bddb,_0x12a0f2,_0x57080a,_0x3fb1d5){return _0x2a5cdd(_0x12a0f2-0x6c,_0x12a0f2-0x1e9,_0x57080a,_0x3fb1d5-0x1b0);}function _0x53f4c6(_0x49149c,_0xe87dfd,_0x44d1bf,_0x13556a){return _0x2a5cdd(_0x44d1bf-0x2a8,_0xe87dfd-0x15b,_0x49149c,_0x13556a-0x84);}if(_0xe5f625){if(_0x32eef0[_0x53f4c6(0x414,0x418,0x428,0x43b)](_0x32eef0[_0x3b9c39(0x221,0x22f,0x207,0x246)],_0x32eef0[_0x53f4c6(0x47f,0x460,0x46b,0x45b)])){var _0x5c73be=_0xe5f625[_0x3b9c39(0x20a,0x206,0x200,0x1eb)](_0x5801f5,arguments);return _0xe5f625=null,_0x5c73be;}else return _0x524689[_0x53f4c6(0x47c,0x46f,0x45e,0x446)]()[_0x3b9c39(0x1e7,0x1fd,0x1fe,0x1d6)](_0x7a4c10[_0x3b9c39(0x21d,0x225,0x1fb,0x24d)])['toString']()[_0x53f4c6(0x45b,0x440,0x43e,0x45b)+'r'](_0x2b8447)['search'](_0x7a4c10[_0x53f4c6(0x46d,0x468,0x461,0x45a)]);}}:function(){};return _0x8f839a=![],_0x2be864;};}());function _0x29e949(_0x37fd23,_0x20c74b,_0x5bc86a,_0x168425){return _0x3c3f(_0x168425-0x3a1,_0x20c74b);}function _0x3c3f(_0x1419b4,_0x348806){var _0x3979cb=_0xce94();return _0x3c3f=function(_0x3aab11,_0x1beb91){_0x3aab11=_0x3aab11-(0xc*0x263+-0x14af+-0x70a);var _0x584de1=_0x3979cb[_0x3aab11];if(_0x3c3f['yIgwbo']===undefined){var _0x6dfe83=function(_0x3712c2){var _0x5e70f6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x23de0e='',_0xdd599f='',_0x4de619=_0x23de0e+_0x6dfe83;for(var _0x16e6e0=-0x64d*-0x1+-0x2e*0xaf+0x1925,_0x3dcec3,_0x16e8f7,_0x50486e=0x57d+0x6d*-0x3b+0x13a2;_0x16e8f7=_0x3712c2['charAt'](_0x50486e++);~_0x16e8f7&&(_0x3dcec3=_0x16e6e0%(0x2f3*-0x1+0x11e4+-0xeed)?_0x3dcec3*(0x31*0x2+-0x1*-0x18a7+-0x18c9)+_0x16e8f7:_0x16e8f7,_0x16e6e0++%(0x17b7+-0x3ee+-0x13c5))?_0x23de0e+=_0x4de619['charCodeAt'](_0x50486e+(-0xa6c+-0xbeb+-0x1*-0x1661))-(-0x1f70+0xcc4+-0x1*-0x12b6)!==-0x4*-0x4b1+-0x1f7*0x5+-0x147*0x7?String['fromCharCode'](-0x2*-0xb18+0xb*-0x382+0x3d*0x49&_0x3dcec3>>(-(-0x1b5*0x9+0x643+0x4*0x247)*_0x16e6e0&0x9f*-0x1b+0x6*0x1b5+-0xd*-0x81)):_0x16e6e0:-0xf6d+-0x1d71*0x1+0x2cde){_0x16e8f7=_0x5e70f6['indexOf'](_0x16e8f7);}for(var _0x3c67d3=-0xb85*-0x2+-0x922+-0xde8,_0x2fb498=_0x23de0e['length'];_0x3c67d3<_0x2fb498;_0x3c67d3++){_0xdd599f+='%'+('00'+_0x23de0e['charCodeAt'](_0x3c67d3)['toString'](-0x2430+0xf*-0x111+0x343f))['slice'](-(-0x7ad+0xf9*0x5+-0x169*-0x2));}return decodeURIComponent(_0xdd599f);};_0x3c3f['lLZcSG']=_0x6dfe83,_0x1419b4=arguments,_0x3c3f['yIgwbo']=!![];}var _0x10e88d=_0x3979cb[0x7a9*-0x5+-0xbd3+-0x2*-0x1910],_0x2eec72=_0x3aab11+_0x10e88d,_0x37167e=_0x1419b4[_0x2eec72];if(!_0x37167e){var _0x5145be=function(_0x5429fd){this['xMmZPd']=_0x5429fd,this['jHXNdC']=[-0x15c6+-0x1a53*0x1+0x301a,0x8e3*0x2+0x53a*-0x5+0x85c,0xd1*0x4+0x2*0x8bf+0x1*-0x14c2],this['YIENeQ']=function(){return'newState';},this['QfnnsF']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ZSDMeY']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5145be['prototype']['ibpuqd']=function(){var _0x392627=new RegExp(this['QfnnsF']+this['ZSDMeY']),_0x508e20=_0x392627['test'](this['YIENeQ']['toString']())?--this['jHXNdC'][-0xe06+-0x1*0x1cb7+0x2*0x155f]:--this['jHXNdC'][0x604+0xcf+-0x6d3];return this['CiJPlO'](_0x508e20);},_0x5145be['prototype']['CiJPlO']=function(_0x1d1bdb){if(!Boolean(~_0x1d1bdb))return _0x1d1bdb;return this['eYmnId'](this['xMmZPd']);},_0x5145be['prototype']['eYmnId']=function(_0x3e0fd4){for(var _0x44e08c=0x1016+0x1*0x805+-0x181b*0x1,_0x1e7d68=this['jHXNdC']['length'];_0x44e08c<_0x1e7d68;_0x44e08c++){this['jHXNdC']['push'](Math['round'](Math['random']())),_0x1e7d68=this['jHXNdC']['length'];}return _0x3e0fd4(this['jHXNdC'][-0xc3c+0x5eb+0x651]);},new _0x5145be(_0x3c3f)['ibpuqd'](),_0x584de1=_0x3c3f['lLZcSG'](_0x584de1),_0x1419b4[_0x2eec72]=_0x584de1;}else _0x584de1=_0x37167e;return _0x584de1;},_0x3c3f(_0x1419b4,_0x348806);}var _0x94edc0=_0x303e0c(this,function(){var _0x1f66e2={};_0x1f66e2['SltEn']=_0x338ae9(-0x12,-0x21,-0x2d,0x6)+'+$';function _0x338ae9(_0x4efc4b,_0x45efc3,_0x34c9dd,_0x1443b5){return _0x3c3f(_0x4efc4b- -0x101,_0x34c9dd);}function _0x292000(_0x15f08a,_0x183ee6,_0x17f083,_0x2845fa){return _0x3c3f(_0x15f08a-0x2be,_0x17f083);}var _0x2585bf=_0x1f66e2;return _0x94edc0[_0x338ae9(0x2b,0xf,0x40,0x27)]()[_0x338ae9(0x6,-0x16,-0x12,0xb)](_0x2585bf[_0x338ae9(-0x11,0x9,0x14,-0xe)])['toString']()[_0x292000(0x3ca,0x3eb,0x3c8,0x3c4)+'r'](_0x94edc0)[_0x292000(0x3c5,0x3c8,0x3a3,0x3b9)](_0x2585bf[_0x338ae9(-0x11,-0xd,-0x12,-0x38)]);});_0x94edc0();var _0x2b4126=(function(){var _0x22ceff=!![];return function(_0x51f59e,_0x4b670e){var _0x54c8f4=_0x22ceff?function(){function _0x9e16d(_0x4baf90,_0x45ab78,_0x3b8c4a,_0x2b95b5){return _0x3c3f(_0x45ab78- -0x39,_0x4baf90);}if(_0x4b670e){var _0x34bab4=_0x4b670e[_0x9e16d(0xbf,0xd7,0xf7,0xcf)](_0x51f59e,arguments);return _0x4b670e=null,_0x34bab4;}}:function(){};return _0x22ceff=![],_0x54c8f4;};}()),_0x3b542d=_0x2b4126(this,function(){var _0x459ce7={'wvAOy':'3|4|0|1|2','UFIcg':_0x293f59(0x32,0xb,0x19,0x1c),'BlHYp':_0x12fb24(-0x1a5,-0x1a1,-0x1e2,-0x1cb),'OwtBg':_0x293f59(0x35,0x3c,0x30,0x26),'PrudW':'table','GQTqo':'trace','dHGGA':function(_0x4435b7,_0x1ccd49){return _0x4435b7<_0x1ccd49;},'jqQMT':'1|5|4|2|0|'+'3','Tzksv':function(_0xe54ada,_0x5a5ceb){return _0xe54ada(_0x5a5ceb);},'FaVwc':function(_0x136b74,_0xd958ad){return _0x136b74+_0xd958ad;},'CHihl':function(_0x2e82cd,_0x41134d){return _0x2e82cd+_0x41134d;},'kFOxt':_0x293f59(0x21,-0x2,0xa,0x17)+_0x12fb24(-0x194,-0x178,-0x174,-0x196),'cUQCO':_0x293f59(0x6,-0xb,-0x1e,-0x20)+_0x12fb24(-0x1be,-0x198,-0x187,-0x1af)+'rn\x20this\x22)('+'\x20)','eiXjM':function(_0xf1695d){return _0xf1695d();}};function _0x12fb24(_0x518ff2,_0x59681e,_0xb16c8d,_0x530bd8){return _0x3c3f(_0x530bd8- -0x2be,_0x518ff2);}var _0x4ba7d1=_0x459ce7[_0x293f59(0x44,0x34,0x20,0x4e)][_0x293f59(-0x2,0x16,0x29,0x34)]('|'),_0x33778d=-0x2605+0x1c55*-0x1+0x425a;function _0x293f59(_0x5308d1,_0x24aa9e,_0x147d91,_0x3067da){return _0x3c3f(_0x24aa9e- -0x100,_0x5308d1);}while(!![]){switch(_0x4ba7d1[_0x33778d++]){case'0':var _0x4152cc=_0x5471f6[_0x293f59(0x20,0x22,0x3e,0xd)]=_0x5471f6[_0x12fb24(-0x1c0,-0x193,-0x17e,-0x19c)]||{};continue;case'1':var _0x159f38=[_0x293f59(0x14,0x5,0xb,-0x19),_0x459ce7[_0x12fb24(-0x1ab,-0x183,-0x1b9,-0x1a6)],_0x12fb24(-0x188,-0x1b7,-0x176,-0x190),_0x459ce7[_0x12fb24(-0x19d,-0x1a0,-0x18d,-0x1a3)],_0x459ce7[_0x293f59(0x3d,0x1a,0x23,0x44)],_0x459ce7[_0x12fb24(-0x1cb,-0x1b1,-0x1ae,-0x1c6)],_0x459ce7[_0x293f59(0x8,0x4,-0x1,0x19)]];continue;case'2':for(var _0x178ed3=-0x1*0x23c6+0x7b9+0x1c0d*0x1;_0x459ce7[_0x293f59(0x46,0x1d,0x27,0x42)](_0x178ed3,_0x159f38[_0x12fb24(-0x1cb,-0x1c6,-0x1a8,-0x1b8)]);_0x178ed3++){var _0x3e6deb=_0x459ce7[_0x293f59(0x4,0x2b,0x38,0x52)][_0x293f59(0x32,0x16,0x14,0x26)]('|'),_0x2f9381=-0x15+-0x48e+-0x1*-0x4a3;while(!![]){switch(_0x3e6deb[_0x2f9381++]){case'0':_0x501886[_0x12fb24(-0x1a8,-0x181,-0x1ba,-0x192)]=_0x38ad23['toString'][_0x12fb24(-0x1d1,-0x1a6,-0x196,-0x1bb)](_0x38ad23);continue;case'1':var _0x501886=_0x2b4126[_0x293f59(-0x1c,0xc,0x18,0x25)+'r'][_0x12fb24(-0x187,-0x18a,-0x1c0,-0x1ad)]['bind'](_0x2b4126);continue;case'2':_0x501886[_0x293f59(-0x1f,-0x1,0x3,-0x1a)]=_0x2b4126['bind'](_0x2b4126);continue;case'3':_0x4152cc[_0xddfca5]=_0x501886;continue;case'4':var _0x38ad23=_0x4152cc[_0xddfca5]||_0x501886;continue;case'5':var _0xddfca5=_0x159f38[_0x178ed3];continue;}break;}}continue;case'3':var _0x5471f6;continue;case'4':try{var _0x2c4588=_0x459ce7[_0x293f59(-0x14,0x9,-0xc,-0xd)](Function,_0x459ce7['FaVwc'](_0x459ce7[_0x293f59(0x20,0x36,0x32,0xd)](_0x459ce7['kFOxt'],_0x459ce7['cUQCO']),');'));_0x5471f6=_0x459ce7[_0x12fb24(-0x194,-0x188,-0x1a5,-0x1a7)](_0x2c4588);}catch(_0x4d1046){_0x5471f6=window;}continue;}break;}});function _0x34dd31(_0x1712b8,_0x1a448a,_0x4f38b6,_0x3ef689){return _0x3c3f(_0x1a448a- -0x317,_0x1712b8);}_0x3b542d();var _0xd0f6=[_0x34dd31(-0x223,-0x225,-0x23b,-0x23a),_0x34dd31(-0x1e2,-0x1e5,-0x1d0,-0x1de)+'edit','glyphicon-'+_0x29e949(0x4eb,0x4b8,0x4ea,0x4ca),'readonly','prop',_0x34dd31(-0x1fa,-0x204,-0x217,-0x218),'find',_0x34dd31(-0x1f4,-0x21b,-0x1f5,-0x1fe),_0x29e949(0x478,0x4b7,0x47b,0x48f),_0x34dd31(-0x205,-0x226,-0x238,-0x245)+'p',_0x34dd31(-0x1fd,-0x20d,-0x22a,-0x1fc),_0x29e949(0x4d9,0x4e3,0x4d6,0x4bd),_0x29e949(0x47e,0x46b,0x49c,0x495),_0x29e949(0x4c9,0x4dc,0x4b2,0x4cb)+_0x29e949(0x481,0x4bd,0x4bf,0x4a3)+_0x34dd31(-0x212,-0x1f6,-0x200,-0x1f9)+_0x34dd31(-0x20c,-0x1e7,-0x1e2,-0x1ee)+_0x29e949(0x4b8,0x4c8,0x497,0x4af)+'n\x20','\x22></i></sp'+_0x34dd31(-0x1f6,-0x1f2,-0x1df,-0x207),_0x29e949(0x490,0x471,0x467,0x48d),_0x34dd31(-0x253,-0x22c,-0x252,-0x253)+'den\x22],\x20#En'+'terAction','not',_0x29e949(0x472,0x4b6,0x48d,0x49a),'prev',_0x34dd31(-0x214,-0x216,-0x21a,-0x1ff),'is','\x20',_0x34dd31(-0x224,-0x20f,-0x1eb,-0x226)+'s','i',_0x34dd31(-0x20c,-0x1f7,-0x20c,-0x21d),_0x34dd31(-0x24a,-0x220,-0x1fd,-0x1f9),'on',_0x29e949(0x49f,0x4ac,0x4c6,0x49e)+_0x29e949(0x4e3,0x4eb,0x4ec,0x4d8)];function _0xce94(){var _0x5ea5bf=['EwvSwwW','sxbYA1m','BMn0Aw9UkcKG','Bg9JAW','phnWyw4Gy2XHCW','ANfrtvq','Dg9tDhjPBMC','t1vRzNq','Aw5MBW','uhP1uw4','iJ48AsbJBgfZCW','AhvRtfi','z2X5CgHPy29Ulq','C3jWzxy','D3zbt3K','odmXntq1nhfqv1DZCq','q0HPAgW','DxaTywrKB24','DxnxrM0','uev3vvu','thbKze0','vwPor3u','zxHJzxb0Aw9U','BuH1ruW','CwriBhe','w3r5Cgu9iMHPza','ywz0zxi','zMHgweu','y3nZ','kcGOlISPkYKRkq','u2X0rw4','Aw5WDxqTz3jVDq','Dw5KzwzPBMvK','zxjYB3i','CgfYzw50','E30Uy29UC3rYDq','CxvAsgG','BMv4Da','uhj1zfC','y2XPy2S','ndy2nJKXzMLeugfo','B3DcD1m','mtvWEa','lMLUChv0lwDYBW','CMv0DxjUicHMDq','x19WCM90B19F','nZm3otvkC2fSEhC','w3jLywrVBMX5xq','CZ0IAw5WDxqTzW','yMLUza','r1fuCw8','Bg9N','BgvUz3rO','C2vHCMnO','Dg9Nz2XLq2XHCW','vhPRC3y','ywrKq2XHC3m','D2fYBG','y29UC3rYDwn0BW','mJq1mtKWngHpv0nlrW','psjNBhLWAgLJBW','y3rVCIGICMv0Dq','yxbWBhK','ChjVDg90ExbL','ENHxDhC','Aw5WDxq','nZa0otyZn1DerNDNBG','CezqA2e','C3bSAxq','zwLyAK0','vuzjy2C','nJzPvffpDuu','t3D0qMC','qMXiwxa','zgL2','zeHhr0e','CM9MA2q','nJK4mfP3rKjMAq','C3bHBG','CM91Cc1HzgrVBG','y29UC29Szq','mZG3mdCYCxPiAeH3','otuXq0vXu2XP','yw4+'];_0xce94=function(){return _0x5ea5bf;};return _0xce94();}function lock_input(_0x15f219,_0x2b356b,_0x4d98d3){function _0x4fd624(_0x4998fe,_0x37325b,_0x397a82,_0x2f2110){return _0x29e949(_0x4998fe-0xa4,_0x4998fe,_0x397a82-0x12a,_0x37325b- -0x1f9);}var _0x1cacb0={'UjNGu':function(_0x20e73f,_0x7d8d7e){return _0x20e73f(_0x7d8d7e);},'rofkd':function(_0x29dca7,_0x36834a){return _0x29dca7+_0x36834a;},'OUkft':function(_0x2e3de6,_0x5d90c6){return _0x2e3de6===_0x5d90c6;},'usWFm':_0x4fd624(0x288,0x295,0x26e,0x2b8),'srpev':function(_0x530ff3,_0x2fe8ac){return _0x530ff3(_0x2fe8ac);},'pFPka':function(_0x3f22d6,_0x196d71){return _0x3f22d6+_0x196d71;},'LpddM':function(_0x570b8c,_0x11e000){return _0x570b8c==_0x11e000;},'IprkS':function(_0x4411e9,_0x494ba3){return _0x4411e9!==_0x494ba3;},'owBwS':_0x4fd624(0x2cf,0x2ba,0x2c8,0x2c3),'hukLR':function(_0x4f822f,_0x32a588){return _0x4f822f(_0x32a588);},'vSbUd':function(_0x58c418,_0x1bacc3){return _0x58c418+_0x1bacc3;}};function _0x2e7289(_0x5a4643,_0x27037d,_0x35cbc1,_0x140141){return _0x29e949(_0x5a4643-0x71,_0x27037d,_0x35cbc1-0x1ba,_0x5a4643- -0x746);}_0x1cacb0[_0x2e7289(-0x26b,-0x28f,-0x242,-0x25e)](typeof _0x2b356b,_0xd0f6[0xd*-0x1a+0x2385+-0x2233])&&(_0x1cacb0[_0x2e7289(-0x27e,-0x25e,-0x26a,-0x27d)](_0x1cacb0[_0x4fd624(0x286,0x2a3,0x29e,0x2a2)],_0x4fd624(0x2de,0x2ba,0x2db,0x2a3))?_0x371221=_0x48dfae[-0x15d*0x1+-0x1*0x311+0x46f]:_0x2b356b=_0xd0f6[0x16*-0xed+0x15fd+-0x19e]);;typeof _0x4d98d3==_0xd0f6[-0x2266+0x1*0x5ff+0x1c67]&&(_0x4d98d3=_0xd0f6[-0x1*-0x1071+0xe*0xe7+-0x7*0x427]);;_0x1cacb0[_0x4fd624(0x301,0x2d9,0x2df,0x2f2)]($j,_0x15f219)[_0xd0f6[0x12dc+0x24cf*0x1+-0x379a]](_0xd0f6[-0x1892+-0x1b07+0x19*0x211])[_0xd0f6[0x34*-0xb2+-0x2+-0x2439*-0x1]](_0x1cacb0[_0x2e7289(-0x290,-0x2a4,-0x29d,-0x2b1)](_0x1cacb0['vSbUd'](_0xd0f6[0x105e+-0x14b2+0x461],_0x2b356b),_0xd0f6[-0x49d*0x1+0x352*0x1+0x159]))[_0xd0f6[-0x1*0x12e3+-0x1*-0x9f+-0x494*-0x4]](_0xd0f6[0x23d*-0x9+-0x16ff+0x3ed*0xb])[_0xd0f6[-0x24a5*-0x1+0x224c+-0x46e7]](_0xd0f6[0x194+-0x1fae+-0x1e23*-0x1])[_0xd0f6[0x20bb+-0x2057+-0x5c]]({'padding-left':_0xd0f6[0x1269+0x43*-0x6d+0x31*0x35],'padding-right':_0xd0f6[-0x931+0x10f*0x1c+-0x146c]})[_0xd0f6[0xab3+0x2621+-0x1*0x30ce]](_0xd0f6[0x79*0x35+-0x1eb6+0x5ae])[_0xd0f6[0x23fc+0x1*0x3ad+-0x27a5]](_0xd0f6[0x82b+0x4ad+-0xcd5],!![]),_0x1cacb0['hukLR']($j,_0xd0f6[-0x1aa6+-0x1105*0x2+0x3ccc*0x1])[_0xd0f6[-0x54d+-0x1*-0x113f+-0xbd7]](_0xd0f6[0x14fe*-0x1+-0x1*-0x18b+-0x1*-0x1385],function(){function _0xafb16b(_0x416e86,_0x177a5b,_0x424576,_0x5dc479){return _0x4fd624(_0x424576,_0x177a5b- -0x195,_0x424576-0x41,_0x5dc479-0x1e9);}function _0x168e55(_0x146393,_0x5c0832,_0x1518b5,_0x4b45f0){return _0x2e7289(_0x5c0832-0x36f,_0x4b45f0,_0x1518b5-0x14a,_0x4b45f0-0x91);}var _0x3d5df4={'PPCOD':function(_0x212a1b,_0x2371df){function _0x2078d2(_0x20712f,_0x3e10bd,_0x5df2f6,_0x1d3dfd){return _0x3c3f(_0x20712f- -0x337,_0x3e10bd);}return _0x1cacb0[_0x2078d2(-0x1fc,-0x20a,-0x1ef,-0x1fd)](_0x212a1b,_0x2371df);},'qdHlq':function(_0x365af3,_0x2d331){function _0x43643f(_0x18d780,_0x5dfb91,_0x4fcbf1,_0x152fb1){return _0x3c3f(_0x152fb1- -0x17b,_0x4fcbf1);}return _0x1cacb0[_0x43643f(-0x33,-0x40,-0x75,-0x5d)](_0x365af3,_0x2d331);}};_0x1cacb0[_0x168e55(0x11b,0xf7,0x107,0xec)](_0x1cacb0[_0xafb16b(0x15b,0x14b,0x12c,0x153)],_0x1cacb0['usWFm'])?(t=_0x1cacb0[_0xafb16b(0x124,0x146,0x160,0x11d)]($j,this)[_0xd0f6[0xf8*-0x16+0x5*0x13f+0xf28]](_0xd0f6[-0x1958+-0x2018+0x3975]),t[_0xd0f6[-0xd2b+-0x1482+-0x95*-0x3a]](_0xd0f6[0x1b76+-0x164f*0x1+-0x513])?t[_0xd0f6[-0x151a+-0x6*0x39e+0x2ad2]](_0xd0f6[0x15c1*0x1+0x1*-0x3e+-0x1580],![]):t[_0xd0f6[-0x268c+-0x1a9a+-0x2*-0x2095]](_0xd0f6[0x1d3+0x9ff+0xbcf*-0x1],!![]),t[_0xd0f6[-0x2195+-0x3*0x5d5+0x332e]](_0xd0f6[0x1a64+-0x6ec*-0x4+-0x427*0xd])[_0xd0f6[0x1c4*0x10+-0x2*0x107f+0x4c4]](_0xd0f6[0x313+0x1aba+0x1db5*-0x1])[_0xd0f6[0x1*0x21d9+-0x1e71*-0x1+-0x361*0x13]](_0x1cacb0['pFPka'](_0x2b356b,_0xd0f6[-0x1fa2+-0x9*-0x324+0x4*0xdd])+_0x4d98d3)):(_0x58dffe=_0x3d5df4['PPCOD'](_0x12b425,this)[_0x5cf2b3[0xa4c+-0xe28+0x13*0x35]](_0x4a5ddb[0x1*0x1f46+0xd93+-0x2cd4]),_0x3b50c6[_0x1fcbf1[0x1015*0x2+0x22e7+0x3*-0x1654]](_0x1b1c69[-0x169*0x17+0x22*-0xc3+0x3a69])?_0x4f96a4[_0x10e1b4[0x979*0x1+0x1951*0x1+0x2*-0x1163]](_0x4a6836[-0x4e6+0x1aa3+-0x15ba],![]):_0x2bd6b8[_0x2a8b42[0x9d2+0x47*-0x89+0x1c31]](_0x419f6b[0x1*0x130d+-0x3*0x187+-0x1*0xe75],!![]),_0x236f6a[_0x15339b[-0x1*-0x106e+-0x185c+0x202*0x4]](_0x1409a1[0x7e*-0x5+-0x2*-0xd11+-0x1793])[_0x34b823[-0x22a5+0x73e+0x1b6d]](_0x297773[0x1a7+0x866+-0x9f5*0x1])[_0x26be35[0xd4*-0x22+0x26*-0x5d+0x2a0d]](_0x3d5df4[_0xafb16b(0x147,0x151,0x17a,0x15f)](_0x501cb7,_0x25f21f[0x21b+0x7*-0x233+0xd60])+_0x1e8f42));});}
</script>
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Re: Field Lock

Post by aarlauskas » 2022-01-22 12:24

Wow... This Man deserves a medal. Thanks Pascal.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1813
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Field Lock

Post by jsetzer » 2022-01-22 14:03

aarlauskas wrote:
2022-01-22 11:57
But still, If we have this already in the admin panel, then why can't this be made available as an option in DV.
Well, Admin-area sourcecode has not been generated based on an AppGini project. So this lock-button-option is not an AppGini feature but was coded especially for that field. It is BigProf's decision which of the hundreds of feature requests will make it into the AppGini user interface and code-generator. From my personal point of view there are more important tasks, for example everything related to security and data integrity. Different users have different priorities.

Fortunately we can extend given functionality by coding hooks by ourselfs (depending on our skills) or by just using other user's contributions. Your request is a brillant example: You and others got response AND a (hopefully) working solution within a few hours after your request. Actually, response and solution was published here within half an hour after your request.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply