Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

How add Custom Collection Form Tab in Table properties

$
0
0

Hi,

 

Request :

 

We would like to add a new tab on the table properties of a physical model.

 

Example

LOV.png

 

Explanation :

 

If we have a table with the following form: CREATE TABLE_1 (COL1 CHAR (10), COL2 NUMBER (6) COL3 VARCHAR2 (20));

 

We would like that the new tab to be similar to the one above.

 

This tab should have for each vertical column - the table columns names.

 

This tab should be displayed only if the table has a stereotype "LOV" for "List Of Values"

 

For each row in the screen above we will write the values ​​of each table records.

 

Objective :

 

When we Generate Database the following SQL command must be generated : INSERT INTO TABLE_1 (COL1, COL2, COL3) VALUES ('', '', '');

 

We thought to add this command in the .XDB file (DBMS definition file) at table-level category => DBMS :: Script \ Objects \ Table \ Create

and using variables %TABLE% and %TABLDEFN%. But the TABLDEFN variable provides column names and types, "COL1 CHAR (10), COL2 NUMBER (6) COL3 VARCHAR2 (20)." Given that this variable is not very interesting we have achieve our goal with an extension (XEM). In fact we are able to generate an extension that will give us the following SQL command: insert into TABLE_1 (COL1, COL2, COL3) values ​​('', '', ''); following the creation of the CREATE TABLE statement.

 

To complete with value we have need our custom form tab.


Viewing all articles
Browse latest Browse all 3280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>