Javascript: Difference between revisions

From nuBuilderForte
Jump to navigation Jump to search
Line 12: Line 12:
</pre>|result=<!-- RESULT --><pre>
</pre>|result=<!-- RESULT --><pre>
</pre>|alsosee=<!-- SEE ALSO -->
</pre>|alsosee=<!-- SEE ALSO -->
|}}
{{Template:php_sprera
<!--PHP SYNTAX, PARAMETERS, RETURN, EXAMPLE, RESULT ALSOSEE-->
|syntax=<!-- SYNTAX --><span style='color:#690497'>
$array = db_columns($string1)
</span>|parameters=<!-- PARAMETERS --><pre>
$string1 : Database table name.
</pre>|return=<!-- RETURN --><pre>
$array  : Field names.
</pre>|description=<!-- DESCRIPTION -->
Returns an array of field names from a database table.
|example=<!-- EXAMPLE --><pre style="background-color:#F2EBFF">
$a = db_columns('customer');
nuDebug($a);
</pre>|result=<!-- RESULT --><pre>
[0] : Array
(
    [0] => customer_id
    [1] => cus_name
    [2] => cus_phone
    [3] => cus_address
)
</pre>|alsosee=<!-- SEE ALSO -->
[[PHP#db_fetch_array|db_fetch_array]], [[PHP#db_fetch_object|db_fetch_object]], [[PHP#db_fetch_row|db_fetch_row]], [[PHP#db_num_rows|db_num_rows]]


|}}
|}}

Revision as of 19:22, 12 July 2017

nuAddAction

Template:Php pdera



$array = db_columns($string1)

Parameters

$string1 : Database table name.

Return Value

$array   : Field names.

Description

Returns an array of field names from a database table.

Example

$a = db_columns('customer');
nuDebug($a);

nuDebug()

[0] : Array
(
    [0] => customer_id
    [1] => cus_name
    [2] => cus_phone
    [3] => cus_address
)


Also See : db_fetch_array, db_fetch_object, db_fetch_row, db_num_rows


nuAddActionButton

Add an Action Button.

nuBeforeSave

A function that can be created to validate an Edit Form before it is saved.

nuCloneAction

An Action Button that will take a copy of the current record ready to save.

nuDeleteAction

An Action Button that will delete the current record.

nuDisable

This will disable all parts of a nuBuilder Forte [[Objects|Object=.

nuEmailReportAction

An Action Button that will send an email.

nuEnable

This will enable a nuBuilder Forte [[Objects|Object=.

nuGetBreadcrumb

Go to a prevoius Breadcrumb and a certain Tab.

nuGetWordWidth

Returns the width of a string in pixels.

nuHide

This will hide all parts of a nuBuilder Forte Object. nuID= Creates a unique string.

nuMessage

Displays a message.

nuPad2

Adds 0's to the left of a number to a width of 2.

nuPad3

Adds 0's to the left of a number to a width of 3.

nuPad4

Adds 0's to the left of a number to a width of 4.

nuPopup

Open a window in an iFrame.

nuPrintAction

An Action Button that will create a HTML form containing the current list in the Browse Form.

nuRunPHP

An Action Button that will run a Procedure in a new window.

nuRunPHPHidden

An Action Button that will a Procedure without seeing anything in the browser.

nuRunReport

An Action Button that will run a Report.

nuSaveAction

An Action Button that will save the current record.

nuSelectTab

Displays a certain Tab.

nuSetTitle

Changes the last breadcrumb to a certain value.

nuShow

- This will display a nuBuilder Forte [[Objects|Object=.

nuSubformObject

This returns a Javascript object that can be looped through.

nuTotal

Returns the value of a number Object.

nuTranslate

Swaps a nuBuilder phrase with a phrase in [[Translations=.