Tutorial by Examples

In a string formula field, consider that some values might contain substrings which look to the browser like HTML. Unless this is intentional, it is important to protect the values from corruption. This is useful to avoid injection attacks: it prevents someone from entering HTML into a comment field...
In a saved search formula, the possible values of mainline are designed to be useful in an HTML context. When mainline is true, the value of {mainline} is the 1-character string * (asterisk). When mainline is false, the value of {mainline} is the 6-character string   (non-breaking space, HT...
The following example combines several of the techniques covered here. It puts a hyperlink in a custom formatted column which, when clicked, opens the sales order record associated with a row. The hyperlink is designed to open the record in a new window or tab when clicked, and to display a tooltip ...
JavaScript allows us to define getters and setters in the object literal syntax. Here's an example: var date = { year: '2017', month: '02', day: '27', get date() { // Get the date in YYYY-MM-DD format return `${this.year}-${this.month}-${this.day}` }, ...
String literals provide the most convenient way to represent string values in Java source code. A String literal consists of: An opening double-quote (") character. Zero or more other characters that are neither a double-quote or a line-break character. (A backslash (\) character alters t...
var setValue; var obj = {}; Object.defineProperty(obj, "objProperty", { get: function(){ return "a value"; }, set: function(value){ setValue = value; } });
This guide is intended to get you started on creating your own User Interface by subclassing the LeftAndMain class. By the end of this guide, you will have created your first Hello World interface in the Administration Panel. Requirements This guide requires you to have at least version 3.* of th...
If you haven't already lets simply start this file of with: class HelloWorldLeftAndMain extends LeftAndMain { } Configure The first thing you should do, is define the $url_segment that will be used to access the interface, and the title ($menu_title) that will appear in the side navigation m...
The expected structure of this template can be a bit convoluted but it all boils down to this: There are 3 sections worth noting for this guide: .north .center .south It must be wrapped entirely within an element that has the data-pjax-fragment="Content" attribute. This is...
To add user, use following command htpasswd /etc/subversion/passwd user_name Specify user_name with the username you wish to add in above command. It will prompt to provide password for the user. If you are creating very first user, you need to add –c switch in above command, which will create th...
Groups can be defined in /etc/subversion/svn_access_control file. Create/edit the file using following command nano /etc/subversion/svn_access_control Use syntax specified as below to define groups and assign members. [groups] groupname = <list of users, comma separated> e.g. [groups]...
Access specifications for subversion repositories is specified etc/subversion/svn_access_control file Create/edit the file using following command nano /etc/subversion/svn_access_control Use following syntax to configure access permissions for repositories to group/members [Repository:<Path&g...
Registering a custom post type does not mean it gets added to the main RSS feed automatically.You need to use request filter to add custom post types to main RSS feed. // Add 'books' custom post types on main RSS feed function add_book_post_types_to_rss($qv) { if (isset($qv['feed']) &&amp...
Requirement for Local development 1) MySQL server(I am Using XAMPP for MySQL server) 2) For Test API You can use Postman(optional) 3) Before run application,make sure MySQL server is running, properly prepare your application.properties file(DB_Name, Username,Password). 1.Add following depen...
Variable declaration @buttonColor: #FF0000; /* Now you can use @buttonColor variable with css Functions. */ .product.into.detailed { additional-attributes{ .lib-table-button( background-color: @buttonColor; ); } } Here function lib-tabgle-button used v...
$args = array( 'post_type'=>'post', 'posts_per_page' =>'10' ); $latest_posts_query = new WP_Query( $args ); if($latest_posts_query->have_posts()) : while ( $latest_posts_query-> have_posts()) : $latest_posts_query->the_post(); //Get post details here endwhile; endif; ...
winsound Windows environment import winsound winsound.PlaySound("path_to_wav_file.wav", winsound.SND_FILENAME) wave Support mono/stereo Doesn't support compression/decompression import wave with wave.open("path_to_wav_file.wav", "rb") as wav_file: #...
Your typical jQuery object will contain references to any number of DOM elements, and that's why jQuery objects are often referred to as collections. If you want to do any manipulating with specific elements (e.g. getting a data attribute, calculating specific positions) then you need to use .each()...
Directory structure: yourproject/ Cargo.lock Cargo.toml src/ main.rs writer.rs main.rs // This is import from writer.rs mod writer; fn main() { // Call of imported write() function. writer::write() // BAD writer::open_file() } w...

Page 1071 of 1336