Register  ::  Login
 
Update : February 06, 2012
Google AdSense Minimize
  
Welcome to Asbuilt-DBA forum ! Minimize

Here you can find a community of professionals who work with INtools® (SPI) and want to interact and exchange information, including problems encountered, offer solutions, and raise new topics.

This forum is composed of two main sections:
1.      Discussions, which is an open discussion forum where you can talk about any related topic to INtools.
2.      FAQ section that offers a variety of questions and answers regarding INtools.
We hope that you will enjoy participating in this forum. Participation in the forum is free of charge.
If you want to start a new forum, please contact the Webmaster.
Add to Google
INtools is trademark of Intergraph corporation
Forum Groups Minimize
SearchForum Home
  Aggregated  FAQ  Index Module  how to manage r...
 how to manage rev in index
 
 8/9/2007 6:56:02 AM
User is offlinedagwekar
10 posts


how to manage rev in index

for one proj v have req of issuing index in excel. so for the same v r exporting index from browser to excel.

now question comes whn time will arrive for rev. so v planned to use a udf to put rev. for instans lets assume that whn v issued first time index so in rev udf v will put 0 for all the tags but whn time come for next issue rev col shld be update with 1 insted of 0, but only for those tag nos whr v have some change in any field than last rev.

can anyone help how to handle this...


Regards, Deepak
 8/9/2007 9:48:15 PM
User is offlineadmin
177 posts
5th


Re: how to manage rev in index

Hi,

 

First of all add the rev 0 for all the tags.

You can run the following command:

Update udf_component set udf_c01 = ‘Rev 0’ where eng_proj_id <>0;

Commit;

Go to admin module and open system administration à Domain Definition

And select the domain and check the check box “Audit trail option”

To active database history.

To found changes for each tag the you can use one of the following options:

 

Option 1:

 

Go to Specification module or Process Data module and select option menu

And “History option” and “mark changes” and select date range and open the index brows.

after the report retrieve (It will take time till the process complete) the system will mark the changes for each column change (per tag).

Now you can change the udf column with the right revision.

Don’t forget to turn off the history in the history option before you log out from INtools

Otherwise it will effect the performance for the browser ,spec sheet data and process data.

 

Option 2:

 

Run the following SQL

Select distinct pk_list_col_values  from changes_log where pk_list_col_names like ‘%cmpnt_id%’ and seq_num > XXXXX;

After Each time you make this check you need to find the max(seq_num) and remember it for the next check to use it for seq_num > XXXXX condition in this way you check the changes from the last check.

When you get the list of the cmpnt_id you can run the following sql to find  the name of the tags and the revision:

Select c.cmpnt_id,c.cmpnt_name,u.udf_c01 from component c,udf_component u

Where c.cmpnt_id = u.cmpnt_id and c.cmpnt_id in(cmpnt_id1,cmpnt_id2,etc);

Save the results in excel file and from there you can create sql to update udf for revision.

 

Regards

 

Ilan Hills

 


Ilan Hills ihills@asbuilt-dba.com www.asbuilt-dba.com
  Aggregated  FAQ  Index Module  how to manage r...
Intools
 Search   Forum Home     

Search Engine Optimization and SEO Tools
My Google Pagerank