pcm_create_poid() - cassiobj/PCM-Python_lib GitHub Wiki

Table of Contents

pcm_create_poid Function

The pcm_create_poid function is part of a Python extension for Oracle BRM. It create poid number.

Description

The pcm_create_poid create a string poid (based on BRM poid_t type) from paramaters .

Parameters

  • db: Database Number.
  • type: Type / Class name.
  • id: Number of poid.

Return Value

The function returns an string with complete poid number.

In case of an error, the `error` exception is raised.

Usage

import PCMPy

try:
    print("Testing poid Creation")    
    poid_test = PCMPy.pcm_create_poid(393217, "/bill", 63325623 )
    if ( poid_teste ) :
        print("OK")
        print(poid_test)
    else :
        print("Error")
except PCMPy.error as e:
    print("Error pcm_create_poid: " , e)    

Return Example

Testing poid Creation
OK
0.0.6.1 /bill 63325623 0
⚠️ **GitHub.com Fallback** ⚠️