Tutorial by Examples: field

When adding custom fields to a Lucene index you can add new fields into the index using the following configuration: <configuration ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration"> <indexAllfields>false</indexAllfields> <fieldNames hint=...
As stated previously, there is no searching capability built in to the Records Browser. Once you've navigated to the appropriate Record Type, if you don't already know a particular field's Internal ID, the easiest way to find it is to use your browser's Find function (usually CTRL+F) to locate the f...
The Required column of the schema indicates whether this field is required to save the record. If this column says true, then you will need to provide a value for this field when saving any record of this type.
The nlapiSubmitField column is a critical piece to understand. This column indicates whether the field is available for inline editing. If nlapiSubmitField is true, then the field can be edited inline. This greatly impacts how this field is handled when trying to use the nlapiSubmitField or record.s...
Here's an example on how to use ACF to output differently based on options (color selections in this case). While you can use <?php echo get_field('color_options'); ?> to output the value directly, you can also change the markup depending on the selection. <?php $option = get_field('color_...
Default WooCommerce checkout form comes with several fields for customers to enter their billing details. But in some cases, you might want to hide some of these fields. For example, if you are selling only virtual products, you can get rid of fields like billing address. Use the following code sn...
There are already implemented forms within Django to change the user password, one example being SetPasswordForm. There aren't, however, forms to modify the user e-mail and I think the following example is important to understand how to use a form correctly. The following example performs the foll...
In your class that is under test, you may have some private fields that are not accessible even through constructor. In such cases you can use reflection to set such properties. This is a snippet from such JUnit test. @InjectMocks private GreetingsService greetingsService = new GreetingsService();...
Odoo uses ORM(Object Relational Mapping) technique to interact with database. ORM will help to create a virtual object database that can be used within from the Python. In ORM technique each model is represented by a class that sub-classes Models.model. Models.model is the main super class for regu...
If you have images or other data stored in Access itself as OLE Objects, then you should find a better approach. When the OLE data is stored, it is stored according to the software (and version of software) on the computer storing it. When another computer goes to display that OLE Object data on the...
This: class Foo extends Dynamic { // Expressions are only rewritten to use Dynamic if they are not already valid // Therefore foo.realField will not use select/updateDynamic var realField: Int = 5 // Called for expressions of the type foo.field def selectDynamic(fieldName: String) = ...
Slightly counterintuitively (but also the only sane way to make it work), this: val dyn: Dynamic = ??? dyn.x(y) = z is equivalent to: dyn.selectDynamic("x").update(y, z) while dyn.x(y) is still dyn.applyDynamic("x")(y) It is important to be aware of this, or else...
The example builds a string from the name of the parent record, the name of this record, and the memo of this record. {createdfrom} || ' ' || {name} || ' ' || {memo}
Below example shows how to change the hyperlink for "ID" and "Title(LinkTitle)" field inside the list view using CSR. Step1 : Create a JS file and paste below code (function () { function registerRenderer() { var ctxForm = {}; ctxForm.Templates = {}...
Let's say you want to show a text field (announcement) based on the time (a scheduled notification message for instance). You need two date-time fields. In our example, one is called start_date and the other end_date. <?php $DateNow = date('Y-m-d H:i:s'); $DateStart = get_field('start_date',...
You can access the form data submitted via a POST or PUT request in Flask via the request.form attribute. from flask import Flask, request app = Flask(import_name=__name__) @app.route("/echo", methods=["POST"]) def echo(): name = request.form.get("name"...
public String getHighlightedText(final QueryResponse queryResponse, final String fieldName, final String docId) { String highlightedText = ""; Map<String, Map<String, List<String>>> highlights = queryResponse.getHighlighting(); if (highlights!=null &&am...
$ cut -d, -f1,3 <<<"a,,b,c,d,e" a,b is rather obvious, but with space-delimited strings it might be less obvious to some $ cut -d ' ' -f1,3 <<<"a b c d e" a b cut cannot be used to parse arguments as the shell and other programs do.
Django 1.9 added the Field.disabled attribute: The disabled boolean argument, when set to True, disables a form field using the disabled HTML attribute so that it won’t be editable by users. Even if a user tampers with the field’s value submitted to the server, it will be ignored in favor of t...

Page 9 of 11