Siebel default email form fields are appearing as readonly - siebel

Siebel out of the box form to send email is displaying all fields as readonly.
I checked at applet controls and they are not readonly
BC level fields are not readonly
BC level readonly properties are been inactivated
No field user property for readonly there.
I am not sure what's wrong here. Even tried vanilla sif but same issue.

There was a value missing in the LOV. We added the value and it was fixed.

Related

How to make boolean editable as checkboxes in djano-admin change_list panel?

One of my model as a boolean field (name of the field = deactivated).
This field is displayed with "green checked" or "red unchecked" icon in tha change list admin panel.
I would like to have this boolean field editable with checkboxes in the change list panel
I've read documentation and google my question but could not find solution...
the best I found is define an action that make selected row checked/unchecked...
Add list_editable = ('name_of_field',) in your class in admin.py

How to customize field names in Django admin change list only?

I have a model with many boolean flags. Some of them are displayed in admin change list and made editable by list_editable - this makes them appear as checkboxes. The problem is that this wastes a lot of horizontal space as field names are long (and I want to keep them descriptive for model change form). For regular fields I use custom properties and short_description to shorten the name. But in that case I have to render checkbox but I do not know how to make it properly.
Or may be there is another hack to alter field name for change list only?
If I got you right, the verbose_name model attribute is what you're looking for.
new_tab = models.BooleanField(verbose_name='n_tab')
This way new_tab field will appear as n_tab in admin interface. You can set verbose_name to empty string too.

Dynamic read-only field in Django Admin

In Django Admin for a Model I want all fields to be:
editable on creation
some of them on updating ( based on the instance fields values on creation).
For example:
2-1. If attribute a has a value, the fields corresponding to attributes c and b to be readonly
2-2. If attributes are empty after creation, should not be editable on updating
I know that for normal forms there is the Field disabled attribute.
I know I need to overwrite Admin form, but I don't have an idea, to know is created or update when form is initialized.
Usually I get the value using clean(), but here I need to get them on initialization in case of updates.
So it is like this:
You can create custom FORMS see here https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form
After that you can add your logic of which form to use by overriding the get_form method. see here https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_form
However you need to make sure your DB will accept the partially submitted data. You can DROP NULL on the specific columns.

How to remember password field in Sitecore custom user profile?

I've come across an annoying problem with the custom properties added to Sitecore User Profile.
I've added a password field to the custom user profile, but this field will not prepopulate the value on load, so if I make changes to other fields and save, it will overwrite the existing password with a blank, unless I type in the password again on every edit.
For example,
Custom User Profile original saved data:
1. phone number = 123.456.7890
2. password = 1234
Edit phone number only and save:
1. phone number = 123.123.1234
2. password = [blank]
The problem is because the password field always display as blank on loading, is there a way to make this field fetch the data and mask it? Or do we have to overwrite the existing Sitecore field resolver class to ignore blank space?
Thank you.
After checking with Sitecore documents...
There is no way to handle this without rewriting the Security API. As the user profile template only handles basic text field type.

render a CharField as checkbox in Django admin?

Is it possible to render a Django model CharField as a checkbox? I need this checkbox on admin edit page as well as the list_editable list page. E.g. when checked, set this CharField value to 't', else set it to 'n'
You can do a form changing the widgets no matter the type you are using.
Here is the documentation
Then if you need to change other things depending on the input people gives I guess you should do some jQuery creating a $('#mycheckboxid').click function