![]() |
| > Home > Documentation > Latest documentation > Interchange tags > flag |
|
flagControls Interchange flags. For example, flags affect database access and transactions for those databases able to support these features. See also: [tag]. Summary
ExamplesPerl example
or similarly with positional parameters:
DescriptionThe [flag] tag controls database access and transactions. For example, flags affect database access and transactions for those databases able to support these features. Also see the [tag] tag. If a GDBM-based database is to be modified, it must be flagged writable on the page that performs the write operation. For example, to mark the products GDBM table as writable, you can call:
This must be done before ANY access to that table.
ParameterstypeThe name of the flag to set. tablesThe name of the table(s) to flag. valueNew (boolean) value for the flag. readFlag the table read-only writeFlag the table as writable. transactionsReopens the table in transactions mode if the Safe Perl module is not active (i.e. in a GlobalSub, a global UserTag or a call to "[perl global=1]"). The limitation exists because it is not possible to reopen a connection to a table from within a
Safe commitAttempts to commit transactions rollbackAttempts to rollback transactions showNormally, the [flag] tag returns nothing to the page. Setting 'show=1' causes the tag to return status, if any.
|
| Home | Legal nonsense | Privacy policy | Contact us |