0% found this document useful (0 votes)
65 views3 pages

jdeGT OpenTable

This function opens the Media Object table (F00165) and returns a handle to it based on either the object name or data source. It takes a user handle, data source, object name, and request handle pointer as parameters. It will return a request handle pointer if successful or NULL if unsuccessful. Examples are provided to demonstrate opening the table by data source and by object name.

Uploaded by

RaveRave
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views3 pages

jdeGT OpenTable

This function opens the Media Object table (F00165) and returns a handle to it based on either the object name or data source. It takes a user handle, data source, object name, and request handle pointer as parameters. It will return a request handle pointer if successful or NULL if unsuccessful. Examples are provided to demonstrate opening the table by data source and by object name.

Uploaded by

RaveRave
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

jdeGT_OpenTable

Last Modified: B9 | October 2, 2020

This function will allow the Media Object table (F00165) to be opened based of the
Object name or datasource.

Syntax

JDERTN(JDEDB_RESULT) JDEWINAPI jdeGT_OpenTable(


HUSER hUser,
PJSTR pszDataSource,
PJSTR pszObjectName,
HREQUEST *hRequestGT);

Parameters
Parameter Notes Usage
hUser Input/Require User handle
pszDataSource Input/Not required If empty, use the default
datasource from the
pszObejctName. Datasource
has precedence over the
ObjectName.
pszObjectName Input/Not required Require if pszDatasource is
empty.
hRequestGT Output If open table fails, NULL
pointer will be returned;
otherwise a pointer to the
handle will be returned.

Return Value
Return Value Description
JDEDB_PASSED Return value if this API succeeds
JDEDB_FAILED Return value if this API fails

493192507.doc 1
jdeGT_OpenTable

Example
Sample #1: Using Datasource

JDEDB_RESULT JDBReturn = JDEDB_PASSED;


HREQUEST hRequestGT = NULL;
HUSER hUser = NULL;
JCHAR szFromDatasource[51] = _J(“Business Data – Adev733o”);
JCHAR szObjectName[11] = _J(“”);

JDBReturn = JDB_InitBhvr(.., &hUser);

JDBReturn = jdeGT_OpenTable (hUser, szFromDatasource, szObjectName, &hRequestGT);


if (JDBReturn == JDEDB_PASSED)
{


}

jdeGT_CloseTable(hRequestGT);
JDB_FreeBhvr(hUser);

return;

Sample #2: Using Object Name

JDEDB_RESULT JDBReturn = JDEDB_PASSED;


HREQUEST hRequestGT = NULL;
HUSER hUser = NULL;
JCHAR szFromDatasource[51] = _J(“ ”);
JCHAR szObjectName[11] = _J(“ABGT”);

JDBReturn = JDB_InitBhvr(.., &hUser);

JDBReturn = jdeGT_OpenTable (hUser, szFromDatasource, szObjectName, &hRequestGT);


if (JDBReturn == JDEDB_PASSED)
{


}

jdeGT_CloseTable(hRequestGT);
JDB_FreeBhvr(hUser);

return;

Additional Notes
 This API must be used first if the related functions are to be used.
 This API is used for multiple access of the table within one function scope.

B9 January, 2002 2
jdeGT_OpenTable

See Also

Function Name Description


jdeGT_OpenTable Open F00165 and return the table handle
jdeGT_CloseTable Close F00165 and release table handle
jdeGT_SelectData Select data from F00165 table
jdeGT_SelectDataKeyStr Select data from F00165 table with formatted string
(TXKY)
jdeGT_FetchData Retrieve record from F00165
jdeGT_UpdateData Update record to F00165
jdeGT_UpdateDataKeyStr Update record to F00165 with formatted string (TXKY)
jdeGT_InsertData Insert record to F00165
jdeGT_InsertDataKeyStr Insert record to F00165 with formatted string (TXKY)
jdeGT_DeleteData Delete record from F00165
jdeGT_DeleteDataKeyStr Delete record from F00165 with formatted string
(TXKY)

B9 January, 2002 3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy