481 views

Description

g_form.isReadOnly reports false and isEditableField reports true for most fields when marked read-only on their dictionary record.

Steps to Reproduce

  1. Open an instance using the Chrome browser.
  2. Activate the Test Table (com.snc.test_table) plugin.
  3. Filter for a list of all Dictionary records on the plugin's sys_test table.
  4. Set the record's Read Only dictionary attribute to true.
  5. Do one of the following:
    • View sys_test.do with the "all_elements" (All Field Types) view
    • configure form layout, add all, save, and view form
  6. On the form, run the following script in the Chrome broswer console on the gsft_main (sys_test.do) console frame. (This validates the fields.)

(function(){
var fields = "u_auto_number1,boolean1,color,color_display,compressed,conditions,u_currency,days_of_week,day_of_week,decimal,document_id,domain_id,due_date,email,email_script,encrypted_extra_large,encrypted_small,u_external_names,field_list,field_name,float1,glide_date_time,glide_duration,glide_time,glide_date,glide_list,html,image,integer,integer_date,internal_type,ip_address,journal,journal_input,month_of_year,multi_two_lines,name_values,numeric,password,password2,ph_number,u_price,process,radio,reference,reference_tree_picker,reference_width_style,reminder_field_name,results,schedule_date_time,script,script_plain,slush_bucket1,slush_bucket2,string_large,string_medium,string_short,string_xlarge,suggestion,sysevent_name,table_name,template_value,timer,translated,translated_field,translated_html,translated_text,url,user_image,user_input,user_roles,variable_conditions,week_of_month,workflow,xml";
var table = {};
fields.split(",").each(function(field) {
function TableRow(readonly){
this.readonly = readonly;
}
table[field] = new TableRow(!!g_form.isReadOnly(g_form.getGlideUIElement(field), g_form.getControl(field)));
});
console.table(table);
})()

Workaround

This issue is under review. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. If you are able to upgrade, review the Fixed In field to determine whether any versions have a permanent fix.


Related Problem: PRB689175

Seen In

Istanbul

Fixed In

Istanbul Patch 9
Jakarta Patch 3
Kingston

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-10-26 04:42:24
Published:2017-07-25