{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":2294,"path":"application-development/r_ExampleNamespaceIdentifiers.md","title":"Namespace identifier examples","bundle":null,"doc_type":null,"release":"australia","body":"\n# Namespace identifier examples\n\nThe following examples illustrate generating namespace identifiers for applications, tables, and fields.\n\n<table id=\"table_mfl_34b_br\"><thead><tr><th>\n\nAction\n\n</th><th>\n\nElement generated\n\n</th><th>\n\nExplanation\n\n</th></tr></thead><tbody><tr><td>\n\n1. Generate a namespace identifier for a private scope application called Book Rooms.\n\n</td><td>\n\nx\\_acme\\_book\\_rooms\n\n</td><td>\n\nThis is a combination of the vendor prefix and application ID.\n\n</td></tr><tr><td>\n\n2. Generate a namespace identifier for a global scope application called Marketing Events.\n\n</td><td>\n\nNone\n\n</td><td>\n\nThe system does not generate namespace prefixes for global applications.\n\n</td></tr><tr><td>\n\n3. Add the conference rooms table to the Book Rooms application.\n\n</td><td>\n\nx\\_acme\\_book\\_rooms\\_conference\\_rooms\n\n</td><td>\n\nThis table is in the Book Rooms scope so begins with the namespace identifier.\n\n</td></tr><tr><td>\n\n4. Add a Marketing Event table to a global application.\n\n</td><td>\n\nu\\_marketing\\_event\n\n</td><td>\n\nCustom tables in the global scope always use the `u_` namespace identifier.\n\n</td></tr><tr><td>\n\n5. Select Book Rooms in the application picker and add the **Capacity** field on the Conference Rooms table.\n\n</td><td>\n\ncapacity\n\n</td><td>\n\nThe field is in the same scope as the table so it does not have its own namespace identifier. However, to dot-walk to the field in a script, you would use the full path including the table namespace identifier: `x_acme_book_rooms_conference_rooms.capacity`.\n\n</td></tr><tr><td>\n\n6. Select Book Rooms in the application picker and add the **Theme** field to the Marketing Event table.\n\n</td><td>\n\nx\\_acme\\_book\\_rooms\\_theme\n\n</td><td>\n\nThe field is in a different scope from the table so it is prefixed with the `x_acme_book_rooms` namespace identifier. To dot-walk to the field in a script, you would use full path including the field namespace identifier: `u_marketing_event.x_acme_book_rooms_theme`. **Note:** This example assumes that the Marketing Event table allows other application scopes to add fields.\n\n</td></tr><tr><td>\n\n7. Select Marketing Events in the application picker and add the **Theme** field to the Marketing Event table.\n\n</td><td>\n\nu\\_theme\n\n</td><td>\n\nCustom fields in the global scope use the **u\\_** prefix. To dot-walk to the field in a script, you would use `u_marketing_event.u_theme`.\n\n</td></tr></tbody>\n</table>"}}